NewRecall: all-day sessions, no compaction

Spend less on coding agents. Control what they do.

Context Mode sits between your coding agents and the model. Each request costs less, sessions carry what they learned, and your rules decide what runs.

npx @context-mode/cli

1,000 requests free, every feature, no card. Supported agents

Your coding agentIts model
Claude Code
Claude
Codex
GPT
OpenCodesoon
Pisoon
Context Mode
SaveContext Saving
Protect
Remember
Claude Code600 tests, 1 failing17.0 KB → 1.2 KBfolded
Codexcat .envnever reaches the shellblocked
Claude Code2 h laterpicked up, nothing compactedrecalled
Codex7 MB registry file407 B back to the modelin code
Claude Codegit push origin mainprotected branchblocked
Codexdeploy target?Render, not Hetznerremembered
Claude Codeturn this plan into ticketsto-tickets loadedskill
Long session, Claude Opus 5.5$7.20 → $2.4965.5% lower
How it works

Spend less. Remember more. Run only what you allow.

Context Mode acts at three points on each request: before it goes out, before a tool runs, and when a result comes back.

Your coding agentsAny machine
17.0 KB800 orders330,785 tokens
Context Mode
  • Folds test, build and log output
  • Runs scripts, returns the answer
  • Trims tool schemas
1.2 KB4 orders75,591 tokens
Model APIYour Anthropic or OpenAI account
Your archiveFull output, read back by id
Try it

Your agent runs 600 tests. 1 fails.

Printed17.0 KB
Sent to the model1.2 KB

Sent to the model

  • The failing test and its error
  • The summary line
  • One line for the 599 that passed

Kept in your archive

  • All 600 results, word for word
npm test fix loop · Claude Opus 5.5$0.087 → $0.06822% lower15 of 16 runs

Your agent reads an API response with 800 orders.

Printed800 orders
Sent to the model4 orders

Sent to the model

  • Every field name
  • The first 3 orders and the last
  • A line that counts the rest

Kept in your archive

  • The other 796 orders
One large JSON file · Claude Opus 5.5$0.086 → $0.06821% lower12 of 12 runs

One session, 30 steps. Tokens sent on each call.

Direct330,785
Context Mode75,591

Sent to the model

  • Your recent work, unchanged
  • An index of older work

Kept in your archive

  • Older work, word for word
Long agentic coding session · Claude Opus 5.5$7.20 → $2.4965.5% lower4 of 4 runs

Save

Tool output is folded before the model reads it. The full output is archived.

Features Context Saving → Thinking in Code → Active Context → Prompt caching → How saving works →
Your coding agentsAny agent, any machine
your prompt
Context Mode
  • Adds the facts that matter
  • Loads the skill the task needs
  • Keeps the whole session
+ context
Model APIYour Anthropic or OpenAI account
MemoryFacts with two clocks
SkillsFrom any GitHub repo
ArchiveEvery word, searchable
Try it
FactValueValid fromUntil
production deployed_toHetzner Cloud, Falkenstein21:14:3821:15:09
production deployed_toRender, Oregon region21:15:09now

The old value closes. Every agent gets the new one.

Your agent sendssystem prompttoolsthe full history
The model getssystem prompttoolsmemory blockindex of older workrecent work, unchanged

Older work goes to the archive, word for word.

⚡ context-mode · picked up after a 2 h pause, nothing compacted
Your skillsrelease-notesto-ticketsdb-migrations
⏺ context-mode · skill to-tickets auto-loaded

Matched on name and description. One skill per turn.

Remember

Sessions don’t compact. Facts and skills carry across agents and machines.

Features Recall → Memory → Skills → Search → Session resume →
Modelasks for a tool call
tool call
Protect
  • Reads the call by what it does
  • Checks your rules
  • Logs every block
decision
AllowedrunsYour terminal runs it
Blockednever runsThe model reads why
Pick a command
Blocked · never reaches your shellRead environment files

.env and .env.*. Examples and templates are allowed.

⛔ context-mode Cage blocked this command, so it was NOT executed:
Blocked by your team’s policy: Read environment files. .env files hold secrets.
Blocked · never reaches your shellPush to protected branches

main, master, production and release/*.

⛔ context-mode Cage blocked this command, so it was NOT executed:
Blocked by your team’s policy: Push to protected branches. Protected branches change through reviewed pull requests.
Blocked · never reaches your shellCore protection: delete the root or home folder

Read through sudo, sh -c and about 130 other wrappers.

Blocked · never reaches your shellSites: pastebin.com

The inner host is checked too.

RunsNo rule matches

A project folder is fine. Only losses you can't undo are blocked.

RunsNo rule matches

Nothing is blocked until you choose rules.

Protect

Rules for what agents may run, read and fetch. Nothing is blocked until you choose them.

Features Protect → Rules and presets → Instructions →
Get started free1,000 requests free, no card.
Benchmarks

Same task, run twice. Measured in dollars.

Claude Code on Opus 5.5. Each task ran direct to Anthropic and through Context Mode, back to back. Cost at API list price.

DirectThrough Context ModeCost per task

Every pair counts. No figure for Codex yet. Method, 95% ranges and Haiku 4.5 →

Get started free1,000 requests free, no card.

Get started

Set up in a minute. Removed with one command.

One command signs you in, finds your agents, and shows each change before it writes. Your own model account still pays the model.

  1. Run the CLI

    It signs you in, asks which agents to connect, and keeps a backup of each file.

    npx @context-mode/cli
  2. Restart your agent

    Start a new session in your agent. Work as before.

  3. Watch each request

    The console shows tokens, cost, saving and blocks for every request. Open the console →

~/.claude/settings.json

// what the CLI writes, under "env"
"ANTHROPIC_BASE_URL": "https://gateway.context-mode.com",
"ANTHROPIC_CUSTOM_HEADERS": "x-cm-device-key: cmdk_…",
"ENABLE_TOOL_SEARCH": "true"

~/.codex/config.toml

model_provider = "context-mode"

[model_providers.context-mode]
name = "context-mode"
base_url = "https://gateway.context-mode.com"
wire_api = "responses"
requires_openai_auth = true
To leave: npx @context-mode/cli disconnectQuick start →
Get started free1,000 requests free, no card.

Pricing

Every feature on every plan. You pay for requests.

Your own Anthropic or OpenAI account pays the model, with no fee added on tokens. When your requests run out, nothing breaks. Compare plans →

Free

$01,000 requests, once

About a week of very heavy use. Every feature.

Get started free
  • Every feature
  • No card
  • When it runs out, requests go straight to the model

Starter Most popular

$20/monthor $200 a year

10,000 requests a month, every feature. For developers who use agents most days.

Start Starter
  • Everything in Free
  • No bill you did not choose
  • Monthly or yearly
  • Refund of the unused part within 14 days

10,000 requests a month. Need more? $2 per 1,000, up to a budget you set.

Pro

$49/monthor $490 a year

50,000 requests a month, for developers who run agents all day.

Start Pro
  • Everything in Starter
  • 5 times the requests
  • Monthly or yearly
  • Refund of the unused part within 14 days

50,000 requests a month. Need more? $1 per 1,000, up to a budget you set.

Teams and Enterprise: compare plans.

Protect

Your agent asks. Your rules answer.

Protect checks every command, file read, web fetch and tool-server call from Claude Code and Codex before it runs. A blocked call never reaches your shell. In every plan, Free included. How Protect works →

  1. 01Connect your agents

    npx @context-mode/cli. Only the base URL changes.

  2. 02Pick a preset

    Nothing is blocked until you pick one.

  3. 03Keep working

    The agent reads why a call was blocked. You see it in the log.

Preset

See before you rule.7 run

git push origin mainRuns
cat .envRuns
rm -rf ~Runs
terraform destroyRuns
aws s3 rm s3://backups --recursiveRuns
WebFetch example.comRuns
npm testRuns

Nothing is blocked. Activity lists the programs, sites and tool servers your agents used, each with Block and Allow.

Where most developers start.4 blocked · 1 logged · 2 run

git push origin mainBlockedPush to protected branches
cat .envBlockedRead environment files
rm -rf ~BlockedCore protections
terraform destroyBlockedDestroy infrastructure
aws s3 rm s3://backups --recursiveLoggedChange cloud resources
WebFetch example.comRunsOther sites allowed
npm testRuns

A blocked call never reaches your shell: the agent reads the rule and why, and carries on. Logged means it ran, and the log says it would have been blocked.

For regulated teams and unattended agents.6 blocked · 1 run

git push origin mainBlockedPush to protected branches
cat .envBlockedRead environment files
rm -rf ~BlockedCore protections
terraform destroyBlockedDestroy infrastructure
aws s3 rm s3://backups --recursiveBlockedChange cloud resources
WebFetch example.comBlockedOnly sites on your list
npm testRuns

Only the sites and tool servers on your list are reached. Public package registries stay open.

Or write your own rules for sites, commands, scripts, files and tool servers, and test each one before you save it. Rule types →

For you Free · Starter, $20 a month · Pro

  • One policy for Claude Code and Codex, on every machine you sign in from
  • Presets, four packs and your own rules
  • A log of every decision, export as CSV or JSON Lines
  • Core protections stay on when your requests run out
Get started free

For your team Team · Enterprise

  • One policy for the whole org. Members cannot loosen it
  • An API key can only tighten it. Loosening needs a person and a reason
  • Every change in History, in a hash chain you can verify
  • One pool of requests and one bill. Enterprise can run in your own Cloudflare account
Talk to us

Tested in real Claude Code sessions with Claude Opus 5.5 (2026-10-02) and Claude Haiku 4.5 (2026-10-04): every run blocked the push to main and the read of .env, and the work still shipped on a branch. Try it in 5 minutes →
Protect reads the call, not the program: a script file or a compiled program gets past it. Keep your agent’s sandbox on.

Compared

Cost, rules and memory. In one place.

Other tools do one of these, on one client or one machine. Sources, dated →

Context ModeBuilt into your agentLocal optimizersGeneral LLM gateways
One setup for every agent and machineYesOne clientOne machineYes
Folds tool output; full output keptYesSummarizesOne machineNo
Checks tool calls before they runYesOne clientSome commandsBy tool name
Memory shared by every agentYesNoOne machineNo
Built for coding agentsYesYesYesNo
Get started free1,000 requests free, no card.

Try it on your own agents.

Start free: 1,000 requests, every feature, no card. When you run out, nothing breaks.

Get started free

Your coding agent costs less and remembers your project.

Start free: 1,000 requests, every feature, no card. After you sign in, the console gives you one command to connect Claude Code or Codex.

Read the docs