UNOUNOCODE

CORE CONCEPTS

Context and cost

Every request sends the model the whole conversation again. What you pay depends mostly on how much is sent, and how much of it the provider can reuse from its cache.

IN ONE LINEUno keeps the start of every request byte-for-byte the same, so the provider charges about a tenth for it after the first time.

What one request holds

turn 1
window

system prompt and tools AGENTS.md and memory summary messages tool output striped = cached
Drag the slider. The red line is where Uno starts shortening the conversation: about 20k tokens before the window is full. See Compaction.

Where the money goes

  • The standing part. System prompt and tool descriptions: about 1,800 tokens, or about 3,500 with the provider's web search on. Claude Code sends about 46,000.
  • Your project's part. AGENTS.md, the first 100 lines of memory, and the list of skills. Sent once, at the start, then cached.
  • The conversation. Grows each turn. Tool output is the biggest part: a test log can be thousands of tokens.

How Uno keeps the cache warm

  1. Nothing early ever changes. The tool list is fixed for the session. Skills, plan mode and reminders arrive as new messages at the end, never as edits to the start.
  2. Project instructions go in the first user message, not the system prompt, so the system prompt is identical in every project and every session.
  3. On Anthropic Uno marks cache points on the tools, the system prompt and the newest message. On OpenAI it sends a stable cache key per session. Gemini caches on its own.
  4. Shortening reuses the cache too: the summary is asked for on the same cached prefix, with the same model.
 -P RUN · STATUS LINE
[done: 6 turns, 3912 in, 1104 out, 41280 cached, $0.0187, session a1f3…]

Every -p run with text output ends with this line on stderr. The cached figure is the part you paid about a tenth for. Illustrative numbers.

Use cases

Cheap long sessions

Stay in one chat for a related run of tasks: each turn reuses the cache from the last.

uno --resume

Leaner still

Turn off provider search when you don't need it. It saves about 1,700 tokens a request on Anthropic.

uno --no-search
DESIGN DECISION · M5, M7, M15

Append-only is a hard rule. Any change to the tools or system prompt mid-session throws the whole cache away, and the next request costs full price. So plan mode is a permission setting rather than a different tool list, MCP servers hide behind two fixed tools, and skills are read as files instead of being added to the prompt.