Skip to content

ha 0.9.11

Choose a tag to compare

@DEVfancybear DEVfancybear released this 17 Nov 14:23
· 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-codemode crate) runs the program on a thread of its own. The program calls the turn's tools, the deferred ones included, as await tools.<name>(args); Promise.all runs calls side by side. Only text()/console.log output 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 after ha 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.json codemode, 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": false or HA_ACTION_BANK=off turns it off; /bank status says whether the setting or the default decided.

Strategy

  • A strategist that sends its parent the diagnosis and alternatives with agent_message and 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_shell and run_process run 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 this ha.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.