Claude Code sends Anthropic Messages. Codex sends OpenAI Responses. Our gateway @contextmode runs one pipeline for both. The Worker translates a Codex turn to the Anthropic shape before the pipeline and back to Responses after it. How that works on Cloudflare:
The Context Mode gateway now loads at most one skill per turn and keeps it until the task ends. Clef on Workers AI picks it with one typed question. On 10 recorded turns where the old 70B judge and Clef disagreed, the 70B model was right on 4 and Clef on 10.
context mode gateway roadmap for this month:
① dynamic routing
② self-hosted, on openorange by @rivet_dev
③ integrations
④ security through mcp
⑤ team velocity and team support
⑥ deltadb-style verification
⑦ self-hosted luau sandbox
⑧ goal: over 90% saving
⑨ enterprise
⑩ we will open source the gateway
@NathanFlurry openorange is how we plan to let teams run the gateway on their own servers.
how ④ ⑥ ⑦ work in the reply.
you can't clear the context when the context is the debug session.
claude code compacts it into a summary. early instructions can get lost.
4 steps (no bs):
① set your base url to the gateway
② passing tests fold, failures stay
③ full output archived
④ recall: it never compacts
@contextmode gateway. prove me wrong.
62 of 72 real agent incidents had no attacker. The agent did it alone.
That's the threat Protect is built for. Context Mode's gateway checks every Claude Code and Codex tool call against your team's policy before it runs, and logs every decision. The destroy never reaches your shell.
Turn your agent loose and try to get a drop table past it.
LiteLLM gives away the gateway and sells the enterprise license. PostHog gives away the code and sells the cloud.
I'm thinking about doing the same with Context Mode's gateway. Fully open source, self-host it free, pay only for SSO, audit logs and support.
Would you self-host it, or would you rather just pay and not think about it?
Dax is right. Selling safety behind a sales call is the worst upsell in the agent era.
So I'm thinking about open sourcing Context Mode's gateway. Self-host it free, SSO and audit logs included. Enterprise would pay for support and SLAs, not for being safe.
Tell me why this is a mistake.
Anthropic just shipped code mode in Claude Code. Experimental, opt-in, Claude Code only.
Context Mode's gateway already runs code mode in V8 isolates on Cloudflare Dynamic Workers. The agent writes the script, the isolate eats the raw output, and only the answer hits context. Claude Code, Codex, OpenCode or Pi, same gateway.
No flag needed. Try to break it.
https://t.co/fjnzgs8D2A
Not everything belongs in an isolate. Some scripts need your files, your shell, your machine.
Context Mode's engine runs code mode locally as a subprocess, with whatever runtime you already have. Shell, JS, TS, Python. The agent stops reading raw logs and starts asking questions of them.
Your context window was never meant to be a log file.
https://t.co/q8ipFHA3dO
Nathan's benchmark says it: V8 wins for complex, data-heavy scripts, and embedded isolates beat standalone processes.
That's exactly where Context Mode's gateway runs code mode. V8 isolates on Cloudflare Dynamic Workers. Your agent writes the script, the isolate eats the raw output, and only the answer hits context.
Bring your heaviest session and prove me wrong.
https://t.co/fjnzgs85d2
context mode v2.2.1 is out
a bug-fix release, like a tune-up for your agent's memory. after compaction your agent gets its saved state once, and recall leaves out notes from before that compaction
https://t.co/cdQW3d2VPr
OpenClaw cut CI usage 95.5% by caching, and @boatdotdev makes CI runs faster.
the agent inside CI is next. with @contextmode Gateway:
fixing a failing CI run: $0.0502 to $0.0420 (22.8% less)
@claude fix on a PR: $0.1113 to $0.0872 (21.6% less)
using CI on boat? DM me and your Gateway CI is free
https://t.co/KZxgbN1P9n
Context Mode is like a save point for your coding agent
big tool output stays in a local index, so the window fills slower. after compaction, your agent picks up where it left off
You told your agent "never touch prod" last week. Today it ran terraform destroy.
Context Mode remembers the rule, brings back last week's notes, and Protect blocks the destroy with your team's policy.
https://t.co/43IFDXk6nV
Context Mode is a free, local, open source plugin for 11 coding agents.
The agent writes a short script, the script runs in a local sandbox, and only the answer enters the context window. The full output stays in a SQLite index on your machine, so the agent can search it later.
2.0 is a full rewrite: 9 tools, hooks on all 11 agents, one database per project, and a bench you can run yourself.
Stop explaining your repo to your coding agent.
It compacts mid-task and forgets the helper you wrote last week. Six months later it runs npm in a pnpm repo.
@contextmode keeps what your agent learns. Protect blocks the force push. Pro is $20 a month.