Skip to content

One Code 0.6.0

Choose a tag to compare

@IsuruMaduranga IsuruMaduranga released this 01 Nov 19:29
· 211 commits to master since this release
0cde89d

One Code on pi 1.4.0, with every request now built from the session itself, so sessions keep their prompt cache through compactions, reloads, forks and resumes.

Install

npm i -g @one-ai/one-code

On Windows without Node.js:

powershell -c "irm https://raw.githubusercontent.com/IsuruMaduranga/one-code/master/install.ps1 | iex"

pi 1.4.0

The app now pins pi 1.4.0. The extension package supports pi from 1.0.0, and the tested range runs through 1.4.

pi 1.4.0 changes how OpenAI Responses requests declare their tools for GPT-5.4 and later (on openai, openai-codex, github-copilot and opencode). One Code now reads where a request declares its tools from the request itself, so the same session works on pi 1.0 through 1.4.

  • No repeated system prompt. Without the fix, every request after the first repeated the system prompt on these models.
  • Tools loaded through tool_search stay declared, in the main session and in forks.
  • A session started on pi 1.3 continues on 1.4 with its tools and cached prefix unchanged.

Requests built from the session

One Code now records each request as it went to the provider and builds the next one by appending to it. The request is a function of the session branch, so lifecycle events no longer change what the model already saw or break the prompt cache.

  • Compaction, /tree, /reload, --resume, /fork, /clear and model switches keep the permission mode, plan, loaded tools, file read state, /loop state and running agents the branch recorded.
  • Skill toggles and model switches no longer re-cache the conversation. The skills, tools and servers announced at the top of the session stay frozen until the next compaction, which rebuilds them. A tool or server that arrived mid-session is still named after a compaction.
  • Forks read the parent session's cache, get their own copy of the plan file, and hear when the parent's permission mode changes.
  • An entered worktree survives /clear and /new.
  • Subagents' injected tools stay deferred, and the model is told when a tool it used is gone.
  • Side calls (/btw, the recap, the classifier) see only the selected branch.

Also in this release

  • UserPromptSubmit hook context stays on its prompt. It no longer rides a later request when its own request fails or another prompt is queued.
  • A requested bypass mode is refused in a session that cannot grant bypass, and plan exit offers bypass back only when the session can grant it.
  • Skills marked user-only are refused to the model.
  • The bundled model catalogs are refreshed for pi 1.4.0 and again at the bump.
  • The app no longer shows pi's changelog after a pi version bump.

Verified

The unit suite (5,728 tests), the bundled-app smoke and the prompt-cache checks on Anthropic, OpenAI, OpenAI Codex and OpenRouter pass on this release. Live runs on pi 1.4.0 covered tool_search loads and forks on GPT-6.1, a session continued from pi 1.3.0, and the permission, subagent, workflow, plan, hook and lifecycle harnesses.

Both packages ship 0.6.0 in lockstep; the Homebrew formula moves to 0.6.0.