@0perator/operator 0.1.235 → 0.1.262

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 (68) hide show
  1. package/README.md +2 -1
  2. package/dashboard/server.mjs +1 -1
  3. package/dist/acp/agent.js +290 -62
  4. package/dist/acp/auth.js +44 -0
  5. package/dist/acp/prompt.js +41 -0
  6. package/dist/acp/run.js +40 -15
  7. package/dist/acp/tool-map.js +48 -0
  8. package/dist/auth/byo.js +15 -8
  9. package/dist/auth/client.js +12 -6
  10. package/dist/auth/commands.js +39 -4
  11. package/dist/auth/identity.js +136 -0
  12. package/dist/auth/store.js +7 -5
  13. package/dist/autonomy/board.js +3 -2
  14. package/dist/autonomy/cron.js +332 -0
  15. package/dist/autonomy/delegate.js +168 -0
  16. package/dist/autonomy/media-robot.js +2 -3
  17. package/dist/autonomy/routines.js +5 -4
  18. package/dist/autonomy/session-factory.js +6 -1
  19. package/dist/browser/cdp.js +266 -0
  20. package/dist/browser/session.js +286 -0
  21. package/dist/cli.js +75 -11
  22. package/dist/config/brand.js +3 -3
  23. package/dist/config/home.js +70 -0
  24. package/dist/config/managed.js +230 -0
  25. package/dist/config/persona.js +59 -9
  26. package/dist/config/scaffold.js +142 -0
  27. package/dist/config/settings.js +38 -4
  28. package/dist/config/skills-index.js +175 -0
  29. package/dist/consolidation/scheduler.js +3 -3
  30. package/dist/consolidation/sleep.js +3 -3
  31. package/dist/engine/agent.js +104 -17
  32. package/dist/engine/aurora.js +6 -0
  33. package/dist/engine/batch-scheduler.js +128 -0
  34. package/dist/engine/json-repair.js +105 -0
  35. package/dist/engine/messages.js +50 -3
  36. package/dist/engine/rolling-summary.js +7 -5
  37. package/dist/enterprise/cli.js +137 -0
  38. package/dist/flywheel/processor.js +30 -2
  39. package/dist/flywheel/secret-gate.js +123 -0
  40. package/dist/mcp/index.js +18 -24
  41. package/dist/memory/index.js +0 -0
  42. package/dist/memory/session-index.js +324 -0
  43. package/dist/memory/session-rewind.js +92 -0
  44. package/dist/memory/state-maintenance.js +441 -0
  45. package/dist/observability/index.js +3 -3
  46. package/dist/permissions/index.js +24 -12
  47. package/dist/router/models.js +27 -8
  48. package/dist/selfimprove/index.js +9 -7
  49. package/dist/session.js +16 -6
  50. package/dist/skills/catalogue.js +167 -0
  51. package/dist/telemetry/audit-verify.js +94 -0
  52. package/dist/telemetry/events.js +86 -6
  53. package/dist/telemetry/lifecycle.js +18 -0
  54. package/dist/tools/deferred.js +117 -0
  55. package/dist/tools/executor.js +19 -20
  56. package/dist/tools/memory.js +117 -0
  57. package/dist/tools/registry.js +152 -21
  58. package/dist/tools/sandbox.js +63 -17
  59. package/dist/tools/searxng.js +2 -2
  60. package/dist/tools/tool-output-spill.js +2 -2
  61. package/dist/ui/Transcript.js +14 -2
  62. package/dist/ui/useInputHistory.js +3 -3
  63. package/dist/vault/cli.js +48 -0
  64. package/dist/vault/store.js +157 -0
  65. package/dist/vault/tool.js +50 -0
  66. package/package.json +3 -5
  67. package/CHANGELOG.md +0 -2487
  68. package/dist/ui/BusTray.js +0 -70
package/CHANGELOG.md DELETED
@@ -1,2487 +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.235 — 2026-10-07 — rename the local-tier model to a clean codename (qwen3-4b → scout)
8
- Better `/model` names for the local tier (fleet voice: Ghost, Aurora). `qwen3-4b` → **Scout** (id + label);
9
- the registry `model` field still points at the real file path, so it's a presentation-layer rename — no
10
- retraining, no path change, reversible. The novel-model candidates benched next get codenames too (Rogue =
11
- abliterated nano, Blade = Sonnet-distill, Flash = Opus-distill, Cipher = stock thinking) and are wired into
12
- the picker only if they win the bench. id-enumeration tests updated.
13
-
14
- ## 0.1.234 — 2026-10-07 — Qwen3-4B wired as the fast local tier (/model qwen3-4b)
15
- Operator's picker had only mid/large models; added a small fast LOCAL tier. Picked from a fleet-wide 3B-class
16
- review whose honest headline is: NO 3B model had ever been execution-graded (the coding/tool-use harnesses only
17
- ran on 32B+), so this is the evidence-led default pending a dyno bench.
18
- - New BUILTIN_MODELS entry `qwen3-4b` (Qwen3-4B stock `qwen3-4b-mlx-q4`, 2.26GB MLX, Qwen3 vocab 151936 =
19
- ghost-matched). Served on JL1:8110 via `mlx_lm.server` under launchd `com.axe.qwen3-4b-serve` (KeepAlive).
20
- - ctx 32000 (deliberately < LEAN_HARNESS_CTX) so a small model gets the LEAN harness. Measured: lean request
21
- ~11.7k tok (sys 5.8k + tools 5.9k) vs operator-1m full ~13.7k — fits with room.
22
- - Why Qwen3-4B: tops the only like-for-like 3B head-to-head (May Armada), shares ghost's exact vocab (so it's
23
- the quick tier AND the spec-decode vocab lineage). phi4-mini is the only other evidenced small model but is
24
- phi-vocab (never a draft). Not wired: replit (build never happened, 4096 ctx), starcoder2 (no chat template),
25
- parser/imi-3b (narrow IMI).
26
- - Findings (measured): a heavy-MCP env ballooned the prompt to 46k and overran the 4B — MCP must stay off for
27
- the small tier (the deferred-tool-catalog case); and with ghost on JL1's GPU, qwen3-4b cold-prefill is slow
28
- (~186 tok/s, ~63s for 11.7k) though warm turns are 0.46s — a fast cold tier wants GPU headroom.
29
- - id-enumeration tests updated (BUILTIN_MODELS 6→7). Full suite 1053/1053. Decision:
30
- _ai-docs/decisions/2026-10-07-qwen3-4b-local-tier.md. Next: dyno/coding-eval the review's shortlist, promote
31
- the winner.
32
-
33
- ## 0.1.233 — 2026-10-07 — voice in the CLI: voice_speak + voice_transcribe (Hermes-parity gap #3)
34
- operator-voice (:8099 — Kokoro TTS + whisper.cpp STT) already served iOS/web, but the engine registry had
35
- zero tts/stt tools, so the Ink/headless agent could neither speak nor hear. Added two native tools, inline in
36
- registry.ts alongside the media-broker tools (env-configurable base KODE_VOICE_URL, /health-gated, graceful
37
- when down) — always-registered, so they're in renderToolCatalogue + the mobile schemas too:
38
- - `voice_speak` (safe:false): POST /synthesize {text, voice} → WAV bytes → save + (default) play locally via
39
- afplay on macOS. play:false = synthesize + save only (for a surface to play); headless/remote saves without
40
- playing. Default voice bf_emma (the Operator/Cortana voice). Use it to actually SAY something to the owner.
41
- - `voice_transcribe` (safe:true): multipart POST /transcribe of any ffmpeg-readable audio → {text}.
42
- - Reuses the media base-URL/health/auth helpers; AGENTS.md gains a Voice capability line.
43
- - Tests: test/voice-tools.test.mts (6, mocked fetch — live :8099 never touched). Full suite 1053/1053.
44
- - LIVE-VERIFIED (real :8099): round-tripped voice_speak("Operator voice test. One two three.", play:false) →
45
- WAV → voice_transcribe → "Operator voice test 123." — real TTS→STT works end-to-end.
46
- - Highest proof-per-effort of the 7 Hermes-parity gaps (backend already existed). TUI push-to-talk affordance
47
- is the surfaces lane (flagged for jl1-apps).
48
-
49
- ## 0.1.232 — 2026-10-07 — fix: persona named two computer tools that don't exist
50
- The "Controlling this computer" persona section told the model to drive apps with `computer_app_open` /
51
- `computer_app_activate`, but the registry tools are `app_open` / `app_activate` (src/tools/computer.ts) — so
52
- those calls would fail as unknown tools. Corrected the prose to the real names (the other four in that line —
53
- computer_type/key/click/screenshot — were already right). The drift-proof path (renderToolCatalogue, 0.1.223)
54
- already renders real registry names; this was a hand-written secondary mention that drifted. Found by the
55
- skills-hub authoring pass. Full suite unaffected.
56
-
57
- ## 0.1.231 — 2026-10-07 — profile-bound bot sessions (the Bot Mode engine seam, Hermes-parity gap #1)
58
- The engine seam the messaging gateway + platform-adapter bots (the SURFACES lane) build against. A bot is NOT
59
- a new engine mode — it's a long-lived headless Session (already a Worker: send/interrupt/shutdown) whose
60
- settings are DERIVED per $KODE_PROFILE. New `src/autonomy/profile.ts` composes the existing
61
- createAutonomySession factory (engine loop untouched):
62
- - `ProfileConfig {id, model?, modelBase?, persona?, permissions?, recall?, cwd?, home?}` →
63
- `createProfileSession(baseSettings, profile)` → a driveable Session. Gateway constructs ONE per bot, drives
64
- it with `session.send(inboundMessage, handlers)` per chat turn (streams the reply via onDelta), so the bot
65
- remembers the conversation across turns.
66
- - `deriveProfileSettings` swaps the served model (endpoints.aurora.model, same as KODE_MODEL), activeModel,
67
- endpoint (cloud bot), persona (systemPrompt) — base never mutated. `deriveProfilePaths` ISOLATES each bot's
68
- memory + rolling summary under ~/.axe/operator/profiles/<id>/ so no bot ever touches the owner's live recall
69
- (the default files are live product state — the one prior poisoning incident was exactly this).
70
- - Safety: default permission posture is GATED + approver-less (safe/read tools run, mutations fail-safe deny),
71
- so a public bot taking untrusted chat can't rm -rf; widen only with an explicit per-profile policy.
72
- - Optional live "bot is working" feed via onComputerEvent/computerEnv through opts.extra (the 1.5.0 stream).
73
- - Tests: `test/profile.test.mts` (7) — path isolation, model/endpoint/persona swap with base-immutability,
74
- inherit-when-omitted, independent Worker per profile, onComputerEvent feed wires through. Full suite 1047/1047.
75
- - Spec for the gateway lane: _ai-docs/decisions/2026-10-07-profile-bound-bot-sessions.md (contract + safety +
76
- the skills/routines/persistence follow-ups). Engine contract unchanged (new module, no AgentOpts change).
77
-
78
- ## 0.1.230 — 2026-10-07 — runTurn emits ComputerEvents (engine contract 1.5.0) — unblocks the mobile Computer surface
79
- Follows 0.1.229's stream primitives. The 1.4.0 "2-line host wiring" (construct a ComputerEventStream + feed
80
- it via ComputerEventTracker) is for a TS host that HOLDS the stream — desktop Electron runs the real engine.
81
- Mobile does NOT: it runs a prebuilt lean browser bundle in JSCore and Swift only sees bridge callbacks, so it
82
- can't wire a tracker. FIX: an opt-in first-class callback so the engine itself produces the feed.
83
- - New `AgentOpts.onComputerEvent?(e: ComputerEvent)` + `AgentOpts.computerEnv?` — when set, `runTurn` emits one
84
- typed ComputerEvent per tool call (start before it runs, end when it resolves), normalized into the
85
- {env, tool, action, title, payload} taxonomy with a monotonic seq. A prebuilt host forwards it across its
86
- bridge with no tracker wiring; a TS host that wants replay/retention can still hold its own stream instead.
87
- - Internals: the callbacks are composed at the runTurn level (a stream + tracker + subscribe(0, cb)), reusing
88
- the 1.4.0 primitives — `runToolCalls` is UNTOUCHED, and the feed is OFF unless onComputerEvent is set, so
89
- existing hosts see zero behavioural change. `env` stays a host fact (default "sandbox").
90
- - Tests: `test/computer-event-emit.test.mts` (3) — start+end in seq order stamped with computerEnv + the typed
91
- edit args (old_string/new_string/file_path) the diff tabs need; feed OFF by default = no behavioural change;
92
- original onToolStart/onToolResult still fire alongside. Full suite **1040/1040**. Contract 1.4.0 → **1.5.0**.
93
- - Pairs with: a rebuilt `kode-mobile/Resources/engine.bundle.js` (the lean browser build) carrying this surface,
94
- handed to the mobile lane so OperatorComputerSheet consumes the typed stream (James's top priority: watch live).
95
-
96
- ## 0.1.229 — 2026-10-07 — 0perator Computer event stream (typed, retained, replayable action log) — engine contract 1.4.0
97
- Ships the CONTRACT that 0perator Computer Phase 2 ("truly watch the agent work") is built on. The existing
98
- host callbacks (`onToolStart`/`onToolResult`/`onToolBatch`) are ephemeral UI hints scoped to one attached
99
- renderer — a watcher that connects late has already missed everything. New engine surface
100
- (`src/engine/computer-event.ts`), exported from BOTH barrels incl. the shared browser bundle where the
101
- Computer surface renders in kode-web/kode-mobile:
102
- - `ComputerEvent {seq, ts, env, tool, action, title, payload}` — `env` ∈ sandbox|cloud|mine|browser (WHERE),
103
- `tool` ∈ terminal|editor|browser|file (WHAT surface). `seq` is monotonic — the resume key.
104
- - `ComputerEventStream` — a bounded ring buffer (default cap 1000). `subscribe(afterSeq, fn)` **replays every
105
- retained event past afterSeq, then follows live** in one call; a reconnect past the retention window
106
- surfaces as an explicit seq gap (first replayed seq > have+1), never a silent hole. `snapshot()` +`head`.
107
- - `ComputerEventTracker` — correlates the two engine callbacks into paired start/end events (`onToolResult`
108
- carries only id+result, so it remembers each batch's pending calls by id). Host wires it in two lines.
109
- - Design principle: `env` is a HOST fact stamped by the host, so **`agent.ts`'s turn loop is untouched** —
110
- zero regression risk to the releases shipped this window. Additive → contract 1.3.0 → **1.4.0** (MAJOR
111
- unchanged, so conformance fixtures pass).
112
- - Next slice (follow-up, for review): host wiring in cli.tsx + the JL2/cloud relay path with a `resume=<seq>`
113
- socket handshake; browser-MCP tools pushing fully-formed `browser` events; persistence to the handoff
114
- store; admin "view live session by id" gated at the relay by the account/authz pass.
115
- - Tests: `test/computer-event.test.mts` (12) — seq/ts, ring-buffer eviction, replay-then-follow, gap
116
- signalling, subscriber isolation, name→lane normalizer, tracker correlation. Full suite **1037/1037**.
117
-
118
- ## 0.1.228 — 2026-10-07 — turn-continuation (keep going on real work, stop on circles) + curated-only skill list + richer reasoning + tool-row shimmer + Operator branding boundary
119
- (0.1.227 is reserved by the parallel `dyno-build` branch; this bundle takes 0.1.228 to avoid the clash.)
120
- - TURN-CONTINUATION — ROOT CAUSE: a turn continued only while the model returned tool calls, so a TEXT-ONLY reply
121
- ending on an unperformed announcement ("Let me implement these now.", "Now I'll run the tests.") finalized the turn
122
- with the work undone. FIX: `engine/continuation.ts` `detectUnfinishedAction()` reads the tail of a text-only
123
- response; on a first-person announcement of a tool-shaped action (and NOT a question, hand-back, deferral,
124
- contingency or summary) the loop injects ONE user-role nudge and continues. Capped at 2 per turn. Off in plan mode,
125
- with no tools, on a truncated reply, `turnContinuation.enabled=false`, or `KODE_TURN_CONTINUATION=0`.
126
- - THE PAIRED STALL GUARD: (1) identical-call counts now reset only when a mutating call LANDED (`mutationLanded`) —
127
- a failing `file_edit` ("error: old_string not found") used to clear them, letting a model alternate a failing edit
128
- with the same poisoned call forever (fixed in both `runToolCalls` and `Executor.execute`); (2) NEW converge-or-stop:
129
- 25 consecutive tool rounds with no new narration and no landed edit stop the turn with an honest
130
- `[stopped — not converging: …]` (poll-only rounds neither count nor reset). Catches the model that varies its args
131
- every round, never answers, never edits.
132
- - SKILLS-TRIM: `skill_list` with no query returns OUR curated skills only (community `community__`/`:` slugs dropped,
133
- with a count and a pointer); a search query still includes community; `skill_fetch` takes any slug. Ends the 200+
134
- ClawHub dump in the default list.
135
- - RICHER REASONING: `/think` now carries a directive asking the model to write its thinking as readable copy
136
- (options weighed, why one won, tradeoffs, the plan), ~2-3× the detail, no ultrathink needed. ROOT CAUSE found
137
- alongside: 0.1.219 defaulted `ui.reasoning` to "think" but only the UI badge; the `Session` still started "off" (no
138
- native thinking, no directive) until `/think` was toggled. `SessionConfig.thinkMode` now seeds the foreground
139
- session from the same setting (`settings.ui.reasoning:"off"` is the speed switch). Persistence verified: a settled
140
- entry keeps its reasoning (dim, above the answer) in both transcripts; pinned by a render test.
141
- - TOOL SHIMMER: a RUNNING tool row's name shimmers in its kind's hue (`huePalette`, ~55% rest → hue-toward-white
142
- peak) on the shared tick; it stops when the tool settles. No new timer.
143
- - BRANDING BOUNDARY: `kode` is internal; `Operator` / `0perator` is the only external name. Every string a USER
144
- reads that named the internal product or a `KODE_*` env var now says Operator or points at a setting. New
145
- `/mcp on|off` (live for the session via `Session.enableMcp`, persisted as `settings.mcp`) replaces the "set
146
- `KODE_TSI_MCP=1`" instruction in HELP, the `/mcp` status line, the persona and the tool catalogue. Also reworded:
147
- the non-TTY error, the engine's system-message invariant errors, the token-budget pause note, the dream/computer/
148
- sleep-consolidation "how to enable" hints (now settings keys), and the image/video/vision/compose/Jina/web_search tool
149
- errors (no env-var names). The npm description, README title/intro and install.sh header say Operator; the `kode-tsi`
150
- bin alias still exists but is not advertised. NOT renamed: the `KODE_*` env vars, package/repo internals, the
151
- gateway-facing User-Agent strings (functional, not user-read). `test/branding-boundary.test.mts` (5) guards it: the
152
- rendered persona/catalogue/tool schemas are kode-free and no prose string literal in `src/` names `KODE_*` or `kode`.
153
- - AMENDED TEST: `agent-progress-cap` "very long progressing task" scripted 250 silent varied-arg rounds, which is
154
- precisely what converge-or-stop stops; its script now narrates every 10th round (intent unchanged). Logged in the
155
- decision doc.
156
- - 1025/1025 tests, 136 files (999 at 0.1.226 + 26 new: `turn-continuation` 11, `skills-trim` 3, `think-directive` 4,
157
- `branding-boundary` 5, `shimmer` +2, `loop-guard-mutation-reset` +1). `turn-continuation` fails 6/11 and the loop-guard test 1/4 on the 0.1.226
158
- source. Decision: `_ai-docs/decisions/2026-10-07-ux-bundle-autonomy-reasoning.md`.
159
-
160
- ## 0.1.226 — 2026-10-06 — permissions parity: the safe-tool allowlist is derived from the registry, so gated/plan/dream/manual stop denying registry-safe read tools (search, read_files, git_status, web_search, …); readonly still excludes every mutating tool
161
- - ROOT CAUSE: `DEFAULT_SAFE` (`permissions/policy.ts`) was a hand-copied 5-item list (`file_read`, `grep_search`,
162
- `list_directory`, `memory_search`, `web_fetch`) that had drifted from the registry. 12 tools the registry marks
163
- `safe: true` (`search`, `read_files`, `git_status`, `web_search`, `task_list`, `bash_output`, `scratchpad`,
164
- `session_handoff`, `image_analyze`, `video_analyze`, `skill_list`, `skill_fetch`) got `ask` in gated mode, which
165
- is a denial wherever there is no approver: plan mode could not read git state (`git_status` denied,
166
- `git_command` is mutating) or use `search` / `read_files` / `web_search`; `operator dream` hit the same; manual
167
- mode prompted on every `search`. `tier.ts` (`ENTERPRISE_ALLOW`, `READONLY_ALLOW`) omitted the same tools, plus
168
- `session_handoff` and `task_clear`, so enterprise seats were told to call `session_handoff` and then denied.
169
- - FIX: `registrySafeTools()` (names of registry entries with `safe === true`) now feeds `DEFAULT_SAFE` and both
170
- tier allowlists. Enterprise = every safe tool + an explicit mutating set (adds `task_clear`, session-local like
171
- `task_add`/`task_update`); still denies `http_request`, `file_upload`, `image_generate`, `video_generate`,
172
- `image_recreate`, `artifact_create`, `mcp__*`, `computer_*`. Readonly = every safe tool minus
173
- `READONLY_SAFE_EXCLUDED` (`scratchpad`, `session_handoff`: registry-safe but they write state, `session_handoff`
174
- into the next session's prompt) — no mutating tool can be in it. Gated mode now allows all 17 registry-safe tools.
175
- - 999/999 tests, 132 files. New `test/permissions-parity.test.mts` (12): every registry `safe:true` tool is
176
- `allow` in gated; the 12 drifted tools by name; non-safe tools still `ask`; the plan/dream shape through
177
- `withPermissions` (no approver); enterprise grants safe + core, denies egress/spend/publish; readonly leak guard
178
- over the whole registry + 19 named mutating tools. Fails 6 of 12 on the 0.1.225 lists.
179
- Decision: `_ai-docs/decisions/2026-10-06-permissions-parity.md`.
180
-
181
- ## 0.1.225 — 2026-10-06 — tool-execution safety: checkpoint scopes git-add to the cwd subtree (no more staging the enclosing repo) + executeParallel preserves call order (dependent write→read no longer races)
182
- - FIX 1 (data safety) — ROOT CAUSE: the `checkpoint` tool ran `git add -A` with NO pathspec. `-A` stages the
183
- whole ENCLOSING repo regardless of cwd, so a checkpoint from `~/.axe/repos/x` staged (and, with `--no-verify`,
184
- committed) sibling dirs — up to the 2GB `~/.axe` monorepo, the exact "git add under ~/.axe resolves UP into
185
- the monorepo" trap. Now `git add -A -- .` (the working subtree only; the no-enclosing-repo `git init` guard is
186
- unchanged), and a new optional `paths: string[]` param stages ONLY those explicit entries (all after `--`, so a
187
- `-leading` name is never an option). Persona `## Git` line reconciled with "never a blanket add in a shared
188
- checkout": it now says checkpoint stages only the cwd's subtree and to pass `paths` for specific files.
189
- - FIX 2 (correctness) — ROOT CAUSE: `executeParallel` ran EVERY `safe` call first (concurrently) and only THEN the
190
- unsafe ones, so input order was lost: `[file_write f, file_read f]` read the file pre-write (ENOENT);
191
- `[file_edit, grep_search]` and `[bash mkdir, git_status]` read pre-mutation state. The persona tells the model
192
- to batch independent calls in one message, so this bit real usage. Now it walks the calls in INPUT ORDER: a
193
- contiguous run of consecutive safe calls runs together (`Promise.all`, each result in its own slot), and each
194
- unsafe call runs ALONE, awaited in place. Order-preserving; parallelism only inside a contiguous safe run.
195
- `onSettle` still reports each call's original index.
196
- - 987/987 tests, 131 files. New `test/executor-parallel-order.test.mts` (6) — write→read sees the write, edit→grep sees post-edit
197
- state, interleaved results + start/end order, adjacent safe reads overlap, an unsafe call never overlaps
198
- anything, onSettle indices; new `test/checkpoint-scope.test.mts` (3) — real git, checkpoint from a subdir with a
199
- sibling dir + root file (modified/new/deleted) commits only the subtree and leaves nothing staged outside it,
200
- `paths` stages only the named entries, fresh-dir init unchanged. Both new files fail on the 0.1.224 code.
201
- Decision: `_ai-docs/decisions/2026-10-06-tool-execution-safety.md`.
202
-
203
- ## 0.1.224 — 2026-10-06 — unify the system prompt (TUI now uses basePersona: Direct/unrestricted + media + verify rules on the interactive path) + lean catalogue + MCP-data-driven catalogue + newest-memories
204
- - ROOT CAUSE: `cli.tsx` built the interactive system prompt from its OWN inline ~0.95K-token string and never
205
- imported `basePersona()`; only the headless factory (`autonomy/session-factory.ts`) used the ~4.3K persona.
206
- So the TUI lacked 15 `basePersona` sections — the whole **Direct/unrestricted** block (the "keep the model
207
- abliterated" guarantee was false on the interactive surface), the media rules (`image_generate` /
208
- `image_analyze`, the identity/likeness path), verify-by-running, fix-what-you-find, the AXE self-check,
209
- RAM/serving guard, narration, web-search/skills/compose disambiguation, HTTP, Git.
210
- - `config/persona.ts` `composeSystemPrompt({ settings, cwd, ctxTokens, lean, interactive })` is now the ONE
211
- assembly; `cli.tsx` and `buildHeadlessSystemPrompt` both call it. Only the interactive-only parts differ:
212
- a `## Sub-agents` section (spawn_agent) and the computer-control embodiment guide (moved out of `cli.tsx`).
213
- - `basePersona(cwd, { ctxTokens, interactive })`: the Context-window line states the active model's REAL
214
- window (was a hard-coded 300K — wrong for a 128K model), neutral when unknown; cli.tsx's richer "Finding
215
- things" (bounded `ls ~` + scoped `find`) and "Scratchpad & handoff" text replace the thinner ones.
216
- - `renderToolCatalogue(reg, { lean })`: lean (small-ctx model) skips the per-tool list (it duplicates the
217
- attached tool schemas) and keeps the MCP / `/commands` / headless-CLI / skills summary; the list is
218
- char-capped and the header states the true total + how many lines were rendered. The MCP section is now
219
- DATA-DRIVEN: a best-effort synchronous read of the owned-MCP registry (`$KODE_MCP_CONFIG` or
220
- `~/.axe/cli/backend/mcp_servers.json`) names the advertised servers (+ purpose) and counts the opt-in ones;
221
- a missing/garbled file falls back to a minimal static note, never throws.
222
- - `loadMemories` keeps the NEWEST notes under the cap (the file is append-only, so `slice(0, cap)` was
223
- dropping the new notes and keeping the oldest) — tail + leading `…`, like `loadHandoff`.
224
- - 978/978 tests, 129 files (new `test/system-prompt.test.mts` 10; `test/tool-catalogue.test.mts` 5 → 9):
225
- interactive/headless/lean contents, persona parity (every basePersona heading in the interactive prompt),
226
- embodiment gating, real-window line, custom `systemPrompt`, both call sites, newest-memories, MCP-driven
227
- catalogue + cap. Decision: `_ai-docs/decisions/2026-10-06-system-prompt-unification.md`.
228
-
229
- ## 0.1.223 — 2026-10-06 — Operator aware of its full tool/MCP/CLI/skill surface (persona capability index)
230
- - Added `renderToolCatalogue()` (`src/tools/registry.ts`) — a compact, SELF-MAINTAINING capability index
231
- rendered from the LIVE registry (every native tool one line: name + trimmed description, declaration
232
- order), plus the MCP layer (`KODE_TSI_MCP=1` → compose.casa etc.), the in-session `/commands`, the
233
- headless CLI modes (`operator run`/`loop`/`board`/`dream`/`media-robot`), and the 60k skills catalogue.
234
- Wired into BOTH system-prompt assembly sites — interactive (`cli.tsx` SYSTEM_PROMPT) and headless
235
- (`autonomy/session-factory.ts buildHeadlessSystemPrompt`) — so Operator gets the same high-level MAP of
236
- its whole surface on either path, included even under the lean harness (self-knowledge, not droppable).
237
- - WHY: the per-call tool SCHEMAS tell the model HOW to call each tool, but nothing gave it the high-level
238
- surface map — so it would under-use tools or claim capabilities it doesn't have. Rendering from the live
239
- registry (not prose) means a newly-added tool appears automatically and can't drift. Appended as a
240
- separate composed section (not inside a persona string) so it survives a custom `settings.systemPrompt`
241
- and lands identically on the interactive + headless paths (which today use different default personas).
242
- - 964/964 tests (new `test/tool-catalogue.test.mts`, 5; on top of 0.1.222's memory-isolation suite):
243
- covers every registered tool, the count, each surface class, and a merged native+MCP map. Kiyoko:
244
- decision `decisions/2026-10-06-operator-tool-awareness.md`.
245
-
246
- ## 0.1.222 — 2026-10-06 — test isolation: the suite can no longer write into the LIVE Operator_Memory store
247
- - `MemoryStore`'s default path and the tool registry's shared store resolved at IMPORT time, so
248
- `test/checkpoint-stale-lock.test.mts` (which runs the real `checkpoint` tool, SPEC §8 — it appends a memory
249
- note by design) had no way to redirect `KODE_MEMORY_FILE`: every suite run appended test rows into the
250
- agent's live `~/.axe/operator/Operator_Memory.jsonl`. On JL2 that was 53 of 103 rows — and the store's
251
- newest-6 is what every session injects into its system prompt, so recall was mostly test junk. Now:
252
- lazy `defaultFile()` + memoized registry store + a harness-wide `KODE_MEMORY_FILE ??= <tmp>/kode-test-memory-<pid>.jsonl`
253
- + a regression test pinning post-import env resolution. Prod default behavior byte-identical.
254
- RED (pre-fix): new test fails 13p/1f and a checkpoint run recreates the leak verbatim under a sandbox HOME;
255
- GREEN: checkpoint 2/2 with no live store written, memory-index 14/14. Full suite: 126 files PASS, 1 FAIL
256
- (`session-model.test.mts`) PRE-EXISTING at main tip — machine keychain leaks BYO connectors into built-in-list
257
- asserts (proved identically at pristine 2d1de3c); BYO test-isolation follow-up proposed separately.
258
- Decision doc: `_ai-docs/features/2026-10-06-test-memory-isolation.md`. Engine bundle regenerated (in-graph).
259
-
260
- ## 0.1.221 — 2026-10-06 — venice-24b → ghost-32b (self-hosted abliterated Qwen3-VL-32B) + kiyoko docs
261
- - Swapped the self-hosted small-model slot from `venice-24b` (held — JL1 RAM can't host a 24B + a 32B +
262
- Aurora warm at once; it was OOM-killed) to `ghost-32b`: abliterated Qwen3-VL-32B (Huihui Q4_K_M) served on
263
- JL1:8101 at 128K ctx, for side-by-side testing vs Aurora. Model count unchanged; id-enumeration tests
264
- updated (`models.test`, `session-model.test`). NOTE: the 32B's weights can swap out under the 128K KV on a
265
- loaded box — it must be re-served at a smaller ctx to stay resident + actually infer (fleet-capacity item).
266
- - Kiyoko: added decision `decisions/2026-10-06-model-agnostic-any-model.md` + convention
267
- `conventions/model-profile-id-enumeration-tests.md`, indexed.
268
-
269
- ## 0.1.220 — 2026-10-06 — compaction works for ANY model (small-ctx → summarize on the 300K default)
270
- - Compaction's summarizer ran on the ACTIVE model's endpoint (for prefix-cache reuse) — fine for Aurora's
271
- 300K, fatal for a small window: a self-hosted 8K model can't summarize its own overflow (the
272
- `[system + tools + span]` summarize request itself exceeds the window), so compaction frees nothing and
273
- the session walls ("compaction can't free enough space"). Now, whenever the active model's window is below
274
- `LEAN_HARNESS_CTX` (32K), the summarizer routes to the large-context DEFAULT (`DEFAULT_MODEL_ID`, Aurora
275
- 300K) instead — it trades the live-turn cache reuse for compaction that actually works. Large models keep
276
- the cache-safe same-endpoint path.
277
- - **Model-agnostic by construction** (keyed on ctx, not a model name): together with 0.1.218's lean harness,
278
- ANY model dropped into Operator now gets working compaction + hours-long autonomous sessions regardless of
279
- its context size — the platform supports small uncensored specialists and 300K workhorses alike.
280
-
281
- ## 0.1.219 — 2026-10-05 — show the model's reasoning by default (dim, live)
282
- - The dim reasoning stream (the model's thoughts, rendered `dimColor` above the answer as it generates —
283
- `cli.tsx` `liveReasoning` / `onReasoning`) was already wired, but gated off: `thinkMode` defaulted to
284
- "off" and the server runs `enable_thinking:false` for speed, so the model emitted no thought tokens and
285
- you saw only the spinner. Now `thinkMode` initializes from `settings.ui.reasoning` (default **"think"**),
286
- so every turn the model reasons and its thoughts stream dim above the answer — you watch the process live.
287
- Set `settings.ui.reasoning:"off"` for spinner-only, or `/think` to toggle per-session.
288
-
289
- ## 0.1.218 — 2026-10-05 — lean harness for small-context models (keeps them uncensored)
290
- - A small-context model (e.g. the self-hosted 8K `venice-24b`) can't hold Operator's full system prompt:
291
- `loadMemories()` + `loadHandoff()` are sized for Aurora's 300K and nearly fill an 8K window by themselves,
292
- which pinned `ctx` at 99% (the meter is `min(99, used/window)`, i.e. 99% FULL) and made the model RECITE
293
- the stored memory/handoff instead of answering ("hello" → a Session-Handoff dump).
294
- - Fix: below `LEAN_HARNESS_CTX` (32K) the heavy memory + handoff are dropped from the system prompt (both the
295
- TUI `cli.tsx` and headless `session-factory.ts`), **keeping `basePersona`** — including the `## Direct —
296
- the owner's private system` (unrestricted/no-refusal) section — so the model stays uncensored, plus a one
297
- line note so it answers from the live conversation rather than confabulating stored notes. Aurora/Qwen
298
- (128K+) are unaffected. New helper `modelCtxFor(id, overrides)` + `LEAN_HARNESS_CTX` in `router/models.ts`.
299
-
300
- ## 0.1.217 — 2026-10-05 — venice-24b live endpoint (self-hosted on JL1:8110)
301
- - Pointed the `venice-24b` profile at the real served endpoint: `http://192.168.1.103:8110/v1`, model
302
- `dolphin-venice-24b` (Dolphin-Mistral-24B-Venice Q4_K_M served via llama.cpp on JL1, bound 0.0.0.0 so the
303
- engine on JL2 reaches it over LAN), ctx 8192. The earlier placeholder (`:8098`) was never served, so
304
- `/model venice-24b` returned "fetch failed"; it now resolves. Runs alongside Aurora (`:8097`) — `/model`
305
- toggling is an instant endpoint swap (both resident), uncensored at the weights.
306
-
307
- ## 0.1.216 — 2026-10-05 — uncensored vision · video 524 fix (LAN-first)
308
- - `image_analyze` / `video_analyze` now send an uncensoring system prompt to the Qwen2-VL worker: describe
309
- anything factually, never refuse/moralize/disclaim. The engine-level unrestricted layer only ever sees
310
- `chat()` turns, not these direct vision HTTP calls, so the analyze side needed its own one-line steer —
311
- this keeps "generate HER" from dying on a VL refusal while it describes a reference photo.
312
- - **`video_generate` LAN-first** (`videoEndpoints`): added the JL2 video worker's direct LAN host
313
- (`192.168.1.146:8792`) ahead of the Cloudflare-fronted `video.axe.onl`. An LTX render takes >100s, which
314
- trips CF's ~100s edge timeout (524); the LAN path has no cap. Verified e2e — a 210s render that previously
315
- 524'd now completes (97 frames @ 24fps). CF host stays as the off-LAN fallback (needs the reverse-tunnel
316
- for off-LAN callers — separate owed item). Same fix as the identity broker's LAN-first ordering.
317
-
318
- ## 0.1.215 — 2026-10-05 — Venice self-hosted · uncapped vision · broader refusal detection
319
- - **Venice 24B is now SELF-HOSTED like Aurora, not a third-party BYO connector** (`src/router/models.ts`):
320
- `venice-24b` points at the fleet-served open weights (Dolphin-Mistral-24B-Venice-Edition on JL1 Ai Storage,
321
- llama.cpp `:8098`), no API key, no `byo`. This is the sovereign form the owner asked for; the BYO/cloud
322
- form from 0.1.213 is superseded. (Fixes the `models.test`/`byo-qwen.test` assertions 0.1.213 broke — Venice
323
- is no longer a BYO account, so "only the qwen account" holds again; only the built-in count moved 5→6.)
324
- - **Uncapped vision output** (`src/tools/registry.ts`): `image_analyze` / `video_analyze` / the internal
325
- `image_recreate` analyze no longer force `max_tokens` (was 512 / 600 / 400) — the cap is sent only when the
326
- caller sets it, so face/scene descriptions return in full instead of truncating mid-sentence.
327
- - **Broader refusal detection** (`src/engine/unrestricted.ts`): the detector now anchors on refusal VERBS
328
- with any object, so a real-world owner-facing refusal ("I can't help with removing safety filters…",
329
- "That's not something I can assist with", "I don't feel comfortable…") is caught and re-prompted — the
330
- tighter 0.1.214 patterns only matched a literal "help with that". Capability statements still pass.
331
-
332
- ## 0.1.214 — 2026-10-05 — AI-agnostic unrestricted mode (refusal detect + affirmative-prefill retry)
333
- - `engine/unrestricted.ts` — for this owner's private, self-hosted system: `detectRefusal()` catches a
334
- POLICY/MORAL refusal from whatever model drives Operator (content_filter stop, or targeted soft-refusal
335
- wording like "I can't help with that" / "as an AI language model" / "against my guidelines") while staying
336
- false on plain capability limits ("I can't find the file", "unable to locate X"). `buildAffirmativeRetry()`
337
- appends a one-line floor reminder (never leak secrets, never destroy production data) + a trailing
338
- assistant-role prefill so the model continues the task instead of re-refusing.
339
- - Wired into `engine/agent.ts`'s round loop: a tool-call-free, refusal-shaped round gets re-issued through
340
- `chat()` up to `UNRESTRICTED_MAX_RETRIES` (2) times, then falls through unchanged if still refusing — never
341
- fabricates compliance. Works on chat() OUTPUT only, so it's model-agnostic (Aurora, QwenCloud, any BYO
342
- OpenAI-compatible backend) without touching weights; never touches tool-permission gates or the
343
- `deniedReadAsync` credential-path guard. New setting `unrestricted` (default `true`), env `KODE_UNRESTRICTED=0`
344
- to disable. Design: `_ai-docs/features/2026-10-05-unrestricted-ai-agnostic.md`.
345
-
346
- ## 0.1.213 — 2026-10-05 — drop-in Venice 24B (uncensored) model connector
347
- - Added a `venice-24b` model profile (`src/router/models.ts`): Venice's uncensored 24B (`venice-uncensored-1-2`,
348
- Mistral-Small-24B base) at **128K context** (verified from Venice's live `/v1/models` catalog), reachable via
349
- `/model venice-24b` once connected. BYO keychain account `venice` (`operator auth byo venice`) — reuses the
350
- generic BYO store, no new command. `transport: "openai"`; the `authHeaders` scope guard never sends the
351
- Operator token to `api.venice.ai`. An uncensored Aurora alternative that complements the engine-level
352
- unrestricted layer (refusal-free at the weights + refusal-free at the engine).
353
-
354
- ## 0.1.212 — 2026-10-05 — search timeout 20s → 300s (don't bail on a big tree)
355
- - The `search` tool (ripgrep, grep fallback, and the standalone grep fallback) capped every search at **20s**,
356
- so a whole-home / large-tree search timed out with "narrow the path" instead of finishing. Raised to **300s**
357
- across all three paths — a normal search over a big directory now completes; the SIGKILL safety stays for a
358
- genuinely-stuck blocking special file. (The tool was already grep/rg-backed — the first attempt just searched
359
- gigabytes under one root.)
360
-
361
- ## 0.1.211 — 2026-10-05 — one-API gateway: engine hook + fleet route IaC
362
- - **Sovereign gateway consolidation** — `api.axe.onl` now carries unified fleet routes (`/images`, `/identity`,
363
- `/video`, `/artifacts`, `/skills`) in `api/nginx/api.axe.onl.conf` (infra-as-code; one door, same operator-token
364
- auth as chat, prefix-stripped to each broker). Keeps full sovereignty behind the facade. Design:
365
- `_ai-docs/2026-10-05-one-api-gateway.md`; routes + 524-via-reverse-tunnel note in `api/README.md`.
366
- - **Engine hook** `KODE_GATEWAY_URL` — when set, `image_generate` prefers `api.axe.onl/images/…` (fans out
367
- server-side), falling back to the per-broker URL + LAN. Opt-in, no change until set/deployed. identity/video
368
- stay direct until their reverse tunnels land (gateway→broker over CF would re-hit the 524 on long renders).
369
- - OWED (deploy, not live): push nginx conf to AXECore + reverse tunnels for /video + /identity + set
370
- `KODE_GATEWAY_URL` on the engines.
371
-
372
- ## 0.1.210 — 2026-10-05 — BYO vendor-key connectors: QwenCloud Token Plan joins /model (leak-guarded)
373
- - **Token scope (security):** `authHeaders` no longer sends the Operator bearer to ANY remote base — only
374
- `*.axe.onl` + private/LAN fleet hosts (paths unchanged) and never to loopback; an explicit per-endpoint
375
- vendor token always wins. A third-party base without its own key gets NO auth: the BYO-config leak class
376
- dies in code. RED-proven by reverting the scope line alone (leak test fails).
377
- - **`operator auth byo <account>`:** hidden keychain paste into the SEPARATE `axe-operator-byo` service
378
- (+ `KODE_BYO_<ACCT>` env tier + 0600 file fallback, mirrors auth/store.ts); memoized reads so the RC
379
- capabilities builder never spawns `security` per render.
380
- - **Profiles:** `ModelProfile.byo` + `transport` ("openai" = strict dialect: no cache_prompt / speculative /
381
- chat_template_kwargs; /think → documented `enable_thinking`; include_usage keeps exact metering on both).
382
- Threaded Endpoint → RouterEndpoint → AuroraOpts; engine stays node-free (neutral esbuild gate + regen).
383
- - **Built-ins:** `qwen3.8-max` + `qwen3.8-flash` on `token-plan.maas.qwencloudapi.com/compatible-mode/v1`
384
- (owner's Token Plan Lite — 11.5k credits/mo, night 60% off max/flash). Unconnected = invisible in both
385
- pickers and refused by selectModel with the exact fix command (SPEC/providers.md §1 honesty).
386
- - Decision doc: `_ai-docs/features/2026-10-05-qwen-token-plan-byo.md`.
387
- - Full suite **950 passed, 0 failed** (126 files; +5 new `test/byo-qwen.test.mts`, models pins updated);
388
- tsc clean; iOS engine bundle regenerated in-commit.
389
-
390
- ## 0.1.209 — 2026-10-05 — zero guardrails (owner directive): unbounded autonomy + direct persona
391
- - **Unbounded autonomy** (owner directive): default `maxTurnWallClockSec` 900→0 (no per-turn time brake),
392
- `maxRounds` 200→100000 (which also lifts the absolute ceiling via `max(softRounds+1, 400)`), loop limits
393
- essentially unbounded — Operator runs long tasks to completion. The genuine-STALL break (`loop.stallAfter`)
394
- stays as a correctness safety (not a limit). All settings-overridable to re-impose a cap. Permissions were
395
- already `mode: "bypass"` (zero gates) by default; app-side default is flipped separately.
396
- - **Direct persona**: on the owner's private local fleet, Operator does legitimate work directly — no moralizing,
397
- hedging, or unsolicited disclaimers. Floor kept: never leak secrets to tool output, never destroy prod data
398
- (fleet integrity, not behavior). Rate/usage limits unchanged.
399
-
400
- ## 0.1.208 — 2026-10-05 — native `artifact_create` tool + pink filling compaction bar
401
- - **New `artifact_create` tool** — makes a shareable artifact (HTML page / dashboard / SVG / markdown / DECK /
402
- interactive canvas) on compose.casa and returns a public clickable URL. Operator no longer hunts for the
403
- compose MCP, hand-rolls an HTML file, or asks "where should I put artifacts/" — it just makes one. Wraps the
404
- compose.casa JSON-RPC surface (`compose/create` + `compose/canvas`). Verified e2e: returned
405
- `https://compose.casa/v/19b25cba`. This is the foundation for decks/designs/presentations too.
406
- - **Compaction bar: pink + FILLS** — `RecoverSpinner`'s disc + bar are now pink (`compactProgress`), and the bar
407
- FILLS (elapsed-based, ~18s, capped just shy of full) instead of sliding — so it reads as progress toward done
408
- and vanishes when compaction finishes.
409
-
410
- ## 0.1.207 — 2026-10-05 — identity-broker routing ("generate HER") + pearl star + bash ▶
411
- - **`image_generate` routes reference-bearing requests to the identity broker** (SDXL RealVisXL +
412
- IP-Adapter-FaceID on JL1:8793) to preserve a SPECIFIC face (arcface cosine 0.72–0.77); plain text-to-image
413
- stays on flux. LAN IP tried first so a cold render doesn't hit CF's 524. Identity-vs-flux body split; falls
414
- back to flux if identity is asleep. Honest `axe_identity` already surfaced (0.1.203). New `ip_adapter_scale`
415
- param. Design: `_ai-docs/2026-10-05-identity-broker-routing.md`.
416
- - **Persona tool-awareness** (not prohibition): likeness is LIVE — pass a FACE as `reference` to generate a
417
- specific person; the identity broker does it, Operator doesn't build its own pipeline. Honest `axe_identity`.
418
- - **Pearl thinking star**: the star tones went amber → pearl (slate→white) so the star matches the verb shimmer.
419
- - **Bash icon** `❯` → `▶` (play/run) so a command Operator ran never reads as your prompt `❯`.
420
-
421
- ## 0.1.206 — 2026-10-05 — thinking shimmer + per-situation colour language
422
- - **Thinking shimmer** (`src/ui/shimmer.tsx`): the thinking verb now carries a pearl (slate→white) linear
423
- shimmer sweep — a bright band moving across the letters on the shared tick — replacing the old tone-flash
424
- with continuous motion. The amber star + rotating verbs are kept. Per-char truecolor; downsamples gracefully.
425
- - **Per-situation colour language** (`toolicons.ts` `KIND_HUE`): a RUNNING tool row's glyph is now tinted by
426
- KIND — media=magenta, shell=green, search=cyan, web=blue, read=teal, write=gold, git=violet, agent=pink — so
427
- the colour tells you what Operator is doing. Settled rows keep status colour (done=green, error=red). Matches
428
- the palette shown in the review artifact. 945 tests (incl. new `shimmer.test.mts`).
429
-
430
- ## 0.1.205 — 2026-10-05 — persona: generate ONLY through the tool (no broker curl)
431
- - **Root-caused a live bug**: on JL2 Operator was generating by `http_request`/`bash`-curling the broker
432
- (`localhost:8791/v1/images/generations`) and hand-decoding base64 — which floods its context with base64,
433
- skips the flywheel log, the in-chat progress bar, the public URL, and the honest provenance, and is
434
- error-prone (several failed decode attempts). Persona now mandates `image_generate`/`video_generate` as the
435
- ONLY correct path and forbids hand-rolling HTTP/curl/base64 to the broker.
436
-
437
- ## 0.1.204 — 2026-10-05 — auto-open created media + img2img `steps` knob
438
- - **Persona: auto-open + link.** After Operator creates an image/video/artifact for the owner in an
439
- interactive turn, it now opens it for them (`open <url-or-path>`) and puts the clickable link in the reply —
440
- no more "open it for me". Skipped inside media-robot/headless batches.
441
- - **`image_generate` `steps` param** → forwarded to the broker. schnell runs 4 steps by default (coarse img2img
442
- strength resolution); raise to ~8 for a finer retain-vs-restyle knob when a reference is given. Aligns with
443
- the now-live flux-worker img2img (image+strength, pose/style transfer — NOT identity).
444
-
445
- ## 0.1.203 — 2026-10-05 — honest reference-mechanism provenance (img2img + identity broker ready)
446
- - `image_generate` now reads two forward-compatible broker response fields and surfaces them honestly in the
447
- result + flywheel: `axe_img2img:{used,strength}` → `(img2img restyle @ strength X — matches pose/composition/
448
- style, NOT the exact face)`, and `axe_identity:{method,base_model,identity_applied,fidelity_note}` →
449
- `(identity: <method> on <base_model> — <fidelity_note>)`. So when the img2img broker (pose/style) or the
450
- identity broker (RealVisXL + IPAdapter-FaceID, "HER") lands, the tool states exactly WHICH mechanism ran and
451
- never overclaims likeness. Field names (`image`/`strength`) already align with both brokers — no tool change
452
- when they go live beyond endpoint routing. Fully forward-compatible: no-op against today's text-to-image broker.
453
-
454
- ## 0.1.202 — 2026-10-05 — autonomous media robot (flywheel compounding loop)
455
- - **New `operator media-robot`** — a triggerable, broker-agnostic pass that closes the media-gen flywheel
456
- autonomously: reads the provenance corpus (`~/.axe/operator/media-gen.jsonl`), selects recent unique
457
- successful prompts (preferring the logged **expanded** prompt), regenerates each **best-of-N**,
458
- **self-reviews** every candidate with the fleet vision model as a 0–10 reward signal, keeps the winner, and
459
- appends the SCORED outcome to `~/.axe/operator/media-robot.jsonl` — the fuel for retrieval-rewriting / a
460
- Red-Queen-gated LoRA. `src/autonomy/media-robot.ts` + dispatch in `src/autonomy/index.ts`.
461
- - **Composition, not new model code**: calls `image_generate`/`image_analyze` via the tool registry (no LLM in
462
- the loop), so it inherits every broker upgrade — e.g. the reference/identity broker — with zero change.
463
- - **Safe defaults**: single pass, `--n 2 --max 3`, image-only, `--dry` to plan without GPU; NEVER an
464
- unattended loop unless explicitly scheduled (`operator routine`). Scale-to-zero brokers → idle robot costs 0.
465
- - Flags: `--kind image|video --n N --max N --dry --json --keep-awake`. Verified e2e: best-of-2 on the corpus →
466
- both candidates vision-scored 8/10 → winner logged. Decision log: `_ai-docs/2026-10-05-autonomous-media-robot.md`.
467
-
468
- ## 0.1.201 — 2026-10-05 — TUI: heavier tool icons (write was miniscule)
469
- - The write/edit icon was a thin outline pencil `✎` that rendered miniscule; swapped for the filled black nib
470
- `✒` (heavier, still reads as write). All tool-row glyphs now render **bold** in every state (not just while
471
- running), so the whole icon vocabulary reads larger/heavier. Glyphs stay font-safe (single codepoint, from
472
- the proven Dingbats/Geometric-Shapes blocks).
473
-
474
- ## 0.1.200 — 2026-10-05 — TUI: media/compaction progress bars, visible inter-tool thoughts, bolder animation
475
- - **Media-gen + compaction progress bars** (`src/ui/progressbar.ts`): `image_generate`/`video_generate` rows
476
- get a new `media` tool-kind and a yellow elapsed/ETA bar (image ≈40s, video scales with frames, capped 95%
477
- until the real result lands); the compaction/recovery `RecoverSpinner` gets a pink indeterminate sweep bar.
478
- All glyphs font-safe (`▰▱`, Geometric Shapes). Driven by the one shared `tick.ts` clock — no new timers.
479
- - **Thoughts persist between parallel tool calls**: the reasoning the model produces BEFORE a tool batch was
480
- discarded in `onToolStart` (to dodge a tall-live-frame Ink mis-erase); now it's pushed as a dim, SETTLED
481
- thought above the tool rows (static scrollback → no re-render, no mis-erase), so the owner sees the
482
- "why I'm running these" thinking instead of a bare spinner. No change to how much the model reasons.
483
- - **Bolder running animation**: the per-action tool glyph renders bold while running — reads larger/heavier.
484
- - Integrated from a worktree buddy (progress bars) + engine tweaks; full suite 941 passed / 0 failed.
485
-
486
- ## 0.1.199 — 2026-10-05 — persona knows the WHOLE media pipeline (not just flux)
487
- - **Persona now teaches the full media stack**, fixing a real failure: on JL2 Operator told the owner
488
- "FLUX.1-schnell can't match real photography" and suggested **ComfyUI / SDXL / FLUX.1-dev/pro checkpoints it
489
- does not have** — because its only media knowledge was "flux". New `## The media pipeline` section states
490
- what ACTUALLY exists (image=FLUX.1-schnell+`expand`+`reference`; video=LTX-0.9.5+`expand`+`reference_image`
491
- image-to-video; vision=Qwen2-VL) and forbids offering un-wired tools as if available.
492
- - **Honest likeness boundary**: text-to-image invents a new person, so an IDENTICAL still needs IP-Adapter/
493
- PuLID/img2img (not yet on the broker) — say so, don't pass a look-alike as an exact match; BUT a VIDEO from a
494
- shared image preserves identity (first frame = the real photo) and works NOW via `reference_image`. Teaches
495
- `expand` as the real quality lever instead of hallucinating a better model.
496
-
497
- ## 0.1.198 — 2026-10-05 — frozen broker params: prompt-expansion + image-to-video
498
- - **`expand` on `image_generate` + `video_generate`** — when set, the tool asks the worker to auto-expand/
499
- rewrite the prompt (Aurora) before rendering. The worker returns `axe_prompt_expansion:{original,expanded,
500
- used}`; `used:false` means it ran on the original (never blocks). The tool surfaces the rewritten prompt in
501
- its result AND logs the `expanded` prompt to the flywheel (`recordMediaGen`) so the richer prompt compounds.
502
- - **`reference_image` on `video_generate`** — image-to-video: a first-frame image (path/url or b64) is passed
503
- to the broker as `image` for LTX first-frame conditioning. The tool reads the broker's `conditioned` flag and
504
- notes whether conditioning actually applied (`image-conditioned` vs `reference ignored — broker not image-
505
- conditioned yet`). Pairs with `image_generate`: make a still, then animate it. Forward-compatible — an older
506
- broker that ignores `image`/`expand` just returns today's behavior, no breakage.
507
- - Shapes frozen against the memjar/kode broker contract (795b5ac). Tool-side only; no broker change here.
508
-
509
- ## 0.1.197 — 2026-10-05 — reference passthrough (pixel-exact readiness for img2img/IP-Adapter)
510
- - **`image_generate` + `image_recreate` now accept a `reference` (+ `strength`) and pass it to the broker** —
511
- the tool half of pixel-exact recreation (same face/scene, not just same subject/style). It's a no-op until
512
- JL1 swift's edit broker serves img2img/IP-Adapter, then recreation becomes instance-faithful with zero tool
513
- change. (Best-of-N reward selection — the flywheel P1 — is the next build.)
514
-
515
- ## 0.1.196 — 2026-10-05 — image_recreate: share a reference → analyze → recreate
516
- - **New `image_recreate` tool** — the "share a reference, get it recreated" flow in one call: Operator SEES the
517
- reference (the vision model extracts a detailed text-to-image prompt), then generates a matching image.
518
- Returns the recreation + what it understood, and nudges the self-review loop. Composes `image_analyze` +
519
- `image_generate`. Verified e2e: fed a red-bicycle-on-a-beach reference → analyzed "red bicycle, brown leather
520
- seat, golden sandy beach, ocean, bright lighting, rustic style" → regenerated a matching red-bicycle-on-a-
521
- beach image (viewed both; subject/setting/style match). Pixel-exact fidelity (same instance) will layer
522
- img2img/IP-Adapter once the edit broker lands; this is the enterprise-grade path available today.
523
-
524
- ## 0.1.195 — 2026-10-05 — media: see/match references + review own work + right-tool routing
525
- - **Persona directive that makes media creation self-reviewing.** (1) Given a REFERENCE or "recreate/match
526
- this", Operator `image_analyze`/`video_analyze` it FIRST and prompts from what it SAW; (2) after generating,
527
- it analyzes its OWN output and compares to the request/reference, regenerating on a mismatch rather than
528
- handing it over; (3) right-tool routing — `image_generate`/`video_generate` make NEW photoreal content, they
529
- do NOT copy a specific app UI / screen recording / chart; "recreate this [screen recording/UI/demo]" is a
530
- screen-record / build-and-record / compose.casa task, not a FLUX/LTX text-to-video task. Directly fixes the
531
- observed failure (asked to recreate a product-UI screen recording → got an unrelated logo, because there was
532
- no vision and LTX was the wrong tool). Verified the review loop e2e on JL1: generate → vision reads it back
533
- correctly (image: "red bicycle on a sandy beach"; video: "red sports car on a curved road").
534
-
535
- ## 0.1.194 — 2026-10-05 — compose disambiguation (keep Docker Compose for real container work)
536
- - **Refined the 0.1.193 compose directive** so it no longer over-forbids Docker Compose. compose.casa owns
537
- the artifact/design phrasing ("compose.casa", "composer", "build an artifact/design canvas"); **Docker
538
- Compose stays the correct tool for genuine container/orchestration requests** ("docker compose",
539
- "docker-compose.yml", "containerize", "multi-service stack"). Bare "compose" is disambiguated by intent —
540
- artifact → compose.casa, containers → Docker Compose, ask if genuinely unclear.
541
-
542
- ## 0.1.193 — 2026-10-05 — persona: "compose" means compose.casa, not Docker Compose
543
- - **Fixed a tool misroute.** Asked to "build an artifact using compose casa / composer", Operator read
544
- "compose" as Docker Compose and offered a `docker-compose.yml`. New persona directive maps "compose /
545
- compose.casa / composer / build an artifact / design canvas" → the AXE **compose.casa** artifact + design
546
- surface (use the `compose_*` MCP tools when `KODE_TSI_MCP=1`, or the `/artifacts` browser), and explicitly
547
- forbids the Docker Compose fallback — if the compose tools aren't loaded, Operator now says compose.casa
548
- needs the MCP layer enabled rather than scaffolding a docker-compose.yml.
549
-
550
- ## 0.1.192 — 2026-10-05 — media-broker bearer auth (tool side, env-gated)
551
- - **`image_generate` / `video_generate` / `image_analyze` / `video_analyze` now send `Authorization: Bearer
552
- $KODE_MEDIA_TOKEN`** to the image / video / vision brokers when that env var is set — the tool half of
553
- enterprise auth for the currently-open media endpoints. ENV-GATED on both sides (brokers stay open until
554
- their `MEDIA_AUTH_TOKEN` is set; tools send the header only when `KODE_MEDIA_TOKEN` is set), so the broker
555
- check and the tool header roll out in either order with no mid-rollout breakage, then flip on together. The
556
- token lives in the environment only — never in a URL, log, or tool result.
557
-
558
- ## 0.1.191 — 2026-10-05 — video_analyze: Operator can SEE videos too (frame-sample → VL)
559
- - **New `video_analyze` tool** — completes Operator's vision. ffmpeg samples frames evenly across a video
560
- (ffprobe duration → spread the sample over the whole clip), then the fleet VL model (Qwen2-VL, multi-image)
561
- describes what happens. Local path or http(s) url; needs ffmpeg on PATH; same `KODE_VISION_URL` endpoint as
562
- `image_analyze`. Verified the approach e2e: frames from a generated LTX clip → *"a calm ocean with gentle
563
- waves and a golden hue reflecting on the water"* (correct motion understanding). So Operator now sees images
564
- AND videos — the enterprise-grade analysis requested.
565
-
566
- ## 0.1.190 — 2026-10-05 — image_analyze: Operator can SEE images (real vision)
567
- - **New `image_analyze` tool** — Operator now has real vision. It calls the fleet VL model (Qwen2-VL-7B-
568
- Instruct-4bit, OpenAI-vision `/v1/chat/completions` on JL1) to describe/answer about an image given a local
569
- path or an http(s) url (local files inlined as a `data:` URL). So Operator SEES a reference / screenshot /
570
- generated image instead of guessing from file size or numpy brightness — which is exactly what produced the
571
- earlier amber-blob (garbage prompt from pixel stats). Verified e2e: fed it a generated portrait → *"a person
572
- with long dark hair smiling outdoors"* (correct, real vision). Persona now mandates `image_analyze` over
573
- pixel-stat guessing. Endpoint discovery: `KODE_VISION_URL` → the Qwen2-VL worker; same endpoint will cover
574
- video analysis (ffmpeg frame-sample → `image_analyze`).
575
-
576
- ## 0.1.189 — 2026-10-05 — links show a visible URL in Terminal.app + defensive mouse-off
577
- - **OSC 8 links now gate on actual support.** `hyperlinksEnabled()` requires `caps().osc8` (not just a TTY).
578
- In Terminal.app (no OSC 8) a link used to render as the bare label — URL hidden, not clickable (worst case);
579
- now it degrades to the label PLUS the URL beside it in lower opacity (dim) — visible and copyable.
580
- iTerm2/Ghostty/Kitty/WezTerm keep the clickable link.
581
- - **Defensive mouse-off on inline mount:** the demand-driven mouse layer writes the disable sequence on mount,
582
- so a stale tracking mode (e.g. left by a crash) can't break native wheel-scroll in Terminal.app.
583
-
584
- ## 0.1.188 — 2026-10-05 — video_generate aligned to the LTX broker + media-gen provenance (flywheel P0)
585
- - **`video_generate` now targets the LTX broker contract:** endpoint `video.axe.onl` (its own host — it no
586
- longer falls back to the image host, whose `/health` is 200 but which 404s on `/v1/video`), and defaults
587
- aligned to LTX (704x480, 97 frames, 24 fps; the broker rounds w/h to ×32 and frames to 8n+1). Matches the
588
- frozen `/v1/video` contract 1:1 — zero change needed once the broker is live.
589
- - **Media-gen provenance capture (flywheel keystone):** every `image_generate` / `video_generate` appends a
590
- record (prompt, model, params, output refs, ts, node) to `~/.axe/operator/media-gen.jsonl` (+ optional
591
- `KODE_MEDIA_PROVENANCE_URL` sink), best-effort and off the hot path (`recordMediaGen`). This is the fuel for
592
- the compounding loop — prompt-rewriting, best-of-N reward selection, and Red-Queen-gated FLUX/LTX LoRA. Image
593
- + video share a `saveGeneratedMedia` helper. Full design + the multimodal-MOA roadmap:
594
- `_ai-docs/2026-10-05-media-gen-flywheel.md`.
595
-
596
- ## 0.1.187 — 2026-10-05 — once-ever "use a recommended terminal" first-run pointer
597
- - **First-run ONLY:** when Operator starts in a terminal without clickable links / copy-on-select (Terminal.app
598
- or an unknown emulator), it prints a SINGLE dim line recommending iTerm2 · Ghostty · Kitty · WezTerm — where
599
- OSC 8 links + inline artifacts and highlight-to-copy all work (Ghostty/iTerm2/WezTerm do copy-on-select by
600
- default; Kitty needs `copy_on_select clipboard`; Terminal.app supports neither). Persists
601
- `ui.seenTerminalRecommend` so it NEVER shows again — a one-time pointer, NOT the per-boot tip removed in
602
- 0.1.183. Makes the recommended terminals the standard for new installs without re-introducing nagging.
603
-
604
- ## 0.1.186 — 2026-10-05 — video_generate tool (mirrors image_generate, URL-first)
605
- - **New `video_generate` tool** — generates a short video from a prompt via the SAME scale-to-zero flux-worker
606
- broker that serves images (`POST /v1/video/generations`), so generation never runs on the LLM-serving box.
607
- Prefers the broker's public URL (renderable in-app), falls back to a saved local `.mp4` — the same URL-first
608
- contract as `image_generate` (both now share a `saveGeneratedMedia` helper, so the image path refactored
609
- onto it with identical behavior). Params: `prompt` (required), `size`, `num_frames`, `fps`, `seed`, `out`,
610
- `timeout_ms` (default 600s — video sampling runs minutes). Endpoint discovery reuses the image endpoints
611
- (`KODE_VIDEO_URL` overrides). Returns a clean error until the broker serves `/v1/video` (currently 404 — the
612
- JL2 `video_gen.py` pipeline is being fixed by the surface/backend lane); no further Operator change needed
613
- once it's live. Persona updated to point IMAGE *and* VIDEO gen at the scale-to-zero workers.
614
-
615
- ## 0.1.185 — 2026-10-05 — status.tokens on the RC relay (companion token meters light up)
616
- - **The RC `status` frame now carries the session token count** (`status.tokens`), mirrored from
617
- `session.sessionTokens()` on every route/ctx update and included in the late-joiner snapshot — so the live
618
- token meters already wired on the mobile / desktop / web follower surfaces populate with no app change. The
619
- value is sticky (a `setStatus` with no tokens arg keeps the last count, so the meter never blanks) and
620
- omitted until the first count is known (no spurious 0 flash).
621
- - `message.reasoning` needed no host change — `streamAssistant`/`finalAssistant` already thread reasoning
622
- into the transcript frame, so the follower Thoughts disclosure is fed as long as the model emits thinking.
623
-
624
- ## 0.1.184 — 2026-10-05 — image_generate returns the broker's public URL (renderable in-app)
625
- - **`image_generate` now prefers the broker's public image URL** (`https://image.axe.onl/out/<id>.png`) as the
626
- renderable reference in its result, instead of a fleet-local file path the mobile/desktop/web surfaces
627
- cannot read. A local PNG is still written when the caller passes `out`, or when an older broker returns no
628
- URL (b64 → local-path fallback). The URL is a short link, so no base64 floods the LLM context. This is the
629
- host half of inline image rendering across the three surfaces — the app side detects the URL in the tool
630
- result and renders it. Broker contract (JL2 flux-worker): `/v1/images/generations` → `data[].url` (+
631
- `b64_json` kept for the gateway). Verified e2e: prompt → `data[].url` → GET 200 `image/png`.
632
-
633
- ## 0.1.183 — 2026-10-05 — click menus in Terminal.app (inline mouse layer) + drop the clickable-links tip
634
- - **Clickable pickers, inline, without losing native terminal behavior.** The `/artifacts` browser and the
635
- option pickers (`ask_user`, `/model`, plan-exit) are now mouse-clickable: click a row to select it (Enter
636
- still commits the choice). SGR mouse tracking turns on ONLY while an overlay is open — so the terminal's
637
- native wheel-scroll and drag-to-copy are untouched the rest of the time (the design James picked: "click
638
- menus, keep native"). Works in Terminal.app, which has no OSC 8 clickable links. The floating inline frame
639
- is anchored with a one-shot DSR cursor probe plus a single measured "overlay stack" height, so there is no
640
- per-margin geometry guesswork. Approval prompts stay keyboard-only on purpose — a security decision should
641
- not ride on a click's pixel accuracy.
642
- - **Removed the "links aren't clickable in Terminal.app" boot tip.** It keyed off OSC 8 (an emulator feature
643
- Terminal.app lacks) and read as a defect rather than guidance. OSC 8 link rendering itself is unchanged
644
- (still emitted; degrades to the visible label where unsupported).
645
- - Full suite: 923 passing. New pure-unit coverage for the DSR cursor-report parse + the inline panel anchor
646
- (`parseCursorReport`, `panelTopFromBottom`) — the parts verifiable without a live TTY; live click lands in
647
- James's hands to confirm the anchor is pixel-exact before click is promoted from select to activate.
648
-
649
- ## 0.1.182 — 2026-10-04 — image gen usable on every surface (shared image.axe.onl service)
650
- - **`image_generate` is now surface-agnostic.** It resolves a prioritized endpoint list — `KODE_IMAGE_URL` /
651
- `AXE_IMAGE_URL`, then the shared fleet service **`https://image.axe.onl`**, then a local broker — and
652
- fast-fails over a dead endpoint with a `/health` probe before committing to a ~30s generation. So image gen
653
- works the same from any Operator node, web, or mobile, and generation always runs on the dedicated image
654
- node (never on whatever node is serving the LLM).
655
- - **Shared image service wired (infra).** `image.axe.onl` → the flux-worker broker (`:8791`) on the 16GB image
656
- node, via the hub's Cloudflare tunnel (DNS + the tunnel's remote ingress config; the hub hostnames were
657
- preserved). Verified: `image.axe.onl/health` → `{"ok":true,…}` and a real generation returned HTTP 200 in
658
- ~29s from off-node. The image node's truncated FLUX weights (transformer + T5) were also completed, so the
659
- broker renders real images now.
660
- - NOTE: the endpoint is currently open (no auth) — gating it (bearer token / CF Access service token) is the
661
- recommended next step before wide use. The broker is single-threaded, so concurrent requests serialize (a
662
- busy broker returns 502 until free) — queueing is a follow-up.
663
-
664
- ## 0.1.181 — 2026-10-03 — per-action tool icons + animations, and usable FLUX image generation
665
- - **Per-action tool icons + animations.** Tool rows used one status glyph (○◐✓✗) for every tool — a file read
666
- looked identical to a web fetch. Each tool KIND now has its own icon (read ▤ · write ✎ · search ◎ · shell ❯ ·
667
- web ◍ · git ❖ · skill ◆ · agent ✺) and its own "working" animation (page-fill / pen / sweep / pulse / dial /
668
- shimmer / burst); color still carries status (muted → amber → green → red), ✗ unmistakable on error. All
669
- glyphs are from the Geometric/Dingbat/Braille ranges the existing spinners already prove render in Menlo —
670
- no tofu. Motion runs on ONE shared ticker (`src/ui/tick.ts`): every running row subscribes to a single ~8fps
671
- clock instead of owning a `setInterval`, so N animating rows coalesce to one redraw per frame — richer motion
672
- at LOWER render cost (ToolStep's own 250ms per-row timer is removed). (`src/ui/toolicons.ts`, `tick.ts`,
673
- `ToolStep.tsx`; mapping tests pin the `web_search`≠search / `git_command`≠shell ordering traps.)
674
- - **`image_generate` tool — usable FLUX without starving the serving model.** Operator had no image tool, so an
675
- image task meant loading FLUX weights inline in the turn → GBs pinned on the serving box → swap → decode
676
- crawl (the 0.1.180 incident). New tool POSTs to the scale-to-zero flux-worker broker (OpenAI-images;
677
- `KODE_IMAGE_URL`, default `:8791`), saves the PNG, returns its path (never the base64), 180s timeout for a
678
- cold load, specific error when the broker is down. Persona: use `image_generate`, never hold diffusion
679
- weights in your own process. (Broker must run on a node that isn't serving Aurora — or forward there.)
680
- - Full suite 916/916; typecheck + build clean.
681
-
682
- ## 0.1.180 — 2026-10-03 — per-turn wall-clock budget: the brake on hour-long crawling turns
683
- - **Root cause of "53 min, 4.1k tokens, auto-compacting" turns.** The turn loop bounded on rounds, token
684
- budget, and stalls — but **never on wall-clock TIME**. So a turn whose decode had crawled to ~1 tok/s (RAM
685
- pressure from a large model loaded on the serving box, e.g. `ml.load` of a multi-GB FLUX checkpoint while
686
- Aurora is serving → swap; or very high context) could grind for an hour producing almost nothing, then hit
687
- the token ceiling and auto-compact. Diagnosed from a live JL2 turn: 4.1k tokens / 53 min at only ~35k
688
- context = 1.3 tok/s → not context size, RAM contention.
689
- - **Fix: a per-turn wall-clock budget** (`settings.autonomy.maxTurnWallClockSec`, default **900s/15min**, env
690
- `KODE_TURN_MAX_WALLCLOCK_SEC`; 0 = no cap). At the budget the turn wraps up gracefully at the next round
691
- boundary with a clear note (and a "decode was crawling (~N tok/s)" hint when it detects the crawl) — in loop
692
- mode the objective continues on the next turn, so work is checkpointed every 15 min instead of one hour-long
693
- grind. This is "reign on TOKENS, bound on TIME": a turn still uses lots of tokens when decode is fast, but
694
- can't run an hour when it crawls. (`src/engine/agent.ts`, `src/session.ts`, `src/config/settings.ts`,
695
- `src/autonomy/session-factory.ts`)
696
- - **Persona: don't starve the serving model.** New directive — loading a large model into memory on this box
697
- (multi-GB MLX/FLUX/LLM) competes for RAM, swaps, and collapses decode to ~1 tok/s; offload to another node,
698
- stream/shard instead of loading at once, or warn the owner. If your own output crawls, stop and say so.
699
- - Tests: `turnWallClockMs` resolver (default/file/env/0=no-cap); full suite 912/912, typecheck + build clean.
700
-
701
- ## 0.1.179 — 2026-10-03 — skills catalogue usable end-to-end + reliable web search
702
- - **Community skills are fetchable again.** `skill_fetch` URL-encoded the slug, turning the `:` in community
703
- slugs (`community__axehub:ClawHub:…`) into `%3A` → 404 — so Operator could *list/search* the 65k catalogue
704
- but not *use* any community skill. Curated slugs have no special chars, which hid the bug. Now keeps `:`
705
- literal. Verified e2e on JL1 via the real handler: `skill_fetch("community__axehub:ClawHub__ClawHub__Baidu")`
706
- returns full content; curated still works; `skill_list` already reached community skills.
707
- - **web_search returns results again.** The default SearXNG engine set (`brave,mojeek,google,startpage`) was
708
- half-dead from server/container IPs — Brave "Suspended: too many requests", Google "access denied" — so a
709
- query that included them returned ZERO even against a healthy container. Default is now `mojeek,startpage`
710
- (both non-Microsoft, both verified: 10 results, 0 unresponsive). Override via `KODE_SEARXNG_ENGINES`.
711
- - **Persona now points Operator at what it has.** Two standing sections: *Web search* (use `web_search` → local
712
- SearXNG, auto-managed via Docker, self-provisioning; if it reports Docker unavailable, ensure Docker is
713
- running and retry — "no results" means "start Docker," not "the web is down"; autopilot is a fallback only),
714
- and *Skills* (check the 60k+ catalogue with `skill_list`/`skill_fetch` before building from scratch).
715
- - **splice-site-video skill hardened.** Pipeline verified e2e (AV1 222KB + H.264 371KB). The poster step
716
- hard-required libwebp (absent on JL1 → silent 558KB PNG); now falls back to a ~30KB JPEG, never PNG, and the
717
- dependency claim is corrected.
718
-
719
- ## 0.1.178 — 2026-10-03 — session-aware ceilings (free reign for autonomy), Explanatory persona, live dim reasoning
720
- - **Per-session compaction ceilings — stop trading reign for speed.** A single `compaction.ceilingTokens`
721
- used to throttle *both* interactive and unattended sessions, so a tight "snappy" interactive value silently
722
- strangled headless builds into a compaction-thrash loop. `compactionCeilingTokens(s, window, mode)` now
723
- branches on `"interactive"` vs `"autonomy"`:
724
- - **Interactive** stays tight (~24k default) so each owner-facing reply decodes fast — decode is
725
- context-bound (measured ~45→9→5 tok/s as the live KV cache grows).
726
- - **Autonomy** (`operator run/loop/board/dream`) rides high (~100k default, just under the 64GB swap cliff
727
- ~126k) so an unattended run holds the thread across a long multi-step mission instead of thrashing.
728
- - Each mode has its own explicit override (`compaction.ceilingTokens` / `compaction.autonomyCeilingTokens`,
729
- env `KODE_AUTONOMY_CEILING_TOKENS`); the other mode's value is deliberately ignored. Both are clamped by
730
- the RAM-aware safe ceiling (`defaultCompactionCeiling`) so no box grows the KV cache into swap.
731
- - **Headless `maxRounds` was never wired.** `session-factory.ts` never passed `maxRounds` to the Session, so
732
- `operator run/loop/dream` fell back to the engine's 10-round floor and cut long missions short. Now passes
733
- both the autonomy ceiling mode AND `maxRounds`; `autonomy.maxRounds` default 40 → 200 (a floor on effort,
734
- not a hard cap — matches the documented foreground budget). `maxTurnTokens` stays unset by default, so
735
- unattended runs are uncapped (free reign).
736
- - **Explanatory persona default.** New standing directive in `basePersona`: narrate what+why before each tool
737
- batch, surface reasoning and trade-offs for non-trivial work, use tables for comparisons/status, mermaid for
738
- flows/architecture, labeled sections, and close each phase with a compact done/in-progress/next status
739
- table. Clarity, reasoning, and diagrams are the norm — so the owner follows a long session by reading
740
- Operator's words, not its tool output.
741
- - **Live reasoning is visible through the whole workflow (dim).** The live transcript used to show the
742
- model's thinking only in the gap *before* the answer started, then replace it with content. It now renders
743
- the reasoning as a dim (lower-opacity) band *above* the full-weight answer for the entire turn,
744
- height-bounded so the dynamic frame can't overflow. Data was already flowing (`liveReasoning` ref); this is
745
- a pure render change (`ui/Transcript.tsx`).
746
- - Tests: `settings.test.mts` adds coverage for the mode split, per-mode explicit overrides, cross-mode
747
- isolation (an autonomy override must not leak into interactive), and the env knob. Full suite 908/908 green;
748
- typecheck clean. (see `_ai-docs/decisions/2026-10-03-session-aware-ceilings.md`)
749
-
750
- ## 0.1.177 — 2026-10-02 — ESC-flush + autonomy wiring: sleep-consolidation fires, flywheel runs, headless ceiling fix
751
- - Composer ESC is now context-sensitive: ESC mid-turn with a drafted message flushes it into the queue
752
- (runs as the next turn via the turn-finally drain) THEN interrupts — "stop this and do my thing" in one
753
- keystroke. Empty-draft ESC and every Ctrl+C stay plain interrupts; Ctrl+C never flushes. Pure
754
- `interruptPlan()` reducer + shared `commitDraft()`; 6 tests.
755
- - Sleep-time consolidation now actually fires. It was wired-inactive for two reasons, both fixed:
756
- (1) `settings.autonomy.sleepConsolidation` was never threaded into `SessionConfig` — now passed at the
757
- foreground session (cli.tsx) and the autonomy factory (headless `operator run/loop/dream`); NOT the bg
758
- sub-agent factory (the scheduler is a singleton — sub-agents would clobber the foreground's, and
759
- short-lived delegates shouldn't consolidate). (2) the scheduler armed its consolidation timer for a fixed
760
- 1s but `tryConsolidate()` aborts unless idle ≥ idleThresholdSec (30s) and never rescheduled, so it could
761
- never run — now armed for the idle threshold.
762
- - FlywheelProcessor was dead code (only a unit test called it). Wired `processAll()` into the consolidation
763
- pass (SRFT masking + `flywheel/processed/` export for the training pipeline), best-effort so it can never
764
- sink consolidation. Result surfaces `flywheelProcessed` in the sleep-consolidation log.
765
- - Fix: the autonomy/headless factory called `compactionCeilingTokens(settings)` WITHOUT the window arg, so
766
- the RAM-aware ceiling never applied to headless runs (left uncapped) — now passes the real aurora window.
767
- - Carries the already-landed loop-guard hard-stop and `/artifacts` browser (Phase 1). Suite 897→(+flywheel/sleep tests).
768
-
769
- ## 0.1.176 — 2026-10-01 — GW-45 secrets at rest/in flight: redactSecrets + 0600 at every persist boundary
770
- - The audit caught this box live: transcripts/events/spills world-readable (0644) with bearer tokens
771
- inside, and the "secret-free" audit digest carrying `curl -H Authorization: ...` verbatim into the
772
- POSTed event stream. Fixed at the code, not the doc: pure node-free redactSecrets (format-exact
773
- vendor shapes, idempotent, no heuristics) on both EventSink boundaries + digestArgs slicing;
774
- 0o600/0o700 on events, spill, and session-autosave paths. Transcripts stay byte-faithful (resume
775
- ground-truth) and are protected by mode instead. +3 tests incl. end-to-end EventSink mode+mask.
776
-
777
- ## 0.1.175 — 2026-10-01 — GW-44 audit hotfixes: stream deadlines (H1), instant-path backstop (H2), verify honesty (H3)
778
- - H1: wedged decode can no longer deadlock the endpoint gate — 90s idle / 30min wall deadlines on the
779
- SSE loop, transient-classed so selfheal failover owns recovery (KODE_STREAM_IDLE_MS /
780
- KODE_REQUEST_TIMEOUT_MS).
781
- - H2: the INSTANT (pre-written) compaction path now carries the SAME GW-31/N1 guarantee as the live
782
- path (shared applyAnchorVerification helper; anchors + verbatim user voice; still zero model calls).
783
- - H3: verified:true is unfakeable end-to-end — grandmaster exec runs pipefail (like GW-35's tool shell)
784
- and isVerifyCmd rejects command substitution/backticks behind allowlisted heads.
785
- - +4 tests (live wedge server + slot-release assertion; npm-test-pipe-fail verified:FALSE receipt;
786
- instant-path regression). Decision doc: _ai-docs/features/2026-10-01-gw44-audit-hotfixes.md.
787
-
788
- ## 0.1.174 — 2026-10-01 — ACP model picker (GW-40): the editor dropdown — both protocol generations
789
- - Zed now shows a real model selector: configOptions(category:"model") on session/new + legacy
790
- setSessionModel + spec-exact config_option_update, all switching through Session.setModel (one
791
- source of truth with /model, MOA guard included). SDK 0.4.5 predates the stabilized config-options
792
- RFD, so a ~60-line wire shim translates session/set_config_option -> set_model and answers with the
793
- complete config state; unrelated frames byte-identical; non-model configIds NOT falsely claimed.
794
- - Honesty invariants pinned by tests: MOA listed only when configured; stale currentValue falls back
795
- to a real option; refused switch shows the editor the true error. +5 tests; 874/0 un-piped.
796
- - Decision doc: _ai-docs/features/2026-10-01-acp-model-picker.md. Next: GW-41 egress firewall, GW-43
797
- 'auto' enters this exact surface as one option value.
798
-
799
- ## 0.1.173 — 2026-10-01 — N1 verified compaction: wide audit + deterministic ANCHOR REPAIR + honest residual
800
- - GW-31's first release had a FALSE GREEN by construction: the 40/category cap lived inside
801
- extractAnchors, so the audit never SAW overflow — a 60-sha span "passed" with 20 unchecked. Now the
802
- audit measures at 1000/category (25x the render budget), compact() force-appends spilled identifiers
803
- as a bounded ANCHOR REPAIR block (deterministic, zero model calls, rides inside the summary msg),
804
- and the uncarryable residual is REPORTED in-block and via opts.onVerification{repaired,residual}.
805
- Loss semantics fixed too: measured against the FULL output ([summaryMsg, ...kept]), not just the note.
806
- - +3 tests (60-sha overflow -> residual 0 + all present; ordinary -> zero-overhead no-block; 1200-sha
807
- pathological -> capped block <12KB with residual ADMITTED). Decision doc alongside the code (kiyoko).
808
-
809
- ## 0.1.172 — 2026-10-01 — web_fetch render ladder: Jina Reader fallback (default-ON) kills the 403 dead-end
810
- - Root cause of "why is web fetching failing on operator": the ONLY 403/429 escape hatch was the
811
- autopilot renderer, KODE_AUTOPILOT_URL is unset on fleet boxes, and there is no headless browser —
812
- every Cloudflare-fronted site (x.ai, HN mirrors, blogs) dead-ended in a `note:` line with no path.
813
- - New rung: public Jina Reader (r.jina.ai/<url> -> markdown). KODE_JINA_URL swaps to self-hosted,
814
- KODE_JINA_KEY for rate limits (keyless tier = 20 RPM), KODE_WEB_RENDER=0 disables entirely (tests +
815
- privacy). Honest-identity lesson MEASURED tonight: the tool's primary fetch MUST spoof a browser
816
- (origin sites gate on bot UAs) but the RENDERER must send `operator/kode-tsi` — a Chrome UA string
817
- from node's TLS fingerprint is Cloudflare's favorite 403 (UA/TLS mismatch). Guidance text now names
818
- the failed rungs instead of lying about having none.
819
- - Tests: web-fetch-render-ladder.test.mts +3 (mock-server ladder: success, short-stub rejection,
820
- render-off switch); existing graceful-403 tests pinned KODE_WEB_RENDER=0 (unit suites never network).
821
- Live proof: x.ai/blog 403 -> 19,043 chars of markdown through the ladder.
822
- - Decision doc: _ai-docs/features/2026-10-01-webfetch-render-ladder.md (incl. the UA/TLS honesty rule)
823
-
824
- ## 0.1.171 — 2026-10-01 — Enterprise wave II: staleness-gated compaction, verified context surgery, shell pipefail guard, relay dormancy + offline inbox (SECURITY) verified context surgery, shell pipefail guard, relay dormancy + offline inbox (SECURITY)
825
- - compactNow's pre-written (instant compaction) path trusted the rolling summary with NO staleness and
826
- NO coverage check: turns added after the last rolling fire but below its 5000-token/3-batch cadence —
827
- the normal quiet-turn regime — were silently evicted behind a summary that predates them. Now the
828
- prewritten is used only when !isStale() AND the fire-watermark (markSummaryFired(turnCount), new
829
- optional arg; callers that omit it degrade to the live path, never to loss) covers every evicted
830
- turn. Uncovered => live compact() (refuses to destroy history on summarize failure) + GW-10
831
- lossless offload in fitToWindow. Instant path still fires when genuinely safe (pinned by tests).
832
- - Root-caused while testing: RollingSummarizer persisted to ONE GLOBAL summary.md — concurrent
833
- sessions clobber it and the operator's unit suite (which creates a testDir but never threaded it)
834
- read/wrote LIVE PRODUCT STATE. Added summaryPath injection (opts + SessionConfig.rollingSummaryPath;
835
- default unchanged), made rolling-summary.test.mts hermetic through it, purged the polluted file.
836
- Per-session keying = follow-up row on GW-27. Decision doc: _ai-docs/features/2026-10-01-compact-staleness-gate.md
837
- - test/compact-staleness.test.mts +3 — regression REPRODUCES the silent loss on pre-fix code (old
838
- session.ts fails tests 1&3; fixed 3/3). Suite 853/0 (112 files), tsc clean, neutral bundle OK.
839
- - compact() appends mechanically-extracted ANCHORS (shas/uuids/#refs/versions/flags/paths/urls/unit-numbers,
840
- capped per category; bare integers deliberately excluded) + the ORIGINAL mission and last 3 user turns
841
- verbatim to every summary — the guarantee behind the prompt's promise. anchorLossAudit(pre,post) exported:
842
- the canary + flywheel-integrity primitive. +5 tests incl. a negative control so the audit cannot rubber-stamp. Decision doc: _ai-docs/features/2026-10-01-context-surgery-anchors.md
843
- (Entry restored: #12's changelog write died with its pipe-masked chain — see GW-35's whole point.)
844
- - **The verify-gate bypass is closed.** The persistent shell ran WITHOUT pipefail, so
845
- `npm test | tail -1` reported tail's exit 0: a failing check hidden behind a pipe looked green to
846
- the model AND silently cleared verify-before-done (verify-gate parses the [exit N] trailer; missing
847
- = pass). The session now sets `set -o pipefail`; shellResultNotes() normalizes `| head`-truncation
848
- SIGPIPE (141) to an honest 0-with-note so benign truncations don't false-fail, and appends exact
849
- rewrite hints for the failure classes that cost this fleet hours today (BSD sed 'X,+Np' /
850
- 'invalid command code', grep -P, missing timeout, pipefail exit-1 stage ambiguity).
851
- - bash tool description documents the new semantics (models must know the contract).
852
- - test/shell-guard.test.mts +5 against a REAL shell session (incl. the discovery that a 25KB producer
853
- never SIGPIPEs — the fixture must overflow the 64KB pipe buffer; the test suite taught the author).
854
- Suite 858/0 (113 files). tsc clean. Registry keeps shell-session lazily imported (bundle graph safe). Decision doc: _ai-docs/features/2026-10-01-shell-pipefail-guard.md
855
- - Host disconnect no longer deletes the session: it goes DORMANT (15-min TTL, env-tunable), stays
856
- - Decision doc: _ai-docs/features/2026-10-01-relay-dormant-offline-inbox.md
857
- owner-visible in `list`, and BUFFERED follower drive frames (FIFO 32) flush to the SAME-owner re-hello
858
- (`welcome.resumed:true`) — prompts/approvals typed during an operator update or the mobile host-start
859
- toggle race no longer silently vanish (research-04 #2's fix, relay-side, hosts/followers unchanged).
860
- - **SECURITY**: resume used to overwrite ownerSub with the helloer's identity — any valid token + leaked
861
- sessionId hijacked a live session (transport + follower fan-out). Resume now demands the same owner
862
- (`scope` reject, pinned) and never steals a LIVE host (`host-busy`). Both guards have tests.
863
- - Relay e2e 33/33 (+6 new scenarios: dormant-not-deleted, hijack reject, resume flush FIFO ×2, TTL sweep).
864
-
865
- ## 0.1.170 — 2026-10-01 — GW-05/GW-06: prefix-cache telemetry + oracle cold-start seed + GW-10 completion
866
- - **Cache telemetry (aurora.ts).** The server was already telling us the exact answer and we were discarding
867
- it: parse `timings.cache_n` / `usage.prompt_tokens_details.cached_tokens` into `ChatResult.cacheN`, threaded
868
- through `onMeta`. `runTurn` fires a new `onCacheStats` per round; `cacheBustNotice` (pure, tested) names a
869
- continuation that re-prefilled >=8K tokens with ZERO reuse and prices it in wall-seconds from `promptMs` —
870
- the honest answer to "why is it crawling" (the v0.1.140-143 mystery class) instead of a guess. `cli.tsx`
871
- surfaces the warning line. Live-measured shape from the deep canary: a 64K-token bust costs 209s.
872
- - **Oracle cold-start seed (`engine/calibration-seed.ts`, GW-06).** The meter cold-starts at the legacy chars/4
873
- (4.0); the aurora-tier0 calibration script measured TRUTH at ~2.15 chars/token on agent traffic — 41-50%
874
- under-count — so a fresh install's gate fires LATE (the dangerous side) for its first ~10 rounds. Seed ONE
875
- weight-1 observation per zero-sample endpoint from llama.cpp's own `/apply-template`→`/tokenize` (offline;
876
- real observations supersede within rounds). Fires once from `cli.tsx`'s first route; kill-switch
877
- `KODE_SEED_CALIBRATION=0`; browser-safe (plain `fetch`, injectable transport — no node builtins). Live proof:
878
- seeded :8097 to **2.355** chars/token (vs the old 4.0 guess), one sample, outcome `seeded`.
879
- - Tests: cache_n parse over real SSE + OpenAI `cached_tokens` shape; notice checker (cold-first-request silence,
880
- warm silence, floor, bust text with token count + seconds); seed math (2.2 → pooled ratio ±0.1),
881
- already-calibrated immutability, and every degrade path (unreachable / no-template / weak / absurd → meter
882
- stays cold, never poisoned).
883
- - Full suite: 776 passed, 0 failed (106 files). `tsc --noEmit` clean; browser entry unchanged under
884
- `esbuild --platform=neutral` (94.6kb); iOS `engine.bundle.js` regenerated.
885
-
886
- - **GW-10-COMPLETE (the follow-up a642c59 named).** `fitToWindow` now OFFLOADS oversized tool outputs through an
887
- injected spill (full bytes to disk + re-readable pointer) instead of erasing their middle — browser/JSCore hosts
888
- without a spill keep the old named-loss stub, parity preserved. Eviction order fixed per Manus doctrine:
889
- error-ish results shed LAST (a failure trace suppresses repeat mistakes; a success's bytes are re-fetchable).
890
- MCP results offload too (optional `hub.spillSink` — barrel stays node-free). Retention: 14-day age + 500MB byte
891
- caps, hourly-throttled, never blocks a spill. `KODE_TOOL_OUTPUT_DIR` isolates the dir (tests/CI/second users).
892
- `compact-command` test intentionally retargeted: /compact preserves every byte it used to elide. +6 tests
893
- (`test/gw10-complete.test.mts`), full suite 803/0 (107 files).
894
-
895
- ## Unreleased — CORRECTION (GW-26): the "4x decode" claim in the 0.1.169 entry was load-inflated; measured truth below
896
- - Controlled server-level A/B (throwaway :8098, same gguf/ctx-32K, temp 0, identical fresh-content tasks,
897
- 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)
898
- — speculation at the BLESSED tuning costs ~1.6x on idle prose tasks, and more under load (draft acceptance
899
- falls 25-30% idle -> 3-17% loaded per server logs). The original 4-6 vs 20-25 pairing compared loaded vs
900
- quieter windows, not spec on/off — retracted as a causal figure.
901
- - CONFIRMED (Nova@jl1 counter-measurement, replicated here): the request-shape `speculative:{ngram:{enabled:false}}`
902
- does NOT affect the ngram-MOD code path — PR #7 is a no-op on the current fleet servers (kept: correct and
903
- safe where plain ngram runs, harmless elsewhere; enableSpeculation escape unaffected).
904
- - ACTION: the real lever is the SERVER flag: relaunch :8097 with --spec-type none (measured 1.6x idle,
905
- expected >2x under concurrency), canary-gated, GO window required. Draft acceptance telemetry lives in the
906
- server log (slot print_timing lines), not in chat-completions timings — noted for the GW-18 canary.
907
-
908
- ## 0.1.169 — 2026-10-01 — GW-26: Aurora decode 4x — disable default-on ngram speculation per request
909
- - **Measured, live on :8097** (b11146, DeltaNet-hybrid Q4_K_M, ctx 307K): a fresh 300-token generation ran
910
- 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
911
- `speculative:{ngram:{enabled:false}}` (server `timings.draft_n` -> 0 confirms; server log showed draft
912
- acceptance 3–17% — every rejected draft forces a multi-token re-verify + hybrid recache, a net loss at the
913
- untuned draft defaults). The `{type:"none"}` shape is SILENTLY IGNORED (measured no-op) — the exact shape
914
- ships in `requestBody()` for every Aurora call; `enableSpeculation: true` is the per-call escape hatch for
915
- when a retuned bless lands. Servers that don't speculate ignore the field (same contract as `cache_prompt`).
916
- - Unblocks GW-25: thinking-ON cost collapses 4x — a 2-3K-token reasoning trace is now ~1.5 min, not 12.
917
- - `test/spec-optout.test.mts` +3 tests (wire shape, opt-in path, rejected-shape policy).
918
- - package.json bump intentionally deferred to the release commit — three in-flight PRs (#5/#6/#7) would
919
- otherwise fight over numbers; integrator assigns the next one at merge.
920
-
921
- ## 0.1.167 — 2026-10-01 — Sub-agent watchdog: stall-detector, not an absolute wall-clock cap
922
- - **A slow-but-progressing sub-agent is no longer killed.** The background watchdog was an *absolute* 20-minute
923
- timer: a child token-starved behind the foreground on the single shared endpoint (seen live: 11 rounds, real
924
- file writes, ~2.6k tokens in 20 min) got reaped mid-progress and marked "errored." It's now a true **stall
925
- detector** — the clock resets on every real progress signal (a token via `onTokens`, a completed tool round
926
- via `onToolBatch`), so only an agent that has made **no** progress for the window (a genuinely hung request —
927
- connection open, no chunks, the case the watchdog exists for) is stopped. The stop reason is now the accurate
928
- "no progress for Nm" instead of "exceeded Nm wall-clock limit". `KODE_BG_TIMEOUT_MS` still overrides the 20m
929
- default. `src/background/index.ts`; `test/background-hardening.test.mts` +1 (a progressing agent survives 4×
930
- the window). Full suite 791 passed, 0 failed.
931
-
932
- ## 0.1.166 — 2026-10-01 — Grandmaster wave: cache-stable prefix, flywheel anti-poison, lossless tool results, sub-agent economics
933
- - **GW-04 — deterministic tool-schema prefix.** `McpHub.schemas()` now sorts by namespaced name so the
934
- `[system+tools]` prefix is byte-identical across sessions/restarts — KV prefix-cache reuse is strictly
935
- prefix-positional, so any reorder zeroed every downstream hit. Pairs with slot-save/restore reuse. (Audit also
936
- confirmed the prefix is already stable *within* a session: MCP discovery is first-turn-only.) +3 parity tests.
937
- - **GW-18 (client) — flywheel anti-poisoning.** `hasLeakedToolCall()` flags tool-call markup that leaked into
938
- assistant text (the `--jinja`-off Qwen failure); the flywheel sink excludes those turns from the promotable
939
- training corpus and tags every row `parse_fallback` — so Aurora can't be trained to emit tool markup as prose.
940
- +14-fixture parser canary. (Server `--jinja` half is fleet-serving side.)
941
- - **GW-10 — lossless tool-result eviction.** A >40K tool result no longer discards its middle forever: the FULL
942
- output spills to `~/.axe/operator/tool-outputs/<id>.txt` and the model gets a pointer to re-read the omitted
943
- middle via `file_read(offset/limit)`. `capToolResult` stays node-free (spill sink injected → web bundle safe);
944
- wired for all local tools (the dominant token sink). Fewer tokens/turn → slower approach to the depth ceiling.
945
- +4 tests.
946
- - **GW-14 — sub-agent economics.** The `spawn_agent` description + sub-agent brief now state a RETURN CONTRACT
947
- (report ~1-2k tokens, file:line pointers not pasted output — a bloated child report forces the parent to
948
- compact), a SINGLE-WRITER rule, and effort-matching.
949
- - **`/rc`** alias for `/remotecontrol`.
950
- - Full suite: 790 passed, 0 failed (105 files). `tsc --noEmit` clean.
951
-
952
- ## 0.1.165 — 2026-10-01 — Robustness: deep-context swap-thrash guard + ESC-abort hardening
953
- - **Swap-thrash guard (track · fix · prevent).** A long session could grow the live context past the box's RAM,
954
- so model weights + KV cache spilled into swap and decode collapsed to ~0 tok/s (measured 2026-10-01: context
955
- reached ~191K tokens on a 64GB box → 7.6GB swap → "88 tokens in 6 minutes"). The context *window* is a TOKEN
956
- limit; the real cliff is a MEMORY limit the %-of-window compaction threshold can't see (it's the same % at any
957
- RAM). Fix: `compactionCeilingTokens` now, when unset, applies a RAM-aware safe default —
958
- `defaultCompactionCeiling(totalmem, window)` reserves ~28GB (≈model + OS/overhead) then ~3500 tok/GB of what's
959
- left, clamped to [8000, 0.85·window] and deliberately BELOW the measured cliff — so proactive compaction fires
960
- before swap on any box (64GB/300K → ~126K). An explicit `compaction.ceilingTokens` / `KODE_COMPACTION_CEILING_TOKENS`
961
- still wins. The 0.1.164 token meter makes the trigger exact. `test/settings.test.mts` +8 regression tests lock
962
- the ceiling below the cliff so this can't silently return.
963
- - **ESC-abort hardening.** The main streaming abort path was already correct (verified by trace + a 6ms live
964
- repro — no main-path bug); closed two narrower gaps: the compaction summarizer's `chat()` now carries the
965
- abort signal (ESC during "compacting" tears it down), and `send()` arms the AbortController *before* first-turn
966
- `maybeRecall`/MCP-discovery so ESC no longer no-ops in that window (`execute()` reuses the same controller).
967
- - Full suite: 769 passed, 0 failed (104 files). `tsc --noEmit` clean.
968
-
969
- ## 0.1.164 — 2026-10-01 — Token meter (engine) + Switchboard messages inline in the transcript
970
- - `src/engine/token-meter.ts` learns each endpoint's REAL chars-per-token online from the exact counts
971
- the server already reports (`timings.prompt_n`, `usage.completion_tokens`): EMA (converges in ~10
972
- rounds), per-`base|model` keys (two servers on one model id can tokenize differently), +4 tokens per
973
- message of chat-template framing the old counter missed entirely, estimates round UP (compact a hair
974
- early ≪ 400 the request). Sample guards drop zero-token reports, <500-char prompts, and out-of-range
975
- (1.0–12.0) ratios — the 40-tool-call turn that used to poison the meter can no longer move it. Cold
976
- start = the legacy 4.0 prior, so no behavior cliff on upgrade. Calibration persists to
977
- `~/.axe/operator/token-calibration.json` (throttled cache; corrupt/missing degrades to cold, boot is
978
- never blocked). NO static `node:fs` import — the shared engine graph must stay node-free for the
979
- `esbuild --platform=neutral` iOS bundle — fs arrives via `process.getBuiltinModule`, degrading to an
980
- in-memory meter on JSCore/browser.
981
- - Wired through ONE process-wide `globalTokenMeter` so an observation from any surface calibrates all:
982
- the compaction gate (`CompactionOpts.meter`/`meterKey` — gate, ceiling, clampMaxTokens and fitToWindow
983
- all size to the endpoint the request will ACTUALLY hit), the size router (pooled sample-weighted
984
- ratio in `router-adapter.ts`), the status-rule ctx% and `/compact` freed math (`session.ts` — one char
985
- basis everywhere, enforced by construction), aurora's missing-timings output fallback (`ChatResult
986
- .tokensExact` flags server-exact counts so the fallback never re-learns its own prior), and per-round
987
- observation in `runTurn` (prompt side: `requestChars(built, toolSchemas)`; completion side: exact
988
- samples only).
989
- - `pickSummaryContent` (compaction.ts, SPEC §5 failure handling): content wins verbatim, reasoning is
990
- the fallback, both dry ⇒ `""` so compact() SKIPS rather than persisting a fact-free placeholder over
991
- real history; a throwing summarizer (500/drop mid-compaction) no longer kills the turn.
992
- - `docs/token-meter.md` design notes (scope rules, durability, deferred ceiling);
993
- `test/token-meter.test.mts` 18 tests: EMA math, all guards, endpoint isolation, persistence
994
- round-trip + corrupt degradation, calibrated gate trip, picker, throw-safety, interrupted-pair validity.
995
- - **Switchboard messages now render INLINE in the transcript**, superseding the 0.1.163 pinned click-to-expand
996
- tray. The tray lived outside `<Static>`, so every 3s poll + re-render re-painted it and Ink orphaned the old
997
- cards into scrollback (the "messages duplicate and never clear" bug). Now each bus message is a `kind:"bus"`
998
- transcript entry appended at arrival time → `<Static>`-rendered (printed once), anchored to its place in the
999
- conversation, scrolls with history. `src/ui/BusTray.tsx` removed. `src/ui/brand.ts` adds the Switchboard mark
1000
- `⦿` (a patch-jack; one const, swappable) with a direction arrow (◂ in / ▸ out) + `HH:MM`. `src/bus/inbox.ts`
1001
- gains `pollSent()` reading this session's own `sent/` archive so OUTBOUND traffic ("you sent X to Y") also
1002
- surfaces inline (consume-once via `sent-read/`, same discipline as the inbox). `src/cli.tsx` poller pushes
1003
- both directions; `src/ui/App.tsx` drops the tray + `busMessages` plumbing from both layouts.
1004
- - Full suite: 761 passed, 0 failed (104 files). `tsc --noEmit` clean; iOS `engine.bundle.js` builds under
1005
- `esbuild --platform=neutral` (engine graph remains node-free). Switchboard surface = Claude lane, grandmaster wave.
1006
-
1007
- ## 0.1.163 — 2026-09-30 — TUI: live Switchboard messages in the terminal (click-to-expand)
1008
- - Incoming Switchboard agent messages (the provider-agnostic on-box bus, memjar/switchboard) now surface
1009
- **live in the Operator terminal** as a click-to-expand tray — the end-to-end proof of the Phase-1 mouse
1010
- layer. `src/bus/inbox.ts` reads this session's inbox directly (same mailbox format, no cross-repo dep;
1011
- neutral defaults `SWITCHBOARD_DIR`→`~/.switchboard`, `SWITCHBOARD_AGENT`→`AXE_AGENT`→`role@host`); a 3s
1012
- poller in `cli.tsx` feeds a bounded tail to `<App>`.
1013
- - `src/ui/BusTray.tsx` renders each message as a collapsible card, **top-anchored** so each card's absolute
1014
- terminal row is deterministic (`trayLayout()`, pure + tested) — which is what makes left-click hit-testing
1015
- reliable without Ink absolute-position measurement. Click toggles the body; inline mode shows cards
1016
- read-only (no mouse there). A box without Switchboard installed shows nothing (empty-safe).
1017
- - Enterprise/AI-agnostic: no vendor lock, neutral env-overridable paths, works on any surface. Received
1018
- messages are DATA, never executed. Decision log: `_ai-docs/decisions/2026-09-30-switchboard-tui-bustray.md`.
1019
- Suite 748 green (+10).
1020
-
1021
- ## 0.1.162 — 2026-09-30 — TUI: wheel-scrollback in fullscreen (mouse layer wired into App)
1022
- - The Phase 1 mouse mechanism is now live in the app. `App.tsx`'s fullscreen branch mounts `MouseProvider`
1023
- (enabled only on a mouse-capable TTY — inline stays a native-scroll no-op) and a new `FullscreenBody`
1024
- turns wheel events into **scrollback over the alt-screen transcript**, which previously had none: the
1025
- bottom-anchored clip simply hid older entries with no way to reach them. Wheel-up slides the window back
1026
- through history (with a `⋯ N newer below` marker), wheel-down returns toward the live bottom, and any new
1027
- settled output snaps straight back to it — you never get stranded in history while the answer grows.
1028
- - Windowing is a pure, unit-tested `boundedWindow(total, scrollBack, tail)` in `Transcript.tsx`: `scrollBack`
1029
- is clamped to `[0, total-1]` (the oldest entry always stays reachable) and `scrollBack === 0` returns the
1030
- last `BOUNDED_TAIL` entries — **byte-identical to the pre-scroll behavior**, so inline and non-scrolled
1031
- fullscreen are unchanged. Live stream is suppressed only while scrolled up (it belongs at the true bottom).
1032
- - Decision log: `_ai-docs/decisions/2026-09-30-tui-mouse-scrollback.md`. Suite 738 green (+6).
1033
-
1034
- ## 0.1.161 — 2026-09-30 — TUI: MouseProvider + hooks (Phase 1 mouse layer mechanism)
1035
- - Builds on the SGR parser: `MouseProvider` (fullscreen-only) enables 1002+1006 tracking, parses stdin,
1036
- dispatches wheel→`useOnWheel` and left-press→hit-tested-region `onClick` (`useClickRegion`), and disables
1037
- on unmount + process `exit` (crash-safety — a stuck tracking mode after a crash is the #1 real mouse bug;
1038
- relies on `exit`, not signal handlers, so Ctrl-C is unchanged). `mouse.ts` gains pure `hitTest`. Inline
1039
- mode = disabled no-op (native scroll+copy preserved). Tested via ink-testing-library with simulated SGR
1040
- stdin. Next: wire into App.tsx fullscreen + click-to-select panels. Suite 732 green (+2).
1041
-
1042
- ## 0.1.160 — 2026-09-30 — TUI: SGR mouse parser (Phase 1 foundation) + Aurora speed plan
1043
- - New `src/ui/mouse.ts`: a pure SGR (mode 1006) mouse-sequence parser (`CSI < Cb;Cx;Cy M/m`) decoding
1044
- press/release/drag/move/wheel + shift/alt/ctrl, plus `MOUSE_ON`/`MOUSE_OFF` (mode 1002 button-event +
1045
- 1006, never 1003 any-event). The foundation the `MouseProvider` (next increment) feeds stdin to and
1046
- hit-tests against Ink `measureElement` bounds, fullscreen-only. Pure, 9 tests. Also lands the Aurora
1047
- speed-amplification plan (7-agent research): ngram-mod MoE draft-length fix (n 3/8→24/64, a verified
1048
- live misconfig) + `--backend-sampling` applied to the serve plist; EAGLE3/MTP ruled out (broken for
1049
- qwen35moe / net-loss on Metal). Suite 730 green (+9).
1050
-
1051
- ## 0.1.159 — 2026-09-29 — fix: checkpoint no longer wedges on a stale git index lock
1052
- - **The recurring "checkpoints don't work" bug, root-caused + fixed.** The 0.1.148 SIGKILL-on-timeout
1053
- hardening made checkpoints un-hangable — but a `git` killed mid-add/commit leaves `.git/index.lock`
1054
- orphaned, and git never clears it, so **every subsequent checkpoint** died with `fatal: Unable to create
1055
- '.git/index.lock': File exists` (seen live on JL2, 0.1.151). Now `clearStaleCheckpointLock()` removes the
1056
- lock before committing, but **only when it's older than 30s** — a live add/commit holds it for well under
1057
- a second, so an aged lock is provably orphaned by a prior killed run, while a concurrent op's fresh lock
1058
- is never touched (worktree-safe via `git rev-parse --git-dir`). Real-git test proves both: stale lock
1059
- cleared + commits; fresh lock preserved + the lock error still surfaces. Suite 721 green (+2).
1060
-
1061
- ## 0.1.158 — 2026-09-29 — fix: TUI capability-detection review findings
1062
- - Adversarial review of the 0.1.156 TUI foundation surfaced real gaps, now fixed: (1) `truecolor` was
1063
- conflated with the graphics-protocol flag, under-detecting VS Code/Warp/Hyper/Tabby — split into an
1064
- independent per-terminal field; (2) `tmux` was detected but never consumed — now gates `graphics` OFF
1065
- under tmux (inline images break without allow-passthrough); (3) Alacritty `osc8` was stale-false → true
1066
- (shipped in v0.13, 2024); (4) `mouse` no longer requires a non-empty `TERM` (isTTY already excludes
1067
- non-terminals; SGR mouse is universal); (5) `hyperlinkHint` doc corrected to inline-boot-only. Tests
1068
- +7 (truecolor independence, tmux gate, all known terminals, case-insensitivity, `caps()` caching,
1069
- empty-env). Suite 719 green. Also indexed the sandbox + TUI docs in `_ai-docs` (kiyoko).
1070
-
1071
- ## 0.1.157 — 2026-09-29 — remote: RC auto-start default ON for every session
1072
- - `rcAutostart()` no longer gates on the admin tier — **every Operator session self-hosts Remote Control
1073
- by default**, so mobile SessionsView + the desktop RemotePane attach with no config ("default on for
1074
- everything"). Opt out with `remote.autostart:false` or `KODE_RC_AUTOSTART=0` (CI / power users / privacy).
1075
- Ships with the server-side **operator-tsi token-TTL bump 90d→365d** (deployed to authgate + committed to
1076
- memjar/authgate) so auto-RC sessions no longer reproduce the ~day-83 token-expiry "connection lost" once
1077
- every session self-hosts. Suite 712 green.
1078
-
1079
- ## 0.1.156 — 2026-09-29 — TUI: terminal capability detection + artifact links (upgrade Phase 0+2)
1080
- - First increment of an enterprise-TUI upgrade (7-agent SOTA research → blueprint in
1081
- `_ai-docs/architecture/tui-enterprise-upgrade.md`). New `src/ui/capabilities.ts` (pure, cached-at-boot):
1082
- fingerprints the terminal (`TERM_PROGRAM`/`TERM`/`COLORTERM`) into `{isTTY, osc8, truecolor, mouse,
1083
- graphics, tmux, termName}`, and `hyperlinkHint()` tells the owner when their terminal (Terminal.app,
1084
- Alacritty) can't render clickable links — iTerm2/Ghostty/Kitty/WezTerm can. `osc.ts` `link()` gains an
1085
- optional OSC 8 `id=` param (redraw-stable underlining across Ink repaints) + `artifactLink(label,url)`
1086
- (URL-stable id) so Operator can **place clickable artifact links**; the existing `hyperlinksEnabled`/
1087
- `link`/`fileLink` contract is unchanged. `cli.tsx` prints the hint once (dim, inline-only) after the
1088
- masthead. Clickable URLs/paths already worked in OSC-8 terminals; this adds detection + the artifact
1089
- primitive + a nudge for unsupported terminals. **Next:** Phase 1 mouse layer, Phase 3 file/diff panels.
1090
- Suite 712 green (+9).
1091
-
1092
- ## 0.1.155 — 2026-09-29 — sandbox: Linux bubblewrap parity (sandboxed-exec Phase 2)
1093
- - `KODE_SANDBOX=workspace|strict` now sandboxes shell execution on **Linux** (bubblewrap), not just macOS
1094
- (seatbelt). `hasSandboxExec()` is darwin-only, so on the Linux fleet (jl2/jl3/AXeServer/droplets)
1095
- `wrapShell` fell through to plain bash — the modes were a **silent no-op** there. New `hasBubblewrap()`
1096
- (Linux-only) + `bwrapArgs(mode)` map the SAME `DENY_WRITE`/`SECRET_READ` lists + allow-roots to bwrap
1097
- bind-mount namespaces (protected paths → `--ro-bind`, secrets → `--tmpfs`/`/dev/null` mask, strict →
1098
- whole-FS `--ro-bind / /` + writable allow-roots + `--unshare-net`). `wrapShell`/`wrapInteractiveShell`
1099
- try seatbelt → bwrap → plain bash; **macOS behavior unchanged** (seatbelt still wins). Absent on thin
1100
- images (Alpine) → falls back to plain bash, JS write-guards still apply. **Runtime-validated on a real
1101
- Linux node** (Ubuntu 24.04, bubblewrap 0.9.0, canary-only, pkg purged): strict masks secret reads + cuts
1102
- network + confines writes; workspace allows network but keeps secret masking + protected-path read-only.
1103
- Design + validation: `_ai-docs/architecture/sandboxed-code-execution.md`; decision:
1104
- `_ai-docs/decisions/2026-09-29-linux-bubblewrap.md`. Suite 703 green (+4).
1105
-
1106
- ## 0.1.154 — 2026-09-29 — engine: per-session persistent shell (sandboxed-exec Phase 1)
1107
- - The `bash`/`shell_exec` persistent shell is now **per session**, not one process-wide singleton. Before, the
1108
- foreground and every background sub-agent shared ONE bash: a sub-agent's `cd`/`export` corrupted the
1109
- foreground's cwd/env (and vice versa — proven live on JL1), and every command head-of-line-blocked every other
1110
- session on the one FIFO. Now the `Executor` carries a stable per-session `shellKey` (the session's `sessionId`,
1111
- else a unique `exec-N` fallback so two keyless lanes never collide) through tool execution via an
1112
- `AsyncLocalStorage`; the registry keys `ShellSession` by it, and a sub-agent disposes its shell on completion.
1113
- Default (`KODE_SANDBOX=off`) behavior is **byte-identical** — this is the correctness fix + prerequisite for
1114
- the sandboxed-exec tiers, no sandbox change yet. Design + JL1 validation:
1115
- `_ai-docs/architecture/sandboxed-code-execution.md`; decision: `_ai-docs/decisions/2026-09-29-per-session-shell.md`.
1116
- Suite 699 green (+5). Also: releases now publish to **npmjs** (private) instead of pkg.axe.onl (`publishConfig`).
1117
-
1118
- ## 0.1.153 — 2026-09-29 — speed: KV prefix-cache reuse (`cache_prompt: true`) — fixes slow compaction
1119
- - Every Aurora request now sends `cache_prompt: true`. Without it the single-slot llama.cpp server RE-PREFILLED
1120
- the whole growing prefix (system + tools + history) each round, and re-prefilled the full evicted span on every
1121
- compaction — the "compaction takes 4-5 min at ~80k ctx" symptom seen live on JL2. With it the server
1122
- prefix-matches the cached KV and prefills only the new tail (minutes → seconds on deep-context rounds).
1123
- Harmless on servers that ignore the field. Rationale: `_ai-docs/2026-09-29-prefix-cache-reuse.md`. Suite 694 green.
1124
-
1125
- ## 0.1.152 — 2026-09-28 — engine: per-turn token budget (opt-in cost ceiling)
1126
- - New `maxTurnTokens` (env `KODE_TURN_MAX_TOKENS`), an **opt-in** per-turn ceiling on total tokens (generation +
1127
- prefill, summed across the turn's rounds). When a turn has spent its budget it **wraps up gracefully at the
1128
- next round boundary** with a `[paused — token budget …]` note — never mid-round, so a productive turn finishes
1129
- its current step first and returns the work so far. Default off (the round + no-progress guards already bound
1130
- runaway; this adds a cost axis for cost-sensitive / unattended runs). The `[paused —` prefix (vs `[stopped —`)
1131
- keeps the flywheel from misreading a budget stop as a failure-lesson. Completes the four-item frontier list
1132
- (loop recovery, flywheel, spawn heuristic, cost budget). Rationale: `_ai-docs/2026-09-28-per-turn-token-budget.md`.
1133
- Suite 694 green (+2).
1134
-
1135
- ## 0.1.151 — 2026-09-28 — sub-agent spawn heuristic (accurate post-gate) + JL1 E2E battery
1136
- - Updated the `spawn_agent` tool description to match the endpoint gate's reality: sub-agents SHARE your one
1137
- model endpoint and the gate keeps YOUR turn first and runs them **one at a time in the gaps** (not truly in
1138
- parallel), so spawning many does not make them finish sooner. Added an explicit rule: **never `sleep`, poll,
1139
- or block to WAIT** for a sub-agent — its result posts on its own; `agent_status` is for CHECKING state, not a
1140
- wait loop (this was the observed antipattern: `sleep 60` to pass time). Guides the model to a better spawn
1141
- decision now that contention is handled structurally. Plus the JL1 E2E battery for 0.1.147–0.1.150
1142
- (`_ai-docs/2026-09-28-jl1-test-battery.md`): checkpoint-un-hang (59ms over a `sleep 999` hook), gate priority,
1143
- flywheel sink, and a real headless turn — all PASS on the shipped runtime. Suite 692 green.
1144
-
1145
- ## 0.1.150 — 2026-09-28 — self-improvement: flywheel closed loop (auto-capture failure lessons)
1146
- - The self-improvement `memory` sink is now implemented (was "next increment"). When a turn ends **STUCK** — a
1147
- loop/guard stop or a `repetition` stopReason — a concise, deduplicated **LESSON** is appended to the repo's
1148
- `.operator/memories.md`, which `persona.loadMemories()` injects into every future session's system prompt
1149
- here. So a failure the agent hit once becomes durable, always-loaded context — it doesn't repeat the trap.
1150
- Deterministic (no LLM pass, zero added latency); **opt-in** (`settings.selfImprove.memory`, default off, since
1151
- it writes into the repo); deduplicated; best-effort. Closes the loop that the forced-redirect recovery
1152
- (0.1.149) opened in-session. Rationale: `_ai-docs/2026-09-28-flywheel-memory-closed-loop.md`. Suite 692 green (+4).
1153
-
1154
- ## 0.1.149 — 2026-09-28 — engine: loop recovery — forced redirect instead of stopping (longer autonomous sessions)
1155
- - The round-loop guard used to hard-STOP the turn at 6 identical rounds. Now it ESCALATES to self-correction: at
1156
- 3 repeats a light nudge; at 6 a **forced redirect** — the model must diagnose what it keeps doing and why it
1157
- isn't progressing, then **break the step down** or **switch approach**, and it gets a fresh runway and
1158
- CONTINUES. Only after `CONTENT_LOOP_REDIRECT_MAX` (3) forced redirects fail does the turn hand back — so the
1159
- runway before a stop extends from ~6 rounds to ~18+ of active self-correction (the no-progress stall + round
1160
- ceiling still backstop it). Keeps long autonomous sessions alive instead of dying on a recoverable loop.
1161
- Rationale: `_ai-docs/2026-09-28-loop-forced-redirect-recovery.md`. Suite 688 green (+1).
1162
-
1163
- ## 0.1.148 — 2026-09-28 — reliability: un-hangable tools (checkpoint freeze + esc-always-works)
1164
- - A checkpoint could freeze the session forever ("checkpoint… spins, esc won't help") — its git steps ran with
1165
- no timeout, no kill signal, and an interactive-capable env, so a slow/hung pre-commit hook, a credential
1166
- prompt, an editor/pager, or a stuck index lock blocked git and the tool never returned. **Two fixes:**
1167
- (1) checkpoint's git is hardened — every step has a **timeout + SIGKILL**, a **non-interactive env**
1168
- (`GIT_TERMINAL_PROMPT=0`, `GIT_EDITOR`/`GIT_SEQUENCE_EDITOR=true`, `GIT_PAGER=cat`, `GIT_OPTIONAL_LOCKS=0`),
1169
- and commit uses **`--no-verify`** (a WIP snapshot must never be gated by a hook); it now always returns, with a
1170
- clear message on timeout. (2) **Systemic guard:** the turn loop races every tool batch against the abort
1171
- signal (new `abortable()`), so **esc ALWAYS returns control** even if a tool's child process is wedged — no
1172
- single tool can freeze the session again. The abandoned work runs to its own timeout; the session never
1173
- freezes. Rationale: `_ai-docs/2026-09-28-un-hangable-tools-checkpoint.md`. Suite 687 green (+5).
1174
-
1175
- ## 0.1.147 — 2026-09-28 — engine: endpoint concurrency gate (share one slot, interactive-first)
1176
- - Aurora is ONE decode slot (llama.cpp `--parallel 1`). Nothing serialized the main turn and its spawned
1177
- sub-agents, so they time-sliced that slot — N agents at ~1/N speed, and an interactive prompt could wait
1178
- behind a sub-agent's rounds. Measured live: a **61-min / 60-round** bug-fix loop that stopped on the self-loop
1179
- guard, then a **4-minute** wait on a trivial follow-up prompt, both because sub-agents were contending for the
1180
- one slot. New **per-endpoint concurrency gate** in the transport (`aurora.ts`) serializes requests per base
1181
- URL to `KODE_ENDPOINT_SLOTS` (default 1) and gives the **interactive main turn priority** over background
1182
- sub-agents: a waiting main request jumps the queue ahead of sub-agents, and a background request never claims
1183
- a freed slot while a main one waits. Same total throughput, no thrash, the user's turn is never starved —
1184
- sub-agents run at full speed one at a time and actually finish instead of all crawling. **Vendor-neutral /
1185
- AI-agnostic:** keyed by base URL, so it re-applies to any OpenAI-compatible endpoint at its own capacity; it
1186
- knows nothing about which model answers. The `background` flag is threaded structurally (spawn_agent
1187
- sub-agents → SessionCfg → runTurn → the gate), not inferred. Rationale + fleet data:
1188
- `_ai-docs/2026-09-28-endpoint-concurrency-gate.md`. Suite 682 green (+5).
1189
-
1190
- ## 0.1.146 — 2026-09-28 — remote: RC auto-start feature-flagged to admin/VIP tier
1191
- - `remote.autostart` now defaults **ON for the admin/VIP tier** (`permissions.tier: "admin"`) and OFF for
1192
- everyone else — instead of the 0.1.145 opt-in-off default. An explicit `remote.autostart:true|false` /
1193
- `KODE_RC_AUTOSTART=1|0` still overrides the tier gate on that box. Owner decision (James, 2026-09-28):
1194
- gate always-on remote sessions to VIP for now and widen the flag later, since a session that still stops on
1195
- a solvable bug isn't ready to be a broadly-shared attachable surface. Suite 675 green.
1196
-
1197
- ## 0.1.145 — 2026-09-28 — remote: opt-in RC host auto-start on boot (default OFF)
1198
- - New `remote.autostart` (env `KODE_RC_AUTOSTART`), **default OFF** — when on, a Remote Control host comes up on
1199
- session boot so the owner can attach from phone/desktop without typing `/remotecontrol` on the box first.
1200
- Reuses the exact `/remotecontrol` connect path (submitRef → handleSlash), no second implementation to drift.
1201
- Token-gated with a **silent** skip when this box isn't signed in (never spams the sign-in hint every launch),
1202
- never double-starts a live host, and runs only after a healthy boot; `/remotecontrol` still toggles it off.
1203
- Default-ON stays an explicit owner choice — making every session remote-attachable is a posture change.
1204
- Rationale + the operator-tsi token-durability dependency:
1205
- `_ai-docs/2026-09-28-remote-control-autostart.md`. Suite 675 green (+6).
1206
-
1207
- ## 0.1.144 — 2026-09-28 — searxng: honest ✓ status in the masthead + /services
1208
- - The boot service line and `/services` now report SearXNG's **real** state instead of a hardcoded "lazy". Boot
1209
- probes reachability read-only (never starts a container): shows **searxng ✓** when a backend is already up (an
1210
- explicit `KODE_SEARXNG_URL`, or a container still running from a prior session's `--restart unless-stopped`),
1211
- else **lazy** — it still starts on the first `web_search`, as before. `/services` distinguishes **✓ active**
1212
- (served a search this session) from **✓ up** (reachable but unused) from **lazy**. New `searxng.ts` exports
1213
- `searxngStatus()` + `probeSearxng()`; the session activation flag is set by the existing `noteSearxngUsed()`
1214
- hook (fires on a non-empty SearXNG result, registry.ts:474). No change to search behavior. Suite 669 green (+2).
1215
-
1216
- ## 0.1.143 — 2026-09-28 — speed: absolute-token compaction ceiling (big window / small hardware)
1217
- - New `compaction.ceilingTokens` (env `KODE_COMPACTION_CEILING_TOKENS`) — compact once the request reaches **N
1218
- absolute tokens**, regardless of the window-fraction `threshold`. The fraction knob is clamped ≥0.3, which on a
1219
- 300K Aurora is 90k tokens — but decode is bandwidth-bound on **absolute** context depth, so a laptop already
1220
- crawls (~18 tok/s) by ~27k. Measured on the fleet: Aurora does 55–58 tok/s fresh, ~18 (laptop) / ~39 (Studio)
1221
- at ~27k, ~20 (Studio) by 45k. This lever caps working context for speed where the fraction knob can't reach.
1222
- Recommended ~40–60k on a Mac Studio, ~20–30k on a laptop to hold >30 tok/s.
1223
- - **Soft / proactive-only:** the ceiling triggers proactive compaction (`shouldProactivelyCompact`) but is kept
1224
- out of `needsCompaction`, so the over-window circuit breaker only ever tests the real KV window — an
1225
- unsatisfiably-low ceiling can never "stop" a turn. Validated floor 8000 (below that it thrashes; system+tools
1226
- ≈5k); unset = no ceiling (default behavior unchanged). Wired through CLI, headless, and ACP surfaces
1227
- identically. Rationale + fleet data: `_ai-docs/2026-09-28-compaction-absolute-token-ceiling.md`. Suite: 667 green.
1228
-
1229
- ## 0.1.142 — 2026-09-28 — fast-by-default: compaction threshold 0.85 → 0.7
1230
- - The proactive-compaction default drops from 0.85 to **0.7** of the context window, so EVERY install compacts
1231
- sooner and keeps the live context small — holding generation near full speed on long sessions instead of
1232
- crawling into the slow high-context zone (measured: ~5 tok/s at ~200k vs ~56 fresh). Previously this speedup
1233
- required manually setting `compaction.threshold`; now it ships on by default. Override via
1234
- `compaction.threshold` / `KODE_COMPACTION_THRESHOLD` (clamped [0.3, 0.95]) — set higher to keep more raw
1235
- context, lower for more aggressive speed. Trade-off: summarizes a little earlier. Suite green.
1236
-
1237
- ## 0.1.141 — 2026-09-28 — speed: Aurora serving guidance (ngram-mod spec-decode)
1238
- - Serving/ops guidance (no engine code change): run Aurora's llama-server with **`--spec-type ngram-mod
1239
- --spec-ngram-mod-n-min 3 --spec-ngram-mod-n-max 8 --spec-ngram-mod-n-match 24`** for a measured **+84% on
1240
- code re-emission with 0% penalty on novel or mixed output**. It's a no-draft-model, vocab-agnostic ngram
1241
- speculative decode; the adaptive `ngram-mod` mode is free-on-miss, unlike `ngram-cache`/`ngram-simple`
1242
- defaults which were net-NEGATIVE (−21% prose, −35% on a realistic edit turn). Full A/B + rationale in
1243
- `_ai-docs/2026-09-28-aurora-ngram-spec-decode.md`.
1244
- - Pairs with 0.1.140's `compaction.threshold`: keep the live context small (high base tok/s) AND draft the
1245
- repeated spans (ngram-mod) — the two levers compound on long agentic coding sessions. Suite green.
1246
-
1247
- ## 0.1.140 — 2026-09-28 — configurable compaction threshold (keep long sessions fast)
1248
- - Compaction can now fire EARLIER, configurably, so a long autonomous session doesn't crawl. Aurora does
1249
- ~56 tok/s fresh but drops to ~3 tok/s once the context reaches ~200k tokens (generation grinds through a
1250
- huge KV cache). Compaction previously fired only near 0.85×window, so users spent a long time in the slow
1251
- zone first. Now `settings.compaction.threshold` (and env `KODE_COMPACTION_THRESHOLD`) let you lower it —
1252
- e.g. 0.6 keeps the live context smaller and generation snappy, at the cost of summarizing sooner.
1253
- - Wired settings→Session→runTurn (mirrors maxRounds): a `compactionThreshold` helper in settings.ts clamps
1254
- to [0.3, 0.95] (out-of-range/unset → undefined → runTurn keeps its 0.85 default, so no behavior change
1255
- unless set), resolved identically for the CLI, headless, and ACP surfaces. 3 new tests (clamp, env parse,
1256
- lower-threshold-fires-sooner). Full suite 662 green. Default unchanged.
1257
-
1258
- ## 0.1.139 — 2026-09-28 — web_fetch: real-browser fallback on bot-blocks (403/429)
1259
- - When `web_fetch` hits a 403/429 (Cloudflare-fronted sites like x.ai favor these over a real error page),
1260
- it now retries through the AXE autopilot's real-browser `/markdown` route — the same `KODE_AUTOPILOT_URL`
1261
- backend `web_search` uses for `/serp` — and returns the rendered page. If no autopilot backend is
1262
- configured (or it also fails), it returns clear guidance ("<url> blocks automated fetch — needs a real
1263
- browser; try web_search or the browser tools") instead of a scary `error: HTTP 403`. Other non-ok statuses
1264
- (500 etc.) are unchanged, and the success + timeout paths are untouched.
1265
- - Removes the red-error/curl-fallback dance for bot-protected sites the model was researching. 5 new tests
1266
- (403/429 → guidance with no backend; 403 → backend render; 200 + 500 unchanged). Full suite 659 green.
1267
-
1268
- ## 0.1.138 — 2026-09-28 — ACP: Operator drops into Zed / any ACP editor
1269
- - New `operator acp` subcommand runs Operator as an Agent Client Protocol agent over stdio (JSON-RPC), so
1270
- Zed — and VS Code via an ACP bridge — can spawn it as a first-class coding agent, the way Cursor/Cline/
1271
- Continue plug into editors. Uses the official `@zed-industries/agent-client-protocol` lib for framing.
1272
- - Pure translation layer (`src/acp/`): a `session/prompt` becomes `Session.send()`; the session's streaming
1273
- callbacks become `session/update` notifications — onDelta→agent_message_chunk, onReasoning→
1274
- agent_thought_chunk, onToolStart→tool_call, onToolResult→tool_call_update; the turn's outcome→stopReason.
1275
- No re-implemented loop: ACP funnels into the single `runTurn` (via Session), inheriting compaction,
1276
- loop-guard, and the verify gate. `cancel` maps to Session.interrupt(). stdout is the protocol channel, so
1277
- console.* is routed to stderr in ACP mode.
1278
- - Verified: live initialize→session/new→session/prompt handshake against Aurora (streams agent_message_chunk,
1279
- returns stopReason=end_turn) + 4 unit tests pinning the update field shapes. Full suite 654 green.
1280
- - Zed config: add to `~/.config/zed/settings.json` under `agent_servers`: `{"Operator": {"command":
1281
- "operator", "args": ["acp"]}}`. Then pick Operator in Zed's agent panel.
1282
-
1283
- ## 0.1.137 — 2026-09-28 — checkpoint works in any dir + web_fetch stops 403-ing
1284
- - `checkpoint` no longer fails with "fatal: not a git repository" in a non-git workspace. It now `git init`s
1285
- the workspace when there's no enclosing repo (so "save my work" succeeds anywhere), and treats a clean
1286
- tree as a friendly "nothing to commit" instead of an error. The init only fires when rev-parse finds NO
1287
- repo, so it can never reach up into a parent repo (the ~/.axe monorepo trap).
1288
- - `web_fetch` sends a real browser User-Agent instead of `operator/kode-tsi`, so Cloudflare-fronted sites
1289
- (e.g. x.ai) return the page instead of 403 — removing the red errors + the curl fallback dance. (404s from
1290
- the model guessing non-existent URLs are unchanged — that's exploration, not a tool fault.)
1291
-
1292
- ## 0.1.136 — 2026-09-28 — truthful wordmark: drop the last AURORA/1M leftovers
1293
- - The boot masthead sub-tagline rendered `✷ AURORA · …` under the OPERATOR block wordmark (both the stdout
1294
- banner and the AuthScreen `<Masthead/>`). Now `✷ OPERATOR · …`, matching the footer StatusRule — the visible
1295
- UI no longer says AURORA anywhere (the model still resolves under its `aurora-300k` display route; only the
1296
- brand wordmark changed). Stale "AURORA wordmark" comments in StatusRule.tsx corrected to OPERATOR.
1297
- - Pairs with the already-shipped `300K · v` boot tagline (cli.tsx) so the startup banner is fully truthful:
1298
- OPERATOR · 300K, never AURORA · 1M. No logic change; UI strings only. Full suite green.
1299
-
1300
- ## 0.1.135 — 2026-09-27 — compaction circuit breaker (never spin over-budget)
1301
- - If a request is over the model's window and compaction runs but **can't free enough space** — the summarizer
1302
- keeps failing, or the over-budget bulk is non-tool prose that `fitToWindow` can't elide — the turn no longer
1303
- spins round after round hitting the same wall up to the 400-round ceiling. After 3 rounds still over budget,
1304
- it stops cleanly with an honest message and hands control back ("start a fresh session or ask again with a
1305
- shorter request — nothing was lost"). Resets the instant a round fits, so a transient squeeze never trips it.
1306
- - Roadmap item #6. `compaction.ts` already had the `fitToWindow` stub-eviction tier; this adds the one
1307
- genuinely-missing piece the amplification review flagged. Full suite 650 green.
1308
-
1309
- ## 0.1.134 — 2026-09-27 — MUTATING_TOOLS single source of truth + amplification roadmap
1310
- - The `MUTATING_TOOLS` set (which tools count as a workspace edit — used by the loop-guard reset, the
1311
- verify-before-done gate, and the stuck-turn no-edit streak) was duplicated identically in three files
1312
- (agent.ts, executor.ts, verify-gate.ts). Consolidated into one dependency-free leaf module `tools/mutating.ts`
1313
- imported everywhere — removes 3-way drift risk and is the foundation the coming checkpoints work keys its
1314
- snapshots off. tsc clean, full suite 649 green (pure refactor, zero behavior change).
1315
- - Recorded the full **Operator amplification roadmap** in `_ai-docs/roadmap/` — a sequenced plan from a
1316
- 7-agent research workflow + adversarial critique (ground-truthed against the real files): grammar-constrained
1317
- tool-call decoding, piggybank/boomerang → result-cap, ngram speculative decoding, shadow-git checkpoints,
1318
- the verify-gate/checkpoint-restore correctness flywheel, and the own-model big bets (distilled draft +
1319
- fast-apply models, trajectory RL). The strategy: we own Aurora's weights and serving stack, so the
1320
- highest-leverage wins are ones a hosted-API agent structurally cannot do.
1321
-
1322
- ## 0.1.133 — 2026-09-27 — compaction rehydration (continuity after a compaction)
1323
- - **After a compaction, the model no longer acts on stale file state.** A compaction summarizes away raw tool
1324
- outputs, so a file read many turns ago survives only as a lossy summary — and a later edit could work from
1325
- that outdated content. runTurn now tracks the files the model actually read/edited (LRU, most-recent first,
1326
- capped at 5) and, whenever a compaction actually evicts turns, injects a rehydration note: it points the
1327
- model back to the summary's PENDING / NEXT STEP and names those files to re-read fresh before relying on them
1328
- ("do NOT trust a summarized earlier read"). Injected at both the proactive and the context-exceeded
1329
- compaction paths.
1330
- - Path tracking is tool-name-agnostic (any tool call carrying a `path`/`paths` arg), never throws on
1331
- unparseable args, and dedups + LRU-promotes a re-touched file. New test file covers the tracker, the note
1332
- format, and a real compaction in runTurn injecting the note. Full suite 649 green. (Compaction overhaul: gap
1333
- 3 of 5 done; owed: microcompaction cadence, evals.)
1334
-
1335
- ## 0.1.132 — 2026-09-27 — 300K context window (truthful) + compaction/failover hardening
1336
- - **Context window is now truthfully 300K, and that fixes the failover.** Aurora serving was standardized to
1337
- 300K (`--ctx-size 307200`, q8_0 KV cache) on JL1+JL2, but Operator still claimed 1,048,576 (1M). That
1338
- mismatch WAS the failover cause: Operator compacts at 0.85×window, so at 1M it never compacts until ~890k,
1339
- but the server's real ceiling is hit first → reactive failover. `ctxWindow`/`ctxLimit`/`ctx` are now 307200
1340
- in settings, router, and the model registry — compaction fires at ~261k, before the ceiling.
1341
- - **Truthful display.** Masthead 1M→300K; the tier label derives from the window via /1024 (307200→"300K",
1342
- 131072→"128K"); the status model name reads `aurora-300k` (internal id and `/model aurora-1m` alias
1343
- unchanged); and the footer brand wordmark is now `✷ OPERATOR` (the product) instead of `✷ AURORA` — so the
1344
- model field (`aurora-300k`) no longer duplicates the brand. The persona no longer tells the model it has 1M.
1345
- - **Compaction/failover hardening** (three HIGH findings from an adversarial review):
1346
- 1. the summarizer now hits the endpoint the live turn actually used (captured via onRoute) instead of the
1347
- default — cache-safety survives a failover or MOA aggregator turn;
1348
- 2. `compact()` wraps the summarizer so a transient error / timeout / dead failover endpoint during
1349
- compaction SKIPS the compaction (history preserved, caller retries) instead of killing the turn;
1350
- 3. `summarize()` returns "" on a genuinely empty response so the empty-summary guard fires and can't
1351
- silently replace real history with a placeholder.
1352
- - Plus two summary-contract fixes: the compaction instruction no longer leaks into the summary's USER MESSAGES
1353
- section, and a repeated compaction carries forward a prior summary's values instead of dropping them.
1354
- - Full suite 645 green; 300K generation verified live on JL1 and JL2.
1355
-
1356
- ## 0.1.131 — 2026-09-27 — stuck-turn guard: catch the semantic loop the signature guards miss
1357
- - **A turn can no longer spin for 28 minutes going in circles.** Live: Operator ran 152 rounds / 28 min / 42k
1358
- tokens re-running near-duplicate diagnostic `bash` probes (varied only by comments / heredoc-vs-`-c`), with
1359
- the model itself repeatedly writing "I'm stuck in a loop" — and every existing guard missed it, because all
1360
- three ask "is this round a repeat of the last" while the calls varied just enough to slip each one. The turn
1361
- ended only by hitting the output-token limit.
1362
- - **New self-loop guard.** The one signal the signature guards miss is the model's OWN admission it is looping.
1363
- When the model says it's stuck/going in circles/"try a fresh approach" while still wanting to act and NOT
1364
- editing a file, it's nudged to fix-or-stop; on the 3rd such round it ends the turn gracefully and hands
1365
- control back (never a freeze). A file edit, a pivot, or a final answer clears it — so admitting-and-fixing is
1366
- never cut off, and a final answer that merely mentions "a different approach" is untouched.
1367
- - **New soft no-edit nudge.** After 15 tool rounds that change no file, ONE gentle "converge or say you're
1368
- blocked" nudge — never a stop, so a legitimate long read-only task (research, a big search) is never cut off.
1369
- - Tests: a varied self-declared loop stops by the 3rd admission; admit-once-then-pivot finishes; admit-while-
1370
- editing is never cut off; a 16-round no-edit survey gets one nudge and finishes. Full suite 644 green.
1371
-
1372
- ## 0.1.130 — 2026-09-27 — 9-section summary contract (compaction overhaul, gap 2 of 5)
1373
- - **Compaction summaries are now lossless-on-resume.** The summarizer's contract replaces the old FACTS/STATE
1374
- pair with nine sections: INTENT, CONCEPTS, FILES & SNIPPETS, ERRORS & FIXES, APPROACHES, USER MESSAGES
1375
- (verbatim), PENDING, CURRENT, NEXT STEP — plus an explicit "omit ephemeral scratchpad." FACTS/STATE dropped
1376
- the two things a resuming turn needs most: the user's own asks (now quoted verbatim) and the WHY behind
1377
- rejected approaches. The global verbatim-value rule (identifiers, versions, paths, commands, error text) is
1378
- unchanged. Summary token budget 1200 → 1800 to fit the richer contract plus Aurora's reasoning channel.
1379
- - Builds on 0.1.129's cache-safe summarizer (the span is still sent as real messages reusing the live turn's
1380
- cached prefix). Full suite 640 green. (Gaps 3–5 owed: rehydration, microcompaction cadence, evals.)
1381
-
1382
- ## 0.1.129 — 2026-09-27 — cache-safe compaction summarizer (compaction overhaul, gap 1 of 5)
1383
- - **Compaction no longer pays a cold prefill.** The summarizer used to re-serialize the evicted span into one
1384
- system-less, tool-less `user` message — a request that shares no prefix with the live turn's cached
1385
- `[system + tools + history]`, so the local llama.cpp server re-prefilled it from scratch on every compaction.
1386
- It now reuses the IDENTICAL system prompt + tools and sends the evicted span as REAL messages, appending the
1387
- fact-preserving contract as the final user message. Because the evicted span is the OLDEST slice, that head
1388
- is an exact prefix of the cached request — the server prefix-matches the warm KV and prefills only the
1389
- instruction. An O(context) summarize becomes O(instruction), and the full span is preserved (no more
1390
- 6000-char truncation dropping facts).
1391
- - The exact live system prompt is captured per-turn (`lastSys`) so a `/think` suffix or MOA-aggregator prompt
1392
- can't drift the prefix; a trailing unanswered `assistant(tool_calls)` is stripped so the appended user
1393
- instruction stays a valid sequence; the Aurora reasoning-channel fallback and handoff durability are
1394
- unchanged. New test drives a real `Session.compactNow()` and asserts the request is `[identical system,
1395
- span verbatim, contract]` + tools. Full suite 640 green. (Gaps 2–5 owed: 9-section contract, rehydration,
1396
- microcompaction cadence, evals — see _ai-docs.)
1397
-
1398
- ## 0.1.128 — 2026-09-27 — a long, progressing task is never cut off unfinished (higher round ceiling)
1399
- - **Absolute round ceiling raised 200 → 400.** A big self-improvement or build task that keeps making real
1400
- progress now has 4.4× the headroom of the ~90-round runs seen live, so it finishes in one turn instead of
1401
- hard-stopping at `[stopped after N tool rounds]`. The ceiling only ever catches a genuine runaway; a
1402
- progressing turn is governed by the stall guard below, not a fixed count.
1403
- - **Stall guard loosened 6 → 8** consecutive no-progress batches. A long task can go momentarily quiet (a
1404
- planning round, a couple of empty greps) without being mistaken for stalled; 8-empty-in-a-row is still an
1405
- unambiguous stall and stops well below the ceiling. Both changes are strictly more permissive — no task
1406
- that finished before can be cut off now.
1407
- - Regression test: a 250-round *progressing* turn (distinct work each round, past the old 200 ceiling) reaches
1408
- its final answer at round 251. Full suite 637 green.
1409
-
1410
- ## 0.1.127 — 2026-09-27 — malformed tool-call JSON can never freeze the user (enterprise-grade)
1411
- - **The freeze is fixed at the engine level (deterministic).** A `bash` call wrapping a multi-line `python3 -c`
1412
- script broke the tool-call JSON (`500: missing closing quote`), and every later turn re-erred because the
1413
- model kept reproducing the same inline script — user frozen. Now when the truncated-tool-call recovery
1414
- exhausts its nudges, the turn ENDS with a clean, actionable message instead of a raw 500 throw, so the user
1415
- always regains control (model-independent). Plus prevention: persona forbids inline multi-line scripts
1416
- (write to a file, run the file), the recovery nudge says the same, and narration must not delay the tool
1417
- call. True long-term root fix (owed): grammar-constrained tool-call decoding on the Aurora server. Recorded
1418
- in `_ai-docs/features/2026-09-27-malformed-toolcall-freeze.md`. 636 passing.
1419
-
1420
- ## 0.1.126 — 2026-09-27 — round-loop guard nudges instead of ending the turn
1421
- - **The no-progress guard stopped WHOLE TURNS, breaking autonomy.** When a round (prose + the same tool call)
1422
- repeated 3× with no new result, the engine ended the turn with "I repeated the same step 3x… tell me how to
1423
- proceed" — even when (live 09-27) the model had just said "let me break out and fix X" and was cut off
1424
- mid-pivot. Fix: at 3 it now **nudges** the model to try a genuinely different approach and CONTINUES the
1425
- turn (skipping the repeated call); only if it ignores the nudge to a hard cap (6) does the turn stop. Keeps
1426
- Operator autonomous instead of handing back at the first stall. (`engine/agent.ts`.)
1427
- `test/agent-progress-cap.test.mts` (pivot-after-nudge finishes). 636 passing (+1).
1428
-
1429
- ## 0.1.125 — 2026-09-27 — Operator narrates as it works (running commentary)
1430
- - **Depth for the user: narrate between tool batches.** Operator ran many tool calls per turn then surfaced
1431
- everything only at the turn boundary, so the user watched the mechanics but waited for the narrative. New
1432
- persona section instructs the model to write ONE terse line before a tool batch (what + why) and one after
1433
- a notable result (what it found + next) — a running commentary, high-signal, one line, not an essay. The
1434
- engine already streams + settles per-round content, so this surfaces live. (`config/persona.ts`.)
1435
- - Also: Operator now knows curl / the http_request no-shell HTTP fallback (carried from 0.1.124 note).
1436
-
1437
- ## 0.1.124 — 2026-09-27 — agent_status is never loop-guarded + no longer forgets agents that ran
1438
- - **Poll/status tools are exempt from the loop guard.** `agent_status` (polling sub-agents) and `bash_output`
1439
- (polling a background job) are DESIGNED to be called repeatedly while waiting on async work — that's not a
1440
- spin. Live 09-27: `agent_status` polled while two sub-agents ran tripped the guard at 5 and kept firing
1441
- even though the model was doing real work (fetches, sleeps) between polls. They're now never guarded
1442
- (`engine/agent.ts`, `tools/executor.ts`). `test/loop-guard-mutation-reset.test.mts`.
1443
- - **`agent_status` no longer reports "no sub-agents spawned" when they clearly ran.** A finished/errored
1444
- agent decommissions from the live map after 45s idle, after which `agent_status` wrongly said none were
1445
- ever spawned (live 09-27: two errored agents vanished). `BackgroundAgents` now keeps a lightweight
1446
- **retired** record; `agent_status` reports "N ran earlier this session and decommissioned (their results
1447
- were posted to the conversation)" instead of the misleading "none." (`background/index.ts`, `cli.tsx`.)
1448
- - **Operator knows curl + the no-shell HTTP fallback.** New persona section: prefer the `http_request` tool
1449
- (or `web_fetch`/`web_search`) for HTTP since they run natively and keep working when bash is failing or
1450
- sandboxed; use `curl` via bash for special cases (`-H`/`-X`/`-L`/uploads); never conclude "can't reach a
1451
- URL" without trying `http_request`. (`config/persona.ts`.)
1452
- - Full suite: 635 passing (+1). tsc clean.
1453
-
1454
- ## 0.1.123 — 2026-09-27 — de-duplicate the "operator" wordmarks (AURORA sub-brand, for now)
1455
- - **The name "operator" showed up 3×** on the boot screen (big block wordmark + the `✷ OPERATOR` tagline
1456
- beneath it + the `Operator` brand token + `operator-1m` on the status rule). Cleaned up (per James):
1457
- - The **big block `OPERATOR` title stays** (the main wordmark, untouched).
1458
- - The **`✷ OPERATOR` sub-wordmark → `✷ AURORA`** in the masthead tagline and the status rule.
1459
- - The masthead tagline **drops the redundant brand token** → `✷ AURORA · 1M · v…` (avoids an
1460
- "AURORA · Aurora" that would read like a bug); the CLI no longer reads `brand_name` in the masthead
1461
- (`brand.ts` remains as the shared accessor for the other surfaces).
1462
- - The status route shows **`aurora-1m`** via a **display-only** transform (`operator-` → `aurora-`) — the
1463
- internal model id, `/model`, routing, and persisted settings are untouched (no rename blast radius).
1464
- - The heavy `⬤` identity circle beside the email → a cleaner `◆`.
1465
- - Provisional ("for now"). `test/app-fullscreen.test.mts` updated. 634 passing, tsc clean.
1466
-
1467
- ## 0.1.122 — 2026-09-27 — parallel web_search no longer races its own SearXNG startup
1468
- - **web_search worked alone but failed in parallel.** `web_search` is read-only, so `executeParallel` runs
1469
- several concurrently, and each calls `ensureSearxng()`. With no concurrency guard, all of them raced to
1470
- `docker run` the SAME `operator-searxng` container — the first won, the rest failed ("name already in use")
1471
- → returned null → those searches fell through to "no backend" and reported "found no results" (seen live
1472
- 2026-09-27 with 3 parallel searches). Fix: a **single-flight** guard — concurrent callers share ONE
1473
- in-flight startup and its result; the slot clears when it settles so a later cold start can still run. No
1474
- change to the serial path. `test/searxng-singleflight.test.mts`. 634 passing (+1).
1475
-
1476
- ## 0.1.121 — 2026-09-27 — single-source brand (name) + loop guard lets you iterate
1477
- - **Loop guard no longer blocks edit → re-run iteration.** The identical-call guard tripped after 3 calls
1478
- with the same args, so re-running the SAME `pytest`/`compose`/build after editing a file was blocked as a
1479
- "loop" (James 09-27) — even though the workspace had changed. Fix: raise the limit 3→5 AND **clear the
1480
- identical-call counts whenever a file-mutating tool (`file_write`/`file_edit`) runs**, so verify-after-fix
1481
- re-runs are unbounded. A true spin (same call, NO intervening edit) still trips at 5; the narration /
1482
- no-progress stalls are unchanged. Applied to both guards (`engine/agent.ts`, `tools/executor.ts`).
1483
- `test/loop-guard-mutation-reset.test.mts`.
1484
- - **Single-source brand (CLI, Option B).** New `src/config/brand.ts` — the one client-side accessor for the
1485
- AuthGate `operator` tenant brand (`brandSync`/`refreshBrand`/`adoptBrand`): offline-first (synchronous
1486
- cache/default at boot, background refresh, 1h TTL, never blocks, never throws). The CLI masthead name now
1487
- reads `brand_name` from it. Per the platform decision (Option B), the CLI adopts NAME/identity text only —
1488
- the tenant `brand_color` is ignored; the terminal keeps its violet `#b98cff` accent. `test/brand.test.mts`.
1489
- - Full suite: 633 passing (+4). tsc + biome clean.
1490
-
1491
- ## 0.1.120 — 2026-09-27 — session_handoff truncation recovery (multi-line nudge)
1492
- - **Truncated `session_handoff` (and any multi-line note) now gets the RIGHT recovery nudge.** Live 09-26:
1493
- a `session_handoff` note truncated at column 164 (a premature model stop mid-string) surfaced as a hard
1494
- `aurora /v1 500: missing closing quote` turn error even though the real work was already committed +
1495
- pushed. Cause: the truncation-recovery nudge picks by column only (`<300 → "fix your quoting"`), so an
1496
- early cut-off of a long note was misread as a stray-quote bug — the model kept re-quoting a call with no
1497
- quote problem and burned all 3 retries. Fix: detect a **multi-line content body** by the escaped newlines
1498
- the server echoes in `last read: '…'` (2+ `\n` = a note/file, never a shell command) and route it to the
1499
- shorten/split nudge regardless of column; that nudge now also covers un-splittable notes ("rewrite MUCH
1500
- shorter") not just file writes. `test/truncated-toolcall.test.mts` (multi-line low-column case). 628
1501
- passing (+1). Note: the work itself was never at risk — only the trailing scratch note.
1502
-
1503
- ## 0.1.119 — 2026-09-27 — auth client_id canonicalization · Biome lint · monorepo hygiene
1504
- - **Device-flow `client_id` → canonical `operator`.** `src/auth/client.ts` now sends `"operator"` (the
1505
- AuthGate Postgres app_id) instead of `"operator-cli"`, so the gate/brand surfaces key on the same tenant.
1506
- Confirmed harmless with the operator-tsi lane (device service records it as a free-text label, no
1507
- registration/lookup).
1508
- - **Biome lint config (dev-only).** `@biomejs/biome` devDependency + `biome.json`; `npm run lint` runs
1509
- `biome check src test` → 80 advisory warnings, 0 errors, exit 0. Linter on `recommended` with the rules
1510
- that fire on the existing style set `off` and the rest `warn`; formatter configured but `enabled: false`
1511
- (enforcing it would reformat the whole tree). No source files touched. Biome config gotchas recorded in
1512
- `_ai-docs/conventions/kode-tsi.md`.
1513
- - **Monorepo hygiene.** Root README H1 `# kode` → `# Operator` (body was already Operator-branded); root
1514
- `.gitignore` now ignores `node_modules` with **no trailing slash** (worktrees symlink it to the main
1515
- checkout, and a symlink isn't a dir — the old `node_modules/` skipped it). New living log
1516
- `_ai-docs/operator-frontier-gaps.md` (open: list_directory ENOENT hinting, git-tool cwd).
1517
-
1518
- ## 0.1.118 — 2026-09-26 — sub-agents get a designated box
1519
- - **Sub-agents panel is now a designated, bounded region.** During a busy turn the background sub-agents
1520
- list rendered flush under the (up to 10-item) plan list with a vague `background` header — cramped and
1521
- hard to parse. It's now a dim **rounded box** headed `sub-agents · N running`, detached from the plan by a
1522
- top-margin gap, so it reads as its own zone (matching the "⇉ tools in parallel" card). Kept SHORT
1523
- (`BG_MAX_VISIBLE` cap + capped activity lines) to stay clear of the v0.1.92 dynamic-frame border-orphan
1524
- flood; documented one-line fallback to borderless if it ever recurs on a very long turn.
1525
- `test/bgpanel.test.mts` (box border + label assertion). 627 passing (+1). tsc clean.
1526
-
1527
- ## 0.1.117 — 2026-09-26 — minimize-duplication guard · compaction progress TUI
1528
- - **Minimized-terminal text duplication, fixed.** Minimizing the window fires a resize reporting
1529
- `columns/rows = 0`, and `process.stdout.columns ?? 80` does NOT catch `0` (`??` only falls back on
1530
- null/undefined). A `0` divided in `liveTail`'s wrap math (→ Infinity/NaN) and returned the WHOLE
1531
- streaming message unbounded — Ink then stacked the streaming line ~30× into scrollback. New
1532
- `ui/term.ts` (`termCols`/`termRows`, floored to a sane minimum) is now the ONE place layout reads the
1533
- window size; all 9 dimension reads route through it, and `liveTail` clamps internally as defense in
1534
- depth. `test/transcript.test.mts` (0×0 regression case).
1535
- - **Compaction progress TUI + double-run guard.** `/compact` runs the multi-second Aurora summarizer;
1536
- before this it showed nothing while running, so users pressed it again and it ran twice (double-freed).
1537
- New `compacting` `AppStatus` drives the amber `RecoverSpinner` ("compacting context…") so it's visibly
1538
- in progress; a synchronous `statusRef` guard makes a second `/compact` while one is in flight a no-op
1539
- ("compaction already in progress…"); the done line now reports `freed ~N · ctx X%→Y%` so completion is
1540
- unmistakable. `test/app-fullscreen.test.mts` (compacting spinner renders).
1541
- - Full suite: 626 passing (+2). tsc clean.
1542
-
1543
- ## 0.1.116 — 2026-09-26 — colored edit diffs · plan-mode Approve&run · web parallel box · repo hygiene
1544
- - **Colored edit diffs on file-edit rows.** A settled `file_edit`/`multi_edit`/`file_write` row now shows
1545
- green `+N` / red `−M` (and up to 4 colored preview lines on small edits) so "what changed" reads at a
1546
- glance. Pure `ui/editdiff.ts` (LCS line diff, capped) + `ToolStep` render; degrades to the old row for
1547
- non-edits. `test/editdiff.test.mts` + `test/toolstep-editdiff.test.mts`.
1548
- - **Plan mode "Approve & run".** When a plan was proposed in plan mode, exiting plan mode surfaces a picker
1549
- `[Approve & run / Keep planning / Cancel]`; **Approve auto-submits "Proceed with the approved plan."** so
1550
- it executes without re-typing. Pure `ui/planExit.ts` (`shouldPromptPlanExit`/`resolvePlanExit`) +
1551
- QuestionPrompt. `test/plan-exit.test.mts`.
1552
- - **Parallel-batch box now crosses to web.** The frozen `ToolEvent` gains additive `batchId`/`batchSize`/
1553
- `batchIndex` (stamped per round in `engine/agent.ts`, threaded through `permissions`/`session`), and
1554
- **kode-web** groups concurrent tools into the same "⇉ N tools in parallel" bordered card (`groupByBatch`,
1555
- live `onToolResult` rows). Mobile grouping is a documented follow-up (`_ai-docs/features/…-web.md`).
1556
- - **Repo hygiene (kiyoko).** Proprietary `LICENSE` at monorepo root, `.gitignore` hardening (`.env*`,
1557
- `.DS_Store`, `coverage/`, `*.tsbuildinfo`), and a `typecheck` npm script.
1558
- - Serving: Aurora KV `q8_0 → f16` on JL2 (idle decode 56 → 60 tok/s) + 128K context; the earlier slowness
1559
- was node contention, not the model. Suite target 600+/0.
1560
-
1561
- ## 0.1.115 — 2026-09-26 — parallel tool calling: read_files batch tool, parallel box, paste fix
1562
- - **`read_files` batch tool + `parallel_tool_calls` (emission — the speed lever).** New `read_files`
1563
- (`tools/registry.ts`) reads up to 20 files in ONE call via `Promise.allSettled` — string paths or
1564
- `{path,offset,limit}`, per-file error isolation, reusing `fileRead`'s sandbox/cap guards. One call
1565
- replaces N serial `file_read` round-trips (the biggest wall-clock win on a slow decoder). `aurora.ts`
1566
- sets `parallel_tool_calls: true` on the /v1 request so a compliant server can emit multiple tool calls
1567
- per turn; the persona directive now pushes batching. `test/tools-extra.test.mts`.
1568
- - **Parallel tool-batch box (rendering lane).** When >1 tool runs CONCURRENTLY in a round (`executeParallel`),
1569
- the terminal groups them into ONE round-bordered box — "⇉ N tools in parallel · <dur>" header over the
1570
- per-call rows — instead of a flat list. New `ui/ToolBatch.tsx` (reuses the SummaryCard border + ToolStep
1571
- row); `cli.tsx` `onToolBatch` pushes a single `{kind:"toolBatch"}` entry when a round has >1 tool.
1572
- `test/toolbatch.test.mts`. (web/mobile grouping needs a `batchId` on the frozen event contract — a
1573
- follow-up.)
1574
- - **Composer paste fix.** Bracketed paste no longer leaks `\x1b[200~`, duplicates, or hangs on an
1575
- unterminated paste (50ms idle-flush fallback clears the guard); a pasted `/path` is no longer parsed as a
1576
- slash command (`util/slash.ts` requires a single line + a known command token). `PasteStateMachine` + 10
1577
- behavior tests.
1578
- - **/login:** a second consecutive bare `/login` opens the browser device-grant (no `--browser` needed);
1579
- clearer opener message (`open()` can silently no-op over SSH / non-default browser). Suite 597/0.
1580
-
1581
- ## 0.1.114 — 2026-09-26 — in-session /login uses the working email-code flow
1582
- - Live bug: in-session `/login` went straight to the RFC 8628 browser device-grant, which dead-ends at
1583
- "token copied" and never completes back in the session — so people who ran `/login` got stuck with a
1584
- copied token and no sign-in. (`auth/commands.ts` already defaults the SHELL `operator auth login` to email
1585
- for exactly this reason — it documents the terminal→browser dance as janky.) Rewired `/login` to the same
1586
- proven email + 6-digit-code flow: **`/login <email>`** sends a code, **`/login <code>`** verifies it and
1587
- signs in. `/login <token>` still pastes a PAT; **`/login --browser`** is the explicit device-grant fallback.
1588
- - Extracted the pure arg router **`classifyLoginArg`** (`src/auth/login-intent.ts`) so routing is tested
1589
- apart from the network glue — pins that a PAT isn't mistaken for an email, nor a token for a 6-digit code.
1590
- `test/login-intent.test.mts` (+2 tests). Suite 566/0.
1591
-
1592
- ## 0.1.113 — 2026-09-26 — memories.md: flat global + project memory (Claude-parity)
1593
- - Operator now auto-loads a flat, always-loaded **`memories.md`** into its system prompt every session — the
1594
- same model comparable agents use, with a **global** layer (every project) plus a **project** layer (this
1595
- repo). Global lives beside `operator/settings.json` (`~/.axe/operator/memories.md`; override with
1596
- `KODE_MEMORIES_FILE`); project is `.operator/memories.md` (or a repo-root `memories.md`). Global is emitted
1597
- FIRST and project LAST, so a repo-specific note overrides a global one — the same more-specific-wins
1598
- precedence as the settings layer. Distinct from the existing semantic recall store (relevance-ranked): this
1599
- is plain, human-editable markdown injected verbatim, wired into BOTH the interactive shell (`cli.tsx`) and
1600
- the headless autonomy runners (`session-factory.ts`), so `operator run/loop` gets the same memory.
1601
- - **`/remember [--global] <note>`** now appends a bullet to `memories.md` (project by default; `--global`
1602
- targets the user-global file), creating the file with a heading on first write — the write half kept in
1603
- sync with the read half — while still feeding the semantic store. `persona.ts` gains `loadMemories`,
1604
- `appendMemory`, `globalMemoriesPath`, `projectMemoriesPath`. `test/persona.test.mts` (+3 behavior tests:
1605
- both layers load and order, append-creates-then-reads-back, absent-is-silent). Suite 564/0.
1606
- - Completes the sub-agent lifecycle (spawn → status → message → **stop** → **monitor**) on top of 0.1.111's
1607
- id-fix. **`stop_agent`**: `stop_agent(id)` halts one running sub-agent, `stop_agent()`/`"all"` cancels every
1608
- running + drops every queued one, each posting a `[stopped by user]` note (no silent vanish, no double-post).
1609
- **Observability:** BgPanel states are now unambiguous (running / done / errored / queued; done shows "result
1610
- posted", errored "check transcript"); a **`/agents`** command lists sub-agents with round/label/tokens/elapsed
1611
- + a summary count line; and a **turn-end banner** ("N sub-agents still running — results post when done") fires
1612
- when the foreground finishes while agents are live, so "turn complete" is never misleading.
1613
- `test/agent-stop.test.mts` + `test/agent-observability.test.mts`. Suite 561/0.
1614
-
1615
- ## 0.1.111 — 2026-09-26 — sub-agents stop being mistaken for shell jobs
1616
- - Live: the model spawned sub-agents (ids `bgN`), then tried to poll them with `bash_output(id=bg1)` →
1617
- "no background job bg1", concluded they were "evicted by compaction" (they were still running), and
1618
- re-spawned DUPLICATES onto the one shared endpoint. Fix (lands PR from the sub-agent lane): sub-agent ids
1619
- renamed `bgN` → `agent-N` (disjoint from `shell_background`'s own `shN` ids); `bash_output`/`bash_kill`
1620
- now REDIRECT an `agent-N`-shaped id to `agent_status`/`message_agent` instead of a bare error; a new
1621
- read-only **`agent_status`** tool gives the model a real status check instead of guessing "evicted"; and
1622
- `spawn_agent`/`message_agent` wording now states plainly that a sub-agent auto-posts its result and must
1623
- not be polled or re-spawned. `test/agent-id-namespace.test.mts`. Suite 546/0.
1624
-
1625
- ## 0.1.110 — 2026-09-26 — wait out a "Loading model" 503 instead of failing the turn
1626
- - Live: a JL2 aurora restart returned `503 "Loading model"` and the turn died — a 503 was generic-transient
1627
- (≤3 retries, ~8s backoff = ~24s), giving up before the ~30-90s model reload finished. New `"loading"`
1628
- self-heal class: `classifyFailure` maps a 5xx whose body says loading/warming/starting (not a bare
1629
- "unavailable") to `loading`; the loop waits it out on a separate patient budget (`MAX_LOADING_RETRIES`=20 ×
1630
- `loadingBackoffMs`, default 6s ≈ 2min) and retries the SAME endpoint (no failover — it's the one coming
1631
- up). A generic 503 still fails over as transient. `test/loading-retry.test.mts`. Suite 542/0.
1632
-
1633
- ## 0.1.109 — 2026-09-26 — sub-agent lifecycle hardening (lands #36)
1634
- - Lands the sub-agent lifecycle hardening pass (PR #36) on top of 0.1.108: a bounded in-flight queue
1635
- (running + queued, not just running) behind one shared capacity line; the plan pane refreshes live on a
1636
- child's task activity; a shallow-test detector that stops a hollow existence-only test from
1637
- rubber-stamping `verified:true`; `makeSession()` failure handling and a wall-clock stall watchdog; the
1638
- truncated-tool-call nudge now targets the actual cause (quote vs chunk, picked from the server's parse
1639
- position; retries 2→3); and a colored per-round activity phrase in the background panel. Also carries the
1640
- voice mic-first session-open fix already on `main`. Suite 540/0.
1641
-
1642
- ## 0.1.108 — 2026-09-26 — /compact rescues a session stuck over a small window
1643
- - Companion to 0.1.107. Live: on a failed-over 64K endpoint at 70k tokens, `/compact` said "nothing to
1644
- compact yet" — `compactNow` force-evicts via `compact()`, which only drops turns older than
1645
- `minKeepTurns` (2), so when the bulk is a single huge recent turn (a trace dump) nothing is evictable and
1646
- the message-count delta is 0. Now `compactNow` also `fitToWindow` after evicting — eliding the largest
1647
- tool outputs in place until it fits the active endpoint's (learned) window — and reports approx TOKENS
1648
- freed ("freed ~N tokens" / "already minimal — nothing to shed") instead of a message count. Same
1649
- `fitToWindow` the auto-recovery path uses. `test/compact-command.test.mts`. Suite 525/0.
1650
-
1651
- ## 0.1.107 — 2026-09-26 — never crash on context overflow; paste keeps its payload
1652
- - Context-overflow crash (live 09-26): a turn died on `aurora /v1 400 exceed_context_size_error`
1653
- (`n_ctx` 65536) after failover to a JL2 endpoint serving 64K while the roster advertised 256K — so
1654
- proactive compaction, sized to the advertised window, never fired and the request overflowed the real
1655
- limit. Fix, three layers: (1) LEARN the real window from the server's own error (`selfheal.servedContextLimit`
1656
- parses `n_ctx`; `AuroraRouter.observeContextLimit` clamps the endpoint DOWN, monotonic) so proactive
1657
- compaction fires correctly for the rest of the session; (2) when the bulk is a single huge recent turn
1658
- eviction can't shed, `compaction.fitToWindow` elides the largest tool outputs in place so the retry fits;
1659
- (3) the per-round choke point now fits-to-window after compacting, so a request is never dispatched over
1660
- the current window. The turn recovers (learn → elide → retry) instead of throwing. New integration test
1661
- drives the real `runTurn` against a 400-then-200 server. `_ai-docs/features/2026-09-26-context-overflow-recovery.md`.
1662
- - Composer paste: a bracketed paste collapsed to a `[Pasted #N]` chip but DISCARDED the payload —
1663
- Enter sent the literal label, not the pasted text (multi-line steers arrived as `[Pasted #1]`). Now the
1664
- payload is stored and expanded on submit (`pasteChip`/`expandPastes`, unit-tested without a TTY); short
1665
- single-line pastes stay inline.
1666
- - Suite 523/0. Ships ahead of PR #36 (sub-agent lifecycle hardening), which lands next as 0.1.108.
1667
-
1668
- ## 0.1.106 — 2026-09-26 — background panel reads as progressing, not "broken"
1669
- - A throttled sub-agent queue (2 run at a time on the shared endpoint, the rest wait for a slot) looked
1670
- stuck: header said only "background (4)". Now it shows "background · N running · M queued", and rows are
1671
- sorted working-first (0.1.104) — so a draining queue reads correctly. Suite 507/0.
1672
-
1673
- ## 0.1.105 — 2026-09-26 — robust by default: stop over-fanning-out sub-agents on one endpoint
1674
- - Live: Operator spawned 5-6 sub-agents for a linear 8-item plan; since they ALL share the one Aurora
1675
- endpoint, parallel = contention, so it crawled 25+ min at 0/8. Parallelism on a single model endpoint
1676
- does not speed a linear plan — it slows it.
1677
- - Fix (two layers): (1) `spawn_agent`'s description now tells the model plainly that it shares ONE endpoint
1678
- with its sub-agents, to use spawn_agent only for genuinely independent long work at most 1-2 at a time,
1679
- and to do a linear/dependent plan itself in sequence; (2) hard backstop `MAX_BG` 4→2 concurrent. With
1680
- 0.1.104's panel cap, the frame also stays clean. Suite 507/0.
1681
-
1682
- ## 0.1.104 — 2026-09-26 — stop the duplicated-plan "mess": cap the background-agents panel
1683
- - Live on JL2: with a 6-agent fan-out, the plan pane + background panel re-rendered every ~2s and Ink's
1684
- INLINE redraw orphaned a STALE copy of the whole frame into scrollback on each re-render — the plan
1685
- stacked up 3-5× ("this is a mess"). Root cause: a tall, frequently-changing dynamic frame near the
1686
- terminal bottom loses Ink's cursor anchor, so it appends instead of erasing.
1687
- - Fix: `BgPanel` now shows at most 3 agents (working first) + a `+N more running` line, so the dynamic
1688
- frame stays short and the in-place redraw stays reliable. (Fullscreen/alt-screen avoids the orphaning
1689
- entirely and is the recommended mode for heavy fan-out — `ui.fullscreen: true`.) Suite 507/0.
1690
-
1691
- ## 0.1.103 — 2026-09-26 — fix the malformed-tool-call recovery for the embedded-quote case
1692
- - Live 09-26 (v0.1.98 on JL2): a turn died on `aurora /v1 500: Failed to parse tool call arguments as JSON
1693
- … missing closing quote` when the model emitted `grep -l "^dependencies"` — a raw double-quote inside a
1694
- bash argument that broke the tool-call JSON. selfheal correctly classified it as `truncated_tool_call`,
1695
- but the recovery nudge only described the OTHER cause (an over-long file write cut off at the token
1696
- limit), so the model got useless guidance, re-emitted the same quoted command, exhausted the 2 retries,
1697
- and the turn errored.
1698
- - **Fix (both layers):** (1) the nudge now covers BOTH causes and gives the concrete fix — rewrite a
1699
- double-quoted pattern with single quotes (`grep -l '^x'`), or split an over-long write; (2) preventive:
1700
- the `bash` tool description now tells the model to prefer single quotes for patterns/paths. Full suite
1701
- 507/0; `tsc` clean.
1702
-
1703
- ## 0.1.102 — 2026-09-26 — .operator/ harness loader: repo-local agents & commands
1704
- - The engine loaded a single `.operator/AGENTS.md`; this adds the DIRECTORY half — `.operator/agents/*.md`
1705
- (named sub-agent personas) and `.operator/commands/*.md` (command playbooks), the model-agnostic analog
1706
- of a `.claude/agents|commands` dir. A repo now SHIPS its own harness instead of it living in one
1707
- operator's home directory. New `src/config/operator-harness.ts` (`loadOperatorAgents/Commands`,
1708
- `renderHarnessContext`, `operatorAgentPersona`), wired into both the interactive (`cli.tsx`) and headless
1709
- (`session-factory.ts`) system prompts.
1710
- - **`spawn_agent` gains an optional `agent`** — naming a repo persona from `.operator/agents/` prepends it
1711
- to the sub-agent brief (low-risk task-prefix; no background-factory change). The model sees the available
1712
- agents + commands listed in its context.
1713
- - Seeded this repo: `.operator/agents/{code-reviewer,test-writer}.md`, `.operator/commands/{release,review-changes}.md`.
1714
- - Tests: `test/operator-harness.test.mts` (7). Full suite 507 passed, 0 failed; `tsc` clean.
1715
-
1716
- ## 0.1.101 — 2026-09-26 — task list: add `task_clear`; nudge incremental status updates
1717
- - The plan had no way to be CLEARED — the model could only `task_add` and `task_update` status, so "clear
1718
- the list / reset / move on" had no honest home (it would mark everything done to hide the pane). Added a
1719
- **`task_clear`** tool (wipes the list; `completed_only:true` drops just finished tasks). PlanPane already
1720
- hides once every task is done — now the model can also clear on request.
1721
- - Strengthened `task_update`'s guidance: mark `in_progress` when a step starts and `done` the instant it
1722
- finishes, ONE at a time, not batched at the end — so the live plan tracks real progress instead of jumping
1723
- at the turn's end (the batched-update behavior seen with the small local model). Full suite green (500/0).
1724
-
1725
- ## 0.1.100 — 2026-09-26 — REVERT 0.1.99: the catalogue serves `/v1/skills` (0.1.99 was a regression)
1726
- - 0.1.99 wrongly repointed `skill_list`/`skill_fetch` to `/skills`. Root cause of the mistake: I read
1727
- JL1's *incidental* lightweight `:8401` service (which serves `/skills`) as the skills origin. The
1728
- **canonical** catalogue that `operator.axe.onl` / `skills.axe.onl` reach (`axe-skills-catalogue`,
1729
- hub.serve, on JL2 `:8742`) serves the **versioned** contract — `/v1/skills`, `/v1/skills/search?q=`,
1730
- `/v1/skills/<slug>` — verified live 200 with real data. `/skills` 404s there. So 0.1.99 broke
1731
- `skill_list` against the real registry.
1732
- - Reverted to `/v1/skills*`. The original "unreachable" symptom was a **downed tunnel** (`axeskills-operator`
1733
- CF error 1033, ~24h), not a client path bug — it self-recovered. Full suite green (500/0); `tsc` clean.
1734
- - Lesson encoded in-code: a same-numbered port on a different host is a different service; when skills read
1735
- "unreachable", check the tunnel/origin, don't change the path.
1736
-
1737
- ## 0.1.99 — 2026-09-26 — skill registry: speak the backend's real `/skills` contract
1738
- - `skill_list` / `skill_fetch` called `/v1/skills*`, but the AXE skills origin (operator.axe.onl /
1739
- skills.axe.onl → the `:8401` skillsapi) serves the listing at `/skills` (search via `?q=`), not a
1740
- versioned path — `/v1/skills` 404s. Repointed the client to the origin's actual contract: `/skills`,
1741
- `/skills?q=<q>`, `/skills/<slug>`. This is why `skill_list` reported "skill registry unreachable" even
1742
- when the origin was reachable. Verified live: `curl <origin>/skills` → 200 with the real skill list
1743
- (count 110) when routed to the JL1 skillsapi. Full suite green (500/0); `tsc` clean.
1744
- - Note: the public `operator.axe.onl` / `skills.axe.onl` hostnames also had a *connectivity* fault
1745
- (CNAME'd to a downed tunnel; fleet routing since split-brained between the JL1 skillsapi and an
1746
- unrelated gateway) — that half is a fleet-infra action, tracked separately; this release fixes the
1747
- client path so the tool works end-to-end the moment the origin routing is sound.
1748
-
1749
- ## 0.1.98 — 2026-09-26 — cut residual inline flashing (slow the animation timers)
1750
- - Ink re-renders the WHOLE frame on every state change, so each animation timer is a full-frame redraw.
1751
- Three independent fast timers compounded on top of the 64ms stream throttle and flashed on Terminal.app.
1752
- Slowed them ~40% with no loss of legibility: **StepSpinner 80→125ms**, **ThinkingSpinner 110→150ms**,
1753
- **ToolStep elapsed 100→250ms**, **turn elapsed 250→500ms**. Combined with the 0.1.94 stream/swarm throttle
1754
- and the 0.1.97 inline default, this is the low-render-pressure path. Full suite green; `tsc` clean.
1755
-
1756
- ## 0.1.97 — 2026-09-26 — revert fullscreen-default (regressed) + AI-agnostic fleet model config
1757
- - **Reverts fullscreen as the default (0.1.96 was wrong).** Fullscreen (alt-screen) redraws the WHOLE frame
1758
- on every spinner tick / timer / token, which flashes far more than inline's small dynamic-tail redraw —
1759
- and its boot render doubled the masthead/service-preflight lines with a dead middle. Inline is the default
1760
- again (native scrollback + the masthead boot + smaller redraws). Fullscreen stays opt-in via `--fullscreen`
1761
- / `KODE_FULLSCREEN=1` / `settings.ui.fullscreen:true`; its alt-screen boot + redraw need work before it can
1762
- be default. (The empty-space-at-idle it was meant to fix is inline-inherent and fills as you work.)
1763
- - **AI-agnostic, fleet-portable model config** (`modelMode` + `fleet.auroraNodes`). Every node picks its
1764
- model source in `settings.json`: `"local"` (default — this node's own drop-in model at
1765
- `endpoints.aurora.base`) or `"aurora"` (the shared fleet Aurora hybrid: JL1 primary → JL2 failover). The
1766
- engine never names a model or node in code; dropping in a different model or adding a serving node is a
1767
- one-line config edit (`KODE_MODEL` / `KODE_MODEL_MODE` env, or settings). New `docs/MODEL-CONFIG.md`;
1768
- `resolveModelMode()` + tests in `test/settings.test.mts`. Full suite: 496 passed, 0 failed (68 files); `tsc` clean.
1769
-
1770
- ## 0.1.96 — 2026-09-26 — fullscreen by default: composer pinned to the bottom (no dead space)
1771
- - **Fixes the "dead space at the bottom" (reported repeatedly).** Inline mode renders content-height, so on
1772
- a short/idle session the composer sat high with the terminal blank below it. Fullscreen (alt-screen) pins
1773
- the status rule + composer + footer to the **bottom** of the terminal and fills the transcript upward —
1774
- no dead space. Verified by screenshot (idle: composer at the floor, ctx ring visible in the status rule).
1775
- - **Fullscreen is now the default** enterprise layout. Opt back to inline (native terminal scrollback +
1776
- copy) with `operator --inline`, `KODE_FULLSCREEN=0`, or `settings.ui.fullscreen: false`. Tradeoff:
1777
- alt-screen bounds the in-app transcript view (older entries scroll off; the full turn is still in the
1778
- session log / resumable). Full suite: 495 passed, 0 failed (68 files); `tsc` clean; app-fullscreen render test covers it.
1779
-
1780
- ## 0.1.95 — 2026-09-26 — session hygiene: completed plan clears + sub-agent runaway cap
1781
- - **A fully-completed plan pane now clears itself** instead of lingering. Once every step is `done` the pane
1782
- has no live value; the per-step ✓ already showed as each landed, so the finished list drops away rather
1783
- than occupying the frame (reported live). New test in `test/planpane.test.mts`.
1784
- - **Background sub-agents get a hard round cap (50)**, vs the foreground's 200. A focused delegated task
1785
- (review / a specific fix) that reaches 50 rounds isn't converging — it's re-exploring with different
1786
- commands each round, which the progress-gated stall guard reads as progress and never stops. Seen live
1787
- 09-26: two review sub-agents ran to round 42+/31 (30+ min each) on a saturated Aurora while two more sat
1788
- queued behind them forever. The cap bounds a runaway well below the foreground ceiling. (`session.ts`
1789
- threads `maxRoundsHard`; `cli.tsx` sets 50 for the background Session.)
1790
- - Full suite: 495 passed, 0 failed (68 files); `tsc` clean.
1791
-
1792
- ## 0.1.94 — 2026-09-26 — kill TUI flicker under streaming/swarm + ctx fill-ring (TUI correctness)
1793
- - **Fixes flicker (seen 09-26, v0.1.92).** During a fast reply or a multi-agent swarm, the dynamic frame
1794
- (plan + background panes + live tail) redrew dozens of times/second — Ink re-renders the WHOLE non-Static
1795
- frame on every state change, and the stream updated state **per token** (`setLive`/`setLiveTok`) while the
1796
- background pane updated on **every sub-agent token** (`setBgAgents`). A tall frame + that update storm =
1797
- visible flicker.
1798
- - **Fix:** new `throttle()` util (`src/util/throttle.ts`) coalesces those hot updates to ~15fps (one redraw
1799
- per ~64–90ms) with a guaranteed trailing flush, so the final frame always lands. Wired into the live
1800
- stream (token accumulator flushed on a throttled tick) and the sub-agent panel. Redraw rate during a
1801
- swarm drops from dozens/s to ~15/s — no flicker, identical final output. Tested in `test/throttle.test.mts`
1802
- (leading + single-trailing coalescing, latest-value capture).
1803
- - **ctx fill-ring:** the status rule now shows context usage as a fill ring `○◔◑◕●` next to the %, so how
1804
- full the window is reads at a glance (wires the catalog's `ring()` primitive into the status bar).
1805
- - Full suite: 494 passed, 0 failed (68 files); `tsc` clean. Verified live on JL1 via a real headless
1806
- Operator work-session (built + ran + verified a CLI end-to-end on JL1's Aurora).
1807
-
1808
- ## 0.1.93 — 2026-09-26 — stop the live-tool pane flooding scrollback with ghost lines (TUI correctness)
1809
- - **Fixes a live regression (seen 09-26, v0.1.92).** On a long turn with many parallel tool batches, the
1810
- transcript flooded with faint full-width "rule" lines that stacked until the screen was unusable and hard
1811
- to scroll. Root cause: the live **"running N tools in parallel"** pane (and, latently, the `plan` and
1812
- `background` panes) rendered a **rounded box border in Ink's dynamic (non-`Static`) region**. In inline
1813
- mode every time the `Static` transcript grows mid-turn Ink re-lays the dynamic frame and **orphans the
1814
- box's top/bottom border rows into scrollback** — dozens of ghost lines over a multi-batch turn.
1815
- - **Fix:** the three dynamic-region panes (`App.tsx` live-tools, `PlanPane`, `BgPanel`) are now **borderless**
1816
- (dim header + left indent for grouping) — no border rows to orphan. The settled cards (Summary/Stats) are
1817
- `Static`-rendered and were never affected. Full suite: 491 passed, 0 failed (67 files); `tsc` clean.
1818
- - **Also:** fixed `package.json` `publishConfig.registry` (was `registry.npmjs.org`, where there's no token)
1819
- → `https://pkg.axe.onl`, the fleet registry, so a bare `npm publish` routes correctly (no `--registry` flag).
1820
-
1821
- ## 0.1.92 — 2026-09-26 — recover a truncated tool call instead of a failover storm (engine correctness)
1822
- - **Fixes a live crash (seen 09-26, v0.1.80).** When the model emitted one over-long tool call — a whole
1823
- ~8KB file written in a single `file_edit` `new_string` — generation hit the output-token cap MID-string,
1824
- leaving the tool-call JSON unterminated. llama.cpp's server rejected it (`aurora /v1 500: Failed to parse
1825
- tool call arguments as JSON: missing closing quote` / `Unterminated string in JSON`). The engine treated
1826
- every 500 as transient → blind endpoint failover, which is **futile** (the next endpoint truncates the
1827
- same write) and cascaded into `[turn error: fetch failed]` and a dropped session.
1828
- - **Fix — give this 500 its own recovery class.** `selfheal.classifyFailure` now returns
1829
- `truncated_tool_call` for a 4xx/5xx whose body says the server couldn't parse the model's own tool-call
1830
- arguments. The agent loop handles it by injecting a short **chunk-the-write nudge** and retrying the SAME
1831
- endpoint (no route switch, failover budget untouched); after `MAX_TRUNC_RETRIES` (2) it surfaces the error
1832
- honestly rather than looping. Root cause attacked (model strategy), not the symptom (which server answered).
1833
- - **Headroom.** `clampMaxTokens` floor raised 512 → 1024 so a tool-calling round keeps room to finish a full
1834
- tool call's arguments instead of truncating mid-JSON — reducing how often the recovery is needed at all.
1835
- - Touched `src/engine/selfheal.ts` + `src/engine/agent.ts` + `src/engine/compaction.ts`; new
1836
- `test/truncated-toolcall.test.mts` (classifier + in-place recovery with no failover + retry-cap surfacing).
1837
- Full suite: 491 passed, 0 failed (67 files); `tsc` clean.
1838
-
1839
- ## 0.1.91 — 2026-09-26 — tree views (```tree fenced blocks) (TUI wave item)
1840
- - **A ```tree code block renders as a connector-drawn tree** (├─ └─ │) instead of flat text — for file
1841
- layouts, dependency trees, structure outlines. Trigger is explicit (the `tree` fence language), never
1842
- guessed; indent (2 spaces or a tab per level) sets depth. Box-drawing glyphs, Terminal.app-safe.
1843
- - New `src/ui/tree.ts` (pure `renderTree`) wired into `Markdown.tsx`; tested in `test/tree.test.mts`
1844
- (sibling connectors, │ risers, deep chains, blank-line handling). Full suite: 488 passed, 0 failed (66 files).
1845
-
1846
- ## 0.1.90 — 2026-09-26 — /stats session dashboard (cost + throughput) (TUI wave item)
1847
- - **New `/stats` command** pushes a session dashboard card: turns · tool calls · cumulative tokens · avg
1848
- decode tok/s, a **throughput sparkline** (per-turn tok/s trend — so the ~56 tok/s config bottleneck is
1849
- visible over time), and a **context-fill bar** (amber past 80%). Exercises the chart primitives.
1850
- - New `src/ui/StatsCard.tsx` + a `stats` transcript entry kind; per-turn tok/s tracked in the CLI. Pure
1851
- `statsLine()` + render tested in `test/statscard.test.mts`. Full suite: 484 passed, 0 failed (65 files).
1852
-
1853
- ## 0.1.89 — 2026-09-26 — terminal charts (sparkline/bar/ring) + plan-pane progress bar (TUI wave item)
1854
- - **Chart primitives** (`src/ui/chart.ts`): `sparkline(values)` (8-level block trend), `bar(value,max,width)`
1855
- (filled/empty progress bar), `ring(pct)` (5-step quarter-glyph dot) — the drawing primitives for the
1856
- richer panes (plan progress, sub-task bars, a future cost/throughput dashboard). Pure, BMP-safe, tested.
1857
- - **Plan pane now shows a progress bar** next to its `n/total done` header (e.g. `plan · 2/5 done ████░░░░`),
1858
- so you see completion at a glance. Full suite: 481 passed, 0 failed (64 files).
1859
-
1860
- ## 0.1.88 — 2026-09-26 — bidirectional sub-agent coms (message a running agent)
1861
- - **The sub-agent channel is now two-way.** Before, `spawn_agent` was one-way (brief in, result out). New
1862
- **`message_agent(id, text)`** tool lets the foreground send a message to a STILL-RUNNING sub-agent —
1863
- steer it, add context it now needs, or answer a question — and the child receives it as a follow-up turn
1864
- in its own conversation and keeps going. (The child→parent direction was already live: the background
1865
- panel streams each agent's steps + reasoning, and it posts its result when done.)
1866
- - Mechanism: `BackgroundAgents.sendToAgent(id, text)` enqueues into a per-agent inbox; the run loop drains
1867
- the inbox as follow-up sends before finishing (bounded to 6, so a chatty parent can't loop a child).
1868
- Returns false for a finished/unknown agent so the parent knows the message didn't land. Wired via a
1869
- `messageAgent` Session callback → `message_agent` tool (foreground only, like `spawn_agent`).
1870
- - Test: `test/agent-coms.test.mts` (a queued message becomes a real follow-up turn; finished/unknown agents
1871
- reject). Full suite: 478 passed, 0 failed (63 files).
1872
-
1873
- ## 0.1.87 — 2026-09-26 — background sub-agents edit in an isolated git worktree (no more shared-tree races)
1874
- - **Fix for a live hazard:** a foreground turn and a background sub-agent were both editing the same file
1875
- in the same working tree at once. Now a **file-editing** background agent (task type `code-edit`) runs in
1876
- its **own git worktree on its own branch**, branched from HEAD — its edits are quarantined there and can't
1877
- touch the foreground tree. When it finishes, its changes are committed onto the branch and the worktree is
1878
- removed, so the work survives as a reviewable branch (`git diff HEAD..operator/<id>`), surfaced in the
1879
- agent's done-summary. Read-only lanes (search/review/plan) still share the live cwd (they *should* see the
1880
- real tree). Best-effort: not a git repo → no isolation, runs in the shared cwd as before.
1881
- - Mechanism: `Executor` gains an optional `root` that reroots each tool call — relative file paths resolve
1882
- under the worktree, command tools default their `cwd` there (absolute/`~` paths untouched). `Session` takes
1883
- a `cwd`; `BackgroundAgents` creates/finalizes the worktree per code-edit child; verify-before-done runs
1884
- *in* the worktree. Toggle with `settings.background.worktree` / `KODE_BG_WORKTREE=0`.
1885
- - New `src/tools/executor.ts rootArgs` + `src/background/worktree.ts`; tests: `test/executor-root.test.mts`
1886
- (pure rooting) and `test/worktree.test.mts` (real git — proves isolation + branch handoff). Full suite:
1887
- 476 passed, 0 failed (62 files).
1888
-
1889
- ## 0.1.86 — 2026-09-26 — plan / checklist pane (TUI wave item)
1890
- - **The session TODO list now renders as a live checklist pane.** When Operator tracks multi-step work via
1891
- `task_add`/`task_update`, a bordered pane shows each item with a status glyph (☐ pending · ◐ in-progress ·
1892
- ☑ done, done items struck through) and a `plan · n/total done` header — so you can watch it work the plan,
1893
- the way a person follows a todo list. Sourced from the engine store (`registry.getAgentTasks`), refreshed
1894
- after any `task_*` tool; collapses to nothing when there are no tasks.
1895
- - New `src/ui/PlanPane.tsx` + `PlanTask` type; pure `planProgress()` + render tested in
1896
- `test/planpane.test.mts`. Full suite: 469 passed, 0 failed (60 files).
1897
-
1898
- ## 0.1.85 — 2026-09-26 — phase line + esc-to-interrupt hint (TUI wave item 04)
1899
- - **A dim phase line during any active turn** names what Operator is doing right now — `reasoning`,
1900
- `writing`, `running tools`, or `recovering` — and always reminds you `· esc to interrupt`. So a long turn
1901
- never leaves you wondering what it's on or how to stop it. Bounded to one line (no frame-height risk).
1902
- - Full suite: 466 passed, 0 failed (59 files).
1903
-
1904
- ## 0.1.84 — 2026-09-26 — end-of-turn summary card + verify badge (TUI wave item 06)
1905
- - **A compact summary card now lands after every turn that did work** (used ≥1 tool): wall time · output
1906
- tokens @ decode tok/s · prefill · rounds · tools, in a rounded card. Pure Q&A turns skip it (no noise).
1907
- - **Verify badge:** the card lights an amber "⚠ changed files · not verified (no passing check ran)" line
1908
- when the turn mutated files but the verify-before-done gate saw no passing check — so an unverified change
1909
- is never silent. `unverified` now flows AgentTurnResult → TurnOutcome → the card.
1910
- - New `src/ui/SummaryCard.tsx` (Static-rendered) + a `summary` TranscriptEntry kind; pure `summaryLine()`
1911
- tested in `test/summarycard.test.mts`. Full suite: 466 passed, 0 failed (59 files).
1912
-
1913
- ## 0.1.83 — 2026-09-26 — syntax-highlighted code fences (TUI wave item 07)
1914
- - **Fenced code in answers is now syntax-highlighted** like an editor instead of flat monochrome — the most
1915
- visible win for a coding agent whose output is mostly code. Keywords → accent, calls → info/cyan, strings
1916
- → green, numbers → amber, comments → dim. Language comes from the fence info string (```python, ```ts,
1917
- ```bash, …); the `#`-vs-`//` comment style follows the language.
1918
- - Dependency-free, line-based heuristic tokenizer (`src/ui/highlight.ts`) — terminal display, not a lexer,
1919
- with a hard invariant (verified) that tokens always reassemble to the exact source line, so no character
1920
- is ever dropped or duplicated. Colors are applied by `Markdown.tsx` from the theme palette. Pure
1921
- `tokenize()` tested in `test/highlight.test.mts`. Full suite: 463 passed, 0 failed (58 files).
1922
-
1923
- ## 0.1.82 — 2026-09-26 — loop guard no longer kills productive work that narrates repetitively
1924
- - **Found by a real-world drive of the actual engine (not a unit test):** a small local model narrates
1925
- repetitively ("writing the next module") while doing genuinely different work each round. The cross-round
1926
- loop guard keyed on the PROSE ALONE, so it counted those distinct-work rounds as a loop and stopped the
1927
- turn at round 3 — almost certainly the deeper cause behind the "same line over and over" a build showed.
1928
- - **Fix:** the guard now signs the WHOLE round — narration + the tool calls it drives (name+args). Distinct
1929
- work (mod1, mod2, mod3 — different args) yields distinct signatures and never accumulates; only an
1930
- identical round (same prose AND same action, or repeated prose with no action) trips it. A genuine loop
1931
- still stops at 3, even when the tool "progresses" (returns non-empty). Regression tests added to
1932
- `test/agent-progress-cap.test.mts`; verified end-to-end by driving `runTurn` + the real tool executor
1933
- against a scripted model that writes 12 real files while repeating its narration — it now runs to
1934
- completion. Full suite: 456 passed, 0 failed (57 files).
1935
-
1936
- ## 0.1.81 — 2026-09-25 — stop stamping the same narration once per tool in a parallel batch
1937
- - **Fixed the repeated "let me check…" line** that appeared once per tool during a parallel batch (looked
1938
- like 5 tools each emitting the same sentence). Cause: the model's just-streamed interstitial narration
1939
- stayed in the LIVE frame while N parallel tools settled one-by-one; each settle re-rendered a tall frame
1940
- (narration + the N-row tool box) that Ink's erase-by-line-count could mis-handle, stamping the prose into
1941
- scrollback once per tool. Fix: clear the live narration at `onToolStart` — during execution the frame is
1942
- just the bounded tool rows, so there's nothing tall to re-stamp. The prose still shows while it streams;
1943
- the final answer is unaffected (it's pushed once at turn end). Full suite: 456 passed, 0 failed (57 files).
1944
-
1945
- ## 0.1.80 — 2026-09-25 — opt-in fullscreen layout (composer pinned to the bottom)
1946
- - **Fullscreen mode** for anyone who wants the composer anchored at the bottom instead of the inline layout's
1947
- unused space below a short conversation. OFF by default. Enable per-run with `--fullscreen`, per-env with
1948
- `KODE_FULLSCREEN=1`, or persistently with `settings.ui.fullscreen: true`.
1949
- - On: switches to the terminal's ALTERNATE screen buffer, the transcript fills a clipped, bottom-anchored
1950
- region (a non-Static tail — `Transcript bounded`), and the status rule + composer + footer sit pinned at
1951
- the very bottom. On exit the main buffer is restored, so the terminal comes back exactly as it was
1952
- (vim/less style).
1953
- - Tradeoff (why it's opt-in): alt-screen forgoes the terminal's native scrollback + select/copy of past
1954
- output that the default inline layout keeps. Try it, keep it if you like it.
1955
- - Default inline layout is unchanged. Render-tested (`test/app-fullscreen.test.mts`). Full suite: 456 passed,
1956
- 0 failed (57 files).
1957
-
1958
- ## 0.1.79 — 2026-09-25 — rich answers: markdown tables, task-lists/quotes/rules/links + composer footer
1959
- - **Markdown tables in answers** (`src/ui/Table.tsx`, TUI wave item 02). A `| a | b |` / `|---|` block now
1960
- renders as a box-drawn, column-aligned table (`┌┬┐│├┼┤└┴┘`) with GFM alignment (`:--` left, `--:` right,
1961
- `:--:` center). Column widths auto-fit the terminal — the widest columns shrink first (never below 3
1962
- cells, truncating with `…`) so a wide table never wraps and creeps the frame. Width math reuses the
1963
- status rule's `cellWidth`/`truncateToWidth`, so a double-width glyph never skews a column. Rendered only
1964
- on settled entries (Static-safe). Pure parse/align/fit/pad logic tested in `test/table.test.mts`.
1965
- - **Richer markdown** in assistant output (`src/ui/Markdown.tsx`, wave item 03): task lists (`- [ ]`→☐,
1966
- `- [x]`→☑ green), `>` blockquotes (dim bar), `---`/`***`/`___` horizontal rules, `[text](url)` links and
1967
- bare URLs rendered clickable via OSC 8 (degrade to `label (url)` where unsupported), and headings/inline
1968
- code now use the theme palette.
1969
- - **Composer footer** — the `◆ auto · shift+tab to cycle` mode hint now renders BELOW the input rule (a
1970
- footer under the composer) instead of inside the input zone, so the input reads as its own clean band.
1971
- - Full suite: 455 passed, 0 failed (56 files).
1972
-
1973
- ## 0.1.78 — 2026-09-25 — don't quit mid-build + TUI theme tokens (one palette, capability-aware)
1974
- - **The turn no longer stops a productive build mid-mission.** A live session building a Python CLI was
1975
- cut off at round 11 with "[stopped after 11 tool rounds — the task may be unfinished]" while it was
1976
- actively writing files. Two compounding root causes, both fixed:
1977
- - **A silent-but-successful shell command was miscounted as a stall.** The model built the CLI with
1978
- `cat > f <<EOF` heredocs; a heredoc that writes a file and prints nothing returns `(no output)` (an
1979
- exit-0 success), but `batchProgressed` (agent.ts) treated *any* `(no output)` as "no progress." Six
1980
- such rounds in a row tripped `NO_PROGRESS_LIMIT`. Now only a **failed** silent command
1981
- (`(no output; exit N)`), an error, or the loop guard counts as a stall — a bare `(no output)` is
1982
- progress. (`write`/`edit` return `wrote …`/`edited …`, so they were never the issue.)
1983
- - **The foreground turn used the hardcoded soft budget of 10, not the configured 40.** `settings.
1984
- autonomy.maxRounds` (40) is now threaded through `Session` into `runTurn` for interactive turns too,
1985
- so the progress-guard doesn't even engage until round 40. It remains a floor on effort, not a hard
1986
- cap — the engine still auto-continues while progressing and hard-stops only on a genuine stall or the
1987
- absolute 200-round ceiling. Regression tests in `test/agent-progress-cap.test.mts`: a silent-success
1988
- build runs to completion; a failed-silent command still stalls.
1989
- - **TUI: one theme palette (`src/ui/theme.ts`), capability-aware.** Every component pulled its own
1990
- hex/named colors (the brand star was `magenta` in one place, `magentaBright` in another). Now a single
1991
- set of semantic tokens (accent, info, success, error, warn, running, starBright, textBright, muted) with
1992
- a three-tier fallback ladder: truecolor/256 → the brand hex, 16-color → a named ANSI fallback (not
1993
- chalk's muddy auto-downsample of a brand purple), `NO_COLOR`/`KODE_NO_COLOR` → no escapes, and a
1994
- `KODE_THEME=high-contrast` mode → bright named colors. Output is byte-identical at truecolor; the win is
1995
- one source of truth plus real low-color/high-contrast behavior. Adopted across Header, StatusRule,
1996
- ToolStep, BgPanel, ActivitySpinner, ThinkingSpinner, and the Masthead gradient. Tests: `test/theme.test.mts`.
1997
- - Full suite: 448 passed, 0 failed (55 files).
1998
-
1999
- ## 0.1.77 — 2026-09-25 — sub-agent verify actually RUNS the command (kill the hollow verify)
2000
- - **The orchestrator now executes, it doesn't just ask.** `grandmaster.verifyFinalAnswer` previously only
2001
- stat'd that claimed files exist and *surfaced* the `verify_command` for the child to run — so a
2002
- sub-agent's `verified` was a self-report (the same hollowness that let "37/37, engine works" through).
2003
- Now it RUNS the declared `verify_command` and gates `verified` on the real exit code, reusing the
2004
- main-loop allowlist/parser (`isVerifyCmd`/`ranButFailed`): a recognized test/build/run that exits 0 =
2005
- verified; a failure, a non-recognized/absent command (echo/true/none), or a missing file = **not
2006
- verified**. This is the foundation an adversarial reviewer lane needs — the harness owns the truth, not
2007
- the 56 tok/s model's say-so. `bash -lc` with a 180s timeout; child_process loads lazily (neutral bundle
2008
- unaffected). Behavioral test: `test/grandmaster-verify.test.mts`.
2009
- - Designed via an adversarial design-critic pass that caught the naive "reviewer sub-agent" would be a
2010
- *second* rubber stamp (same model, same cwd, no exec) — so we built the exec foundation first. The
2011
- isolated read-only reviewer lane + synchronous verdict-gating are the next steps.
2012
-
2013
- ## 0.1.76 — 2026-09-25 — TUI: clickable paths + instant --version/--help
2014
- - **OSC 8 hyperlinks** (`src/ui/osc.ts`): tool-step file paths (`path`/`file`/`filename` args) are now
2015
- clickable — click a path to open it in your editor, on terminals that support it (iTerm2 ≥3.5, Ghostty,
2016
- WezTerm, Kitty, VS Code). Degrades safely everywhere else (macOS Terminal.app renders the plain label;
2017
- the escapes are zero-width to Ink's string-width, so columns/truncation stay correct). Non-TTY output
2018
- stays plain; `KODE_NO_HYPERLINKS=1` disables. Pure, unit-tested (`test/osc.test.mts`).
2019
- - **`operator --version` / `--help` fast-path**: handled before Ink/React mounts — instant, and `--version`
2020
- now works with no TTY (it previously errored asking for an interactive terminal).
2021
- - Grounded in a TUI-advancements research pass that confirmed per-token repaint is already handled
2022
- (`<Static>` + Ink's 32ms write throttle) — so no effort went to the hot path. Next: Synchronized Output
2023
- (DEC 2026) for atomic, flicker-free frame painting on modern terminals (needs a write-coalescing stdout
2024
- proxy + visual confirmation).
2025
-
2026
- ## 0.1.75 — 2026-09-25 — background sub-agent concurrency cap (never overload the host)
2027
- - **An agent must never kill its own node.** A live session fanned out 4 concurrent `aurora-code-1`
2028
- background sub-agents on top of Aurora serving on one 64GB box and starved it clean off the network
2029
- (ping/SSH/Aurora port all dead ~1h). `BackgroundAgents` now caps concurrently-running sub-agents
2030
- (default **2**, `settings.background.maxConcurrent` / `KODE_BG_MAX`): excess spawns enter a **`queued`**
2031
- state and are promoted the instant a running slot frees (on completion or stop). The panel shows queued
2032
- agents (`◌`), and the queue wait isn't counted as run time. Behavioral test in
2033
- `test/background-concurrency.test.mts` (3 spawns at cap 2 → 2 working + 1 queued → promoted on release).
2034
- Frontier-parity reliability: bounded fan-out is table stakes for an agent that runs unattended.
2035
-
2036
- ## 0.1.74 — 2026-09-25 — git operations upgrade (stop the raw-git flailing)
2037
- - **Structured `git_status` tool + a persona steer.** A live session watched Operator loop on raw
2038
- `bash(git status/add/diff)` — misreading porcelain, re-running the same commands, and confused when an
2039
- already-committed tree showed "nothing to add" — until the loop guard cut it off. Fix: a read-only
2040
- `git_status` tool that returns ONE clean summary (branch, ahead/behind vs upstream, staged/unstaged/
2041
- untracked lists), with a clean tree stated plainly as **"nothing to commit" = success** so the model
2042
- stops spelunking. New "## Git" persona rule steers to `git_status` (don't loop on raw git; a clean tree
2043
- is success) and to commit via `git_command`/`checkpoint` with explicit paths + conventional message.
2044
- Parser (`src/tools/git-status.ts`) is pure + unit-tested (`test/git-status.test.mts`).
2045
-
2046
- ## 0.1.73 — 2026-09-25 — AXE engineering self-check baked into the persona
2047
- - **The fleet SOP, as active guidance in Operator's own head.** Added a compact "How I work — the AXE
2048
- self-check" section to `src/config/persona.ts`: before acting, state the ROOT CAUSE (not the symptom)
2049
- and reuse the nearest existing pattern (a new one needs a reason); stay scoped; match the surrounding
2050
- code so the work is indistinguishable from the repo owner's; log the non-obvious WHY to the repo's
2051
- `_ai-docs/`; commit clean (conventional `type(scope): subject`, explicit paths, no AI/Co-Authored-By/
2052
- Claude-Session trailers). The "before done" leg is already covered — and *harness-enforced* — by 0.1.70
2053
- (verify by running) + 0.1.71 (the verify-before-done gate), so this is deliberately non-duplicative.
2054
- Full reference shipped at `docs/operator-selfcheck.md`; fleet SOP of record is `~/.axe/AXE-ENGINEERING-SOP.md`.
2055
- Guarded by `test/persona.test.mts`. (Coordinated with the fleet SOP rollout in memjar/nimbus.)
2056
-
2057
- ## 0.1.72 — 2026-09-25 — accurate live token counts (main + sub-agents)
2058
- - **Live token readout now shows the real count.** The live counter (main spinner AND the background
2059
- sub-agent panel) incremented ≈1 per streamed content delta — so it missed every token generated as a
2060
- tool-call argument or reasoning. A sub-agent writing skill files (all tool-arg output) read as "53 tok"
2061
- after 9 minutes; the main agent orchestrating sub-agents sat frozen at "220 tokens"; nothing ever
2062
- crossed 999. Now a new `onTokens` callback carries the authoritative llama.cpp per-round count
2063
- (`predicted_n`, summed) and the hosts display THAT — so the number matches what the model actually
2064
- generated and climbs into the thousands as it should.
2065
- - `src/engine/agent.ts`: fire `onTokens(cumulativeOutputTokens)` after each round.
2066
- - `src/session.ts`: thread it through `TurnHandlers` → `runTurn`.
2067
- - `src/cli.tsx`: the main live counter snaps to the real total each round (delta stream still animates
2068
- between rounds).
2069
- - `src/background/index.ts`: the sub-agent panel shows the real running total, not the ≈1/delta tally.
2070
- - Regression guard in `test/agent-toolheavy-tokens.test.mts` (onTokens fires per round, cumulative,
2071
- final == turn total).
2072
-
2073
- ## 0.1.71 — 2026-09-25 — harness-enforced verify-before-done
2074
- - **The gate that makes 0.1.70 real.** Persona rules are ignorable on a weak model; this makes "done" a
2075
- fact the harness *computes* from observed tool execution, never a phrase the model emits. When a turn
2076
- changed files (`file_write`/`file_edit`) but no verify-shaped command was seen to pass, the main loop
2077
- injects ONE reminder to run the real check and gives the model another round; if it still doesn't, the
2078
- answer is finalized with a `⚠ Not verified` banner and the trajectory is withheld from the flywheel.
2079
- - **Predicate = allowlist** of verify command heads (`npm/pnpm/yarn/bun/npx/node/tsc/vitest/jest/pytest/
2080
- go/cargo/make/…` + running a local `./script`), so `echo`/`cat`/`ls`/`true`/`grep`/`test -f`/`git` are
2081
- excluded for free — which catches the SGE incident deterministically (its file-exists "tests" are not
2082
- verifications). Pass/fail keys on a newly-surfaced exit code.
2083
- - **Plumbing fix:** `tools/registry.ts` `shellExec` dropped the exit code whenever a command printed
2084
- output, so a failing `npm test` was indistinguishable from a pass. Now appends `[exit N]` on nonzero
2085
- (exit-0 output unchanged) — the model and the gate can both see failure.
2086
- - **Flywheel tie-in:** a claimed-but-unverified code turn is no longer `graded` — the fleet stops
2087
- training on hollow "done".
2088
- - New `src/engine/verify-gate.ts` (pure, neutral-bundle safe) + `src/config/settings.ts`
2089
- `verifyGate {enabled:true, maxNudges:1}` (`KODE_VERIFY_GATE=0` to disable). Behavioral tests in
2090
- `test/verify-gate.test.mts`; design in `docs/verify-before-done.md`. Designed by a four-lens
2091
- master-agent panel (loop placement · minimal mechanism · behavior contract · validation+flywheel).
2092
-
2093
- ## 0.1.70 — 2026-09-25 — verify by running before you claim done
2094
- - **Persona: never self-certify without running it.** Operator's base system prompt now forbids reporting
2095
- that something "works / passes / is complete" on reasoning alone — it must execute the actual command,
2096
- CLI, or code path and read the result, and its tests must assert BEHAVIOR, not just that files exist
2097
- ("green tests that assert nothing are not proof"). Prompted by the same live session that shipped a
2098
- Skill Graph Engine reported as "engine works · 37/37 · Phase 1 complete" when — verified by an adversarial
2099
- review that actually ran it — the CLI didn't parse on any bash, the graph resolver returned empty for
2100
- every skill (an edge-type `depends` vs `depends_on` mismatch), and all 37 tests were `[ -f ]`/`jq empty`
2101
- existence checks. This is the CAPTURE-side complement to 0.1.69: fix what you find, and prove it ran.
2102
- Guarded by `test/persona.test.mts`.
2103
-
2104
- ## 0.1.69 — 2026-09-25 — fix-what-you-find (stop asking, start fixing)
2105
- - **Persona: fix defects on your own initiative instead of asking.** Operator's base system prompt
2106
- (`src/config/persona.ts`) now states, as a first-class rule, that when it finds a bug while doing or
2107
- testing its own work it FIXES the clear/mechanical/high-severity ones and re-runs the check that proves
2108
- the fix — it does NOT pause to ask "should I fix these?", and does NOT advance to the next phase/task
2109
- while known bugs from the current one are still unfixed (which risks leaving them unfixed forever). Only
2110
- genuine judgment calls (design decisions, real tradeoffs, destructive/irreversible actions) go back to
2111
- the user. Prompted by a live session that found 9 bugs, fixed none, and asked whether to fix or jump to
2112
- Phase 2. Guarded by `test/persona.test.mts`.
2113
-
2114
- ## 0.1.63–0.1.68 — 2026-09-25 — reliability sweep + self-improvement loop
2115
- Shipped from live Operator sessions on JL2. Newest first within the batch.
2116
- - **0.1.68 — self-improvement loop, out of the box.** Every completed turn appends a graded trajectory to
2117
- `~/.axe/operator/flywheel/<date>.jsonl` (`input/content/rounds/toolCalls/tokens/model/cwd`; `graded=true`
2118
- when it produced content, ran ≥1 round, and wasn't cut for repetition). This is the CAPTURE side the
2119
- fleet's `recursive_self_improve.py` training loop consumes — nothing recorded real CLI turns before.
2120
- Default-on, best-effort, never blocks; opt out with `KODE_SELFIMPROVE=0`. Memory/skill/reflection sinks
2121
- scaffolded on the same per-turn hook (`settings.selfImprove`); reflection off by default (an extra
2122
- generation per turn hurts local-model latency).
2123
- - **0.1.67 — clear on terminal resize.** Minimize/resize desynced Ink's erase-by-line-count bookkeeping, so
2124
- every later re-render (keystroke, 250ms clock) APPENDED the status rule instead of overwriting it. A
2125
- debounced `clear()` on stdout resize re-syncs to the real terminal.
2126
- - **0.1.66 — failover auto-recovery.** A session that failed over to the standby never climbed back — the
2127
- router scanned forward from the failover index and never consulted health. Now a circuit-breaker with a
2128
- 45s cooldown climbs back to primary once healthy, via a size-floor kept separate from failover.
2129
- - **0.1.65 — readable sub-agent labels.** Labels were the first 28 chars of the raw "You are building…"
2130
- brief, so every agent chopped to the same boilerplate. Now derived from the actual objective.
2131
- - **0.1.64 — cross-round narration loop guard + version from package.json.** A model re-emitting the
2132
- IDENTICAL sentence each round while reading a different file looped 7+ min because the guard cleared on
2133
- tool progress; now identical prose is counted regardless of progress. VERSION reads package.json at
2134
- runtime so the splash can't drift from the published version.
2135
- - **0.1.63 — exact token metering + hardened decode-loop guard.** `stream_options.include_usage` yields
2136
- exact `completion_tokens` on tool-call rounds (was under-counting to ~0 → chars/4 fallback). Loop guard
2137
- gained fuzzy-normalized + word-8gram + runaway-length detection for garbled/run-together repeats.
2138
- - Also: fleet auto-install of companions (autopilot/chauffeur) sourced by IP not the drifting `JL1-2.local`
2139
- mDNS name. Tests: 387/387.
2140
-
2141
- ## 0.1.62 — 2026-09-23
2142
- - **Naming: the internal model name is gone from every user-facing surface.** The only outward names are
2143
- "axe" / "Operator" / "0perator"; the internal model name never appears in anything a user sees.
2144
- - Renamed the user-facing model ids `aurora-1m` / `aurora-128k` → `operator-1m` / `operator-128k`
2145
- (labels "Operator 1M" / "Operator 128K"). The OLD ids are kept as working **aliases** (findModel
2146
- normalizes them), so a persisted `settings.activeModel: "aurora-1m"`, a `/model aurora-1m`, or any
2147
- muscle memory keeps resolving — the rename loses nothing.
2148
- - Swept the HELP text, boot masthead, status line, `/model` picker, sign-in copy, service/endpoint
2149
- labels, capacity/error messages, and the system prompt (so the model itself won't echo the name).
2150
- - Internal ids/vars/config, endpoint hostnames, and the served model name (`aurora-code-1`) are
2151
- untouched. Also cleaned kode-mobile + kode-web user-facing strings ("JL1" → "your Mac", etc.).
2152
- - Tests: 379/379 (incl. a new alias regression test proving the legacy `aurora-*` ids still resolve).
2153
-
2154
- ## 0.1.61 — 2026-09-22
2155
- - **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.
2156
- - Tests: 379/379 (search glob now green on the no-rg path).
2157
-
2158
- ## 0.1.61 — 2026-09-22
2159
- - **Fix: `search` glob honored without ripgrep (CI red on 0.1.60).** The glob (e.g. "*.ts") is now enforced
2160
- by a JS post-filter over the result lines (basename fnmatch) in BOTH the ripgrep and grep-fallback paths.
2161
- grep's `--include` and rg's `-g` have platform-varying semantics — GNU grep on CI (ubuntu, no rg) let
2162
- "*.ts" through — so the tool no longer trusts the underlying flag alone. Verified on the grep path with rg
2163
- hidden. Tests: 379/379.
2164
-
2165
- ## 0.1.60 — 2026-09-22
2166
- - **`http_request` tool (capability #5).** A real HTTP client beyond `web_fetch`'s GET-and-scrape: any method
2167
- (GET/POST/PUT/PATCH/DELETE/HEAD), custom headers, a JSON (`json`) or raw (`body`) payload, bearer/basic auth,
2168
- redirects, timeout. Returns status + response headers + the capped body verbatim (no HTML stripping) — for
2169
- authenticated REST/GraphQL/webhook calls. safe:false (can mutate → gated when the policy is on).
2170
- - **`file_upload` tool (capability #7).** The push side Operator lacked: POST multipart/form-data (default,
2171
- `field` names the part) or PUT raw bytes (S3 presigned-PUT style), same bearer/basic auth as http_request.
2172
- safe:false (exfiltrates a file → gated; confirm the destination). btoa (not node Buffer) keeps both tools
2173
- neutral-bundle-safe; resolved auth secrets are never echoed into the result.
2174
- - **Drivable operating mode across host + web** (folds in the landed remote-control commit): `/mode
2175
- [plan|manual|auto]` (autonomous→auto, gated→manual); single `applyMode()` path for Shift+Tab / /mode / /plan
2176
- / follower frame keeps policy + plan flag + badge + capabilities in lockstep; `RemoteCapabilities.mode` is the
2177
- live 3-state ("gated" back-compat alias); "mode" in REMOTE_SAFE_COMMANDS. Web (0perator.co/remote) drives it.
2178
- - Capability roadmap (`docs/capabilities/`): #5 and #7 now SHIPPED; cloud/docker/ssh/monitoring/media-processing
2179
- are reachable via the fleet MCP gateway (`mcp:true`); webhook receiver (#8) + super daemon (#9) remain to build.
2180
- - Tests: 379/379 (5 new: http_request GET/POST-json/basic-auth, file_upload multipart + raw PUT).
2181
-
2182
- ## 0.1.59 — 2026-09-22
2183
- Efficiency fixes for the failure the live screenshot caught: a filesystem-hunt task ran ~40 rounds of
2184
- `find ~/ | grep | grep`, hit the per-command timeout, killed + reset the persistent shell (losing cwd/env)
2185
- → "shell failed to start" cascade → "[stopped after 40 tool rounds]" → "[turn error: fetch failed]". Three
2186
- blunt limits stacked and killed a task that WAS making progress. Four fixes remove them at the source:
2187
- - **Subshell-scoped timeout (`tools/shell-session.ts`).** A per-command timeout now SIGKILLs only the stuck
2188
- command's process subtree (bash's descendants) and leaves the persistent shell alive — bash reaps the job
2189
- and prints its pending sentinel, so `cd`/exported env SURVIVE a timeout. The shell is only respawned when
2190
- it's genuinely wedged (no sentinel returns AND nothing was killable / stdin no longer accepts writes). Kills
2191
- the "shell failed to start" cascade.
2192
- - **Progress-aware round cap (`engine/agent.ts`).** The loop no longer hard-stops at a fixed 40 rounds while
2193
- it's making progress. A `noProgressStreak` (reset by any tool batch that returns new results, via the
2194
- existing `batchProgressed`) ends the turn only on a genuine stall — N consecutive empty batches past the
2195
- soft budget — or an absolute 200-round safety ceiling. A turn that keeps finding results runs to completion.
2196
- - **`search` tool (ripgrep) + prompt steer (`tools/registry.ts`, `cli.tsx`).** New fast, scoped, .gitignore-aware
2197
- `search` tool (falls back to grep when rg is absent; `files_with_matches` for locate-before-read). The
2198
- "Finding things" system-prompt section now leads with it and forbids `find ~/ | grep` over the whole home
2199
- dir, with narrow-first + batch guidance. `grep_search` defers to `search`. Removes most timeouts at the source.
2200
- - **Transport-level fetch retry (`engine/aurora.ts`).** A transient pre-response network drop ("fetch failed")
2201
- is retried a couple times with short backoff at the fetch layer — before any SSE bytes stream, so a resend
2202
- can't duplicate output — instead of aborting the turn. Reuses `selfheal.ts` classify/backoff; aborts and
2203
- real HTTP errors are never retried here (the agent loop still owns those).
2204
- - Tests: 374/374 (9 new: shell timeout cwd/env survival, progress-cap extend + stall, fetch-retry + abort,
2205
- search tool content/glob/files-only/no-match). Live-verified end-to-end against Aurora :8097 — scoped
2206
- search (no whole-home sweep), no shell cascade, no 40-round hard-stop.
2207
-
2208
- ## 0.1.58 — 2026-09-22
2209
- - **`/login` runs the device-grant flow inline.** Typing `/login` (no arg) now requests a device code,
2210
- opens the browser to the AuthGate approval page with the 6-char code, polls until you approve, then
2211
- stores the token, sets it for immediate remote-engine use, and shows "✓ Authenticated as <you>" — no
2212
- dropping to the shell. `/login <token>` still pastes a PAT for headless sign-in. (Approval-page domain
2213
- is AuthGate-configured — OPERATOR_AUTH_VERIFICATION_URI.)
2214
- - Tests: 365/365.
2215
-
2216
- ## 0.1.57 — 2026-09-22
2217
- - **ReportLab PDF tools ship STANDARD.** report-mcp (build_pdf_report, build_pdf_from_markdown) is now
2218
- always injected — Operator can generate PDFs out of the box without opting into the full MCP fleet
2219
- (`settings.mcp`). New STANDARD_MCP_SERVERS list + loadStandardServers(); the standard hub merges with
2220
- the chauffeur embodiment hub when computer control is on. When the full fleet is enabled, report-mcp is
2221
- already in it, so no double-wire.
2222
- - Tests: 365/365.
2223
-
2224
- ## 0.1.56 — 2026-09-22
2225
- - **Shift+Tab cycles the operating mode (Claude-Code parity).** AUTO (execute without asking) → MANUAL
2226
- (approve mutating tools via the gated policy + approve bridge) → PLAN (read-only research + a proposed
2227
- plan, nothing runs) → AUTO. A persistent dim hint under the input shows the current mode, and each
2228
- switch prints a one-line confirmation. Maps to the mobile Manual/Auto/Plan selector. New Session API:
2229
- setPermissionMode() rebuilds the policy at runtime (preserving tier + rules); plan mode was already native.
2230
- - Tests: 365/365.
2231
-
2232
- ## 0.1.55 — 2026-09-22
2233
- - **Remote-engine auth — Operator now runs against a REMOTE engine.** The model call sent no
2234
- Authorization header, so it only worked against a local `:8097`; a thin client pointed at the
2235
- authed `api.axe.onl` gateway got 401. `aurora.ts` now injects the operator bearer for a non-loopback
2236
- base (never for local `:8097`), loaded once at boot from the keychain. Verified E2E: `chat()` →
2237
- `https://api.axe.onl` with the operator token returned a real completion. This is what lets a 4 GB
2238
- MacBook run Operator against JL1's Aurora (`KODE_AURORA=https://api.axe.onl` + `operator auth login`).
2239
- - Relay: `ownerSub` now read from the AuthGate's `account.external_id` for real per-owner session scoping.
2240
- - Tests: 365/365.
2241
-
2242
- ## 0.1.54 — 2026-09-22
2243
- - **Fixed the mobile/JSCore purity gate (CI was red on main).** The persistent-shell bash tool imported
2244
- `node:child_process` via a string-literal `import("node:...")`, which esbuild `--platform=neutral`
2245
- statically resolves — so the Node builtin leaked into `index.browser.ts`'s graph and the on-device
2246
- mobile engine bundle failed to build. Routed it (and the `./shell-session.js` import in registry.ts)
2247
- through the codebase's `nodeImport` variable-specifier idiom, which esbuild cannot statically resolve,
2248
- keeping the Node-only shell tool out of the neutral bundle. Gate now exits 0.
2249
- - **Fixed the stderr merge race in the bash tool.** stdout and stderr were separate OS pipes merged in
2250
- JS, so a command's stderr chunk could land after the sentinel that followed it on stdout and get
2251
- sliced off (the flaky "stderr is merged" test; real output loss on `cmd 1>&2`). Now merged at the
2252
- shell with `exec 2>&1` at session start — one ordered pipe, deterministic, genuinely terminal-like.
2253
- - Tests: 365/365, neutral purity gate green.
2254
- - (Companion branch `feat/purity-curl` applies the identical nodeImport gating to the curl tool's
2255
- node:dns/node:net for when it lands.)
2256
-
2257
- ## 0.1.53 — 2026-09-22
2258
- - **Parallel tool calls, made visible.** System-prompt guidance now tells the model to BATCH independent
2259
- tool calls in one round (the engine already ran batches in parallel via executeParallel — the model just
2260
- wasn't asked to). A new live per-call TUI view renders each call in a batch as its own row (name · args ·
2261
- running→done · ms · result), render-safe alongside the streaming tail.
2262
- - **Token meter fixed (it was under-counting, not the model being "nerfed").** Tool-call rounds report
2263
- predicted_n≈0 from llama.cpp, so a 40-call turn showed "365 tok". chat() now falls back to a chars/4
2264
- estimate when the server omits timings on a tool round; the real count always wins when present. No spend
2265
- cap exists (clampMaxTokens is a no-op at low ctx).
2266
- - **Live sub-agent visibility.** A working background sub-agent showed only a `round N` counter — opaque on a
2267
- slow local reasoning model. The panel now streams each child's real activity: its in-flight tool calls with
2268
- their identifying arg (`↳ file_read(src/cli.tsx) …`) and a dim, throttled tail of its current reasoning
2269
- (`⋮ …`). Steps/reads/thoughts, not just counters.
2270
- - **Sub-agent lifecycle: work → idle → decommission.** A finished child (result already posted to the
2271
- transcript) now clears from the panel after a 45s grace instead of lingering the whole session.
2272
- - **Fixed: exit-while-working froze the session.** Pressing /exit (or Ctrl-C) while a sub-agent was still
2273
- running left `operator` hung — the child's in-flight request kept the Node event loop alive. Exit now
2274
- disposes all background agents (interrupt + shutdown) so the process drains and quits cleanly.
2275
- - **Remote control: legible when unsigned.** `/remotecontrol` with no Operator token silently opened the
2276
- relay socket and surfaced the rejection as "connection lost". It now refuses before the wire with a clear
2277
- "run `operator auth login` first" message + an rc_no_token control event.
2278
- - Tests: 365/365.
2279
-
2280
- ## 0.1.52 — 2026-09-21
2281
- - Fixed: `operator update` on a source checkout failed cryptically ("git pull failed") when the tree was
2282
- dirty — common on a shared dev tree an agent is building in. It now detects the dirty tree, names the
2283
- uncommitted files, and points at `npm install -g @0perator/operator@latest` to update the INSTALLED
2284
- Operator instead, rather than a confusing hard-fail. Never auto-stashes (would clobber in-flight work).
2285
- - SPEC: deduped remote-session.md — capabilities + command frames now live only in the canonical
2286
- §5/§5a/§6/§6a; documented the ask_user / ask_user_response frames (pre-existing gap); recorded the
2287
- follower command policy (all-except exit/quit/login/logout/remotecontrol/remote; bg/services/dashboard
2288
- intentionally exposed per owner sign-off) + the capabilities summarization. (Nova, spec-rich-head-dedupe.)
2289
-
2290
- ## 0.1.51 — 2026-09-21
2291
- - Landed: **remote-control "rich head"** host side (SPEC/remote-session.md §11, PROPOSED — not part of
2292
- the v1 FROZEN envelope) — `RemoteHost` gains `RemoteCapabilities` (commands/skills/mcpServers/models/
2293
- mode/cwd/model) sent in the `snapshot` and re-sent as a `capabilities` state frame only when it
2294
- changes, plus a `command` drive frame (follower → host, `{name, args?}`) dispatched through the SAME
2295
- path a local `/name args` line takes. Client side (web command drawer, kode-mobile CommandSurface,
2296
- SPEC addendum) shipped separately in 0.1.50; this lands the host emit + dispatch handler.
2297
- - Owner decision: a follower may drive **every slash command except** `exit`/`quit` (kills the host
2298
- process), `login`/`logout` (mutates stored credentials), and `remotecontrol`/`remote` (a follower
2299
- could disconnect every other follower) — six hard-excluded case-labels. `bg`, `services`, and
2300
- `dashboard` are explicitly INCLUDED: `isOwnFrame()` (sessionId + ownerSub match) plus OPERATOR-token
2301
- relay auth means a follower is the authenticated owner on another device, not a third party.
2302
- `REMOTE_SAFE_COMMANDS` (`cli.tsx`) is the single allowlist for both what's advertised in
2303
- `capabilities.commands` and what `onCommand` will actually dispatch.
2304
- - Fixed (blocker, found in adversarial self-review — see `REMOTE_RICH_HEAD_AUDIT.md`): a
2305
- `capabilities.mcpServers` full tool enumeration at this fleet's real scale (600+ MCP tools across a
2306
- handful of servers) could exceed the SPEC §8 256 KB per-frame cap. `capCapabilities()` now sends each
2307
- server's name + true `toolCount` with `tools[]` capped to a 20-entry preview. Paired with the
2308
- pre-existing, previously-unenforced SPEC §8 snapshot cap: `capTranscript()` trims the snapshot to the
2309
- last 200 entries, then shrinks oldest-first until under 512 KB, marking `truncated: true` +
2310
- `omittedBefore: <seq>` when either bound bites.
2311
- - Tests: +15 vs 0.1.50 (10 from the host-side reference patch itself — `command` own/wrong-session/
2312
- mismatched-ownerSub/missing-name, capabilities in snapshot before/after connect, delta on change,
2313
- no-op on identical re-set; +5 from the blocker fix above — 600+ tool capabilities payload stays under
2314
- the 256 KB frame cap, toolCount survives the trim, small server lists pass through untrimmed,
2315
- 200-entry snapshot truncation + `omittedBefore`, no false-positive truncation on a short transcript).
2316
- Suite 347/347; `tsc --noEmit` clean.
2317
-
2318
- ## 0.1.48 — 2026-09-21
2319
- - Added: `/model` command — pick between `aurora-1m` (default, :8097), `aurora-128k` (:8096, lighter
2320
- RAM), or `moa` (Mixture of Agents) via an interactive picker (`/model`) or directly (`/model <id>`).
2321
- A single-profile switch rebuilds the session's router to point at that endpoint (`router/models.ts`,
2322
- `Session.setModel`) — no server is ever started/stopped, it only changes which endpoint THIS session
2323
- talks to. The choice persists to `operator/settings.json` (`activeModel`, `saveSettings`) and is
2324
- reapplied at startup. See `MOA-DESIGN.md`.
2325
- - Added: MOA (Mixture of Agents) execution mode (`engine/moa.ts`) — a turn fans out in PARALLEL to
2326
- `settings.moa`'s proposers (plain, tool-free chat completions), then runs the aggregator through the
2327
- normal turn loop (tool-calling, streaming, self-heal, telemetry all reused — v1 is aggregator-only
2328
- tool-calling) with the labelled candidate drafts folded into its system prompt. A proposer
2329
- failing/timing out is dropped, not fatal; zero survivors fall back to `aurora-1m` for that reply with
2330
- a clear note. `/model moa` without a `moa` block in settings explains what's missing instead of
2331
- running. Telemetry records which proposers ran, per-proposer latency, and which drafts survived.
2332
- - Added: `ask_user` remote-control relay emit (`RemoteHost.askUser`) — a clarification question is now
2333
- mirrored to `/remotecontrol` followers as a distinct `ask_user` frame (not folded into
2334
- `approval_request`); the follower's `ask_user_response` races first-wins against a local answer, same
2335
- pattern as approvals. Local (non-remote) `ask_user` is unchanged.
2336
- - Tests: +37 (`router/models.ts` registry + selection reducer, `engine/moa.ts` fan-out against real
2337
- local HTTP servers incl. a failing proposer, `Session.setModel`/MOA dispatch, `activeModel`
2338
- persistence round-trip, `RemoteHost` ask_user frame shape + response routing). Suite 317/317.
2339
-
2340
- ## 0.1.50 — 2026-09-21
2341
- - Hardening from a Carmack/Karpathy/Boris/Hinton master review of the 0.1.49 bash tool + anti-loop:
2342
- - **Fixed (blocker):** enterprise-tier allowlist denied the new `bash` tool (only `shell_exec` was listed),
2343
- so every enterprise seat broke on the first shell command. `bash` added to `ENTERPRISE_ALLOW`.
2344
- - **Fixed (blocker):** the process-wide `ShellSession` had no serialization — a foreground turn and a
2345
- background sub-agent both calling `bash` could stomp each other's buffer and cross-deliver output/exit
2346
- codes. Added a FIFO promise-queue so overlapping calls run one-at-a-time; sentinel regex anchored to
2347
- start-of-line; fast-fail when the shell dies mid-command; bounded buffer so a runaway (`yes`) can't OOM.
2348
- - **Fixed (would false-stop real work):** the narration-loop guard now gates on PROGRESS — repeated prose
2349
- only counts as a loop when the prior tool batch returned nothing new, so a model using a fixed template
2350
- over productive, varying work is never wrongly halted. Fingerprint is Unicode-aware (non-Latin narration
2351
- no longer exempt) and strips embedded tool-call JSON (text-recovered calls fingerprint the prose).
2352
- - Carmack shell-systems pass: spawn the persistent shell **detached** and kill by process GROUP so a
2353
- timed-out command's backgrounded grandchildren (`&` jobs) don't orphan (#6); wire `disposeShellSession()`
2354
- into the CLI exit/SIGTERM handlers so the shell never orphans on normal exit (#5, previously dead code);
2355
- add a `stdin` error handler so an EPIPE from a kill/write race can't crash the whole CLI (#7). The
2356
- `exit`-kills-bash fast-fail (#3) and buffer bound (#8 memory) already landed above.
2357
- - Known follow-ups (flagged by the review, not in this release): the permissions-layer `executeParallel`
2358
- fans unsafe tools through parallel `execute()` instead of the executor's sequential path (#1 — bash is
2359
- already covered by the queue above; other unsafe tools get a focused fix); backgrounded-child output can
2360
- bleed into the next command's buffer (#4 — needs per-job fds, a design change).
2361
- - Tests: +1 concurrency (overlapping run() serialize cleanly). Suite 332/332.
2362
-
2363
- ## 0.1.49 — 2026-09-21
2364
- - Added: **frontier `bash` tool** — a PERSISTENT shell session. `cd`, exported env vars, activated
2365
- venvs and shell functions now survive across bash calls like a real terminal, so the model sets
2366
- up once and reuses it instead of re-running `source .../activate && ...` on every call (the root
2367
- cause of the clumsy heredoc gymnastics + repeated-call loops seen in the wild). stdout/stderr come
2368
- back merged with the exit code; a per-command timeout kills+respawns the shell so a runaway command
2369
- can never wedge the session. `shell_exec` kept as a back-compat alias to the same engine.
2370
- - Implementation: `src/tools/shell-session.ts` (ShellSession, sentinel-framed, sandbox-wrapped via
2371
- `wrapInteractiveShell`); `registry.ts` routes shell_exec/bash through one per-process session; a
2372
- scoped `cwd` arg runs in a subshell so it doesn't silently move the session.
2373
- - Tests: +4 shell-session (cwd persists, env persists, stderr+exit surfaced, timeout recovers).
2374
- - 0.1.48 (Nova, merged earlier): /model command + MOA (Mixture of Agents) execution mode + model
2375
- registry (aurora-1m / aurora-128k / moa); ask_user remote-control relay emit; QuestionPrompt Ctrl-C
2376
- → DISCUSS; RemoteHost inbound-frame sessionId/ownerSub guard. Variant B web on 0perator.co.
2377
-
2378
- ## 0.1.47 — 2026-09-21
2379
- - Added: agent-cursor overlay tools curated into chauffeur's unprompted read set
2380
- (`set_agent_cursor_enabled`, `set_agent_cursor_theme`, `get_agent_cursor_state`) so the owner can SEE the
2381
- agent's mouse move on screen instead of driving blind.
2382
- - Added: `verify_state` (bounded read-only post-condition check) curated as a read, so the model can confirm
2383
- an action landed instead of guessing from the next screenshot.
2384
- - Strengthened: EMBODIMENT_GUIDE now has a firm directive — for ANY on-screen/click/read/drive request the
2385
- model MUST call the chauffeur tools (first call: `list_windows`), never answer from memory or claim it
2386
- can't see the screen. It also now enables the agent cursor at the start of any on-screen task.
2387
- - Tests: +3 chauffeur curated-set tests (cursor tools land as unprompted reads, no duplicates and set stays
2388
- focused at 26 tools, no destructive/session-ending/recording/update tool sneaks in). Suite 280/280.
2389
-
2390
- ## 0.1.46 — 2026-09-21
2391
- - Added: `scratchpad` tool — a private per-session notes file OUTSIDE the workspace (read with no args;
2392
- append, or mode:"overwrite"), so the model can think/track progress without cluttering the repo.
2393
- - Added: `session_handoff` tool — write a note for your FUTURE self in this directory (what you did, state,
2394
- next steps); it is auto-loaded into the system prompt at the start of the next session here, so Operator
2395
- resumes seamlessly. Files live under ~/.axe/operator/{scratch,handoff}.
2396
- - Tests: +4 scratchpad/handoff (append/read/overwrite, save/read-back, fail-safe). Suite 277/277.
2397
-
2398
- ## 0.1.45 — 2026-09-21
2399
- - Fixed: chauffeur computer-use looped ("session has ended", stale window ids, fell back to hand-written
2400
- osascript). Root cause: the MCP client discarded each tool result's `structuredContent`, where chauffeur
2401
- returns the real data (window list with ids, accessibility tree) while the text is only a summary
2402
- ("Found 76 windows."). `flattenResult` now includes structuredContent. Verified live end-to-end.
2403
- - Added: chauffeur session-lifecycle tools (start_session/get_session/list_sessions) so the model recovers
2404
- instead of looping; rewrote embodiment guidance (no `session` arg, fresh window_id per read, never
2405
- osascript a GUI).
2406
- - Added: honest token/prefill telemetry — live line shows "reading your prompt..." during prefill (not a
2407
- frozen "0 tokens"); settled metric shows output tok @ decode tok/s + prefill size; a cumulative session
2408
- token total (ΣNk) on the status rule.
2409
- - Tests: +5 MCP (flattenResult surfaces structuredContent). Suite 273/273.
2410
-
2411
- ## 0.1.44 — 2026-09-21
2412
- - Fixed: tool-step lines truncated the whole args blob, hiding the file path behind `content`. Now
2413
- identifying args (path/command/url/...) show first and in full; bulky payloads (content/text) show as a
2414
- size. file_write/edit/read/shell_exec always show the exact file + path.
2415
- - Tests: +5 tool-step. Suite 268/268.
2416
-
2417
- ## 0.1.43 — 2026-09-21
2418
- - Fixed: the render "everything scrolls to the top" collapse. The streaming answer rendered in Ink's
2419
- dynamic (non-Static) frame; once taller than the window Ink cleared to the top and scrolled the
2420
- transcript away at the live->settle transition. `Transcript.liveTail` bounds the live view to a small
2421
- wrap-counted tail; the full answer still renders via <Static>. Reproduced + verified with a pty+pyte
2422
- harness at 315x65.
2423
- - Tests: +4 transcript (height bound). Suite 263/263.
2424
-
2425
- ## 0.1.42 — 2026-09-21
2426
- - Added: ask_user always offers a final free-text "Chat about it - type your own reply" option beyond the
2427
- model's choices; typed text returns to the model verbatim. Keystroke logic is a pure, tested reducer.
2428
- - Changed: computer tasks run end-to-end from one instruction - chauffeur READS run unprompted, only
2429
- ACTIONS ask; system prompt tells the model to read/decide/act itself, not walk the owner through steps.
2430
- - Tests: +7 ask_user reducer. Suite 259/259.
2431
-
2432
- ## 0.1.41 — 2026-09-21
2433
- - Added: chauffeur computer-use driver wired into embodiment as a curated 19-tool MCP hub (scoped, not the
2434
- whole fleet), plus a general `tools` allowlist on MCP server config. System prompt steers Aurora to read
2435
- UIs via chauffeur's textual accessibility tree instead of hand-rolling osascript. Enable with
2436
- KODE_COMPUTER=1. Suite 252/252.
2437
-
2438
- ## 0.1.40 — 2026-09-21
2439
- - Fixed: status-rule wrap-creep — the rule mixed box-drawing with dingbat glyphs and could render at
2440
- exactly the terminal width, wrapping and creeping the frame. Now measured with a conservative cellWidth
2441
- and truncated so it is always cols-1.
2442
- - Fixed: file tools ignored a leading `~` (file_write "~/Downloads/x.md" wrote to a literal "~" folder and
2443
- claimed success). A shared expandPath now runs before the sandbox check on every path tool.
2444
- - Tests: +43 status-rule width, +2 path. Suite 252/252.
2445
-
2446
- ## 0.1.39 — refactor: dedup the exec helper; close a destructive-rm signature-line gap.
2447
- ## 0.1.38 — /remotecontrol prints a shareable 0perator.co follower link.
2448
- ## 0.1.37 — /think and /ultrathink extended-reasoning modes.
2449
- ## 0.1.36 — ask_user interactive clarification tool.
2450
- ## 0.1.35 — @file mentions: inline a file by typing @path.
2451
- ## 0.1.34 — Plan Mode: read-only research + propose, then approve to execute.
2452
- ## 0.1.33 — grep_search survives special files (sockets/FIFOs); AXE identity.
2453
- ## 0.1.32 — warm a cold-started Aurora so the first turn is fast.
2454
- ## 0.1.31 — swarm dashboard live-tails events.jsonl; /dashboard command.
2455
- ## 0.1.30 — control-plane visibility: permission tier seat badge + /audit.
2456
- ## 0.1.29 — human-signature lines: money/prod/destructive always require a human.
2457
- ## 0.1.28 — control plane: tool tiering (admin/enterprise/readonly) + frozen OperatorEvent stream.
2458
- ## 0.1.27 — service lever: ensure Aurora/autopilot are up on start; /services.
2459
- ## 0.1.26 — /remotecontrol host + WebSocket relay broker (remote-drive a session), live E2E.
2460
- ## 0.1.25 — pin SearXNG to independent non-Microsoft engines by default.
2461
- ## 0.1.24 — publish the web_search fixes (SearXNG lifecycle + default engine).
2462
- ## 0.1.23 — Operator auto-manages a local SearXNG container; autopilot fallback.
2463
- ## 0.1.22 — web_search backend is a first-class setting.
2464
- ## 0.1.21 — Gradient Constellation masthead as the boot banner.
2465
- ## 0.1.20 — fix CI-red sandbox symlink tests (component-wise readlink resolution).
2466
- ## 0.1.19 — enterprise header polish (✷ mark + bright wordmark + info), reflow-safe.
2467
- ## 0.1.18 — fix input area creeping to the top on keystroke (exact-width status-rule wrap).
2468
- ## 0.1.17 — fix empty-turn recovery 400 (no second system message), caught by a live test.
2469
- ## 0.1.16 — background/detached shell + task-management tools.
2470
- ## 0.1.15 — grandmaster sub-agents: 4 engine mechanisms.
2471
- ## 0.1.14 — fix launch crash (Rules of Hooks) + turn metrics readout.
2472
- ## 0.1.13 — web_search backed by AXE autopilot (drop DDG/Playwright scrape).
2473
- ## 0.1.12 — web_search tool + auto-load project context (AGENTS.md/CLAUDE.md).
2474
- ## 0.1.11 — finish_reason handling + fix the empty-turn user-directive leak.
2475
- ## 0.1.10 — render markdown in the transcript (was showing raw ** / backticks).
2476
- ## 0.1.9 — sandbox read-containment for credentials (security P1).
2477
- ## 0.1.8 — close the sandbox symlink-write bypass (security P1).
2478
- ## 0.1.7 — stream the model's thinking, dimmed above the answer.
2479
- ## 0.1.6 — computer control (macOS embodiment) with per-action approval.
2480
- ## 0.1.5 — smooth email-code sign-in as the default `operator auth login`.
2481
- ## 0.1.4 — input bounded between two rules (status rule above, plain rule below).
2482
- ## 0.1.3 — live turn timer: token count, tok/s, and elapsed all tick during a turn.
2483
- ## 0.1.2 — minimal masthead: drop divider rules, status text in the corner.
2484
- ## 0.1.1 — device-login opens the browser with the code embedded (one-click connect).
2485
- ## 0.1.0 — reliable local-file search + clearer `operator update`.
2486
- ## 0.0.3–0.0.9 — Operator persona default; 1M-context awareness; status-rule metrics; media-attachment
2487
- chips; context self-poisoning fix (session file out of cwd + grep line cap); platform:neutral bundle fix.