Repository navigation
One Code on pi 1.5.0, with very large instruction files kept from filling the context window.
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"
Instruction files take at most half the context window
CLAUDE.md, AGENTS.md and ONECODE.md ride the first message of every session, so a compaction can never free their space. A very large file, or several large ones together, used to leave every request nearly full or over the limit.
- Instruction files may now take at most half the model's context window together. Past that, the largest file is left out, then the next largest, until the rest fit. The model gets a short note in its place naming the path and size, and reads the parts it needs.
- You are told when it happens: at startup, before the next prompt when a model switch or a compaction moves a file across the line, when a nested CLAUDE.md is attached on a read, and in
/doctor./memoryopens the file to trim it. - Nested instruction files share the same half with the top-level files and with the nested files already in the conversation.
- Auto mode leaves out the same files the agent does. The classifier sees a note that the file exists and that leaving it out grants no permission.
pi 1.5.0
The app now pins pi 1.5.0. The extension package supports pi from 1.0.0, and the tested range runs through 1.5.
- Hints follow your keybindings. Collapsed-output trailers, the startup key hints and the hidden-thinking label name the key you bound for each action, and drop the hint when the action has no key. On an older pi they keep today's text.
- Your terminal knows when One Code is waiting for you. The question panel and plan approval now report a waiting state to the terminal, as pi's own dialogs already did.
- Function keys with modifiers are read the way pi 1.5.0 reads them in the panels.
- The bundled model catalogs are refreshed.