Repository navigation
ha 0.9.11
·
89 commits
to master
since this release
Codemode: the model can write one program that calls its tools, and only what the program prints reaches the conversation. Codemode and the action bank are on by default.
Codemode (new, on by default)
- After pi's codemode, without its VM: a JavaScript interpreter written in Rust (the new
harness-codemodecrate) runs the program on a thread of its own. The program calls the turn's tools, the deferred ones included, asawait tools.<name>(args);Promise.allruns calls side by side. Onlytext()/console.logoutput and the returned value come back, so large intermediate results never enter the context. - Every call the program makes is checked against its tool's schema and crosses the same gate as the model's own calls: policy, command guard, hooks, approval, intent and receipt, and the learned rules. A refused call is an error the program can catch. Each call is a card of its own and one of the turn's executions.
- The program has nothing but its tools: no timers, network, files, processes or modules.
store()/load()keep small JSON values for the next program of the conversation, also afterha exec --resume. A first line// @options: {"timeout_ms", "max_output_tokens"}sets its limits (5 minutes and 60,000 characters by default). /codemode on|off|status, settings.jsoncodemode,HA_CODEMODE. See docs/architecture/CODEMODE.en.md, which maps pi's package to ha, and the operator guide's 12.27.
Action bank
- On by default.
/bank off, settings.json"actionBank": falseorHA_ACTION_BANK=offturns it off;/bank statussays whether the setting or the default decided.
Strategy
- A strategist that sends its parent the diagnosis and alternatives with
agent_messageand ends with a summary is still heard: the consult reads the object from its message. On the release candidate the strategist did so, the plateau got no alternatives and the agent never switched.
Tools and continuity
run_shellandrun_processrun with a 60 s timeout when a call names none, instead of refusing the call;run_process's args may be left out.- A worker that stops lets go of the conversations it held and the logs it owed, so a conversation started right after is shown the task the last one left unfinished.
Checked
- Gate: 2427 passed, 0 failed. Live on
openai-codex/gpt-6-luna(thinking max) on thisha.exe: codemode 12/0 (0.9.10 as control: no codemode), strategy 25/0, bank 16/0, memory 44/0, continual 32/0; on the candidate before the strategist fix: guards 28/0, skill-activate 11/0, recall 32/0, related-logs 33/0, session-log 42/0, learning 49/0.