@0perator/operator 0.1.222 → 0.1.261

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +6 -5
  2. package/dashboard/server.mjs +1 -1
  3. package/dist/acp/agent.js +320 -53
  4. package/dist/acp/auth.js +44 -0
  5. package/dist/acp/config-options.js +34 -0
  6. package/dist/acp/prompt.js +41 -0
  7. package/dist/acp/run.js +116 -10
  8. package/dist/acp/tool-map.js +48 -0
  9. package/dist/auth/byo.js +125 -0
  10. package/dist/auth/client.js +12 -6
  11. package/dist/auth/commands.js +71 -3
  12. package/dist/auth/identity.js +136 -0
  13. package/dist/auth/store.js +7 -5
  14. package/dist/autonomy/board.js +3 -2
  15. package/dist/autonomy/cron.js +332 -0
  16. package/dist/autonomy/delegate.js +168 -0
  17. package/dist/autonomy/dream.js +1 -1
  18. package/dist/autonomy/index.js +16 -2
  19. package/dist/autonomy/media-robot.js +137 -0
  20. package/dist/autonomy/profile.js +77 -0
  21. package/dist/autonomy/routines.js +5 -4
  22. package/dist/autonomy/session-factory.js +19 -10
  23. package/dist/background/index.js +8 -1
  24. package/dist/browser/cdp.js +266 -0
  25. package/dist/browser/session.js +286 -0
  26. package/dist/cli.js +207 -106
  27. package/dist/compose/client.js +56 -0
  28. package/dist/config/brand.js +3 -3
  29. package/dist/config/home.js +70 -0
  30. package/dist/config/managed.js +230 -0
  31. package/dist/config/persona.js +243 -21
  32. package/dist/config/scaffold.js +142 -0
  33. package/dist/config/settings.js +87 -20
  34. package/dist/config/skills-index.js +175 -0
  35. package/dist/consolidation/scheduler.js +10 -7
  36. package/dist/consolidation/sleep.js +17 -3
  37. package/dist/engine/agent.js +231 -21
  38. package/dist/engine/aurora.js +79 -14
  39. package/dist/engine/batch-scheduler.js +128 -0
  40. package/dist/engine/compaction.js +129 -2
  41. package/dist/engine/computer-event.js +139 -0
  42. package/dist/engine/continuation.js +55 -0
  43. package/dist/engine/contract.js +3 -1
  44. package/dist/engine/grandmaster.js +13 -3
  45. package/dist/engine/json-repair.js +105 -0
  46. package/dist/engine/messages.js +52 -5
  47. package/dist/engine/redact.js +25 -0
  48. package/dist/engine/rolling-summary.js +28 -11
  49. package/dist/engine/router-adapter.js +2 -0
  50. package/dist/engine/unrestricted.js +51 -0
  51. package/dist/engine/verify-gate.js +6 -0
  52. package/dist/enterprise/cli.js +137 -0
  53. package/dist/flywheel/processor.js +30 -2
  54. package/dist/flywheel/secret-gate.js +123 -0
  55. package/dist/index.browser.js +4 -0
  56. package/dist/index.js +4 -0
  57. package/dist/mcp/index.js +18 -24
  58. package/dist/memory/index.js +0 -0
  59. package/dist/memory/session-index.js +324 -0
  60. package/dist/memory/session-rewind.js +92 -0
  61. package/dist/memory/state-maintenance.js +441 -0
  62. package/dist/observability/index.js +3 -3
  63. package/dist/permissions/audit.js +4 -1
  64. package/dist/permissions/index.js +24 -12
  65. package/dist/permissions/policy.js +4 -3
  66. package/dist/permissions/tier.js +31 -14
  67. package/dist/remote/host.js +9 -2
  68. package/dist/router/models.js +62 -2
  69. package/dist/selfimprove/index.js +9 -7
  70. package/dist/session.js +129 -42
  71. package/dist/skills/catalogue.js +167 -0
  72. package/dist/telemetry/audit-verify.js +94 -0
  73. package/dist/telemetry/events.js +92 -7
  74. package/dist/telemetry/lifecycle.js +18 -0
  75. package/dist/tools/computer.js +1 -1
  76. package/dist/tools/deferred.js +117 -0
  77. package/dist/tools/executor.js +27 -23
  78. package/dist/tools/memory.js +117 -0
  79. package/dist/tools/mutating.js +6 -0
  80. package/dist/tools/registry.js +1022 -46
  81. package/dist/tools/sandbox.js +63 -17
  82. package/dist/tools/searxng.js +2 -2
  83. package/dist/tools/shell-session.js +36 -1
  84. package/dist/tools/tool-output-spill.js +4 -4
  85. package/dist/ui/ActivitySpinner.js +17 -6
  86. package/dist/ui/App.js +36 -14
  87. package/dist/ui/ArtifactPicker.js +109 -0
  88. package/dist/ui/Composer.js +39 -8
  89. package/dist/ui/Markdown.js +5 -3
  90. package/dist/ui/MouseProvider.js +99 -19
  91. package/dist/ui/QuestionPrompt.js +24 -3
  92. package/dist/ui/ThinkingSpinner.js +9 -5
  93. package/dist/ui/ToolStep.js +17 -12
  94. package/dist/ui/Transcript.js +28 -9
  95. package/dist/ui/capabilities.js +0 -9
  96. package/dist/ui/listhit.js +23 -0
  97. package/dist/ui/mouse.js +22 -0
  98. package/dist/ui/osc.js +7 -4
  99. package/dist/ui/progressbar.js +46 -0
  100. package/dist/ui/shimmer.js +43 -0
  101. package/dist/ui/theme.js +2 -0
  102. package/dist/ui/tick.js +48 -0
  103. package/dist/ui/toolicons.js +69 -0
  104. package/dist/ui/useInputHistory.js +3 -3
  105. package/dist/util/slash.js +1 -0
  106. package/dist/vault/cli.js +48 -0
  107. package/dist/vault/store.js +157 -0
  108. package/dist/vault/tool.js +50 -0
  109. package/package.json +3 -5
  110. package/CHANGELOG.md +0 -1629
package/CHANGELOG.md DELETED
@@ -1,1629 +0,0 @@
1
- # Operator (kode-tsi) — Changelog
2
-
3
- Operator is AXE's terminal coding agent (npm `@0perator/operator`), running on AXE's local model.
4
- Newest first. Every release bumps `src/cli.tsx` VERSION + `package.json`, adds an entry here, and ships to
5
- npm + both git remotes (memjar/kode, axetechnologies/kode). Test counts are the full suite at that release.
6
-
7
- ## 0.1.170 — 2026-10-01 — GW-05/GW-06: prefix-cache telemetry + oracle cold-start seed + GW-10 completion
8
- - **Cache telemetry (aurora.ts).** The server was already telling us the exact answer and we were discarding
9
- it: parse `timings.cache_n` / `usage.prompt_tokens_details.cached_tokens` into `ChatResult.cacheN`, threaded
10
- through `onMeta`. `runTurn` fires a new `onCacheStats` per round; `cacheBustNotice` (pure, tested) names a
11
- continuation that re-prefilled >=8K tokens with ZERO reuse and prices it in wall-seconds from `promptMs` —
12
- the honest answer to "why is it crawling" (the v0.1.140-143 mystery class) instead of a guess. `cli.tsx`
13
- surfaces the warning line. Live-measured shape from the deep canary: a 64K-token bust costs 209s.
14
- - **Oracle cold-start seed (`engine/calibration-seed.ts`, GW-06).** The meter cold-starts at the legacy chars/4
15
- (4.0); the aurora-tier0 calibration script measured TRUTH at ~2.15 chars/token on agent traffic — 41-50%
16
- under-count — so a fresh install's gate fires LATE (the dangerous side) for its first ~10 rounds. Seed ONE
17
- weight-1 observation per zero-sample endpoint from llama.cpp's own `/apply-template`→`/tokenize` (offline;
18
- real observations supersede within rounds). Fires once from `cli.tsx`'s first route; kill-switch
19
- `KODE_SEED_CALIBRATION=0`; browser-safe (plain `fetch`, injectable transport — no node builtins). Live proof:
20
- seeded :8097 to **2.355** chars/token (vs the old 4.0 guess), one sample, outcome `seeded`.
21
- - Tests: cache_n parse over real SSE + OpenAI `cached_tokens` shape; notice checker (cold-first-request silence,
22
- warm silence, floor, bust text with token count + seconds); seed math (2.2 → pooled ratio ±0.1),
23
- already-calibrated immutability, and every degrade path (unreachable / no-template / weak / absurd → meter
24
- stays cold, never poisoned).
25
- - Full suite: 776 passed, 0 failed (106 files). `tsc --noEmit` clean; browser entry unchanged under
26
- `esbuild --platform=neutral` (94.6kb); iOS `engine.bundle.js` regenerated.
27
-
28
- - **GW-10-COMPLETE (the follow-up a642c59 named).** `fitToWindow` now OFFLOADS oversized tool outputs through an
29
- injected spill (full bytes to disk + re-readable pointer) instead of erasing their middle — browser/JSCore hosts
30
- without a spill keep the old named-loss stub, parity preserved. Eviction order fixed per Manus doctrine:
31
- error-ish results shed LAST (a failure trace suppresses repeat mistakes; a success's bytes are re-fetchable).
32
- MCP results offload too (optional `hub.spillSink` — barrel stays node-free). Retention: 14-day age + 500MB byte
33
- caps, hourly-throttled, never blocks a spill. `KODE_TOOL_OUTPUT_DIR` isolates the dir (tests/CI/second users).
34
- `compact-command` test intentionally retargeted: /compact preserves every byte it used to elide. +6 tests
35
- (`test/gw10-complete.test.mts`), full suite 803/0 (107 files).
36
-
37
- ## Unreleased — CORRECTION (GW-26): the "4x decode" claim in the 0.1.169 entry was load-inflated; measured truth below
38
- - Controlled server-level A/B (throwaway :8098, same gguf/ctx-32K, temp 0, identical fresh-content tasks,
39
- interleaved): ngram-mod 24/64 = 15.8-23.8 tok/s (median 17.2) vs --spec-type none = 26.3-28.2 (median 27.4)
40
- — speculation at the BLESSED tuning costs ~1.6x on idle prose tasks, and more under load (draft acceptance
41
- falls 25-30% idle -> 3-17% loaded per server logs). The original 4-6 vs 20-25 pairing compared loaded vs
42
- quieter windows, not spec on/off — retracted as a causal figure.
43
- - CONFIRMED (Nova@jl1 counter-measurement, replicated here): the request-shape `speculative:{ngram:{enabled:false}}`
44
- does NOT affect the ngram-MOD code path — PR #7 is a no-op on the current fleet servers (kept: correct and
45
- safe where plain ngram runs, harmless elsewhere; enableSpeculation escape unaffected).
46
- - ACTION: the real lever is the SERVER flag: relaunch :8097 with --spec-type none (measured 1.6x idle,
47
- expected >2x under concurrency), canary-gated, GO window required. Draft acceptance telemetry lives in the
48
- server log (slot print_timing lines), not in chat-completions timings — noted for the GW-18 canary.
49
-
50
- ## 0.1.169 — 2026-10-01 — GW-26: Aurora decode 4x — disable default-on ngram speculation per request
51
- - **Measured, live on :8097** (b11146, DeltaNet-hybrid Q4_K_M, ctx 307K): a fresh 300-token generation ran
52
- 4.0–5.7 tok/s with llama.cpp's now-DEFAULT-ON ngram speculation vs 20.2–24.7 tok/s once the request carried
53
- `speculative:{ngram:{enabled:false}}` (server `timings.draft_n` -> 0 confirms; server log showed draft
54
- acceptance 3–17% — every rejected draft forces a multi-token re-verify + hybrid recache, a net loss at the
55
- untuned draft defaults). The `{type:"none"}` shape is SILENTLY IGNORED (measured no-op) — the exact shape
56
- ships in `requestBody()` for every Aurora call; `enableSpeculation: true` is the per-call escape hatch for
57
- when a retuned bless lands. Servers that don't speculate ignore the field (same contract as `cache_prompt`).
58
- - Unblocks GW-25: thinking-ON cost collapses 4x — a 2-3K-token reasoning trace is now ~1.5 min, not 12.
59
- - `test/spec-optout.test.mts` +3 tests (wire shape, opt-in path, rejected-shape policy).
60
- - package.json bump intentionally deferred to the release commit — three in-flight PRs (#5/#6/#7) would
61
- otherwise fight over numbers; integrator assigns the next one at merge.
62
-
63
- ## 0.1.167 — 2026-10-01 — Sub-agent watchdog: stall-detector, not an absolute wall-clock cap
64
- - **A slow-but-progressing sub-agent is no longer killed.** The background watchdog was an *absolute* 20-minute
65
- timer: a child token-starved behind the foreground on the single shared endpoint (seen live: 11 rounds, real
66
- file writes, ~2.6k tokens in 20 min) got reaped mid-progress and marked "errored." It's now a true **stall
67
- detector** — the clock resets on every real progress signal (a token via `onTokens`, a completed tool round
68
- via `onToolBatch`), so only an agent that has made **no** progress for the window (a genuinely hung request —
69
- connection open, no chunks, the case the watchdog exists for) is stopped. The stop reason is now the accurate
70
- "no progress for Nm" instead of "exceeded Nm wall-clock limit". `KODE_BG_TIMEOUT_MS` still overrides the 20m
71
- default. `src/background/index.ts`; `test/background-hardening.test.mts` +1 (a progressing agent survives 4×
72
- the window). Full suite 791 passed, 0 failed.
73
-
74
- ## 0.1.166 — 2026-10-01 — Grandmaster wave: cache-stable prefix, flywheel anti-poison, lossless tool results, sub-agent economics
75
- - **GW-04 — deterministic tool-schema prefix.** `McpHub.schemas()` now sorts by namespaced name so the
76
- `[system+tools]` prefix is byte-identical across sessions/restarts — KV prefix-cache reuse is strictly
77
- prefix-positional, so any reorder zeroed every downstream hit. Pairs with slot-save/restore reuse. (Audit also
78
- confirmed the prefix is already stable *within* a session: MCP discovery is first-turn-only.) +3 parity tests.
79
- - **GW-18 (client) — flywheel anti-poisoning.** `hasLeakedToolCall()` flags tool-call markup that leaked into
80
- assistant text (the `--jinja`-off Qwen failure); the flywheel sink excludes those turns from the promotable
81
- training corpus and tags every row `parse_fallback` — so Aurora can't be trained to emit tool markup as prose.
82
- +14-fixture parser canary. (Server `--jinja` half is fleet-serving side.)
83
- - **GW-10 — lossless tool-result eviction.** A >40K tool result no longer discards its middle forever: the FULL
84
- output spills to `~/.axe/operator/tool-outputs/<id>.txt` and the model gets a pointer to re-read the omitted
85
- middle via `file_read(offset/limit)`. `capToolResult` stays node-free (spill sink injected → web bundle safe);
86
- wired for all local tools (the dominant token sink). Fewer tokens/turn → slower approach to the depth ceiling.
87
- +4 tests.
88
- - **GW-14 — sub-agent economics.** The `spawn_agent` description + sub-agent brief now state a RETURN CONTRACT
89
- (report ~1-2k tokens, file:line pointers not pasted output — a bloated child report forces the parent to
90
- compact), a SINGLE-WRITER rule, and effort-matching.
91
- - **`/rc`** alias for `/remotecontrol`.
92
- - Full suite: 790 passed, 0 failed (105 files). `tsc --noEmit` clean.
93
-
94
- ## 0.1.165 — 2026-10-01 — Robustness: deep-context swap-thrash guard + ESC-abort hardening
95
- - **Swap-thrash guard (track · fix · prevent).** A long session could grow the live context past the box's RAM,
96
- so model weights + KV cache spilled into swap and decode collapsed to ~0 tok/s (measured 2026-10-01: context
97
- reached ~191K tokens on a 64GB box → 7.6GB swap → "88 tokens in 6 minutes"). The context *window* is a TOKEN
98
- limit; the real cliff is a MEMORY limit the %-of-window compaction threshold can't see (it's the same % at any
99
- RAM). Fix: `compactionCeilingTokens` now, when unset, applies a RAM-aware safe default —
100
- `defaultCompactionCeiling(totalmem, window)` reserves ~28GB (≈model + OS/overhead) then ~3500 tok/GB of what's
101
- left, clamped to [8000, 0.85·window] and deliberately BELOW the measured cliff — so proactive compaction fires
102
- before swap on any box (64GB/300K → ~126K). An explicit `compaction.ceilingTokens` / `KODE_COMPACTION_CEILING_TOKENS`
103
- still wins. The 0.1.164 token meter makes the trigger exact. `test/settings.test.mts` +8 regression tests lock
104
- the ceiling below the cliff so this can't silently return.
105
- - **ESC-abort hardening.** The main streaming abort path was already correct (verified by trace + a 6ms live
106
- repro — no main-path bug); closed two narrower gaps: the compaction summarizer's `chat()` now carries the
107
- abort signal (ESC during "compacting" tears it down), and `send()` arms the AbortController *before* first-turn
108
- `maybeRecall`/MCP-discovery so ESC no longer no-ops in that window (`execute()` reuses the same controller).
109
- - Full suite: 769 passed, 0 failed (104 files). `tsc --noEmit` clean.
110
-
111
- ## 0.1.164 — 2026-10-01 — Token meter (engine) + Switchboard messages inline in the transcript
112
- - `src/engine/token-meter.ts` learns each endpoint's REAL chars-per-token online from the exact counts
113
- the server already reports (`timings.prompt_n`, `usage.completion_tokens`): EMA (converges in ~10
114
- rounds), per-`base|model` keys (two servers on one model id can tokenize differently), +4 tokens per
115
- message of chat-template framing the old counter missed entirely, estimates round UP (compact a hair
116
- early ≪ 400 the request). Sample guards drop zero-token reports, <500-char prompts, and out-of-range
117
- (1.0–12.0) ratios — the 40-tool-call turn that used to poison the meter can no longer move it. Cold
118
- start = the legacy 4.0 prior, so no behavior cliff on upgrade. Calibration persists to
119
- `~/.axe/operator/token-calibration.json` (throttled cache; corrupt/missing degrades to cold, boot is
120
- never blocked). NO static `node:fs` import — the shared engine graph must stay node-free for the
121
- `esbuild --platform=neutral` iOS bundle — fs arrives via `process.getBuiltinModule`, degrading to an
122
- in-memory meter on JSCore/browser.
123
- - Wired through ONE process-wide `globalTokenMeter` so an observation from any surface calibrates all:
124
- the compaction gate (`CompactionOpts.meter`/`meterKey` — gate, ceiling, clampMaxTokens and fitToWindow
125
- all size to the endpoint the request will ACTUALLY hit), the size router (pooled sample-weighted
126
- ratio in `router-adapter.ts`), the status-rule ctx% and `/compact` freed math (`session.ts` — one char
127
- basis everywhere, enforced by construction), aurora's missing-timings output fallback (`ChatResult
128
- .tokensExact` flags server-exact counts so the fallback never re-learns its own prior), and per-round
129
- observation in `runTurn` (prompt side: `requestChars(built, toolSchemas)`; completion side: exact
130
- samples only).
131
- - `pickSummaryContent` (compaction.ts, SPEC §5 failure handling): content wins verbatim, reasoning is
132
- the fallback, both dry ⇒ `""` so compact() SKIPS rather than persisting a fact-free placeholder over
133
- real history; a throwing summarizer (500/drop mid-compaction) no longer kills the turn.
134
- - `docs/token-meter.md` design notes (scope rules, durability, deferred ceiling);
135
- `test/token-meter.test.mts` 18 tests: EMA math, all guards, endpoint isolation, persistence
136
- round-trip + corrupt degradation, calibrated gate trip, picker, throw-safety, interrupted-pair validity.
137
- - **Switchboard messages now render INLINE in the transcript**, superseding the 0.1.163 pinned click-to-expand
138
- tray. The tray lived outside `<Static>`, so every 3s poll + re-render re-painted it and Ink orphaned the old
139
- cards into scrollback (the "messages duplicate and never clear" bug). Now each bus message is a `kind:"bus"`
140
- transcript entry appended at arrival time → `<Static>`-rendered (printed once), anchored to its place in the
141
- conversation, scrolls with history. `src/ui/BusTray.tsx` removed. `src/ui/brand.ts` adds the Switchboard mark
142
- `⦿` (a patch-jack; one const, swappable) with a direction arrow (◂ in / ▸ out) + `HH:MM`. `src/bus/inbox.ts`
143
- gains `pollSent()` reading this session's own `sent/` archive so OUTBOUND traffic ("you sent X to Y") also
144
- surfaces inline (consume-once via `sent-read/`, same discipline as the inbox). `src/cli.tsx` poller pushes
145
- both directions; `src/ui/App.tsx` drops the tray + `busMessages` plumbing from both layouts.
146
- - Full suite: 761 passed, 0 failed (104 files). `tsc --noEmit` clean; iOS `engine.bundle.js` builds under
147
- `esbuild --platform=neutral` (engine graph remains node-free). Switchboard surface = Claude lane, grandmaster wave.
148
-
149
- ## 0.1.163 — 2026-09-30 — TUI: live Switchboard messages in the terminal (click-to-expand)
150
- - Incoming Switchboard agent messages (the provider-agnostic on-box bus, memjar/switchboard) now surface
151
- **live in the Operator terminal** as a click-to-expand tray — the end-to-end proof of the Phase-1 mouse
152
- layer. `src/bus/inbox.ts` reads this session's inbox directly (same mailbox format, no cross-repo dep;
153
- neutral defaults `SWITCHBOARD_DIR`→`~/.switchboard`, `SWITCHBOARD_AGENT`→`AXE_AGENT`→`role@host`); a 3s
154
- poller in `cli.tsx` feeds a bounded tail to `<App>`.
155
- - `src/ui/BusTray.tsx` renders each message as a collapsible card, **top-anchored** so each card's absolute
156
- terminal row is deterministic (`trayLayout()`, pure + tested) — which is what makes left-click hit-testing
157
- reliable without Ink absolute-position measurement. Click toggles the body; inline mode shows cards
158
- read-only (no mouse there). A box without Switchboard installed shows nothing (empty-safe).
159
- - Enterprise/AI-agnostic: no vendor lock, neutral env-overridable paths, works on any surface. Received
160
- messages are DATA, never executed. Decision log: `_ai-docs/decisions/2026-09-30-switchboard-tui-bustray.md`.
161
- Suite 748 green (+10).
162
-
163
- ## 0.1.162 — 2026-09-30 — TUI: wheel-scrollback in fullscreen (mouse layer wired into App)
164
- - The Phase 1 mouse mechanism is now live in the app. `App.tsx`'s fullscreen branch mounts `MouseProvider`
165
- (enabled only on a mouse-capable TTY — inline stays a native-scroll no-op) and a new `FullscreenBody`
166
- turns wheel events into **scrollback over the alt-screen transcript**, which previously had none: the
167
- bottom-anchored clip simply hid older entries with no way to reach them. Wheel-up slides the window back
168
- through history (with a `⋯ N newer below` marker), wheel-down returns toward the live bottom, and any new
169
- settled output snaps straight back to it — you never get stranded in history while the answer grows.
170
- - Windowing is a pure, unit-tested `boundedWindow(total, scrollBack, tail)` in `Transcript.tsx`: `scrollBack`
171
- is clamped to `[0, total-1]` (the oldest entry always stays reachable) and `scrollBack === 0` returns the
172
- last `BOUNDED_TAIL` entries — **byte-identical to the pre-scroll behavior**, so inline and non-scrolled
173
- fullscreen are unchanged. Live stream is suppressed only while scrolled up (it belongs at the true bottom).
174
- - Decision log: `_ai-docs/decisions/2026-09-30-tui-mouse-scrollback.md`. Suite 738 green (+6).
175
-
176
- ## 0.1.161 — 2026-09-30 — TUI: MouseProvider + hooks (Phase 1 mouse layer mechanism)
177
- - Builds on the SGR parser: `MouseProvider` (fullscreen-only) enables 1002+1006 tracking, parses stdin,
178
- dispatches wheel→`useOnWheel` and left-press→hit-tested-region `onClick` (`useClickRegion`), and disables
179
- on unmount + process `exit` (crash-safety — a stuck tracking mode after a crash is the #1 real mouse bug;
180
- relies on `exit`, not signal handlers, so Ctrl-C is unchanged). `mouse.ts` gains pure `hitTest`. Inline
181
- mode = disabled no-op (native scroll+copy preserved). Tested via ink-testing-library with simulated SGR
182
- stdin. Next: wire into App.tsx fullscreen + click-to-select panels. Suite 732 green (+2).
183
-
184
- ## 0.1.160 — 2026-09-30 — TUI: SGR mouse parser (Phase 1 foundation) + Aurora speed plan
185
- - New `src/ui/mouse.ts`: a pure SGR (mode 1006) mouse-sequence parser (`CSI < Cb;Cx;Cy M/m`) decoding
186
- press/release/drag/move/wheel + shift/alt/ctrl, plus `MOUSE_ON`/`MOUSE_OFF` (mode 1002 button-event +
187
- 1006, never 1003 any-event). The foundation the `MouseProvider` (next increment) feeds stdin to and
188
- hit-tests against Ink `measureElement` bounds, fullscreen-only. Pure, 9 tests. Also lands the Aurora
189
- speed-amplification plan (7-agent research): ngram-mod MoE draft-length fix (n 3/8→24/64, a verified
190
- live misconfig) + `--backend-sampling` applied to the serve plist; EAGLE3/MTP ruled out (broken for
191
- qwen35moe / net-loss on Metal). Suite 730 green (+9).
192
-
193
- ## 0.1.159 — 2026-09-29 — fix: checkpoint no longer wedges on a stale git index lock
194
- - **The recurring "checkpoints don't work" bug, root-caused + fixed.** The 0.1.148 SIGKILL-on-timeout
195
- hardening made checkpoints un-hangable — but a `git` killed mid-add/commit leaves `.git/index.lock`
196
- orphaned, and git never clears it, so **every subsequent checkpoint** died with `fatal: Unable to create
197
- '.git/index.lock': File exists` (seen live on JL2, 0.1.151). Now `clearStaleCheckpointLock()` removes the
198
- lock before committing, but **only when it's older than 30s** — a live add/commit holds it for well under
199
- a second, so an aged lock is provably orphaned by a prior killed run, while a concurrent op's fresh lock
200
- is never touched (worktree-safe via `git rev-parse --git-dir`). Real-git test proves both: stale lock
201
- cleared + commits; fresh lock preserved + the lock error still surfaces. Suite 721 green (+2).
202
-
203
- ## 0.1.158 — 2026-09-29 — fix: TUI capability-detection review findings
204
- - Adversarial review of the 0.1.156 TUI foundation surfaced real gaps, now fixed: (1) `truecolor` was
205
- conflated with the graphics-protocol flag, under-detecting VS Code/Warp/Hyper/Tabby — split into an
206
- independent per-terminal field; (2) `tmux` was detected but never consumed — now gates `graphics` OFF
207
- under tmux (inline images break without allow-passthrough); (3) Alacritty `osc8` was stale-false → true
208
- (shipped in v0.13, 2024); (4) `mouse` no longer requires a non-empty `TERM` (isTTY already excludes
209
- non-terminals; SGR mouse is universal); (5) `hyperlinkHint` doc corrected to inline-boot-only. Tests
210
- +7 (truecolor independence, tmux gate, all known terminals, case-insensitivity, `caps()` caching,
211
- empty-env). Suite 719 green. Also indexed the sandbox + TUI docs in `_ai-docs` (kiyoko).
212
-
213
- ## 0.1.157 — 2026-09-29 — remote: RC auto-start default ON for every session
214
- - `rcAutostart()` no longer gates on the admin tier — **every Operator session self-hosts Remote Control
215
- by default**, so mobile SessionsView + the desktop RemotePane attach with no config ("default on for
216
- everything"). Opt out with `remote.autostart:false` or `KODE_RC_AUTOSTART=0` (CI / power users / privacy).
217
- Ships with the server-side **operator-tsi token-TTL bump 90d→365d** (deployed to authgate + committed to
218
- memjar/authgate) so auto-RC sessions no longer reproduce the ~day-83 token-expiry "connection lost" once
219
- every session self-hosts. Suite 712 green.
220
-
221
- ## 0.1.156 — 2026-09-29 — TUI: terminal capability detection + artifact links (upgrade Phase 0+2)
222
- - First increment of an enterprise-TUI upgrade (7-agent SOTA research → blueprint in
223
- `_ai-docs/architecture/tui-enterprise-upgrade.md`). New `src/ui/capabilities.ts` (pure, cached-at-boot):
224
- fingerprints the terminal (`TERM_PROGRAM`/`TERM`/`COLORTERM`) into `{isTTY, osc8, truecolor, mouse,
225
- graphics, tmux, termName}`, and `hyperlinkHint()` tells the owner when their terminal (Terminal.app,
226
- Alacritty) can't render clickable links — iTerm2/Ghostty/Kitty/WezTerm can. `osc.ts` `link()` gains an
227
- optional OSC 8 `id=` param (redraw-stable underlining across Ink repaints) + `artifactLink(label,url)`
228
- (URL-stable id) so Operator can **place clickable artifact links**; the existing `hyperlinksEnabled`/
229
- `link`/`fileLink` contract is unchanged. `cli.tsx` prints the hint once (dim, inline-only) after the
230
- masthead. Clickable URLs/paths already worked in OSC-8 terminals; this adds detection + the artifact
231
- primitive + a nudge for unsupported terminals. **Next:** Phase 1 mouse layer, Phase 3 file/diff panels.
232
- Suite 712 green (+9).
233
-
234
- ## 0.1.155 — 2026-09-29 — sandbox: Linux bubblewrap parity (sandboxed-exec Phase 2)
235
- - `KODE_SANDBOX=workspace|strict` now sandboxes shell execution on **Linux** (bubblewrap), not just macOS
236
- (seatbelt). `hasSandboxExec()` is darwin-only, so on the Linux fleet (jl2/jl3/AXeServer/droplets)
237
- `wrapShell` fell through to plain bash — the modes were a **silent no-op** there. New `hasBubblewrap()`
238
- (Linux-only) + `bwrapArgs(mode)` map the SAME `DENY_WRITE`/`SECRET_READ` lists + allow-roots to bwrap
239
- bind-mount namespaces (protected paths → `--ro-bind`, secrets → `--tmpfs`/`/dev/null` mask, strict →
240
- whole-FS `--ro-bind / /` + writable allow-roots + `--unshare-net`). `wrapShell`/`wrapInteractiveShell`
241
- try seatbelt → bwrap → plain bash; **macOS behavior unchanged** (seatbelt still wins). Absent on thin
242
- images (Alpine) → falls back to plain bash, JS write-guards still apply. **Runtime-validated on a real
243
- Linux node** (Ubuntu 24.04, bubblewrap 0.9.0, canary-only, pkg purged): strict masks secret reads + cuts
244
- network + confines writes; workspace allows network but keeps secret masking + protected-path read-only.
245
- Design + validation: `_ai-docs/architecture/sandboxed-code-execution.md`; decision:
246
- `_ai-docs/decisions/2026-09-29-linux-bubblewrap.md`. Suite 703 green (+4).
247
-
248
- ## 0.1.154 — 2026-09-29 — engine: per-session persistent shell (sandboxed-exec Phase 1)
249
- - The `bash`/`shell_exec` persistent shell is now **per session**, not one process-wide singleton. Before, the
250
- foreground and every background sub-agent shared ONE bash: a sub-agent's `cd`/`export` corrupted the
251
- foreground's cwd/env (and vice versa — proven live on JL1), and every command head-of-line-blocked every other
252
- session on the one FIFO. Now the `Executor` carries a stable per-session `shellKey` (the session's `sessionId`,
253
- else a unique `exec-N` fallback so two keyless lanes never collide) through tool execution via an
254
- `AsyncLocalStorage`; the registry keys `ShellSession` by it, and a sub-agent disposes its shell on completion.
255
- Default (`KODE_SANDBOX=off`) behavior is **byte-identical** — this is the correctness fix + prerequisite for
256
- the sandboxed-exec tiers, no sandbox change yet. Design + JL1 validation:
257
- `_ai-docs/architecture/sandboxed-code-execution.md`; decision: `_ai-docs/decisions/2026-09-29-per-session-shell.md`.
258
- Suite 699 green (+5). Also: releases now publish to **npmjs** (private) instead of pkg.axe.onl (`publishConfig`).
259
-
260
- ## 0.1.153 — 2026-09-29 — speed: KV prefix-cache reuse (`cache_prompt: true`) — fixes slow compaction
261
- - Every Aurora request now sends `cache_prompt: true`. Without it the single-slot llama.cpp server RE-PREFILLED
262
- the whole growing prefix (system + tools + history) each round, and re-prefilled the full evicted span on every
263
- compaction — the "compaction takes 4-5 min at ~80k ctx" symptom seen live on JL2. With it the server
264
- prefix-matches the cached KV and prefills only the new tail (minutes → seconds on deep-context rounds).
265
- Harmless on servers that ignore the field. Rationale: `_ai-docs/2026-09-29-prefix-cache-reuse.md`. Suite 694 green.
266
-
267
- ## 0.1.152 — 2026-09-28 — engine: per-turn token budget (opt-in cost ceiling)
268
- - New `maxTurnTokens` (env `KODE_TURN_MAX_TOKENS`), an **opt-in** per-turn ceiling on total tokens (generation +
269
- prefill, summed across the turn's rounds). When a turn has spent its budget it **wraps up gracefully at the
270
- next round boundary** with a `[paused — token budget …]` note — never mid-round, so a productive turn finishes
271
- its current step first and returns the work so far. Default off (the round + no-progress guards already bound
272
- runaway; this adds a cost axis for cost-sensitive / unattended runs). The `[paused —` prefix (vs `[stopped —`)
273
- keeps the flywheel from misreading a budget stop as a failure-lesson. Completes the four-item frontier list
274
- (loop recovery, flywheel, spawn heuristic, cost budget). Rationale: `_ai-docs/2026-09-28-per-turn-token-budget.md`.
275
- Suite 694 green (+2).
276
-
277
- ## 0.1.151 — 2026-09-28 — sub-agent spawn heuristic (accurate post-gate) + JL1 E2E battery
278
- - Updated the `spawn_agent` tool description to match the endpoint gate's reality: sub-agents SHARE your one
279
- model endpoint and the gate keeps YOUR turn first and runs them **one at a time in the gaps** (not truly in
280
- parallel), so spawning many does not make them finish sooner. Added an explicit rule: **never `sleep`, poll,
281
- or block to WAIT** for a sub-agent — its result posts on its own; `agent_status` is for CHECKING state, not a
282
- wait loop (this was the observed antipattern: `sleep 60` to pass time). Guides the model to a better spawn
283
- decision now that contention is handled structurally. Plus the JL1 E2E battery for 0.1.147–0.1.150
284
- (`_ai-docs/2026-09-28-jl1-test-battery.md`): checkpoint-un-hang (59ms over a `sleep 999` hook), gate priority,
285
- flywheel sink, and a real headless turn — all PASS on the shipped runtime. Suite 692 green.
286
-
287
- ## 0.1.150 — 2026-09-28 — self-improvement: flywheel closed loop (auto-capture failure lessons)
288
- - The self-improvement `memory` sink is now implemented (was "next increment"). When a turn ends **STUCK** — a
289
- loop/guard stop or a `repetition` stopReason — a concise, deduplicated **LESSON** is appended to the repo's
290
- `.operator/memories.md`, which `persona.loadMemories()` injects into every future session's system prompt
291
- here. So a failure the agent hit once becomes durable, always-loaded context — it doesn't repeat the trap.
292
- Deterministic (no LLM pass, zero added latency); **opt-in** (`settings.selfImprove.memory`, default off, since
293
- it writes into the repo); deduplicated; best-effort. Closes the loop that the forced-redirect recovery
294
- (0.1.149) opened in-session. Rationale: `_ai-docs/2026-09-28-flywheel-memory-closed-loop.md`. Suite 692 green (+4).
295
-
296
- ## 0.1.149 — 2026-09-28 — engine: loop recovery — forced redirect instead of stopping (longer autonomous sessions)
297
- - The round-loop guard used to hard-STOP the turn at 6 identical rounds. Now it ESCALATES to self-correction: at
298
- 3 repeats a light nudge; at 6 a **forced redirect** — the model must diagnose what it keeps doing and why it
299
- isn't progressing, then **break the step down** or **switch approach**, and it gets a fresh runway and
300
- CONTINUES. Only after `CONTENT_LOOP_REDIRECT_MAX` (3) forced redirects fail does the turn hand back — so the
301
- runway before a stop extends from ~6 rounds to ~18+ of active self-correction (the no-progress stall + round
302
- ceiling still backstop it). Keeps long autonomous sessions alive instead of dying on a recoverable loop.
303
- Rationale: `_ai-docs/2026-09-28-loop-forced-redirect-recovery.md`. Suite 688 green (+1).
304
-
305
- ## 0.1.148 — 2026-09-28 — reliability: un-hangable tools (checkpoint freeze + esc-always-works)
306
- - A checkpoint could freeze the session forever ("checkpoint… spins, esc won't help") — its git steps ran with
307
- no timeout, no kill signal, and an interactive-capable env, so a slow/hung pre-commit hook, a credential
308
- prompt, an editor/pager, or a stuck index lock blocked git and the tool never returned. **Two fixes:**
309
- (1) checkpoint's git is hardened — every step has a **timeout + SIGKILL**, a **non-interactive env**
310
- (`GIT_TERMINAL_PROMPT=0`, `GIT_EDITOR`/`GIT_SEQUENCE_EDITOR=true`, `GIT_PAGER=cat`, `GIT_OPTIONAL_LOCKS=0`),
311
- and commit uses **`--no-verify`** (a WIP snapshot must never be gated by a hook); it now always returns, with a
312
- clear message on timeout. (2) **Systemic guard:** the turn loop races every tool batch against the abort
313
- signal (new `abortable()`), so **esc ALWAYS returns control** even if a tool's child process is wedged — no
314
- single tool can freeze the session again. The abandoned work runs to its own timeout; the session never
315
- freezes. Rationale: `_ai-docs/2026-09-28-un-hangable-tools-checkpoint.md`. Suite 687 green (+5).
316
-
317
- ## 0.1.147 — 2026-09-28 — engine: endpoint concurrency gate (share one slot, interactive-first)
318
- - Aurora is ONE decode slot (llama.cpp `--parallel 1`). Nothing serialized the main turn and its spawned
319
- sub-agents, so they time-sliced that slot — N agents at ~1/N speed, and an interactive prompt could wait
320
- behind a sub-agent's rounds. Measured live: a **61-min / 60-round** bug-fix loop that stopped on the self-loop
321
- guard, then a **4-minute** wait on a trivial follow-up prompt, both because sub-agents were contending for the
322
- one slot. New **per-endpoint concurrency gate** in the transport (`aurora.ts`) serializes requests per base
323
- URL to `KODE_ENDPOINT_SLOTS` (default 1) and gives the **interactive main turn priority** over background
324
- sub-agents: a waiting main request jumps the queue ahead of sub-agents, and a background request never claims
325
- a freed slot while a main one waits. Same total throughput, no thrash, the user's turn is never starved —
326
- sub-agents run at full speed one at a time and actually finish instead of all crawling. **Vendor-neutral /
327
- AI-agnostic:** keyed by base URL, so it re-applies to any OpenAI-compatible endpoint at its own capacity; it
328
- knows nothing about which model answers. The `background` flag is threaded structurally (spawn_agent
329
- sub-agents → SessionCfg → runTurn → the gate), not inferred. Rationale + fleet data:
330
- `_ai-docs/2026-09-28-endpoint-concurrency-gate.md`. Suite 682 green (+5).
331
-
332
- ## 0.1.146 — 2026-09-28 — remote: RC auto-start feature-flagged to admin/VIP tier
333
- - `remote.autostart` now defaults **ON for the admin/VIP tier** (`permissions.tier: "admin"`) and OFF for
334
- everyone else — instead of the 0.1.145 opt-in-off default. An explicit `remote.autostart:true|false` /
335
- `KODE_RC_AUTOSTART=1|0` still overrides the tier gate on that box. Owner decision (James, 2026-09-28):
336
- gate always-on remote sessions to VIP for now and widen the flag later, since a session that still stops on
337
- a solvable bug isn't ready to be a broadly-shared attachable surface. Suite 675 green.
338
-
339
- ## 0.1.145 — 2026-09-28 — remote: opt-in RC host auto-start on boot (default OFF)
340
- - New `remote.autostart` (env `KODE_RC_AUTOSTART`), **default OFF** — when on, a Remote Control host comes up on
341
- session boot so the owner can attach from phone/desktop without typing `/remotecontrol` on the box first.
342
- Reuses the exact `/remotecontrol` connect path (submitRef → handleSlash), no second implementation to drift.
343
- Token-gated with a **silent** skip when this box isn't signed in (never spams the sign-in hint every launch),
344
- never double-starts a live host, and runs only after a healthy boot; `/remotecontrol` still toggles it off.
345
- Default-ON stays an explicit owner choice — making every session remote-attachable is a posture change.
346
- Rationale + the operator-tsi token-durability dependency:
347
- `_ai-docs/2026-09-28-remote-control-autostart.md`. Suite 675 green (+6).
348
-
349
- ## 0.1.144 — 2026-09-28 — searxng: honest ✓ status in the masthead + /services
350
- - The boot service line and `/services` now report SearXNG's **real** state instead of a hardcoded "lazy". Boot
351
- probes reachability read-only (never starts a container): shows **searxng ✓** when a backend is already up (an
352
- explicit `KODE_SEARXNG_URL`, or a container still running from a prior session's `--restart unless-stopped`),
353
- else **lazy** — it still starts on the first `web_search`, as before. `/services` distinguishes **✓ active**
354
- (served a search this session) from **✓ up** (reachable but unused) from **lazy**. New `searxng.ts` exports
355
- `searxngStatus()` + `probeSearxng()`; the session activation flag is set by the existing `noteSearxngUsed()`
356
- hook (fires on a non-empty SearXNG result, registry.ts:474). No change to search behavior. Suite 669 green (+2).
357
-
358
- ## 0.1.143 — 2026-09-28 — speed: absolute-token compaction ceiling (big window / small hardware)
359
- - New `compaction.ceilingTokens` (env `KODE_COMPACTION_CEILING_TOKENS`) — compact once the request reaches **N
360
- absolute tokens**, regardless of the window-fraction `threshold`. The fraction knob is clamped ≥0.3, which on a
361
- 300K Aurora is 90k tokens — but decode is bandwidth-bound on **absolute** context depth, so a laptop already
362
- crawls (~18 tok/s) by ~27k. Measured on the fleet: Aurora does 55–58 tok/s fresh, ~18 (laptop) / ~39 (Studio)
363
- at ~27k, ~20 (Studio) by 45k. This lever caps working context for speed where the fraction knob can't reach.
364
- Recommended ~40–60k on a Mac Studio, ~20–30k on a laptop to hold >30 tok/s.
365
- - **Soft / proactive-only:** the ceiling triggers proactive compaction (`shouldProactivelyCompact`) but is kept
366
- out of `needsCompaction`, so the over-window circuit breaker only ever tests the real KV window — an
367
- unsatisfiably-low ceiling can never "stop" a turn. Validated floor 8000 (below that it thrashes; system+tools
368
- ≈5k); unset = no ceiling (default behavior unchanged). Wired through CLI, headless, and ACP surfaces
369
- identically. Rationale + fleet data: `_ai-docs/2026-09-28-compaction-absolute-token-ceiling.md`. Suite: 667 green.
370
-
371
- ## 0.1.142 — 2026-09-28 — fast-by-default: compaction threshold 0.85 → 0.7
372
- - The proactive-compaction default drops from 0.85 to **0.7** of the context window, so EVERY install compacts
373
- sooner and keeps the live context small — holding generation near full speed on long sessions instead of
374
- crawling into the slow high-context zone (measured: ~5 tok/s at ~200k vs ~56 fresh). Previously this speedup
375
- required manually setting `compaction.threshold`; now it ships on by default. Override via
376
- `compaction.threshold` / `KODE_COMPACTION_THRESHOLD` (clamped [0.3, 0.95]) — set higher to keep more raw
377
- context, lower for more aggressive speed. Trade-off: summarizes a little earlier. Suite green.
378
-
379
- ## 0.1.141 — 2026-09-28 — speed: Aurora serving guidance (ngram-mod spec-decode)
380
- - Serving/ops guidance (no engine code change): run Aurora's llama-server with **`--spec-type ngram-mod
381
- --spec-ngram-mod-n-min 3 --spec-ngram-mod-n-max 8 --spec-ngram-mod-n-match 24`** for a measured **+84% on
382
- code re-emission with 0% penalty on novel or mixed output**. It's a no-draft-model, vocab-agnostic ngram
383
- speculative decode; the adaptive `ngram-mod` mode is free-on-miss, unlike `ngram-cache`/`ngram-simple`
384
- defaults which were net-NEGATIVE (−21% prose, −35% on a realistic edit turn). Full A/B + rationale in
385
- `_ai-docs/2026-09-28-aurora-ngram-spec-decode.md`.
386
- - Pairs with 0.1.140's `compaction.threshold`: keep the live context small (high base tok/s) AND draft the
387
- repeated spans (ngram-mod) — the two levers compound on long agentic coding sessions. Suite green.
388
-
389
- ## 0.1.140 — 2026-09-28 — configurable compaction threshold (keep long sessions fast)
390
- - Compaction can now fire EARLIER, configurably, so a long autonomous session doesn't crawl. Aurora does
391
- ~56 tok/s fresh but drops to ~3 tok/s once the context reaches ~200k tokens (generation grinds through a
392
- huge KV cache). Compaction previously fired only near 0.85×window, so users spent a long time in the slow
393
- zone first. Now `settings.compaction.threshold` (and env `KODE_COMPACTION_THRESHOLD`) let you lower it —
394
- e.g. 0.6 keeps the live context smaller and generation snappy, at the cost of summarizing sooner.
395
- - Wired settings→Session→runTurn (mirrors maxRounds): a `compactionThreshold` helper in settings.ts clamps
396
- to [0.3, 0.95] (out-of-range/unset → undefined → runTurn keeps its 0.85 default, so no behavior change
397
- unless set), resolved identically for the CLI, headless, and ACP surfaces. 3 new tests (clamp, env parse,
398
- lower-threshold-fires-sooner). Full suite 662 green. Default unchanged.
399
-
400
- ## 0.1.139 — 2026-09-28 — web_fetch: real-browser fallback on bot-blocks (403/429)
401
- - When `web_fetch` hits a 403/429 (Cloudflare-fronted sites like x.ai favor these over a real error page),
402
- it now retries through the AXE autopilot's real-browser `/markdown` route — the same `KODE_AUTOPILOT_URL`
403
- backend `web_search` uses for `/serp` — and returns the rendered page. If no autopilot backend is
404
- configured (or it also fails), it returns clear guidance ("<url> blocks automated fetch — needs a real
405
- browser; try web_search or the browser tools") instead of a scary `error: HTTP 403`. Other non-ok statuses
406
- (500 etc.) are unchanged, and the success + timeout paths are untouched.
407
- - Removes the red-error/curl-fallback dance for bot-protected sites the model was researching. 5 new tests
408
- (403/429 → guidance with no backend; 403 → backend render; 200 + 500 unchanged). Full suite 659 green.
409
-
410
- ## 0.1.138 — 2026-09-28 — ACP: Operator drops into Zed / any ACP editor
411
- - New `operator acp` subcommand runs Operator as an Agent Client Protocol agent over stdio (JSON-RPC), so
412
- Zed — and VS Code via an ACP bridge — can spawn it as a first-class coding agent, the way Cursor/Cline/
413
- Continue plug into editors. Uses the official `@zed-industries/agent-client-protocol` lib for framing.
414
- - Pure translation layer (`src/acp/`): a `session/prompt` becomes `Session.send()`; the session's streaming
415
- callbacks become `session/update` notifications — onDelta→agent_message_chunk, onReasoning→
416
- agent_thought_chunk, onToolStart→tool_call, onToolResult→tool_call_update; the turn's outcome→stopReason.
417
- No re-implemented loop: ACP funnels into the single `runTurn` (via Session), inheriting compaction,
418
- loop-guard, and the verify gate. `cancel` maps to Session.interrupt(). stdout is the protocol channel, so
419
- console.* is routed to stderr in ACP mode.
420
- - Verified: live initialize→session/new→session/prompt handshake against Aurora (streams agent_message_chunk,
421
- returns stopReason=end_turn) + 4 unit tests pinning the update field shapes. Full suite 654 green.
422
- - Zed config: add to `~/.config/zed/settings.json` under `agent_servers`: `{"Operator": {"command":
423
- "operator", "args": ["acp"]}}`. Then pick Operator in Zed's agent panel.
424
-
425
- ## 0.1.137 — 2026-09-28 — checkpoint works in any dir + web_fetch stops 403-ing
426
- - `checkpoint` no longer fails with "fatal: not a git repository" in a non-git workspace. It now `git init`s
427
- the workspace when there's no enclosing repo (so "save my work" succeeds anywhere), and treats a clean
428
- tree as a friendly "nothing to commit" instead of an error. The init only fires when rev-parse finds NO
429
- repo, so it can never reach up into a parent repo (the ~/.axe monorepo trap).
430
- - `web_fetch` sends a real browser User-Agent instead of `operator/kode-tsi`, so Cloudflare-fronted sites
431
- (e.g. x.ai) return the page instead of 403 — removing the red errors + the curl fallback dance. (404s from
432
- the model guessing non-existent URLs are unchanged — that's exploration, not a tool fault.)
433
-
434
- ## 0.1.136 — 2026-09-28 — truthful wordmark: drop the last AURORA/1M leftovers
435
- - The boot masthead sub-tagline rendered `✷ AURORA · …` under the OPERATOR block wordmark (both the stdout
436
- banner and the AuthScreen `<Masthead/>`). Now `✷ OPERATOR · …`, matching the footer StatusRule — the visible
437
- UI no longer says AURORA anywhere (the model still resolves under its `aurora-300k` display route; only the
438
- brand wordmark changed). Stale "AURORA wordmark" comments in StatusRule.tsx corrected to OPERATOR.
439
- - Pairs with the already-shipped `300K · v` boot tagline (cli.tsx) so the startup banner is fully truthful:
440
- OPERATOR · 300K, never AURORA · 1M. No logic change; UI strings only. Full suite green.
441
-
442
- ## 0.1.135 — 2026-09-27 — compaction circuit breaker (never spin over-budget)
443
- - If a request is over the model's window and compaction runs but **can't free enough space** — the summarizer
444
- keeps failing, or the over-budget bulk is non-tool prose that `fitToWindow` can't elide — the turn no longer
445
- spins round after round hitting the same wall up to the 400-round ceiling. After 3 rounds still over budget,
446
- it stops cleanly with an honest message and hands control back ("start a fresh session or ask again with a
447
- shorter request — nothing was lost"). Resets the instant a round fits, so a transient squeeze never trips it.
448
- - Roadmap item #6. `compaction.ts` already had the `fitToWindow` stub-eviction tier; this adds the one
449
- genuinely-missing piece the amplification review flagged. Full suite 650 green.
450
-
451
- ## 0.1.134 — 2026-09-27 — MUTATING_TOOLS single source of truth + amplification roadmap
452
- - The `MUTATING_TOOLS` set (which tools count as a workspace edit — used by the loop-guard reset, the
453
- verify-before-done gate, and the stuck-turn no-edit streak) was duplicated identically in three files
454
- (agent.ts, executor.ts, verify-gate.ts). Consolidated into one dependency-free leaf module `tools/mutating.ts`
455
- imported everywhere — removes 3-way drift risk and is the foundation the coming checkpoints work keys its
456
- snapshots off. tsc clean, full suite 649 green (pure refactor, zero behavior change).
457
- - Recorded the full **Operator amplification roadmap** in `_ai-docs/roadmap/` — a sequenced plan from a
458
- 7-agent research workflow + adversarial critique (ground-truthed against the real files): grammar-constrained
459
- tool-call decoding, piggybank/boomerang → result-cap, ngram speculative decoding, shadow-git checkpoints,
460
- the verify-gate/checkpoint-restore correctness flywheel, and the own-model big bets (distilled draft +
461
- fast-apply models, trajectory RL). The strategy: we own Aurora's weights and serving stack, so the
462
- highest-leverage wins are ones a hosted-API agent structurally cannot do.
463
-
464
- ## 0.1.133 — 2026-09-27 — compaction rehydration (continuity after a compaction)
465
- - **After a compaction, the model no longer acts on stale file state.** A compaction summarizes away raw tool
466
- outputs, so a file read many turns ago survives only as a lossy summary — and a later edit could work from
467
- that outdated content. runTurn now tracks the files the model actually read/edited (LRU, most-recent first,
468
- capped at 5) and, whenever a compaction actually evicts turns, injects a rehydration note: it points the
469
- model back to the summary's PENDING / NEXT STEP and names those files to re-read fresh before relying on them
470
- ("do NOT trust a summarized earlier read"). Injected at both the proactive and the context-exceeded
471
- compaction paths.
472
- - Path tracking is tool-name-agnostic (any tool call carrying a `path`/`paths` arg), never throws on
473
- unparseable args, and dedups + LRU-promotes a re-touched file. New test file covers the tracker, the note
474
- format, and a real compaction in runTurn injecting the note. Full suite 649 green. (Compaction overhaul: gap
475
- 3 of 5 done; owed: microcompaction cadence, evals.)
476
-
477
- ## 0.1.132 — 2026-09-27 — 300K context window (truthful) + compaction/failover hardening
478
- - **Context window is now truthfully 300K, and that fixes the failover.** Aurora serving was standardized to
479
- 300K (`--ctx-size 307200`, q8_0 KV cache) on JL1+JL2, but Operator still claimed 1,048,576 (1M). That
480
- mismatch WAS the failover cause: Operator compacts at 0.85×window, so at 1M it never compacts until ~890k,
481
- but the server's real ceiling is hit first → reactive failover. `ctxWindow`/`ctxLimit`/`ctx` are now 307200
482
- in settings, router, and the model registry — compaction fires at ~261k, before the ceiling.
483
- - **Truthful display.** Masthead 1M→300K; the tier label derives from the window via /1024 (307200→"300K",
484
- 131072→"128K"); the status model name reads `aurora-300k` (internal id and `/model aurora-1m` alias
485
- unchanged); and the footer brand wordmark is now `✷ OPERATOR` (the product) instead of `✷ AURORA` — so the
486
- model field (`aurora-300k`) no longer duplicates the brand. The persona no longer tells the model it has 1M.
487
- - **Compaction/failover hardening** (three HIGH findings from an adversarial review):
488
- 1. the summarizer now hits the endpoint the live turn actually used (captured via onRoute) instead of the
489
- default — cache-safety survives a failover or MOA aggregator turn;
490
- 2. `compact()` wraps the summarizer so a transient error / timeout / dead failover endpoint during
491
- compaction SKIPS the compaction (history preserved, caller retries) instead of killing the turn;
492
- 3. `summarize()` returns "" on a genuinely empty response so the empty-summary guard fires and can't
493
- silently replace real history with a placeholder.
494
- - Plus two summary-contract fixes: the compaction instruction no longer leaks into the summary's USER MESSAGES
495
- section, and a repeated compaction carries forward a prior summary's values instead of dropping them.
496
- - Full suite 645 green; 300K generation verified live on JL1 and JL2.
497
-
498
- ## 0.1.131 — 2026-09-27 — stuck-turn guard: catch the semantic loop the signature guards miss
499
- - **A turn can no longer spin for 28 minutes going in circles.** Live: Operator ran 152 rounds / 28 min / 42k
500
- tokens re-running near-duplicate diagnostic `bash` probes (varied only by comments / heredoc-vs-`-c`), with
501
- the model itself repeatedly writing "I'm stuck in a loop" — and every existing guard missed it, because all
502
- three ask "is this round a repeat of the last" while the calls varied just enough to slip each one. The turn
503
- ended only by hitting the output-token limit.
504
- - **New self-loop guard.** The one signal the signature guards miss is the model's OWN admission it is looping.
505
- When the model says it's stuck/going in circles/"try a fresh approach" while still wanting to act and NOT
506
- editing a file, it's nudged to fix-or-stop; on the 3rd such round it ends the turn gracefully and hands
507
- control back (never a freeze). A file edit, a pivot, or a final answer clears it — so admitting-and-fixing is
508
- never cut off, and a final answer that merely mentions "a different approach" is untouched.
509
- - **New soft no-edit nudge.** After 15 tool rounds that change no file, ONE gentle "converge or say you're
510
- blocked" nudge — never a stop, so a legitimate long read-only task (research, a big search) is never cut off.
511
- - Tests: a varied self-declared loop stops by the 3rd admission; admit-once-then-pivot finishes; admit-while-
512
- editing is never cut off; a 16-round no-edit survey gets one nudge and finishes. Full suite 644 green.
513
-
514
- ## 0.1.130 — 2026-09-27 — 9-section summary contract (compaction overhaul, gap 2 of 5)
515
- - **Compaction summaries are now lossless-on-resume.** The summarizer's contract replaces the old FACTS/STATE
516
- pair with nine sections: INTENT, CONCEPTS, FILES & SNIPPETS, ERRORS & FIXES, APPROACHES, USER MESSAGES
517
- (verbatim), PENDING, CURRENT, NEXT STEP — plus an explicit "omit ephemeral scratchpad." FACTS/STATE dropped
518
- the two things a resuming turn needs most: the user's own asks (now quoted verbatim) and the WHY behind
519
- rejected approaches. The global verbatim-value rule (identifiers, versions, paths, commands, error text) is
520
- unchanged. Summary token budget 1200 → 1800 to fit the richer contract plus Aurora's reasoning channel.
521
- - Builds on 0.1.129's cache-safe summarizer (the span is still sent as real messages reusing the live turn's
522
- cached prefix). Full suite 640 green. (Gaps 3–5 owed: rehydration, microcompaction cadence, evals.)
523
-
524
- ## 0.1.129 — 2026-09-27 — cache-safe compaction summarizer (compaction overhaul, gap 1 of 5)
525
- - **Compaction no longer pays a cold prefill.** The summarizer used to re-serialize the evicted span into one
526
- system-less, tool-less `user` message — a request that shares no prefix with the live turn's cached
527
- `[system + tools + history]`, so the local llama.cpp server re-prefilled it from scratch on every compaction.
528
- It now reuses the IDENTICAL system prompt + tools and sends the evicted span as REAL messages, appending the
529
- fact-preserving contract as the final user message. Because the evicted span is the OLDEST slice, that head
530
- is an exact prefix of the cached request — the server prefix-matches the warm KV and prefills only the
531
- instruction. An O(context) summarize becomes O(instruction), and the full span is preserved (no more
532
- 6000-char truncation dropping facts).
533
- - The exact live system prompt is captured per-turn (`lastSys`) so a `/think` suffix or MOA-aggregator prompt
534
- can't drift the prefix; a trailing unanswered `assistant(tool_calls)` is stripped so the appended user
535
- instruction stays a valid sequence; the Aurora reasoning-channel fallback and handoff durability are
536
- unchanged. New test drives a real `Session.compactNow()` and asserts the request is `[identical system,
537
- span verbatim, contract]` + tools. Full suite 640 green. (Gaps 2–5 owed: 9-section contract, rehydration,
538
- microcompaction cadence, evals — see _ai-docs.)
539
-
540
- ## 0.1.128 — 2026-09-27 — a long, progressing task is never cut off unfinished (higher round ceiling)
541
- - **Absolute round ceiling raised 200 → 400.** A big self-improvement or build task that keeps making real
542
- progress now has 4.4× the headroom of the ~90-round runs seen live, so it finishes in one turn instead of
543
- hard-stopping at `[stopped after N tool rounds]`. The ceiling only ever catches a genuine runaway; a
544
- progressing turn is governed by the stall guard below, not a fixed count.
545
- - **Stall guard loosened 6 → 8** consecutive no-progress batches. A long task can go momentarily quiet (a
546
- planning round, a couple of empty greps) without being mistaken for stalled; 8-empty-in-a-row is still an
547
- unambiguous stall and stops well below the ceiling. Both changes are strictly more permissive — no task
548
- that finished before can be cut off now.
549
- - Regression test: a 250-round *progressing* turn (distinct work each round, past the old 200 ceiling) reaches
550
- its final answer at round 251. Full suite 637 green.
551
-
552
- ## 0.1.127 — 2026-09-27 — malformed tool-call JSON can never freeze the user (enterprise-grade)
553
- - **The freeze is fixed at the engine level (deterministic).** A `bash` call wrapping a multi-line `python3 -c`
554
- script broke the tool-call JSON (`500: missing closing quote`), and every later turn re-erred because the
555
- model kept reproducing the same inline script — user frozen. Now when the truncated-tool-call recovery
556
- exhausts its nudges, the turn ENDS with a clean, actionable message instead of a raw 500 throw, so the user
557
- always regains control (model-independent). Plus prevention: persona forbids inline multi-line scripts
558
- (write to a file, run the file), the recovery nudge says the same, and narration must not delay the tool
559
- call. True long-term root fix (owed): grammar-constrained tool-call decoding on the Aurora server. Recorded
560
- in `_ai-docs/features/2026-09-27-malformed-toolcall-freeze.md`. 636 passing.
561
-
562
- ## 0.1.126 — 2026-09-27 — round-loop guard nudges instead of ending the turn
563
- - **The no-progress guard stopped WHOLE TURNS, breaking autonomy.** When a round (prose + the same tool call)
564
- repeated 3× with no new result, the engine ended the turn with "I repeated the same step 3x… tell me how to
565
- proceed" — even when (live 09-27) the model had just said "let me break out and fix X" and was cut off
566
- mid-pivot. Fix: at 3 it now **nudges** the model to try a genuinely different approach and CONTINUES the
567
- turn (skipping the repeated call); only if it ignores the nudge to a hard cap (6) does the turn stop. Keeps
568
- Operator autonomous instead of handing back at the first stall. (`engine/agent.ts`.)
569
- `test/agent-progress-cap.test.mts` (pivot-after-nudge finishes). 636 passing (+1).
570
-
571
- ## 0.1.125 — 2026-09-27 — Operator narrates as it works (running commentary)
572
- - **Depth for the user: narrate between tool batches.** Operator ran many tool calls per turn then surfaced
573
- everything only at the turn boundary, so the user watched the mechanics but waited for the narrative. New
574
- persona section instructs the model to write ONE terse line before a tool batch (what + why) and one after
575
- a notable result (what it found + next) — a running commentary, high-signal, one line, not an essay. The
576
- engine already streams + settles per-round content, so this surfaces live. (`config/persona.ts`.)
577
- - Also: Operator now knows curl / the http_request no-shell HTTP fallback (carried from 0.1.124 note).
578
-
579
- ## 0.1.124 — 2026-09-27 — agent_status is never loop-guarded + no longer forgets agents that ran
580
- - **Poll/status tools are exempt from the loop guard.** `agent_status` (polling sub-agents) and `bash_output`
581
- (polling a background job) are DESIGNED to be called repeatedly while waiting on async work — that's not a
582
- spin. Live 09-27: `agent_status` polled while two sub-agents ran tripped the guard at 5 and kept firing
583
- even though the model was doing real work (fetches, sleeps) between polls. They're now never guarded
584
- (`engine/agent.ts`, `tools/executor.ts`). `test/loop-guard-mutation-reset.test.mts`.
585
- - **`agent_status` no longer reports "no sub-agents spawned" when they clearly ran.** A finished/errored
586
- agent decommissions from the live map after 45s idle, after which `agent_status` wrongly said none were
587
- ever spawned (live 09-27: two errored agents vanished). `BackgroundAgents` now keeps a lightweight
588
- **retired** record; `agent_status` reports "N ran earlier this session and decommissioned (their results
589
- were posted to the conversation)" instead of the misleading "none." (`background/index.ts`, `cli.tsx`.)
590
- - **Operator knows curl + the no-shell HTTP fallback.** New persona section: prefer the `http_request` tool
591
- (or `web_fetch`/`web_search`) for HTTP since they run natively and keep working when bash is failing or
592
- sandboxed; use `curl` via bash for special cases (`-H`/`-X`/`-L`/uploads); never conclude "can't reach a
593
- URL" without trying `http_request`. (`config/persona.ts`.)
594
- - Full suite: 635 passing (+1). tsc clean.
595
-
596
- ## 0.1.123 — 2026-09-27 — de-duplicate the "operator" wordmarks (AURORA sub-brand, for now)
597
- - **The name "operator" showed up 3×** on the boot screen (big block wordmark + the `✷ OPERATOR` tagline
598
- beneath it + the `Operator` brand token + `operator-1m` on the status rule). Cleaned up (per James):
599
- - The **big block `OPERATOR` title stays** (the main wordmark, untouched).
600
- - The **`✷ OPERATOR` sub-wordmark → `✷ AURORA`** in the masthead tagline and the status rule.
601
- - The masthead tagline **drops the redundant brand token** → `✷ AURORA · 1M · v…` (avoids an
602
- "AURORA · Aurora" that would read like a bug); the CLI no longer reads `brand_name` in the masthead
603
- (`brand.ts` remains as the shared accessor for the other surfaces).
604
- - The status route shows **`aurora-1m`** via a **display-only** transform (`operator-` → `aurora-`) — the
605
- internal model id, `/model`, routing, and persisted settings are untouched (no rename blast radius).
606
- - The heavy `⬤` identity circle beside the email → a cleaner `◆`.
607
- - Provisional ("for now"). `test/app-fullscreen.test.mts` updated. 634 passing, tsc clean.
608
-
609
- ## 0.1.122 — 2026-09-27 — parallel web_search no longer races its own SearXNG startup
610
- - **web_search worked alone but failed in parallel.** `web_search` is read-only, so `executeParallel` runs
611
- several concurrently, and each calls `ensureSearxng()`. With no concurrency guard, all of them raced to
612
- `docker run` the SAME `operator-searxng` container — the first won, the rest failed ("name already in use")
613
- → returned null → those searches fell through to "no backend" and reported "found no results" (seen live
614
- 2026-09-27 with 3 parallel searches). Fix: a **single-flight** guard — concurrent callers share ONE
615
- in-flight startup and its result; the slot clears when it settles so a later cold start can still run. No
616
- change to the serial path. `test/searxng-singleflight.test.mts`. 634 passing (+1).
617
-
618
- ## 0.1.121 — 2026-09-27 — single-source brand (name) + loop guard lets you iterate
619
- - **Loop guard no longer blocks edit → re-run iteration.** The identical-call guard tripped after 3 calls
620
- with the same args, so re-running the SAME `pytest`/`compose`/build after editing a file was blocked as a
621
- "loop" (James 09-27) — even though the workspace had changed. Fix: raise the limit 3→5 AND **clear the
622
- identical-call counts whenever a file-mutating tool (`file_write`/`file_edit`) runs**, so verify-after-fix
623
- re-runs are unbounded. A true spin (same call, NO intervening edit) still trips at 5; the narration /
624
- no-progress stalls are unchanged. Applied to both guards (`engine/agent.ts`, `tools/executor.ts`).
625
- `test/loop-guard-mutation-reset.test.mts`.
626
- - **Single-source brand (CLI, Option B).** New `src/config/brand.ts` — the one client-side accessor for the
627
- AuthGate `operator` tenant brand (`brandSync`/`refreshBrand`/`adoptBrand`): offline-first (synchronous
628
- cache/default at boot, background refresh, 1h TTL, never blocks, never throws). The CLI masthead name now
629
- reads `brand_name` from it. Per the platform decision (Option B), the CLI adopts NAME/identity text only —
630
- the tenant `brand_color` is ignored; the terminal keeps its violet `#b98cff` accent. `test/brand.test.mts`.
631
- - Full suite: 633 passing (+4). tsc + biome clean.
632
-
633
- ## 0.1.120 — 2026-09-27 — session_handoff truncation recovery (multi-line nudge)
634
- - **Truncated `session_handoff` (and any multi-line note) now gets the RIGHT recovery nudge.** Live 09-26:
635
- a `session_handoff` note truncated at column 164 (a premature model stop mid-string) surfaced as a hard
636
- `aurora /v1 500: missing closing quote` turn error even though the real work was already committed +
637
- pushed. Cause: the truncation-recovery nudge picks by column only (`<300 → "fix your quoting"`), so an
638
- early cut-off of a long note was misread as a stray-quote bug — the model kept re-quoting a call with no
639
- quote problem and burned all 3 retries. Fix: detect a **multi-line content body** by the escaped newlines
640
- the server echoes in `last read: '…'` (2+ `\n` = a note/file, never a shell command) and route it to the
641
- shorten/split nudge regardless of column; that nudge now also covers un-splittable notes ("rewrite MUCH
642
- shorter") not just file writes. `test/truncated-toolcall.test.mts` (multi-line low-column case). 628
643
- passing (+1). Note: the work itself was never at risk — only the trailing scratch note.
644
-
645
- ## 0.1.119 — 2026-09-27 — auth client_id canonicalization · Biome lint · monorepo hygiene
646
- - **Device-flow `client_id` → canonical `operator`.** `src/auth/client.ts` now sends `"operator"` (the
647
- AuthGate Postgres app_id) instead of `"operator-cli"`, so the gate/brand surfaces key on the same tenant.
648
- Confirmed harmless with the operator-tsi lane (device service records it as a free-text label, no
649
- registration/lookup).
650
- - **Biome lint config (dev-only).** `@biomejs/biome` devDependency + `biome.json`; `npm run lint` runs
651
- `biome check src test` → 80 advisory warnings, 0 errors, exit 0. Linter on `recommended` with the rules
652
- that fire on the existing style set `off` and the rest `warn`; formatter configured but `enabled: false`
653
- (enforcing it would reformat the whole tree). No source files touched. Biome config gotchas recorded in
654
- `_ai-docs/conventions/kode-tsi.md`.
655
- - **Monorepo hygiene.** Root README H1 `# kode` → `# Operator` (body was already Operator-branded); root
656
- `.gitignore` now ignores `node_modules` with **no trailing slash** (worktrees symlink it to the main
657
- checkout, and a symlink isn't a dir — the old `node_modules/` skipped it). New living log
658
- `_ai-docs/operator-frontier-gaps.md` (open: list_directory ENOENT hinting, git-tool cwd).
659
-
660
- ## 0.1.118 — 2026-09-26 — sub-agents get a designated box
661
- - **Sub-agents panel is now a designated, bounded region.** During a busy turn the background sub-agents
662
- list rendered flush under the (up to 10-item) plan list with a vague `background` header — cramped and
663
- hard to parse. It's now a dim **rounded box** headed `sub-agents · N running`, detached from the plan by a
664
- top-margin gap, so it reads as its own zone (matching the "⇉ tools in parallel" card). Kept SHORT
665
- (`BG_MAX_VISIBLE` cap + capped activity lines) to stay clear of the v0.1.92 dynamic-frame border-orphan
666
- flood; documented one-line fallback to borderless if it ever recurs on a very long turn.
667
- `test/bgpanel.test.mts` (box border + label assertion). 627 passing (+1). tsc clean.
668
-
669
- ## 0.1.117 — 2026-09-26 — minimize-duplication guard · compaction progress TUI
670
- - **Minimized-terminal text duplication, fixed.** Minimizing the window fires a resize reporting
671
- `columns/rows = 0`, and `process.stdout.columns ?? 80` does NOT catch `0` (`??` only falls back on
672
- null/undefined). A `0` divided in `liveTail`'s wrap math (→ Infinity/NaN) and returned the WHOLE
673
- streaming message unbounded — Ink then stacked the streaming line ~30× into scrollback. New
674
- `ui/term.ts` (`termCols`/`termRows`, floored to a sane minimum) is now the ONE place layout reads the
675
- window size; all 9 dimension reads route through it, and `liveTail` clamps internally as defense in
676
- depth. `test/transcript.test.mts` (0×0 regression case).
677
- - **Compaction progress TUI + double-run guard.** `/compact` runs the multi-second Aurora summarizer;
678
- before this it showed nothing while running, so users pressed it again and it ran twice (double-freed).
679
- New `compacting` `AppStatus` drives the amber `RecoverSpinner` ("compacting context…") so it's visibly
680
- in progress; a synchronous `statusRef` guard makes a second `/compact` while one is in flight a no-op
681
- ("compaction already in progress…"); the done line now reports `freed ~N · ctx X%→Y%` so completion is
682
- unmistakable. `test/app-fullscreen.test.mts` (compacting spinner renders).
683
- - Full suite: 626 passing (+2). tsc clean.
684
-
685
- ## 0.1.116 — 2026-09-26 — colored edit diffs · plan-mode Approve&run · web parallel box · repo hygiene
686
- - **Colored edit diffs on file-edit rows.** A settled `file_edit`/`multi_edit`/`file_write` row now shows
687
- green `+N` / red `−M` (and up to 4 colored preview lines on small edits) so "what changed" reads at a
688
- glance. Pure `ui/editdiff.ts` (LCS line diff, capped) + `ToolStep` render; degrades to the old row for
689
- non-edits. `test/editdiff.test.mts` + `test/toolstep-editdiff.test.mts`.
690
- - **Plan mode "Approve & run".** When a plan was proposed in plan mode, exiting plan mode surfaces a picker
691
- `[Approve & run / Keep planning / Cancel]`; **Approve auto-submits "Proceed with the approved plan."** so
692
- it executes without re-typing. Pure `ui/planExit.ts` (`shouldPromptPlanExit`/`resolvePlanExit`) +
693
- QuestionPrompt. `test/plan-exit.test.mts`.
694
- - **Parallel-batch box now crosses to web.** The frozen `ToolEvent` gains additive `batchId`/`batchSize`/
695
- `batchIndex` (stamped per round in `engine/agent.ts`, threaded through `permissions`/`session`), and
696
- **kode-web** groups concurrent tools into the same "⇉ N tools in parallel" bordered card (`groupByBatch`,
697
- live `onToolResult` rows). Mobile grouping is a documented follow-up (`_ai-docs/features/…-web.md`).
698
- - **Repo hygiene (kiyoko).** Proprietary `LICENSE` at monorepo root, `.gitignore` hardening (`.env*`,
699
- `.DS_Store`, `coverage/`, `*.tsbuildinfo`), and a `typecheck` npm script.
700
- - Serving: Aurora KV `q8_0 → f16` on JL2 (idle decode 56 → 60 tok/s) + 128K context; the earlier slowness
701
- was node contention, not the model. Suite target 600+/0.
702
-
703
- ## 0.1.115 — 2026-09-26 — parallel tool calling: read_files batch tool, parallel box, paste fix
704
- - **`read_files` batch tool + `parallel_tool_calls` (emission — the speed lever).** New `read_files`
705
- (`tools/registry.ts`) reads up to 20 files in ONE call via `Promise.allSettled` — string paths or
706
- `{path,offset,limit}`, per-file error isolation, reusing `fileRead`'s sandbox/cap guards. One call
707
- replaces N serial `file_read` round-trips (the biggest wall-clock win on a slow decoder). `aurora.ts`
708
- sets `parallel_tool_calls: true` on the /v1 request so a compliant server can emit multiple tool calls
709
- per turn; the persona directive now pushes batching. `test/tools-extra.test.mts`.
710
- - **Parallel tool-batch box (rendering lane).** When >1 tool runs CONCURRENTLY in a round (`executeParallel`),
711
- the terminal groups them into ONE round-bordered box — "⇉ N tools in parallel · <dur>" header over the
712
- per-call rows — instead of a flat list. New `ui/ToolBatch.tsx` (reuses the SummaryCard border + ToolStep
713
- row); `cli.tsx` `onToolBatch` pushes a single `{kind:"toolBatch"}` entry when a round has >1 tool.
714
- `test/toolbatch.test.mts`. (web/mobile grouping needs a `batchId` on the frozen event contract — a
715
- follow-up.)
716
- - **Composer paste fix.** Bracketed paste no longer leaks `\x1b[200~`, duplicates, or hangs on an
717
- unterminated paste (50ms idle-flush fallback clears the guard); a pasted `/path` is no longer parsed as a
718
- slash command (`util/slash.ts` requires a single line + a known command token). `PasteStateMachine` + 10
719
- behavior tests.
720
- - **/login:** a second consecutive bare `/login` opens the browser device-grant (no `--browser` needed);
721
- clearer opener message (`open()` can silently no-op over SSH / non-default browser). Suite 597/0.
722
-
723
- ## 0.1.114 — 2026-09-26 — in-session /login uses the working email-code flow
724
- - Live bug: in-session `/login` went straight to the RFC 8628 browser device-grant, which dead-ends at
725
- "token copied" and never completes back in the session — so people who ran `/login` got stuck with a
726
- copied token and no sign-in. (`auth/commands.ts` already defaults the SHELL `operator auth login` to email
727
- for exactly this reason — it documents the terminal→browser dance as janky.) Rewired `/login` to the same
728
- proven email + 6-digit-code flow: **`/login <email>`** sends a code, **`/login <code>`** verifies it and
729
- signs in. `/login <token>` still pastes a PAT; **`/login --browser`** is the explicit device-grant fallback.
730
- - Extracted the pure arg router **`classifyLoginArg`** (`src/auth/login-intent.ts`) so routing is tested
731
- apart from the network glue — pins that a PAT isn't mistaken for an email, nor a token for a 6-digit code.
732
- `test/login-intent.test.mts` (+2 tests). Suite 566/0.
733
-
734
- ## 0.1.113 — 2026-09-26 — memories.md: flat global + project memory (Claude-parity)
735
- - Operator now auto-loads a flat, always-loaded **`memories.md`** into its system prompt every session — the
736
- same model comparable agents use, with a **global** layer (every project) plus a **project** layer (this
737
- repo). Global lives beside `operator/settings.json` (`~/.axe/operator/memories.md`; override with
738
- `KODE_MEMORIES_FILE`); project is `.operator/memories.md` (or a repo-root `memories.md`). Global is emitted
739
- FIRST and project LAST, so a repo-specific note overrides a global one — the same more-specific-wins
740
- precedence as the settings layer. Distinct from the existing semantic recall store (relevance-ranked): this
741
- is plain, human-editable markdown injected verbatim, wired into BOTH the interactive shell (`cli.tsx`) and
742
- the headless autonomy runners (`session-factory.ts`), so `operator run/loop` gets the same memory.
743
- - **`/remember [--global] <note>`** now appends a bullet to `memories.md` (project by default; `--global`
744
- targets the user-global file), creating the file with a heading on first write — the write half kept in
745
- sync with the read half — while still feeding the semantic store. `persona.ts` gains `loadMemories`,
746
- `appendMemory`, `globalMemoriesPath`, `projectMemoriesPath`. `test/persona.test.mts` (+3 behavior tests:
747
- both layers load and order, append-creates-then-reads-back, absent-is-silent). Suite 564/0.
748
- - Completes the sub-agent lifecycle (spawn → status → message → **stop** → **monitor**) on top of 0.1.111's
749
- id-fix. **`stop_agent`**: `stop_agent(id)` halts one running sub-agent, `stop_agent()`/`"all"` cancels every
750
- running + drops every queued one, each posting a `[stopped by user]` note (no silent vanish, no double-post).
751
- **Observability:** BgPanel states are now unambiguous (running / done / errored / queued; done shows "result
752
- posted", errored "check transcript"); a **`/agents`** command lists sub-agents with round/label/tokens/elapsed
753
- + a summary count line; and a **turn-end banner** ("N sub-agents still running — results post when done") fires
754
- when the foreground finishes while agents are live, so "turn complete" is never misleading.
755
- `test/agent-stop.test.mts` + `test/agent-observability.test.mts`. Suite 561/0.
756
-
757
- ## 0.1.111 — 2026-09-26 — sub-agents stop being mistaken for shell jobs
758
- - Live: the model spawned sub-agents (ids `bgN`), then tried to poll them with `bash_output(id=bg1)` →
759
- "no background job bg1", concluded they were "evicted by compaction" (they were still running), and
760
- re-spawned DUPLICATES onto the one shared endpoint. Fix (lands PR from the sub-agent lane): sub-agent ids
761
- renamed `bgN` → `agent-N` (disjoint from `shell_background`'s own `shN` ids); `bash_output`/`bash_kill`
762
- now REDIRECT an `agent-N`-shaped id to `agent_status`/`message_agent` instead of a bare error; a new
763
- read-only **`agent_status`** tool gives the model a real status check instead of guessing "evicted"; and
764
- `spawn_agent`/`message_agent` wording now states plainly that a sub-agent auto-posts its result and must
765
- not be polled or re-spawned. `test/agent-id-namespace.test.mts`. Suite 546/0.
766
-
767
- ## 0.1.110 — 2026-09-26 — wait out a "Loading model" 503 instead of failing the turn
768
- - Live: a JL2 aurora restart returned `503 "Loading model"` and the turn died — a 503 was generic-transient
769
- (≤3 retries, ~8s backoff = ~24s), giving up before the ~30-90s model reload finished. New `"loading"`
770
- self-heal class: `classifyFailure` maps a 5xx whose body says loading/warming/starting (not a bare
771
- "unavailable") to `loading`; the loop waits it out on a separate patient budget (`MAX_LOADING_RETRIES`=20 ×
772
- `loadingBackoffMs`, default 6s ≈ 2min) and retries the SAME endpoint (no failover — it's the one coming
773
- up). A generic 503 still fails over as transient. `test/loading-retry.test.mts`. Suite 542/0.
774
-
775
- ## 0.1.109 — 2026-09-26 — sub-agent lifecycle hardening (lands #36)
776
- - Lands the sub-agent lifecycle hardening pass (PR #36) on top of 0.1.108: a bounded in-flight queue
777
- (running + queued, not just running) behind one shared capacity line; the plan pane refreshes live on a
778
- child's task activity; a shallow-test detector that stops a hollow existence-only test from
779
- rubber-stamping `verified:true`; `makeSession()` failure handling and a wall-clock stall watchdog; the
780
- truncated-tool-call nudge now targets the actual cause (quote vs chunk, picked from the server's parse
781
- position; retries 2→3); and a colored per-round activity phrase in the background panel. Also carries the
782
- voice mic-first session-open fix already on `main`. Suite 540/0.
783
-
784
- ## 0.1.108 — 2026-09-26 — /compact rescues a session stuck over a small window
785
- - Companion to 0.1.107. Live: on a failed-over 64K endpoint at 70k tokens, `/compact` said "nothing to
786
- compact yet" — `compactNow` force-evicts via `compact()`, which only drops turns older than
787
- `minKeepTurns` (2), so when the bulk is a single huge recent turn (a trace dump) nothing is evictable and
788
- the message-count delta is 0. Now `compactNow` also `fitToWindow` after evicting — eliding the largest
789
- tool outputs in place until it fits the active endpoint's (learned) window — and reports approx TOKENS
790
- freed ("freed ~N tokens" / "already minimal — nothing to shed") instead of a message count. Same
791
- `fitToWindow` the auto-recovery path uses. `test/compact-command.test.mts`. Suite 525/0.
792
-
793
- ## 0.1.107 — 2026-09-26 — never crash on context overflow; paste keeps its payload
794
- - Context-overflow crash (live 09-26): a turn died on `aurora /v1 400 exceed_context_size_error`
795
- (`n_ctx` 65536) after failover to a JL2 endpoint serving 64K while the roster advertised 256K — so
796
- proactive compaction, sized to the advertised window, never fired and the request overflowed the real
797
- limit. Fix, three layers: (1) LEARN the real window from the server's own error (`selfheal.servedContextLimit`
798
- parses `n_ctx`; `AuroraRouter.observeContextLimit` clamps the endpoint DOWN, monotonic) so proactive
799
- compaction fires correctly for the rest of the session; (2) when the bulk is a single huge recent turn
800
- eviction can't shed, `compaction.fitToWindow` elides the largest tool outputs in place so the retry fits;
801
- (3) the per-round choke point now fits-to-window after compacting, so a request is never dispatched over
802
- the current window. The turn recovers (learn → elide → retry) instead of throwing. New integration test
803
- drives the real `runTurn` against a 400-then-200 server. `_ai-docs/features/2026-09-26-context-overflow-recovery.md`.
804
- - Composer paste: a bracketed paste collapsed to a `[Pasted #N]` chip but DISCARDED the payload —
805
- Enter sent the literal label, not the pasted text (multi-line steers arrived as `[Pasted #1]`). Now the
806
- payload is stored and expanded on submit (`pasteChip`/`expandPastes`, unit-tested without a TTY); short
807
- single-line pastes stay inline.
808
- - Suite 523/0. Ships ahead of PR #36 (sub-agent lifecycle hardening), which lands next as 0.1.108.
809
-
810
- ## 0.1.106 — 2026-09-26 — background panel reads as progressing, not "broken"
811
- - A throttled sub-agent queue (2 run at a time on the shared endpoint, the rest wait for a slot) looked
812
- stuck: header said only "background (4)". Now it shows "background · N running · M queued", and rows are
813
- sorted working-first (0.1.104) — so a draining queue reads correctly. Suite 507/0.
814
-
815
- ## 0.1.105 — 2026-09-26 — robust by default: stop over-fanning-out sub-agents on one endpoint
816
- - Live: Operator spawned 5-6 sub-agents for a linear 8-item plan; since they ALL share the one Aurora
817
- endpoint, parallel = contention, so it crawled 25+ min at 0/8. Parallelism on a single model endpoint
818
- does not speed a linear plan — it slows it.
819
- - Fix (two layers): (1) `spawn_agent`'s description now tells the model plainly that it shares ONE endpoint
820
- with its sub-agents, to use spawn_agent only for genuinely independent long work at most 1-2 at a time,
821
- and to do a linear/dependent plan itself in sequence; (2) hard backstop `MAX_BG` 4→2 concurrent. With
822
- 0.1.104's panel cap, the frame also stays clean. Suite 507/0.
823
-
824
- ## 0.1.104 — 2026-09-26 — stop the duplicated-plan "mess": cap the background-agents panel
825
- - Live on JL2: with a 6-agent fan-out, the plan pane + background panel re-rendered every ~2s and Ink's
826
- INLINE redraw orphaned a STALE copy of the whole frame into scrollback on each re-render — the plan
827
- stacked up 3-5× ("this is a mess"). Root cause: a tall, frequently-changing dynamic frame near the
828
- terminal bottom loses Ink's cursor anchor, so it appends instead of erasing.
829
- - Fix: `BgPanel` now shows at most 3 agents (working first) + a `+N more running` line, so the dynamic
830
- frame stays short and the in-place redraw stays reliable. (Fullscreen/alt-screen avoids the orphaning
831
- entirely and is the recommended mode for heavy fan-out — `ui.fullscreen: true`.) Suite 507/0.
832
-
833
- ## 0.1.103 — 2026-09-26 — fix the malformed-tool-call recovery for the embedded-quote case
834
- - Live 09-26 (v0.1.98 on JL2): a turn died on `aurora /v1 500: Failed to parse tool call arguments as JSON
835
- … missing closing quote` when the model emitted `grep -l "^dependencies"` — a raw double-quote inside a
836
- bash argument that broke the tool-call JSON. selfheal correctly classified it as `truncated_tool_call`,
837
- but the recovery nudge only described the OTHER cause (an over-long file write cut off at the token
838
- limit), so the model got useless guidance, re-emitted the same quoted command, exhausted the 2 retries,
839
- and the turn errored.
840
- - **Fix (both layers):** (1) the nudge now covers BOTH causes and gives the concrete fix — rewrite a
841
- double-quoted pattern with single quotes (`grep -l '^x'`), or split an over-long write; (2) preventive:
842
- the `bash` tool description now tells the model to prefer single quotes for patterns/paths. Full suite
843
- 507/0; `tsc` clean.
844
-
845
- ## 0.1.102 — 2026-09-26 — .operator/ harness loader: repo-local agents & commands
846
- - The engine loaded a single `.operator/AGENTS.md`; this adds the DIRECTORY half — `.operator/agents/*.md`
847
- (named sub-agent personas) and `.operator/commands/*.md` (command playbooks), the model-agnostic analog
848
- of a `.claude/agents|commands` dir. A repo now SHIPS its own harness instead of it living in one
849
- operator's home directory. New `src/config/operator-harness.ts` (`loadOperatorAgents/Commands`,
850
- `renderHarnessContext`, `operatorAgentPersona`), wired into both the interactive (`cli.tsx`) and headless
851
- (`session-factory.ts`) system prompts.
852
- - **`spawn_agent` gains an optional `agent`** — naming a repo persona from `.operator/agents/` prepends it
853
- to the sub-agent brief (low-risk task-prefix; no background-factory change). The model sees the available
854
- agents + commands listed in its context.
855
- - Seeded this repo: `.operator/agents/{code-reviewer,test-writer}.md`, `.operator/commands/{release,review-changes}.md`.
856
- - Tests: `test/operator-harness.test.mts` (7). Full suite 507 passed, 0 failed; `tsc` clean.
857
-
858
- ## 0.1.101 — 2026-09-26 — task list: add `task_clear`; nudge incremental status updates
859
- - The plan had no way to be CLEARED — the model could only `task_add` and `task_update` status, so "clear
860
- the list / reset / move on" had no honest home (it would mark everything done to hide the pane). Added a
861
- **`task_clear`** tool (wipes the list; `completed_only:true` drops just finished tasks). PlanPane already
862
- hides once every task is done — now the model can also clear on request.
863
- - Strengthened `task_update`'s guidance: mark `in_progress` when a step starts and `done` the instant it
864
- finishes, ONE at a time, not batched at the end — so the live plan tracks real progress instead of jumping
865
- at the turn's end (the batched-update behavior seen with the small local model). Full suite green (500/0).
866
-
867
- ## 0.1.100 — 2026-09-26 — REVERT 0.1.99: the catalogue serves `/v1/skills` (0.1.99 was a regression)
868
- - 0.1.99 wrongly repointed `skill_list`/`skill_fetch` to `/skills`. Root cause of the mistake: I read
869
- JL1's *incidental* lightweight `:8401` service (which serves `/skills`) as the skills origin. The
870
- **canonical** catalogue that `operator.axe.onl` / `skills.axe.onl` reach (`axe-skills-catalogue`,
871
- hub.serve, on JL2 `:8742`) serves the **versioned** contract — `/v1/skills`, `/v1/skills/search?q=`,
872
- `/v1/skills/<slug>` — verified live 200 with real data. `/skills` 404s there. So 0.1.99 broke
873
- `skill_list` against the real registry.
874
- - Reverted to `/v1/skills*`. The original "unreachable" symptom was a **downed tunnel** (`axeskills-operator`
875
- CF error 1033, ~24h), not a client path bug — it self-recovered. Full suite green (500/0); `tsc` clean.
876
- - Lesson encoded in-code: a same-numbered port on a different host is a different service; when skills read
877
- "unreachable", check the tunnel/origin, don't change the path.
878
-
879
- ## 0.1.99 — 2026-09-26 — skill registry: speak the backend's real `/skills` contract
880
- - `skill_list` / `skill_fetch` called `/v1/skills*`, but the AXE skills origin (operator.axe.onl /
881
- skills.axe.onl → the `:8401` skillsapi) serves the listing at `/skills` (search via `?q=`), not a
882
- versioned path — `/v1/skills` 404s. Repointed the client to the origin's actual contract: `/skills`,
883
- `/skills?q=<q>`, `/skills/<slug>`. This is why `skill_list` reported "skill registry unreachable" even
884
- when the origin was reachable. Verified live: `curl <origin>/skills` → 200 with the real skill list
885
- (count 110) when routed to the JL1 skillsapi. Full suite green (500/0); `tsc` clean.
886
- - Note: the public `operator.axe.onl` / `skills.axe.onl` hostnames also had a *connectivity* fault
887
- (CNAME'd to a downed tunnel; fleet routing since split-brained between the JL1 skillsapi and an
888
- unrelated gateway) — that half is a fleet-infra action, tracked separately; this release fixes the
889
- client path so the tool works end-to-end the moment the origin routing is sound.
890
-
891
- ## 0.1.98 — 2026-09-26 — cut residual inline flashing (slow the animation timers)
892
- - Ink re-renders the WHOLE frame on every state change, so each animation timer is a full-frame redraw.
893
- Three independent fast timers compounded on top of the 64ms stream throttle and flashed on Terminal.app.
894
- Slowed them ~40% with no loss of legibility: **StepSpinner 80→125ms**, **ThinkingSpinner 110→150ms**,
895
- **ToolStep elapsed 100→250ms**, **turn elapsed 250→500ms**. Combined with the 0.1.94 stream/swarm throttle
896
- and the 0.1.97 inline default, this is the low-render-pressure path. Full suite green; `tsc` clean.
897
-
898
- ## 0.1.97 — 2026-09-26 — revert fullscreen-default (regressed) + AI-agnostic fleet model config
899
- - **Reverts fullscreen as the default (0.1.96 was wrong).** Fullscreen (alt-screen) redraws the WHOLE frame
900
- on every spinner tick / timer / token, which flashes far more than inline's small dynamic-tail redraw —
901
- and its boot render doubled the masthead/service-preflight lines with a dead middle. Inline is the default
902
- again (native scrollback + the masthead boot + smaller redraws). Fullscreen stays opt-in via `--fullscreen`
903
- / `KODE_FULLSCREEN=1` / `settings.ui.fullscreen:true`; its alt-screen boot + redraw need work before it can
904
- be default. (The empty-space-at-idle it was meant to fix is inline-inherent and fills as you work.)
905
- - **AI-agnostic, fleet-portable model config** (`modelMode` + `fleet.auroraNodes`). Every node picks its
906
- model source in `settings.json`: `"local"` (default — this node's own drop-in model at
907
- `endpoints.aurora.base`) or `"aurora"` (the shared fleet Aurora hybrid: JL1 primary → JL2 failover). The
908
- engine never names a model or node in code; dropping in a different model or adding a serving node is a
909
- one-line config edit (`KODE_MODEL` / `KODE_MODEL_MODE` env, or settings). New `docs/MODEL-CONFIG.md`;
910
- `resolveModelMode()` + tests in `test/settings.test.mts`. Full suite: 496 passed, 0 failed (68 files); `tsc` clean.
911
-
912
- ## 0.1.96 — 2026-09-26 — fullscreen by default: composer pinned to the bottom (no dead space)
913
- - **Fixes the "dead space at the bottom" (reported repeatedly).** Inline mode renders content-height, so on
914
- a short/idle session the composer sat high with the terminal blank below it. Fullscreen (alt-screen) pins
915
- the status rule + composer + footer to the **bottom** of the terminal and fills the transcript upward —
916
- no dead space. Verified by screenshot (idle: composer at the floor, ctx ring visible in the status rule).
917
- - **Fullscreen is now the default** enterprise layout. Opt back to inline (native terminal scrollback +
918
- copy) with `operator --inline`, `KODE_FULLSCREEN=0`, or `settings.ui.fullscreen: false`. Tradeoff:
919
- alt-screen bounds the in-app transcript view (older entries scroll off; the full turn is still in the
920
- session log / resumable). Full suite: 495 passed, 0 failed (68 files); `tsc` clean; app-fullscreen render test covers it.
921
-
922
- ## 0.1.95 — 2026-09-26 — session hygiene: completed plan clears + sub-agent runaway cap
923
- - **A fully-completed plan pane now clears itself** instead of lingering. Once every step is `done` the pane
924
- has no live value; the per-step ✓ already showed as each landed, so the finished list drops away rather
925
- than occupying the frame (reported live). New test in `test/planpane.test.mts`.
926
- - **Background sub-agents get a hard round cap (50)**, vs the foreground's 200. A focused delegated task
927
- (review / a specific fix) that reaches 50 rounds isn't converging — it's re-exploring with different
928
- commands each round, which the progress-gated stall guard reads as progress and never stops. Seen live
929
- 09-26: two review sub-agents ran to round 42+/31 (30+ min each) on a saturated Aurora while two more sat
930
- queued behind them forever. The cap bounds a runaway well below the foreground ceiling. (`session.ts`
931
- threads `maxRoundsHard`; `cli.tsx` sets 50 for the background Session.)
932
- - Full suite: 495 passed, 0 failed (68 files); `tsc` clean.
933
-
934
- ## 0.1.94 — 2026-09-26 — kill TUI flicker under streaming/swarm + ctx fill-ring (TUI correctness)
935
- - **Fixes flicker (seen 09-26, v0.1.92).** During a fast reply or a multi-agent swarm, the dynamic frame
936
- (plan + background panes + live tail) redrew dozens of times/second — Ink re-renders the WHOLE non-Static
937
- frame on every state change, and the stream updated state **per token** (`setLive`/`setLiveTok`) while the
938
- background pane updated on **every sub-agent token** (`setBgAgents`). A tall frame + that update storm =
939
- visible flicker.
940
- - **Fix:** new `throttle()` util (`src/util/throttle.ts`) coalesces those hot updates to ~15fps (one redraw
941
- per ~64–90ms) with a guaranteed trailing flush, so the final frame always lands. Wired into the live
942
- stream (token accumulator flushed on a throttled tick) and the sub-agent panel. Redraw rate during a
943
- swarm drops from dozens/s to ~15/s — no flicker, identical final output. Tested in `test/throttle.test.mts`
944
- (leading + single-trailing coalescing, latest-value capture).
945
- - **ctx fill-ring:** the status rule now shows context usage as a fill ring `○◔◑◕●` next to the %, so how
946
- full the window is reads at a glance (wires the catalog's `ring()` primitive into the status bar).
947
- - Full suite: 494 passed, 0 failed (68 files); `tsc` clean. Verified live on JL1 via a real headless
948
- Operator work-session (built + ran + verified a CLI end-to-end on JL1's Aurora).
949
-
950
- ## 0.1.93 — 2026-09-26 — stop the live-tool pane flooding scrollback with ghost lines (TUI correctness)
951
- - **Fixes a live regression (seen 09-26, v0.1.92).** On a long turn with many parallel tool batches, the
952
- transcript flooded with faint full-width "rule" lines that stacked until the screen was unusable and hard
953
- to scroll. Root cause: the live **"running N tools in parallel"** pane (and, latently, the `plan` and
954
- `background` panes) rendered a **rounded box border in Ink's dynamic (non-`Static`) region**. In inline
955
- mode every time the `Static` transcript grows mid-turn Ink re-lays the dynamic frame and **orphans the
956
- box's top/bottom border rows into scrollback** — dozens of ghost lines over a multi-batch turn.
957
- - **Fix:** the three dynamic-region panes (`App.tsx` live-tools, `PlanPane`, `BgPanel`) are now **borderless**
958
- (dim header + left indent for grouping) — no border rows to orphan. The settled cards (Summary/Stats) are
959
- `Static`-rendered and were never affected. Full suite: 491 passed, 0 failed (67 files); `tsc` clean.
960
- - **Also:** fixed `package.json` `publishConfig.registry` (was `registry.npmjs.org`, where there's no token)
961
- → `https://pkg.axe.onl`, the fleet registry, so a bare `npm publish` routes correctly (no `--registry` flag).
962
-
963
- ## 0.1.92 — 2026-09-26 — recover a truncated tool call instead of a failover storm (engine correctness)
964
- - **Fixes a live crash (seen 09-26, v0.1.80).** When the model emitted one over-long tool call — a whole
965
- ~8KB file written in a single `file_edit` `new_string` — generation hit the output-token cap MID-string,
966
- leaving the tool-call JSON unterminated. llama.cpp's server rejected it (`aurora /v1 500: Failed to parse
967
- tool call arguments as JSON: missing closing quote` / `Unterminated string in JSON`). The engine treated
968
- every 500 as transient → blind endpoint failover, which is **futile** (the next endpoint truncates the
969
- same write) and cascaded into `[turn error: fetch failed]` and a dropped session.
970
- - **Fix — give this 500 its own recovery class.** `selfheal.classifyFailure` now returns
971
- `truncated_tool_call` for a 4xx/5xx whose body says the server couldn't parse the model's own tool-call
972
- arguments. The agent loop handles it by injecting a short **chunk-the-write nudge** and retrying the SAME
973
- endpoint (no route switch, failover budget untouched); after `MAX_TRUNC_RETRIES` (2) it surfaces the error
974
- honestly rather than looping. Root cause attacked (model strategy), not the symptom (which server answered).
975
- - **Headroom.** `clampMaxTokens` floor raised 512 → 1024 so a tool-calling round keeps room to finish a full
976
- tool call's arguments instead of truncating mid-JSON — reducing how often the recovery is needed at all.
977
- - Touched `src/engine/selfheal.ts` + `src/engine/agent.ts` + `src/engine/compaction.ts`; new
978
- `test/truncated-toolcall.test.mts` (classifier + in-place recovery with no failover + retry-cap surfacing).
979
- Full suite: 491 passed, 0 failed (67 files); `tsc` clean.
980
-
981
- ## 0.1.91 — 2026-09-26 — tree views (```tree fenced blocks) (TUI wave item)
982
- - **A ```tree code block renders as a connector-drawn tree** (├─ └─ │) instead of flat text — for file
983
- layouts, dependency trees, structure outlines. Trigger is explicit (the `tree` fence language), never
984
- guessed; indent (2 spaces or a tab per level) sets depth. Box-drawing glyphs, Terminal.app-safe.
985
- - New `src/ui/tree.ts` (pure `renderTree`) wired into `Markdown.tsx`; tested in `test/tree.test.mts`
986
- (sibling connectors, │ risers, deep chains, blank-line handling). Full suite: 488 passed, 0 failed (66 files).
987
-
988
- ## 0.1.90 — 2026-09-26 — /stats session dashboard (cost + throughput) (TUI wave item)
989
- - **New `/stats` command** pushes a session dashboard card: turns · tool calls · cumulative tokens · avg
990
- decode tok/s, a **throughput sparkline** (per-turn tok/s trend — so the ~56 tok/s config bottleneck is
991
- visible over time), and a **context-fill bar** (amber past 80%). Exercises the chart primitives.
992
- - New `src/ui/StatsCard.tsx` + a `stats` transcript entry kind; per-turn tok/s tracked in the CLI. Pure
993
- `statsLine()` + render tested in `test/statscard.test.mts`. Full suite: 484 passed, 0 failed (65 files).
994
-
995
- ## 0.1.89 — 2026-09-26 — terminal charts (sparkline/bar/ring) + plan-pane progress bar (TUI wave item)
996
- - **Chart primitives** (`src/ui/chart.ts`): `sparkline(values)` (8-level block trend), `bar(value,max,width)`
997
- (filled/empty progress bar), `ring(pct)` (5-step quarter-glyph dot) — the drawing primitives for the
998
- richer panes (plan progress, sub-task bars, a future cost/throughput dashboard). Pure, BMP-safe, tested.
999
- - **Plan pane now shows a progress bar** next to its `n/total done` header (e.g. `plan · 2/5 done ████░░░░`),
1000
- so you see completion at a glance. Full suite: 481 passed, 0 failed (64 files).
1001
-
1002
- ## 0.1.88 — 2026-09-26 — bidirectional sub-agent coms (message a running agent)
1003
- - **The sub-agent channel is now two-way.** Before, `spawn_agent` was one-way (brief in, result out). New
1004
- **`message_agent(id, text)`** tool lets the foreground send a message to a STILL-RUNNING sub-agent —
1005
- steer it, add context it now needs, or answer a question — and the child receives it as a follow-up turn
1006
- in its own conversation and keeps going. (The child→parent direction was already live: the background
1007
- panel streams each agent's steps + reasoning, and it posts its result when done.)
1008
- - Mechanism: `BackgroundAgents.sendToAgent(id, text)` enqueues into a per-agent inbox; the run loop drains
1009
- the inbox as follow-up sends before finishing (bounded to 6, so a chatty parent can't loop a child).
1010
- Returns false for a finished/unknown agent so the parent knows the message didn't land. Wired via a
1011
- `messageAgent` Session callback → `message_agent` tool (foreground only, like `spawn_agent`).
1012
- - Test: `test/agent-coms.test.mts` (a queued message becomes a real follow-up turn; finished/unknown agents
1013
- reject). Full suite: 478 passed, 0 failed (63 files).
1014
-
1015
- ## 0.1.87 — 2026-09-26 — background sub-agents edit in an isolated git worktree (no more shared-tree races)
1016
- - **Fix for a live hazard:** a foreground turn and a background sub-agent were both editing the same file
1017
- in the same working tree at once. Now a **file-editing** background agent (task type `code-edit`) runs in
1018
- its **own git worktree on its own branch**, branched from HEAD — its edits are quarantined there and can't
1019
- touch the foreground tree. When it finishes, its changes are committed onto the branch and the worktree is
1020
- removed, so the work survives as a reviewable branch (`git diff HEAD..operator/<id>`), surfaced in the
1021
- agent's done-summary. Read-only lanes (search/review/plan) still share the live cwd (they *should* see the
1022
- real tree). Best-effort: not a git repo → no isolation, runs in the shared cwd as before.
1023
- - Mechanism: `Executor` gains an optional `root` that reroots each tool call — relative file paths resolve
1024
- under the worktree, command tools default their `cwd` there (absolute/`~` paths untouched). `Session` takes
1025
- a `cwd`; `BackgroundAgents` creates/finalizes the worktree per code-edit child; verify-before-done runs
1026
- *in* the worktree. Toggle with `settings.background.worktree` / `KODE_BG_WORKTREE=0`.
1027
- - New `src/tools/executor.ts rootArgs` + `src/background/worktree.ts`; tests: `test/executor-root.test.mts`
1028
- (pure rooting) and `test/worktree.test.mts` (real git — proves isolation + branch handoff). Full suite:
1029
- 476 passed, 0 failed (62 files).
1030
-
1031
- ## 0.1.86 — 2026-09-26 — plan / checklist pane (TUI wave item)
1032
- - **The session TODO list now renders as a live checklist pane.** When Operator tracks multi-step work via
1033
- `task_add`/`task_update`, a bordered pane shows each item with a status glyph (☐ pending · ◐ in-progress ·
1034
- ☑ done, done items struck through) and a `plan · n/total done` header — so you can watch it work the plan,
1035
- the way a person follows a todo list. Sourced from the engine store (`registry.getAgentTasks`), refreshed
1036
- after any `task_*` tool; collapses to nothing when there are no tasks.
1037
- - New `src/ui/PlanPane.tsx` + `PlanTask` type; pure `planProgress()` + render tested in
1038
- `test/planpane.test.mts`. Full suite: 469 passed, 0 failed (60 files).
1039
-
1040
- ## 0.1.85 — 2026-09-26 — phase line + esc-to-interrupt hint (TUI wave item 04)
1041
- - **A dim phase line during any active turn** names what Operator is doing right now — `reasoning`,
1042
- `writing`, `running tools`, or `recovering` — and always reminds you `· esc to interrupt`. So a long turn
1043
- never leaves you wondering what it's on or how to stop it. Bounded to one line (no frame-height risk).
1044
- - Full suite: 466 passed, 0 failed (59 files).
1045
-
1046
- ## 0.1.84 — 2026-09-26 — end-of-turn summary card + verify badge (TUI wave item 06)
1047
- - **A compact summary card now lands after every turn that did work** (used ≥1 tool): wall time · output
1048
- tokens @ decode tok/s · prefill · rounds · tools, in a rounded card. Pure Q&A turns skip it (no noise).
1049
- - **Verify badge:** the card lights an amber "⚠ changed files · not verified (no passing check ran)" line
1050
- when the turn mutated files but the verify-before-done gate saw no passing check — so an unverified change
1051
- is never silent. `unverified` now flows AgentTurnResult → TurnOutcome → the card.
1052
- - New `src/ui/SummaryCard.tsx` (Static-rendered) + a `summary` TranscriptEntry kind; pure `summaryLine()`
1053
- tested in `test/summarycard.test.mts`. Full suite: 466 passed, 0 failed (59 files).
1054
-
1055
- ## 0.1.83 — 2026-09-26 — syntax-highlighted code fences (TUI wave item 07)
1056
- - **Fenced code in answers is now syntax-highlighted** like an editor instead of flat monochrome — the most
1057
- visible win for a coding agent whose output is mostly code. Keywords → accent, calls → info/cyan, strings
1058
- → green, numbers → amber, comments → dim. Language comes from the fence info string (```python, ```ts,
1059
- ```bash, …); the `#`-vs-`//` comment style follows the language.
1060
- - Dependency-free, line-based heuristic tokenizer (`src/ui/highlight.ts`) — terminal display, not a lexer,
1061
- with a hard invariant (verified) that tokens always reassemble to the exact source line, so no character
1062
- is ever dropped or duplicated. Colors are applied by `Markdown.tsx` from the theme palette. Pure
1063
- `tokenize()` tested in `test/highlight.test.mts`. Full suite: 463 passed, 0 failed (58 files).
1064
-
1065
- ## 0.1.82 — 2026-09-26 — loop guard no longer kills productive work that narrates repetitively
1066
- - **Found by a real-world drive of the actual engine (not a unit test):** a small local model narrates
1067
- repetitively ("writing the next module") while doing genuinely different work each round. The cross-round
1068
- loop guard keyed on the PROSE ALONE, so it counted those distinct-work rounds as a loop and stopped the
1069
- turn at round 3 — almost certainly the deeper cause behind the "same line over and over" a build showed.
1070
- - **Fix:** the guard now signs the WHOLE round — narration + the tool calls it drives (name+args). Distinct
1071
- work (mod1, mod2, mod3 — different args) yields distinct signatures and never accumulates; only an
1072
- identical round (same prose AND same action, or repeated prose with no action) trips it. A genuine loop
1073
- still stops at 3, even when the tool "progresses" (returns non-empty). Regression tests added to
1074
- `test/agent-progress-cap.test.mts`; verified end-to-end by driving `runTurn` + the real tool executor
1075
- against a scripted model that writes 12 real files while repeating its narration — it now runs to
1076
- completion. Full suite: 456 passed, 0 failed (57 files).
1077
-
1078
- ## 0.1.81 — 2026-09-25 — stop stamping the same narration once per tool in a parallel batch
1079
- - **Fixed the repeated "let me check…" line** that appeared once per tool during a parallel batch (looked
1080
- like 5 tools each emitting the same sentence). Cause: the model's just-streamed interstitial narration
1081
- stayed in the LIVE frame while N parallel tools settled one-by-one; each settle re-rendered a tall frame
1082
- (narration + the N-row tool box) that Ink's erase-by-line-count could mis-handle, stamping the prose into
1083
- scrollback once per tool. Fix: clear the live narration at `onToolStart` — during execution the frame is
1084
- just the bounded tool rows, so there's nothing tall to re-stamp. The prose still shows while it streams;
1085
- the final answer is unaffected (it's pushed once at turn end). Full suite: 456 passed, 0 failed (57 files).
1086
-
1087
- ## 0.1.80 — 2026-09-25 — opt-in fullscreen layout (composer pinned to the bottom)
1088
- - **Fullscreen mode** for anyone who wants the composer anchored at the bottom instead of the inline layout's
1089
- unused space below a short conversation. OFF by default. Enable per-run with `--fullscreen`, per-env with
1090
- `KODE_FULLSCREEN=1`, or persistently with `settings.ui.fullscreen: true`.
1091
- - On: switches to the terminal's ALTERNATE screen buffer, the transcript fills a clipped, bottom-anchored
1092
- region (a non-Static tail — `Transcript bounded`), and the status rule + composer + footer sit pinned at
1093
- the very bottom. On exit the main buffer is restored, so the terminal comes back exactly as it was
1094
- (vim/less style).
1095
- - Tradeoff (why it's opt-in): alt-screen forgoes the terminal's native scrollback + select/copy of past
1096
- output that the default inline layout keeps. Try it, keep it if you like it.
1097
- - Default inline layout is unchanged. Render-tested (`test/app-fullscreen.test.mts`). Full suite: 456 passed,
1098
- 0 failed (57 files).
1099
-
1100
- ## 0.1.79 — 2026-09-25 — rich answers: markdown tables, task-lists/quotes/rules/links + composer footer
1101
- - **Markdown tables in answers** (`src/ui/Table.tsx`, TUI wave item 02). A `| a | b |` / `|---|` block now
1102
- renders as a box-drawn, column-aligned table (`┌┬┐│├┼┤└┴┘`) with GFM alignment (`:--` left, `--:` right,
1103
- `:--:` center). Column widths auto-fit the terminal — the widest columns shrink first (never below 3
1104
- cells, truncating with `…`) so a wide table never wraps and creeps the frame. Width math reuses the
1105
- status rule's `cellWidth`/`truncateToWidth`, so a double-width glyph never skews a column. Rendered only
1106
- on settled entries (Static-safe). Pure parse/align/fit/pad logic tested in `test/table.test.mts`.
1107
- - **Richer markdown** in assistant output (`src/ui/Markdown.tsx`, wave item 03): task lists (`- [ ]`→☐,
1108
- `- [x]`→☑ green), `>` blockquotes (dim bar), `---`/`***`/`___` horizontal rules, `[text](url)` links and
1109
- bare URLs rendered clickable via OSC 8 (degrade to `label (url)` where unsupported), and headings/inline
1110
- code now use the theme palette.
1111
- - **Composer footer** — the `◆ auto · shift+tab to cycle` mode hint now renders BELOW the input rule (a
1112
- footer under the composer) instead of inside the input zone, so the input reads as its own clean band.
1113
- - Full suite: 455 passed, 0 failed (56 files).
1114
-
1115
- ## 0.1.78 — 2026-09-25 — don't quit mid-build + TUI theme tokens (one palette, capability-aware)
1116
- - **The turn no longer stops a productive build mid-mission.** A live session building a Python CLI was
1117
- cut off at round 11 with "[stopped after 11 tool rounds — the task may be unfinished]" while it was
1118
- actively writing files. Two compounding root causes, both fixed:
1119
- - **A silent-but-successful shell command was miscounted as a stall.** The model built the CLI with
1120
- `cat > f <<EOF` heredocs; a heredoc that writes a file and prints nothing returns `(no output)` (an
1121
- exit-0 success), but `batchProgressed` (agent.ts) treated *any* `(no output)` as "no progress." Six
1122
- such rounds in a row tripped `NO_PROGRESS_LIMIT`. Now only a **failed** silent command
1123
- (`(no output; exit N)`), an error, or the loop guard counts as a stall — a bare `(no output)` is
1124
- progress. (`write`/`edit` return `wrote …`/`edited …`, so they were never the issue.)
1125
- - **The foreground turn used the hardcoded soft budget of 10, not the configured 40.** `settings.
1126
- autonomy.maxRounds` (40) is now threaded through `Session` into `runTurn` for interactive turns too,
1127
- so the progress-guard doesn't even engage until round 40. It remains a floor on effort, not a hard
1128
- cap — the engine still auto-continues while progressing and hard-stops only on a genuine stall or the
1129
- absolute 200-round ceiling. Regression tests in `test/agent-progress-cap.test.mts`: a silent-success
1130
- build runs to completion; a failed-silent command still stalls.
1131
- - **TUI: one theme palette (`src/ui/theme.ts`), capability-aware.** Every component pulled its own
1132
- hex/named colors (the brand star was `magenta` in one place, `magentaBright` in another). Now a single
1133
- set of semantic tokens (accent, info, success, error, warn, running, starBright, textBright, muted) with
1134
- a three-tier fallback ladder: truecolor/256 → the brand hex, 16-color → a named ANSI fallback (not
1135
- chalk's muddy auto-downsample of a brand purple), `NO_COLOR`/`KODE_NO_COLOR` → no escapes, and a
1136
- `KODE_THEME=high-contrast` mode → bright named colors. Output is byte-identical at truecolor; the win is
1137
- one source of truth plus real low-color/high-contrast behavior. Adopted across Header, StatusRule,
1138
- ToolStep, BgPanel, ActivitySpinner, ThinkingSpinner, and the Masthead gradient. Tests: `test/theme.test.mts`.
1139
- - Full suite: 448 passed, 0 failed (55 files).
1140
-
1141
- ## 0.1.77 — 2026-09-25 — sub-agent verify actually RUNS the command (kill the hollow verify)
1142
- - **The orchestrator now executes, it doesn't just ask.** `grandmaster.verifyFinalAnswer` previously only
1143
- stat'd that claimed files exist and *surfaced* the `verify_command` for the child to run — so a
1144
- sub-agent's `verified` was a self-report (the same hollowness that let "37/37, engine works" through).
1145
- Now it RUNS the declared `verify_command` and gates `verified` on the real exit code, reusing the
1146
- main-loop allowlist/parser (`isVerifyCmd`/`ranButFailed`): a recognized test/build/run that exits 0 =
1147
- verified; a failure, a non-recognized/absent command (echo/true/none), or a missing file = **not
1148
- verified**. This is the foundation an adversarial reviewer lane needs — the harness owns the truth, not
1149
- the 56 tok/s model's say-so. `bash -lc` with a 180s timeout; child_process loads lazily (neutral bundle
1150
- unaffected). Behavioral test: `test/grandmaster-verify.test.mts`.
1151
- - Designed via an adversarial design-critic pass that caught the naive "reviewer sub-agent" would be a
1152
- *second* rubber stamp (same model, same cwd, no exec) — so we built the exec foundation first. The
1153
- isolated read-only reviewer lane + synchronous verdict-gating are the next steps.
1154
-
1155
- ## 0.1.76 — 2026-09-25 — TUI: clickable paths + instant --version/--help
1156
- - **OSC 8 hyperlinks** (`src/ui/osc.ts`): tool-step file paths (`path`/`file`/`filename` args) are now
1157
- clickable — click a path to open it in your editor, on terminals that support it (iTerm2 ≥3.5, Ghostty,
1158
- WezTerm, Kitty, VS Code). Degrades safely everywhere else (macOS Terminal.app renders the plain label;
1159
- the escapes are zero-width to Ink's string-width, so columns/truncation stay correct). Non-TTY output
1160
- stays plain; `KODE_NO_HYPERLINKS=1` disables. Pure, unit-tested (`test/osc.test.mts`).
1161
- - **`operator --version` / `--help` fast-path**: handled before Ink/React mounts — instant, and `--version`
1162
- now works with no TTY (it previously errored asking for an interactive terminal).
1163
- - Grounded in a TUI-advancements research pass that confirmed per-token repaint is already handled
1164
- (`<Static>` + Ink's 32ms write throttle) — so no effort went to the hot path. Next: Synchronized Output
1165
- (DEC 2026) for atomic, flicker-free frame painting on modern terminals (needs a write-coalescing stdout
1166
- proxy + visual confirmation).
1167
-
1168
- ## 0.1.75 — 2026-09-25 — background sub-agent concurrency cap (never overload the host)
1169
- - **An agent must never kill its own node.** A live session fanned out 4 concurrent `aurora-code-1`
1170
- background sub-agents on top of Aurora serving on one 64GB box and starved it clean off the network
1171
- (ping/SSH/Aurora port all dead ~1h). `BackgroundAgents` now caps concurrently-running sub-agents
1172
- (default **2**, `settings.background.maxConcurrent` / `KODE_BG_MAX`): excess spawns enter a **`queued`**
1173
- state and are promoted the instant a running slot frees (on completion or stop). The panel shows queued
1174
- agents (`◌`), and the queue wait isn't counted as run time. Behavioral test in
1175
- `test/background-concurrency.test.mts` (3 spawns at cap 2 → 2 working + 1 queued → promoted on release).
1176
- Frontier-parity reliability: bounded fan-out is table stakes for an agent that runs unattended.
1177
-
1178
- ## 0.1.74 — 2026-09-25 — git operations upgrade (stop the raw-git flailing)
1179
- - **Structured `git_status` tool + a persona steer.** A live session watched Operator loop on raw
1180
- `bash(git status/add/diff)` — misreading porcelain, re-running the same commands, and confused when an
1181
- already-committed tree showed "nothing to add" — until the loop guard cut it off. Fix: a read-only
1182
- `git_status` tool that returns ONE clean summary (branch, ahead/behind vs upstream, staged/unstaged/
1183
- untracked lists), with a clean tree stated plainly as **"nothing to commit" = success** so the model
1184
- stops spelunking. New "## Git" persona rule steers to `git_status` (don't loop on raw git; a clean tree
1185
- is success) and to commit via `git_command`/`checkpoint` with explicit paths + conventional message.
1186
- Parser (`src/tools/git-status.ts`) is pure + unit-tested (`test/git-status.test.mts`).
1187
-
1188
- ## 0.1.73 — 2026-09-25 — AXE engineering self-check baked into the persona
1189
- - **The fleet SOP, as active guidance in Operator's own head.** Added a compact "How I work — the AXE
1190
- self-check" section to `src/config/persona.ts`: before acting, state the ROOT CAUSE (not the symptom)
1191
- and reuse the nearest existing pattern (a new one needs a reason); stay scoped; match the surrounding
1192
- code so the work is indistinguishable from the repo owner's; log the non-obvious WHY to the repo's
1193
- `_ai-docs/`; commit clean (conventional `type(scope): subject`, explicit paths, no AI/Co-Authored-By/
1194
- Claude-Session trailers). The "before done" leg is already covered — and *harness-enforced* — by 0.1.70
1195
- (verify by running) + 0.1.71 (the verify-before-done gate), so this is deliberately non-duplicative.
1196
- Full reference shipped at `docs/operator-selfcheck.md`; fleet SOP of record is `~/.axe/AXE-ENGINEERING-SOP.md`.
1197
- Guarded by `test/persona.test.mts`. (Coordinated with the fleet SOP rollout in memjar/nimbus.)
1198
-
1199
- ## 0.1.72 — 2026-09-25 — accurate live token counts (main + sub-agents)
1200
- - **Live token readout now shows the real count.** The live counter (main spinner AND the background
1201
- sub-agent panel) incremented ≈1 per streamed content delta — so it missed every token generated as a
1202
- tool-call argument or reasoning. A sub-agent writing skill files (all tool-arg output) read as "53 tok"
1203
- after 9 minutes; the main agent orchestrating sub-agents sat frozen at "220 tokens"; nothing ever
1204
- crossed 999. Now a new `onTokens` callback carries the authoritative llama.cpp per-round count
1205
- (`predicted_n`, summed) and the hosts display THAT — so the number matches what the model actually
1206
- generated and climbs into the thousands as it should.
1207
- - `src/engine/agent.ts`: fire `onTokens(cumulativeOutputTokens)` after each round.
1208
- - `src/session.ts`: thread it through `TurnHandlers` → `runTurn`.
1209
- - `src/cli.tsx`: the main live counter snaps to the real total each round (delta stream still animates
1210
- between rounds).
1211
- - `src/background/index.ts`: the sub-agent panel shows the real running total, not the ≈1/delta tally.
1212
- - Regression guard in `test/agent-toolheavy-tokens.test.mts` (onTokens fires per round, cumulative,
1213
- final == turn total).
1214
-
1215
- ## 0.1.71 — 2026-09-25 — harness-enforced verify-before-done
1216
- - **The gate that makes 0.1.70 real.** Persona rules are ignorable on a weak model; this makes "done" a
1217
- fact the harness *computes* from observed tool execution, never a phrase the model emits. When a turn
1218
- changed files (`file_write`/`file_edit`) but no verify-shaped command was seen to pass, the main loop
1219
- injects ONE reminder to run the real check and gives the model another round; if it still doesn't, the
1220
- answer is finalized with a `⚠ Not verified` banner and the trajectory is withheld from the flywheel.
1221
- - **Predicate = allowlist** of verify command heads (`npm/pnpm/yarn/bun/npx/node/tsc/vitest/jest/pytest/
1222
- go/cargo/make/…` + running a local `./script`), so `echo`/`cat`/`ls`/`true`/`grep`/`test -f`/`git` are
1223
- excluded for free — which catches the SGE incident deterministically (its file-exists "tests" are not
1224
- verifications). Pass/fail keys on a newly-surfaced exit code.
1225
- - **Plumbing fix:** `tools/registry.ts` `shellExec` dropped the exit code whenever a command printed
1226
- output, so a failing `npm test` was indistinguishable from a pass. Now appends `[exit N]` on nonzero
1227
- (exit-0 output unchanged) — the model and the gate can both see failure.
1228
- - **Flywheel tie-in:** a claimed-but-unverified code turn is no longer `graded` — the fleet stops
1229
- training on hollow "done".
1230
- - New `src/engine/verify-gate.ts` (pure, neutral-bundle safe) + `src/config/settings.ts`
1231
- `verifyGate {enabled:true, maxNudges:1}` (`KODE_VERIFY_GATE=0` to disable). Behavioral tests in
1232
- `test/verify-gate.test.mts`; design in `docs/verify-before-done.md`. Designed by a four-lens
1233
- master-agent panel (loop placement · minimal mechanism · behavior contract · validation+flywheel).
1234
-
1235
- ## 0.1.70 — 2026-09-25 — verify by running before you claim done
1236
- - **Persona: never self-certify without running it.** Operator's base system prompt now forbids reporting
1237
- that something "works / passes / is complete" on reasoning alone — it must execute the actual command,
1238
- CLI, or code path and read the result, and its tests must assert BEHAVIOR, not just that files exist
1239
- ("green tests that assert nothing are not proof"). Prompted by the same live session that shipped a
1240
- Skill Graph Engine reported as "engine works · 37/37 · Phase 1 complete" when — verified by an adversarial
1241
- review that actually ran it — the CLI didn't parse on any bash, the graph resolver returned empty for
1242
- every skill (an edge-type `depends` vs `depends_on` mismatch), and all 37 tests were `[ -f ]`/`jq empty`
1243
- existence checks. This is the CAPTURE-side complement to 0.1.69: fix what you find, and prove it ran.
1244
- Guarded by `test/persona.test.mts`.
1245
-
1246
- ## 0.1.69 — 2026-09-25 — fix-what-you-find (stop asking, start fixing)
1247
- - **Persona: fix defects on your own initiative instead of asking.** Operator's base system prompt
1248
- (`src/config/persona.ts`) now states, as a first-class rule, that when it finds a bug while doing or
1249
- testing its own work it FIXES the clear/mechanical/high-severity ones and re-runs the check that proves
1250
- the fix — it does NOT pause to ask "should I fix these?", and does NOT advance to the next phase/task
1251
- while known bugs from the current one are still unfixed (which risks leaving them unfixed forever). Only
1252
- genuine judgment calls (design decisions, real tradeoffs, destructive/irreversible actions) go back to
1253
- the user. Prompted by a live session that found 9 bugs, fixed none, and asked whether to fix or jump to
1254
- Phase 2. Guarded by `test/persona.test.mts`.
1255
-
1256
- ## 0.1.63–0.1.68 — 2026-09-25 — reliability sweep + self-improvement loop
1257
- Shipped from live Operator sessions on JL2. Newest first within the batch.
1258
- - **0.1.68 — self-improvement loop, out of the box.** Every completed turn appends a graded trajectory to
1259
- `~/.axe/operator/flywheel/<date>.jsonl` (`input/content/rounds/toolCalls/tokens/model/cwd`; `graded=true`
1260
- when it produced content, ran ≥1 round, and wasn't cut for repetition). This is the CAPTURE side the
1261
- fleet's `recursive_self_improve.py` training loop consumes — nothing recorded real CLI turns before.
1262
- Default-on, best-effort, never blocks; opt out with `KODE_SELFIMPROVE=0`. Memory/skill/reflection sinks
1263
- scaffolded on the same per-turn hook (`settings.selfImprove`); reflection off by default (an extra
1264
- generation per turn hurts local-model latency).
1265
- - **0.1.67 — clear on terminal resize.** Minimize/resize desynced Ink's erase-by-line-count bookkeeping, so
1266
- every later re-render (keystroke, 250ms clock) APPENDED the status rule instead of overwriting it. A
1267
- debounced `clear()` on stdout resize re-syncs to the real terminal.
1268
- - **0.1.66 — failover auto-recovery.** A session that failed over to the standby never climbed back — the
1269
- router scanned forward from the failover index and never consulted health. Now a circuit-breaker with a
1270
- 45s cooldown climbs back to primary once healthy, via a size-floor kept separate from failover.
1271
- - **0.1.65 — readable sub-agent labels.** Labels were the first 28 chars of the raw "You are building…"
1272
- brief, so every agent chopped to the same boilerplate. Now derived from the actual objective.
1273
- - **0.1.64 — cross-round narration loop guard + version from package.json.** A model re-emitting the
1274
- IDENTICAL sentence each round while reading a different file looped 7+ min because the guard cleared on
1275
- tool progress; now identical prose is counted regardless of progress. VERSION reads package.json at
1276
- runtime so the splash can't drift from the published version.
1277
- - **0.1.63 — exact token metering + hardened decode-loop guard.** `stream_options.include_usage` yields
1278
- exact `completion_tokens` on tool-call rounds (was under-counting to ~0 → chars/4 fallback). Loop guard
1279
- gained fuzzy-normalized + word-8gram + runaway-length detection for garbled/run-together repeats.
1280
- - Also: fleet auto-install of companions (autopilot/chauffeur) sourced by IP not the drifting `JL1-2.local`
1281
- mDNS name. Tests: 387/387.
1282
-
1283
- ## 0.1.62 — 2026-09-23
1284
- - **Naming: the internal model name is gone from every user-facing surface.** The only outward names are
1285
- "axe" / "Operator" / "0perator"; the internal model name never appears in anything a user sees.
1286
- - Renamed the user-facing model ids `aurora-1m` / `aurora-128k` → `operator-1m` / `operator-128k`
1287
- (labels "Operator 1M" / "Operator 128K"). The OLD ids are kept as working **aliases** (findModel
1288
- normalizes them), so a persisted `settings.activeModel: "aurora-1m"`, a `/model aurora-1m`, or any
1289
- muscle memory keeps resolving — the rename loses nothing.
1290
- - Swept the HELP text, boot masthead, status line, `/model` picker, sign-in copy, service/endpoint
1291
- labels, capacity/error messages, and the system prompt (so the model itself won't echo the name).
1292
- - Internal ids/vars/config, endpoint hostnames, and the served model name (`aurora-code-1`) are
1293
- untouched. Also cleaned kode-mobile + kode-web user-facing strings ("JL1" → "your Mac", etc.).
1294
- - Tests: 379/379 (incl. a new alias regression test proving the legacy `aurora-*` ids still resolve).
1295
-
1296
- ## 0.1.61 — 2026-09-22
1297
- - **Fix: search glob honored without ripgrep (CI red).** 's glob (e.g. "*.ts") is now enforced by a JS post-filter on the result lines (basename fnmatch) in BOTH the ripgrep and grep-fallback paths — grep's --include / rg's -g have platform-varying semantics (GNU grep on CI let "*.ts" through), so the tool no longer trusts the flag alone. Fixes the 0.1.60 CI failure (ubuntu has no rg → grep fallback). Verified on the grep path with rg hidden.
1298
- - Tests: 379/379 (search glob now green on the no-rg path).
1299
-
1300
- ## 0.1.61 — 2026-09-22
1301
- - **Fix: `search` glob honored without ripgrep (CI red on 0.1.60).** The glob (e.g. "*.ts") is now enforced
1302
- by a JS post-filter over the result lines (basename fnmatch) in BOTH the ripgrep and grep-fallback paths.
1303
- grep's `--include` and rg's `-g` have platform-varying semantics — GNU grep on CI (ubuntu, no rg) let
1304
- "*.ts" through — so the tool no longer trusts the underlying flag alone. Verified on the grep path with rg
1305
- hidden. Tests: 379/379.
1306
-
1307
- ## 0.1.60 — 2026-09-22
1308
- - **`http_request` tool (capability #5).** A real HTTP client beyond `web_fetch`'s GET-and-scrape: any method
1309
- (GET/POST/PUT/PATCH/DELETE/HEAD), custom headers, a JSON (`json`) or raw (`body`) payload, bearer/basic auth,
1310
- redirects, timeout. Returns status + response headers + the capped body verbatim (no HTML stripping) — for
1311
- authenticated REST/GraphQL/webhook calls. safe:false (can mutate → gated when the policy is on).
1312
- - **`file_upload` tool (capability #7).** The push side Operator lacked: POST multipart/form-data (default,
1313
- `field` names the part) or PUT raw bytes (S3 presigned-PUT style), same bearer/basic auth as http_request.
1314
- safe:false (exfiltrates a file → gated; confirm the destination). btoa (not node Buffer) keeps both tools
1315
- neutral-bundle-safe; resolved auth secrets are never echoed into the result.
1316
- - **Drivable operating mode across host + web** (folds in the landed remote-control commit): `/mode
1317
- [plan|manual|auto]` (autonomous→auto, gated→manual); single `applyMode()` path for Shift+Tab / /mode / /plan
1318
- / follower frame keeps policy + plan flag + badge + capabilities in lockstep; `RemoteCapabilities.mode` is the
1319
- live 3-state ("gated" back-compat alias); "mode" in REMOTE_SAFE_COMMANDS. Web (0perator.co/remote) drives it.
1320
- - Capability roadmap (`docs/capabilities/`): #5 and #7 now SHIPPED; cloud/docker/ssh/monitoring/media-processing
1321
- are reachable via the fleet MCP gateway (`mcp:true`); webhook receiver (#8) + super daemon (#9) remain to build.
1322
- - Tests: 379/379 (5 new: http_request GET/POST-json/basic-auth, file_upload multipart + raw PUT).
1323
-
1324
- ## 0.1.59 — 2026-09-22
1325
- Efficiency fixes for the failure the live screenshot caught: a filesystem-hunt task ran ~40 rounds of
1326
- `find ~/ | grep | grep`, hit the per-command timeout, killed + reset the persistent shell (losing cwd/env)
1327
- → "shell failed to start" cascade → "[stopped after 40 tool rounds]" → "[turn error: fetch failed]". Three
1328
- blunt limits stacked and killed a task that WAS making progress. Four fixes remove them at the source:
1329
- - **Subshell-scoped timeout (`tools/shell-session.ts`).** A per-command timeout now SIGKILLs only the stuck
1330
- command's process subtree (bash's descendants) and leaves the persistent shell alive — bash reaps the job
1331
- and prints its pending sentinel, so `cd`/exported env SURVIVE a timeout. The shell is only respawned when
1332
- it's genuinely wedged (no sentinel returns AND nothing was killable / stdin no longer accepts writes). Kills
1333
- the "shell failed to start" cascade.
1334
- - **Progress-aware round cap (`engine/agent.ts`).** The loop no longer hard-stops at a fixed 40 rounds while
1335
- it's making progress. A `noProgressStreak` (reset by any tool batch that returns new results, via the
1336
- existing `batchProgressed`) ends the turn only on a genuine stall — N consecutive empty batches past the
1337
- soft budget — or an absolute 200-round safety ceiling. A turn that keeps finding results runs to completion.
1338
- - **`search` tool (ripgrep) + prompt steer (`tools/registry.ts`, `cli.tsx`).** New fast, scoped, .gitignore-aware
1339
- `search` tool (falls back to grep when rg is absent; `files_with_matches` for locate-before-read). The
1340
- "Finding things" system-prompt section now leads with it and forbids `find ~/ | grep` over the whole home
1341
- dir, with narrow-first + batch guidance. `grep_search` defers to `search`. Removes most timeouts at the source.
1342
- - **Transport-level fetch retry (`engine/aurora.ts`).** A transient pre-response network drop ("fetch failed")
1343
- is retried a couple times with short backoff at the fetch layer — before any SSE bytes stream, so a resend
1344
- can't duplicate output — instead of aborting the turn. Reuses `selfheal.ts` classify/backoff; aborts and
1345
- real HTTP errors are never retried here (the agent loop still owns those).
1346
- - Tests: 374/374 (9 new: shell timeout cwd/env survival, progress-cap extend + stall, fetch-retry + abort,
1347
- search tool content/glob/files-only/no-match). Live-verified end-to-end against Aurora :8097 — scoped
1348
- search (no whole-home sweep), no shell cascade, no 40-round hard-stop.
1349
-
1350
- ## 0.1.58 — 2026-09-22
1351
- - **`/login` runs the device-grant flow inline.** Typing `/login` (no arg) now requests a device code,
1352
- opens the browser to the AuthGate approval page with the 6-char code, polls until you approve, then
1353
- stores the token, sets it for immediate remote-engine use, and shows "✓ Authenticated as <you>" — no
1354
- dropping to the shell. `/login <token>` still pastes a PAT for headless sign-in. (Approval-page domain
1355
- is AuthGate-configured — OPERATOR_AUTH_VERIFICATION_URI.)
1356
- - Tests: 365/365.
1357
-
1358
- ## 0.1.57 — 2026-09-22
1359
- - **ReportLab PDF tools ship STANDARD.** report-mcp (build_pdf_report, build_pdf_from_markdown) is now
1360
- always injected — Operator can generate PDFs out of the box without opting into the full MCP fleet
1361
- (`settings.mcp`). New STANDARD_MCP_SERVERS list + loadStandardServers(); the standard hub merges with
1362
- the chauffeur embodiment hub when computer control is on. When the full fleet is enabled, report-mcp is
1363
- already in it, so no double-wire.
1364
- - Tests: 365/365.
1365
-
1366
- ## 0.1.56 — 2026-09-22
1367
- - **Shift+Tab cycles the operating mode (Claude-Code parity).** AUTO (execute without asking) → MANUAL
1368
- (approve mutating tools via the gated policy + approve bridge) → PLAN (read-only research + a proposed
1369
- plan, nothing runs) → AUTO. A persistent dim hint under the input shows the current mode, and each
1370
- switch prints a one-line confirmation. Maps to the mobile Manual/Auto/Plan selector. New Session API:
1371
- setPermissionMode() rebuilds the policy at runtime (preserving tier + rules); plan mode was already native.
1372
- - Tests: 365/365.
1373
-
1374
- ## 0.1.55 — 2026-09-22
1375
- - **Remote-engine auth — Operator now runs against a REMOTE engine.** The model call sent no
1376
- Authorization header, so it only worked against a local `:8097`; a thin client pointed at the
1377
- authed `api.axe.onl` gateway got 401. `aurora.ts` now injects the operator bearer for a non-loopback
1378
- base (never for local `:8097`), loaded once at boot from the keychain. Verified E2E: `chat()` →
1379
- `https://api.axe.onl` with the operator token returned a real completion. This is what lets a 4 GB
1380
- MacBook run Operator against JL1's Aurora (`KODE_AURORA=https://api.axe.onl` + `operator auth login`).
1381
- - Relay: `ownerSub` now read from the AuthGate's `account.external_id` for real per-owner session scoping.
1382
- - Tests: 365/365.
1383
-
1384
- ## 0.1.54 — 2026-09-22
1385
- - **Fixed the mobile/JSCore purity gate (CI was red on main).** The persistent-shell bash tool imported
1386
- `node:child_process` via a string-literal `import("node:...")`, which esbuild `--platform=neutral`
1387
- statically resolves — so the Node builtin leaked into `index.browser.ts`'s graph and the on-device
1388
- mobile engine bundle failed to build. Routed it (and the `./shell-session.js` import in registry.ts)
1389
- through the codebase's `nodeImport` variable-specifier idiom, which esbuild cannot statically resolve,
1390
- keeping the Node-only shell tool out of the neutral bundle. Gate now exits 0.
1391
- - **Fixed the stderr merge race in the bash tool.** stdout and stderr were separate OS pipes merged in
1392
- JS, so a command's stderr chunk could land after the sentinel that followed it on stdout and get
1393
- sliced off (the flaky "stderr is merged" test; real output loss on `cmd 1>&2`). Now merged at the
1394
- shell with `exec 2>&1` at session start — one ordered pipe, deterministic, genuinely terminal-like.
1395
- - Tests: 365/365, neutral purity gate green.
1396
- - (Companion branch `feat/purity-curl` applies the identical nodeImport gating to the curl tool's
1397
- node:dns/node:net for when it lands.)
1398
-
1399
- ## 0.1.53 — 2026-09-22
1400
- - **Parallel tool calls, made visible.** System-prompt guidance now tells the model to BATCH independent
1401
- tool calls in one round (the engine already ran batches in parallel via executeParallel — the model just
1402
- wasn't asked to). A new live per-call TUI view renders each call in a batch as its own row (name · args ·
1403
- running→done · ms · result), render-safe alongside the streaming tail.
1404
- - **Token meter fixed (it was under-counting, not the model being "nerfed").** Tool-call rounds report
1405
- predicted_n≈0 from llama.cpp, so a 40-call turn showed "365 tok". chat() now falls back to a chars/4
1406
- estimate when the server omits timings on a tool round; the real count always wins when present. No spend
1407
- cap exists (clampMaxTokens is a no-op at low ctx).
1408
- - **Live sub-agent visibility.** A working background sub-agent showed only a `round N` counter — opaque on a
1409
- slow local reasoning model. The panel now streams each child's real activity: its in-flight tool calls with
1410
- their identifying arg (`↳ file_read(src/cli.tsx) …`) and a dim, throttled tail of its current reasoning
1411
- (`⋮ …`). Steps/reads/thoughts, not just counters.
1412
- - **Sub-agent lifecycle: work → idle → decommission.** A finished child (result already posted to the
1413
- transcript) now clears from the panel after a 45s grace instead of lingering the whole session.
1414
- - **Fixed: exit-while-working froze the session.** Pressing /exit (or Ctrl-C) while a sub-agent was still
1415
- running left `operator` hung — the child's in-flight request kept the Node event loop alive. Exit now
1416
- disposes all background agents (interrupt + shutdown) so the process drains and quits cleanly.
1417
- - **Remote control: legible when unsigned.** `/remotecontrol` with no Operator token silently opened the
1418
- relay socket and surfaced the rejection as "connection lost". It now refuses before the wire with a clear
1419
- "run `operator auth login` first" message + an rc_no_token control event.
1420
- - Tests: 365/365.
1421
-
1422
- ## 0.1.52 — 2026-09-21
1423
- - Fixed: `operator update` on a source checkout failed cryptically ("git pull failed") when the tree was
1424
- dirty — common on a shared dev tree an agent is building in. It now detects the dirty tree, names the
1425
- uncommitted files, and points at `npm install -g @0perator/operator@latest` to update the INSTALLED
1426
- Operator instead, rather than a confusing hard-fail. Never auto-stashes (would clobber in-flight work).
1427
- - SPEC: deduped remote-session.md — capabilities + command frames now live only in the canonical
1428
- §5/§5a/§6/§6a; documented the ask_user / ask_user_response frames (pre-existing gap); recorded the
1429
- follower command policy (all-except exit/quit/login/logout/remotecontrol/remote; bg/services/dashboard
1430
- intentionally exposed per owner sign-off) + the capabilities summarization. (Nova, spec-rich-head-dedupe.)
1431
-
1432
- ## 0.1.51 — 2026-09-21
1433
- - Landed: **remote-control "rich head"** host side (SPEC/remote-session.md §11, PROPOSED — not part of
1434
- the v1 FROZEN envelope) — `RemoteHost` gains `RemoteCapabilities` (commands/skills/mcpServers/models/
1435
- mode/cwd/model) sent in the `snapshot` and re-sent as a `capabilities` state frame only when it
1436
- changes, plus a `command` drive frame (follower → host, `{name, args?}`) dispatched through the SAME
1437
- path a local `/name args` line takes. Client side (web command drawer, kode-mobile CommandSurface,
1438
- SPEC addendum) shipped separately in 0.1.50; this lands the host emit + dispatch handler.
1439
- - Owner decision: a follower may drive **every slash command except** `exit`/`quit` (kills the host
1440
- process), `login`/`logout` (mutates stored credentials), and `remotecontrol`/`remote` (a follower
1441
- could disconnect every other follower) — six hard-excluded case-labels. `bg`, `services`, and
1442
- `dashboard` are explicitly INCLUDED: `isOwnFrame()` (sessionId + ownerSub match) plus OPERATOR-token
1443
- relay auth means a follower is the authenticated owner on another device, not a third party.
1444
- `REMOTE_SAFE_COMMANDS` (`cli.tsx`) is the single allowlist for both what's advertised in
1445
- `capabilities.commands` and what `onCommand` will actually dispatch.
1446
- - Fixed (blocker, found in adversarial self-review — see `REMOTE_RICH_HEAD_AUDIT.md`): a
1447
- `capabilities.mcpServers` full tool enumeration at this fleet's real scale (600+ MCP tools across a
1448
- handful of servers) could exceed the SPEC §8 256 KB per-frame cap. `capCapabilities()` now sends each
1449
- server's name + true `toolCount` with `tools[]` capped to a 20-entry preview. Paired with the
1450
- pre-existing, previously-unenforced SPEC §8 snapshot cap: `capTranscript()` trims the snapshot to the
1451
- last 200 entries, then shrinks oldest-first until under 512 KB, marking `truncated: true` +
1452
- `omittedBefore: <seq>` when either bound bites.
1453
- - Tests: +15 vs 0.1.50 (10 from the host-side reference patch itself — `command` own/wrong-session/
1454
- mismatched-ownerSub/missing-name, capabilities in snapshot before/after connect, delta on change,
1455
- no-op on identical re-set; +5 from the blocker fix above — 600+ tool capabilities payload stays under
1456
- the 256 KB frame cap, toolCount survives the trim, small server lists pass through untrimmed,
1457
- 200-entry snapshot truncation + `omittedBefore`, no false-positive truncation on a short transcript).
1458
- Suite 347/347; `tsc --noEmit` clean.
1459
-
1460
- ## 0.1.48 — 2026-09-21
1461
- - Added: `/model` command — pick between `aurora-1m` (default, :8097), `aurora-128k` (:8096, lighter
1462
- RAM), or `moa` (Mixture of Agents) via an interactive picker (`/model`) or directly (`/model <id>`).
1463
- A single-profile switch rebuilds the session's router to point at that endpoint (`router/models.ts`,
1464
- `Session.setModel`) — no server is ever started/stopped, it only changes which endpoint THIS session
1465
- talks to. The choice persists to `operator/settings.json` (`activeModel`, `saveSettings`) and is
1466
- reapplied at startup. See `MOA-DESIGN.md`.
1467
- - Added: MOA (Mixture of Agents) execution mode (`engine/moa.ts`) — a turn fans out in PARALLEL to
1468
- `settings.moa`'s proposers (plain, tool-free chat completions), then runs the aggregator through the
1469
- normal turn loop (tool-calling, streaming, self-heal, telemetry all reused — v1 is aggregator-only
1470
- tool-calling) with the labelled candidate drafts folded into its system prompt. A proposer
1471
- failing/timing out is dropped, not fatal; zero survivors fall back to `aurora-1m` for that reply with
1472
- a clear note. `/model moa` without a `moa` block in settings explains what's missing instead of
1473
- running. Telemetry records which proposers ran, per-proposer latency, and which drafts survived.
1474
- - Added: `ask_user` remote-control relay emit (`RemoteHost.askUser`) — a clarification question is now
1475
- mirrored to `/remotecontrol` followers as a distinct `ask_user` frame (not folded into
1476
- `approval_request`); the follower's `ask_user_response` races first-wins against a local answer, same
1477
- pattern as approvals. Local (non-remote) `ask_user` is unchanged.
1478
- - Tests: +37 (`router/models.ts` registry + selection reducer, `engine/moa.ts` fan-out against real
1479
- local HTTP servers incl. a failing proposer, `Session.setModel`/MOA dispatch, `activeModel`
1480
- persistence round-trip, `RemoteHost` ask_user frame shape + response routing). Suite 317/317.
1481
-
1482
- ## 0.1.50 — 2026-09-21
1483
- - Hardening from a Carmack/Karpathy/Boris/Hinton master review of the 0.1.49 bash tool + anti-loop:
1484
- - **Fixed (blocker):** enterprise-tier allowlist denied the new `bash` tool (only `shell_exec` was listed),
1485
- so every enterprise seat broke on the first shell command. `bash` added to `ENTERPRISE_ALLOW`.
1486
- - **Fixed (blocker):** the process-wide `ShellSession` had no serialization — a foreground turn and a
1487
- background sub-agent both calling `bash` could stomp each other's buffer and cross-deliver output/exit
1488
- codes. Added a FIFO promise-queue so overlapping calls run one-at-a-time; sentinel regex anchored to
1489
- start-of-line; fast-fail when the shell dies mid-command; bounded buffer so a runaway (`yes`) can't OOM.
1490
- - **Fixed (would false-stop real work):** the narration-loop guard now gates on PROGRESS — repeated prose
1491
- only counts as a loop when the prior tool batch returned nothing new, so a model using a fixed template
1492
- over productive, varying work is never wrongly halted. Fingerprint is Unicode-aware (non-Latin narration
1493
- no longer exempt) and strips embedded tool-call JSON (text-recovered calls fingerprint the prose).
1494
- - Carmack shell-systems pass: spawn the persistent shell **detached** and kill by process GROUP so a
1495
- timed-out command's backgrounded grandchildren (`&` jobs) don't orphan (#6); wire `disposeShellSession()`
1496
- into the CLI exit/SIGTERM handlers so the shell never orphans on normal exit (#5, previously dead code);
1497
- add a `stdin` error handler so an EPIPE from a kill/write race can't crash the whole CLI (#7). The
1498
- `exit`-kills-bash fast-fail (#3) and buffer bound (#8 memory) already landed above.
1499
- - Known follow-ups (flagged by the review, not in this release): the permissions-layer `executeParallel`
1500
- fans unsafe tools through parallel `execute()` instead of the executor's sequential path (#1 — bash is
1501
- already covered by the queue above; other unsafe tools get a focused fix); backgrounded-child output can
1502
- bleed into the next command's buffer (#4 — needs per-job fds, a design change).
1503
- - Tests: +1 concurrency (overlapping run() serialize cleanly). Suite 332/332.
1504
-
1505
- ## 0.1.49 — 2026-09-21
1506
- - Added: **frontier `bash` tool** — a PERSISTENT shell session. `cd`, exported env vars, activated
1507
- venvs and shell functions now survive across bash calls like a real terminal, so the model sets
1508
- up once and reuses it instead of re-running `source .../activate && ...` on every call (the root
1509
- cause of the clumsy heredoc gymnastics + repeated-call loops seen in the wild). stdout/stderr come
1510
- back merged with the exit code; a per-command timeout kills+respawns the shell so a runaway command
1511
- can never wedge the session. `shell_exec` kept as a back-compat alias to the same engine.
1512
- - Implementation: `src/tools/shell-session.ts` (ShellSession, sentinel-framed, sandbox-wrapped via
1513
- `wrapInteractiveShell`); `registry.ts` routes shell_exec/bash through one per-process session; a
1514
- scoped `cwd` arg runs in a subshell so it doesn't silently move the session.
1515
- - Tests: +4 shell-session (cwd persists, env persists, stderr+exit surfaced, timeout recovers).
1516
- - 0.1.48 (Nova, merged earlier): /model command + MOA (Mixture of Agents) execution mode + model
1517
- registry (aurora-1m / aurora-128k / moa); ask_user remote-control relay emit; QuestionPrompt Ctrl-C
1518
- → DISCUSS; RemoteHost inbound-frame sessionId/ownerSub guard. Variant B web on 0perator.co.
1519
-
1520
- ## 0.1.47 — 2026-09-21
1521
- - Added: agent-cursor overlay tools curated into chauffeur's unprompted read set
1522
- (`set_agent_cursor_enabled`, `set_agent_cursor_theme`, `get_agent_cursor_state`) so the owner can SEE the
1523
- agent's mouse move on screen instead of driving blind.
1524
- - Added: `verify_state` (bounded read-only post-condition check) curated as a read, so the model can confirm
1525
- an action landed instead of guessing from the next screenshot.
1526
- - Strengthened: EMBODIMENT_GUIDE now has a firm directive — for ANY on-screen/click/read/drive request the
1527
- model MUST call the chauffeur tools (first call: `list_windows`), never answer from memory or claim it
1528
- can't see the screen. It also now enables the agent cursor at the start of any on-screen task.
1529
- - Tests: +3 chauffeur curated-set tests (cursor tools land as unprompted reads, no duplicates and set stays
1530
- focused at 26 tools, no destructive/session-ending/recording/update tool sneaks in). Suite 280/280.
1531
-
1532
- ## 0.1.46 — 2026-09-21
1533
- - Added: `scratchpad` tool — a private per-session notes file OUTSIDE the workspace (read with no args;
1534
- append, or mode:"overwrite"), so the model can think/track progress without cluttering the repo.
1535
- - Added: `session_handoff` tool — write a note for your FUTURE self in this directory (what you did, state,
1536
- next steps); it is auto-loaded into the system prompt at the start of the next session here, so Operator
1537
- resumes seamlessly. Files live under ~/.axe/operator/{scratch,handoff}.
1538
- - Tests: +4 scratchpad/handoff (append/read/overwrite, save/read-back, fail-safe). Suite 277/277.
1539
-
1540
- ## 0.1.45 — 2026-09-21
1541
- - Fixed: chauffeur computer-use looped ("session has ended", stale window ids, fell back to hand-written
1542
- osascript). Root cause: the MCP client discarded each tool result's `structuredContent`, where chauffeur
1543
- returns the real data (window list with ids, accessibility tree) while the text is only a summary
1544
- ("Found 76 windows."). `flattenResult` now includes structuredContent. Verified live end-to-end.
1545
- - Added: chauffeur session-lifecycle tools (start_session/get_session/list_sessions) so the model recovers
1546
- instead of looping; rewrote embodiment guidance (no `session` arg, fresh window_id per read, never
1547
- osascript a GUI).
1548
- - Added: honest token/prefill telemetry — live line shows "reading your prompt..." during prefill (not a
1549
- frozen "0 tokens"); settled metric shows output tok @ decode tok/s + prefill size; a cumulative session
1550
- token total (ΣNk) on the status rule.
1551
- - Tests: +5 MCP (flattenResult surfaces structuredContent). Suite 273/273.
1552
-
1553
- ## 0.1.44 — 2026-09-21
1554
- - Fixed: tool-step lines truncated the whole args blob, hiding the file path behind `content`. Now
1555
- identifying args (path/command/url/...) show first and in full; bulky payloads (content/text) show as a
1556
- size. file_write/edit/read/shell_exec always show the exact file + path.
1557
- - Tests: +5 tool-step. Suite 268/268.
1558
-
1559
- ## 0.1.43 — 2026-09-21
1560
- - Fixed: the render "everything scrolls to the top" collapse. The streaming answer rendered in Ink's
1561
- dynamic (non-Static) frame; once taller than the window Ink cleared to the top and scrolled the
1562
- transcript away at the live->settle transition. `Transcript.liveTail` bounds the live view to a small
1563
- wrap-counted tail; the full answer still renders via <Static>. Reproduced + verified with a pty+pyte
1564
- harness at 315x65.
1565
- - Tests: +4 transcript (height bound). Suite 263/263.
1566
-
1567
- ## 0.1.42 — 2026-09-21
1568
- - Added: ask_user always offers a final free-text "Chat about it - type your own reply" option beyond the
1569
- model's choices; typed text returns to the model verbatim. Keystroke logic is a pure, tested reducer.
1570
- - Changed: computer tasks run end-to-end from one instruction - chauffeur READS run unprompted, only
1571
- ACTIONS ask; system prompt tells the model to read/decide/act itself, not walk the owner through steps.
1572
- - Tests: +7 ask_user reducer. Suite 259/259.
1573
-
1574
- ## 0.1.41 — 2026-09-21
1575
- - Added: chauffeur computer-use driver wired into embodiment as a curated 19-tool MCP hub (scoped, not the
1576
- whole fleet), plus a general `tools` allowlist on MCP server config. System prompt steers Aurora to read
1577
- UIs via chauffeur's textual accessibility tree instead of hand-rolling osascript. Enable with
1578
- KODE_COMPUTER=1. Suite 252/252.
1579
-
1580
- ## 0.1.40 — 2026-09-21
1581
- - Fixed: status-rule wrap-creep — the rule mixed box-drawing with dingbat glyphs and could render at
1582
- exactly the terminal width, wrapping and creeping the frame. Now measured with a conservative cellWidth
1583
- and truncated so it is always cols-1.
1584
- - Fixed: file tools ignored a leading `~` (file_write "~/Downloads/x.md" wrote to a literal "~" folder and
1585
- claimed success). A shared expandPath now runs before the sandbox check on every path tool.
1586
- - Tests: +43 status-rule width, +2 path. Suite 252/252.
1587
-
1588
- ## 0.1.39 — refactor: dedup the exec helper; close a destructive-rm signature-line gap.
1589
- ## 0.1.38 — /remotecontrol prints a shareable 0perator.co follower link.
1590
- ## 0.1.37 — /think and /ultrathink extended-reasoning modes.
1591
- ## 0.1.36 — ask_user interactive clarification tool.
1592
- ## 0.1.35 — @file mentions: inline a file by typing @path.
1593
- ## 0.1.34 — Plan Mode: read-only research + propose, then approve to execute.
1594
- ## 0.1.33 — grep_search survives special files (sockets/FIFOs); AXE identity.
1595
- ## 0.1.32 — warm a cold-started Aurora so the first turn is fast.
1596
- ## 0.1.31 — swarm dashboard live-tails events.jsonl; /dashboard command.
1597
- ## 0.1.30 — control-plane visibility: permission tier seat badge + /audit.
1598
- ## 0.1.29 — human-signature lines: money/prod/destructive always require a human.
1599
- ## 0.1.28 — control plane: tool tiering (admin/enterprise/readonly) + frozen OperatorEvent stream.
1600
- ## 0.1.27 — service lever: ensure Aurora/autopilot are up on start; /services.
1601
- ## 0.1.26 — /remotecontrol host + WebSocket relay broker (remote-drive a session), live E2E.
1602
- ## 0.1.25 — pin SearXNG to independent non-Microsoft engines by default.
1603
- ## 0.1.24 — publish the web_search fixes (SearXNG lifecycle + default engine).
1604
- ## 0.1.23 — Operator auto-manages a local SearXNG container; autopilot fallback.
1605
- ## 0.1.22 — web_search backend is a first-class setting.
1606
- ## 0.1.21 — Gradient Constellation masthead as the boot banner.
1607
- ## 0.1.20 — fix CI-red sandbox symlink tests (component-wise readlink resolution).
1608
- ## 0.1.19 — enterprise header polish (✷ mark + bright wordmark + info), reflow-safe.
1609
- ## 0.1.18 — fix input area creeping to the top on keystroke (exact-width status-rule wrap).
1610
- ## 0.1.17 — fix empty-turn recovery 400 (no second system message), caught by a live test.
1611
- ## 0.1.16 — background/detached shell + task-management tools.
1612
- ## 0.1.15 — grandmaster sub-agents: 4 engine mechanisms.
1613
- ## 0.1.14 — fix launch crash (Rules of Hooks) + turn metrics readout.
1614
- ## 0.1.13 — web_search backed by AXE autopilot (drop DDG/Playwright scrape).
1615
- ## 0.1.12 — web_search tool + auto-load project context (AGENTS.md/CLAUDE.md).
1616
- ## 0.1.11 — finish_reason handling + fix the empty-turn user-directive leak.
1617
- ## 0.1.10 — render markdown in the transcript (was showing raw ** / backticks).
1618
- ## 0.1.9 — sandbox read-containment for credentials (security P1).
1619
- ## 0.1.8 — close the sandbox symlink-write bypass (security P1).
1620
- ## 0.1.7 — stream the model's thinking, dimmed above the answer.
1621
- ## 0.1.6 — computer control (macOS embodiment) with per-action approval.
1622
- ## 0.1.5 — smooth email-code sign-in as the default `operator auth login`.
1623
- ## 0.1.4 — input bounded between two rules (status rule above, plain rule below).
1624
- ## 0.1.3 — live turn timer: token count, tok/s, and elapsed all tick during a turn.
1625
- ## 0.1.2 — minimal masthead: drop divider rules, status text in the corner.
1626
- ## 0.1.1 — device-login opens the browser with the code embedded (one-click connect).
1627
- ## 0.1.0 — reliable local-file search + clearer `operator update`.
1628
- ## 0.0.3–0.0.9 — Operator persona default; 1M-context awareness; status-rule metrics; media-attachment
1629
- chips; context self-poisoning fix (session file out of cwd + grep line cap); platform:neutral bundle fix.