Repository navigation
One Code 0.10.0 moves from pi 1.6.0 to pi 1.7.0 and lets you send a running command to the background, ask another terminal session a question, and read web pages in a separate agent.
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"
Terminal interface
- Press ctrl+b to send a running command to the background. The Bash or PowerShell command keeps running while the model continues with the task ID and log path. A notification arrives when the command finishes. The hint appears after two seconds. With tmux's default prefix, press ctrl+b twice.
- Save the settings you use across sessions with
/config. You can switch recaps, session titles, notifications, peer messaging, and the web-fetch agent on or off. You can also change the workflow size or turn off newer-model suggestions. Use the arrow keys to choose a row and Enter or Space to change it. Feature switches take effect the next time you start One Code. - Paste a full model ID or a multiline answer. The subagent and classifier pickers accept pasted IDs. The question dialog accepts pasted text, and Backspace removes a whole character, including an emoji or accented letter. If you cancel reverse-history search, your pasted draft comes back.
- Tool results are shorter in the transcript. A web search shows how long it took. A web fetch shows the response size and HTTP status when available. Entering a worktree shows where subsequent commands run.
- Recaps wait for a break in the work. The usual delay is three minutes after a turn ends. A draft in the editor, a running background agent or workflow, or a scheduled wake-up holds the recap back.
Peer messaging and background work
- Ask another session on the same machine. Run
onecode peers listto find a session under your account. For example,onecode peers ask api-3f "Which port does the server use?"waits and prints the answer to standard output. Useonecode peers sendfor a message that can return immediately, andonecode peers wait --as <label>to collect replies to a sender label. - Ask one session to check with another while you work. A main session can send to a
peer:<name>address. The permission gate checks the model's send, and incoming messages grant no permissions. A message wakes an idle session or reaches a busy one at its next tool round. After 20 batches of incoming mail without your input, the session holds further mail until you type again. - Scheduled prompts survive
/reloadin the same running session. Switching branches with/treerestores the selected branch's jobs. Forking or reopening the transcript starts with an empty schedule. - Follow up with a busy agent without losing its answer. Messages wait for the preceding turn to settle, and a cancellation that arrives after an agent finishes preserves its report. If a workflow requests structured output and the agent replies with JSON text, One Code checks the answer against the requested schema.
Web pages and search
- Read a page without putting the whole page in your conversation. On frontier and workhorse models, the built-in
web-fetchagent takes the URL and your question and returns a report. Cheap and tiny models keep the directweb_fetchtool. To use the direct tool on every model, turn off “Web fetch agent” in/configand restart. You can supply your own reader in.claude/agents/web-fetch.md. - Keep the original file when a URL serves a PDF, image, or archive. Web fetch saves the bytes in the session's
tool-resultsfolder. The reader's report comes with a separate note naming the files One Code saved. - Read common documentation sites without an approval prompt. When
web_fetchreads a canonical HTTPS link on a preapproved site such asdocs.python.org,developer.mozilla.org, orreact.dev, it skips the prompt and the auto-mode classifier. Your matching deny and ask rules still apply. - Gemini citations link to the matching search result. Searches that fall back to Exa include your domain filters in the query and preserve Markdown separators in excerpts.
Permissions and plan mode
- Auto mode can tell what you meant by “go ahead.” The classifier sees the proposal immediately before your typed reply and the answers you submit in question dialogs. It leaves cancelled selections out and keeps input sent while the model is working separate from a proposal it shows you later.
- See why auto mode blocks a call. The transcript says “Blocked by auto mode” and shows the classifier's reason. Open
/permissionsto review the decision. Other tool refusals show a short explanation that you can expand with ctrl+o. - Plan approval waits its turn. An open permission question gets your answer before the plan approval dialog appears. Pressing Esc on a subagent's permission question closes it once. After you enter a worktree,
/sandboxshows that worktree's writable paths. - One Code masks registered secrets in saved edit diffs. It also masks those values before it sends text to the model that names your session.
Models and caching
- The catalog refresh moves 21 model listings below workhorse. Twenty move to cheap, including Qwen 3.7 Plus, OpenRouter's April 20 Qwen 3.5 Plus, StepFun's Step 3.5 Flash, Step 3.7 Flash and Step 5 Preview, and Mistral's two GLM 5.2 listings. OpenCode Go's free Hy4 Flash moves to tiny. None moves up. On OpenRouter, a DeepSeek V4 Flash session now delegates work and session titles to DeepSeek V4.1 Flash.
- You choose the hosts for your main OpenRouter session. One Code drops the automatic precision filter. It can warn when a host lists only reduced precision for your model, misses the prompt cache on three replies in a row, or sends a damaged tool call. The notice names the host and where to change your routing.
- Change reasoning effort on OpenAI Codex without rewriting earlier turns. The next turn and a fork at a different effort can reuse the cached conversation.
- Resume an Amazon Bedrock session that contains images. One Code preserves the original image bytes and redacted reasoning when it sends an earlier message again.
- Side questions can use the summary of a long conversation. When
/btwor a recap rebuilds its context after compaction, it includes the saved summary. If the compaction reply omits the requested summary, One Code asks once more. - Short subagent aliases such as
opusprefer the ordinary endpoint. When the same generation has a more expensive fast variant, you can still request it by its full ID. Assigning a model to the tiny tier rules it out as an automatic pairing for another model.
Also fixed
- TypeScript and JavaScript share one language server per project root. This includes JSX and TSX. Previously opened files refresh from disk before automatic diagnostics. If the project's TypeScript installation is missing, install it locally and request diagnostics again in the same session.
/doctoridentifies which package needs TypeScript. It follows the editor's language-server selection, detects JavaScript, JSX, and TSX projects without a package manifest, and tells you when it checked only part of the tree. Runonecode doctor --offlineto skip the registry check.- Settings commands answer in one-shot runs. Try
onecode -p /configto list your settings. The results from/config,/skills,/plugins, and/effortgo to standard error, leaving standard output for events in JSON mode. - Disable an MCP server to cancel its browser sign-in. Ending the session cancels sign-in too. A late callback can no longer reconnect a disabled server or replace newer credentials. Use
/mcpto reconnect or authenticate again. - One Code leaves malformed marketplace and skill settings files intact. The error names the file to fix. Quoted positional arguments in a skill stay together. Within one source and shell, overlapping hook matchers run the same command once.
- The Windows installer checks the first Node.js on your path. It reuses that installation if it meets the minimum, or downloads Node.js 22.19 or later. Command lookup also skips an extensionless script when a Windows executable of the same name follows it.
Under the hood
End-to-end checks now require a completed reply and verify that a requested tool actually becomes available.
Upgrade notes
- Include the gateway name when you select a subagent or classifier model. A name containing a slash uses the first part as the provider. For a model served by OpenRouter, use a name such as
openrouter/meta-llama/llama-3.3-70b-instruct. A saved choice stays tied to its named provider if credentials change. - Use
ONECODE_AGENT_DIRto move the bundled app's agent directory. The app ignores pi's--agent-dirflag so the next session still loads One Code. Its exit hint gives you theonecodecommand to resume. - The terminal repeats an available update notice until you upgrade. It reuses the daily version check and shows the upgrade command for your installation.
- Choose whether One Code avoids known cache-miss hosts on OpenRouter. Background calls with their own OpenRouter session skip those hosts by default. Set
ONECODE_OPENROUTER_IGNORE_HOSTS=1to apply the list to your main session too, or0to turn off One Code's exclusions. Your own routing settings still apply.
Upgrade with npm i -g @one-ai/one-code.