One coding agent for your OpenRouter, OpenCode, and ChatGPT subscriptions —
plus Claude Code and Antigravity through their binaries, and a local model through llama.cpp.
Think → call tools → feed results back → repeat.
No plugins, no hooks, no middleware.
Loops until the model stops calling tools. All calls in a single turn run in parallel.
One loop, one session file format, one tool trait.
A spec decides what each agent gets: where it works, what it may call, what it is told, whose conversation it keeps.
ol | Every tool, the project's own conversation at .oneloop/ |
ol "…" | The same agent, held in memory — no session file, no lock, no AGENTS.md |
A second agent is a preset, not a second loop. The run mode is applied after the spec is built, because whether a conversation persists is a fact about the run.
Switch mid-conversation. Plan with the expensive model,
implement with the cheap one, ask a third for a second opinion.
Every /model rereads config.json first, so a model added or repriced mid-session is one command away — no restart, and a broken file only warns instead of taking the loaded models away.
When the corresponding CLI is installed, /help lists its slash commands. Claude Code uses /cc, /ca, and /cn; Antigravity uses /ag, /aga, and /agn.
These commands use your existing CLI subscription and keep your selected OneLoop model unchanged. The answer comes back as a reference message in this session, so the current model can reason about it. OpenAI subscriptions are supported separately through the Codex provider and ./ol login openai.
Lead a line with ! to run bash yourself. The output is printed, then recorded in the session as reference material — no request is made, so nothing is spent until you ask for something.
read File contentswrite Create or overwriteedit One exact replacement, one filebash Shell commandselisp Live Emacs stateskill Load a playbookSend all the changes you already know to one file in one message; calls on the same file apply in the order sent, so no write is lost. Copy an edit anchor from a current read; after a formatter or shell command changes a file, read it again before citing its text. A miss still writes nothing; when it can, it names the difference that would have matched.
The skill tool joins the other five only when a skill file exists, so a repository with none runs with five.
Markdown playbooks the model loads on demand.
Not in the system prompt — pulled in only when needed.
Project skills come first, then global ones — a project skill shadows a global skill of the same name, and listing order is search order.
The model sees names + each skill's own frontmatter description.
It calls skill("name") when the task matches — no user action needed.
Every message, tool call, and result is appended to a JSONL file.
No mutation, no corruption.
When the server says the context is full, the turn ends.
The session rotates at once; the old one is summarized in the background.
The transcript is never deleted — only moved out of the window.
The handoff names it, and the model can read it if you ask.
A one-shot writes no transcript, so it reports the overflow and stops.
That message is not answered — resend it in the fresh session.
When the handoff is ready, a small line says where it landed.
If its model keeps failing, you pick another at the next prompt.
If it fails, the notice names the transcript that is still there.
| Retry with fallback | Makes up to 10 attempts by default on transient failures, then offers another model. The model you pick becomes active for the session once it answers, and config is never written; a rejected request fails at once |
| Bounded waits | Connections and finite responses time out; an active stream may run long, but a stalled one cannot |
| Parallel tools | Multiple calls execute concurrently |
| Atomic writes | write and edit replace a file by way of a temporary file beside it, so a crash mid-write leaves the old bytes rather than half of the new ones. The mode is carried over, a symlink is followed, and a read-only file — or one in a directory that will not take a new one — is refused instead of replaced |
| Output truncation | Large outputs trimmed before re-entering context |
| Stop anywhere | Ctrl+C stops cleanly; session preserved |
| AGENTS.md | Loaded as system prompt if present |
| Engineering tenets | Five built-in rules — correct, look it up, verify, one way, don't break — carried into every prompt, with or without an AGENTS.md |