
Spend less on coding agents. Control what they do.
London, England
Joined May 2026
- Tweets147
- Following1
- Followers177
- Likes61
Your agent's deny list reads the text. Your agent doesn't type the text.
It writes sh -c "rm -rf $HOME". Or hides it behind sudo, timeout, xargs, ssh, docker exec.
Context Mode Protect reads what a call does, not how it's spelled. 98 wrapper words and 33 carriers meet the same rule as the bare command.
It checks every tool call from Claude Code and Codex before it runs. Commands. Files. Sites. Tool servers. Blocked calls come back as a refusal the model can read. Every block lands in an exportable decision log.
One policy for the whole team. Nothing on each laptop but a base URL. In every plan.
Keep your sandbox on. Protect stops the call before it ever reaches it.
contextmode.ai/docs/protect
Context Mode retweeted
We benchmarked 4 ways to run our AI gateway on Durable Objects: celld, workerd cluster, Rivet/OpenOrange (self-host) and Cloudflare. Same code, same tests, real numbers. All four pass quality. Each has a real weak spot.
Which one should we go with for air-gapped self-host?
@rough__sea @KentonVarda @ajoshhoward @dillon_mulroy @NathanFlurry @CloudflareDev
contextmode.ai/blog/four-way…
Context Mode retweeted
Yesterday the NSA, CISA and the White House told every organization to speed up the move to post-quantum cryptography. The same day, Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI, Oracle and SpaceX signed a joint statement behind it.
Their reason was not quantum computers. It was AI models solving math problems that had stayed open for years.
Now check your Mac. On macOS 26, Apple's /etc/ssh/crypto.conf moves classic ECDH to the front of the list. Your SSH sessions skip post-quantum key exchange, even when the server supports it.
Anyone who records that traffic today can try to decrypt it later. OpenSSH has a name for this, "store now, decrypt later", and it now prints a warning about it.
Every git push your coding agents run goes over that same connection. Your source code. Your server sessions.
Check it now:
ssh -v [email protected] 2>&1 | grep "kex: algorithm"
ecdh-sha2-nistp256 or curve25519-sha256 means the session is not post-quantum.
Do not paste the viral fix yet. Run this first:
ssh -Q kex | grep mlkem
If nothing comes back, your OpenSSH is older than 9.9, and the mlkem line will break ssh. We tested it on 9.6:
Unsupported KEX algorithm "mlkem768x25519-sha256"
Context Mode retweeted
1,000 people now run their agents through Context Mode Gateway.
When we started, the goal was simple: give teams one place to control what their agents cost, remember and see.
Thank you to every early user who tried it, broke it, and told us what to fix. You built this with us.
Next stop: 10,000.
contextmode.ai
🫡
Neon calls it scale-to-zero, yet every cold start still wakes a compute and bills you for it, which makes it less a serverless database than a sleeping server with very good marketing.
Context Mode Postgres is what scale-to-zero was supposed to mean.
New database before the page loads. Wakes 3x faster. Bill up to 10x smaller.
Waitlist is open.
postgres.contextmode.ai
147
Context Mode retweeted
some think protect means blocking a few dangerous commands. that is only the beginning, because protect is security governance: when the moment calls for it, you can close off a single website url, and every decision your agents make is written into an audit log that belongs to you, your team and your company.
so why would a company that cares this much about security trust us with its agents? because every agent runs inside an isolated durable object, on a dynamic worker sandbox built on v8 isolates, and for teams that want everything behind their own walls, we sign self-hosted enterprise contracts. managing policy through a dashboard the way azure does already feels slow and out of date, and i believe security teams should govern their agents with a cli and skills, the way they already work.
it is time to stop wrestling with kernel and os sandboxes. a private ai gateway should have solved this for you already.
Thesis: every AI gateway solves the wrong problem.
@Azure, @LiteLLM and @pydantic AI Gateway watch your spend. None of them changes what your coding agent reads.
@contextmode does. 90 days, 6 agents, 339K requests:
$57,820 bill became $36,388. 37% saved.
Saving. Memory. Recall. Skills. Protect.
A budget tells you what you burned. Context Mode stops the burn.
contextmode.ai
$57,820 → $36,388.
90 days. 6 coding agents. 339K requests. Same work, 37% less spend.
Other gateways count your tokens. Context Mode cuts them before they reach the model.
Start free: contextmode.ai
Thesis: every AI gateway solves the wrong problem.
@Azure, @LiteLLM and @pydantic AI Gateway watch your spend. None of them changes what your coding agent reads.
@contextmode does. 90 days, 6 agents, 339K requests:
$57,820 bill became $36,388. 37% saved.
Saving. Memory. Recall. Skills. Protect.
A budget tells you what you burned. Context Mode stops the burn.
contextmode.ai
136
We're cooking.
Your developers' coding agents fill their context with raw tool output, forget the project between sessions, and can run a command such as git push --force. Context Mode works on these three problems inside the coding agent's session. Azure AI Gateway governs the model and tool calls of your apps and agents. Context Mode Standard is $500 a month for the whole team, with a 99.9% uptime SLA.
89
Context Mode retweeted
Sell Context Mode. Earn $875 per team.
contextmode.ai/partners
Context Mode retweeted
On a warm turn, 98.71% of a coding agent's prompt is read from cache, and the tool definitions are 65.2% of the turn's cost. So our gateway makes the prefix smaller and keeps its bytes the same. How Context Saving works, on @Cloudflare:
Context Mode retweeted
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:
Context Mode retweeted
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.
2
122
Context Mode retweeted
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.
Context Mode retweeted
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.
Your AI agent just wiped the database — and there was no hacker behind it. In 72 real incidents, 62 had no attacker at all.
That's what ROGUE-AI set out to prove. It rebuilds reported agent security incidents offline, each paired with a control that removes only the blamed cause.
Across 108 replications, 89% reproduced the reported harm. Five current GPT, Claude, Gemini and DeepSeek models repeated the same mistake in 18%–33% of runs with the cause present — and under 1% without it.
The twist: accidents with no attacker caused more harm than prompt injection did, and injection defenses can't catch them — there is no injected instruction to find. What did work was a warning after each tool output, naming the hazard and its consequence.
Does anything — or anyone — flag the risk out loud after each step your agent takes?
#AISafety #AIAgents
arxiv.org/abs/2611.26553
Context Mode retweeted
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?
Context Mode retweeted
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.
Context Mode retweeted
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.
contextmode.ai
Code Mode is an experimental new feature in Claude Code that can improve both speed and context efficiency when Claude needs to orchestrate multiple steps. Try it out and let us know what you think!
It enables Claude to perform multi-step tool calls by writing and running JavaScript. Rather than calling one tool at a time (e.g. Bash, Read, or Edit) and waiting to see the result before deciding what to do next, Code Mode allows Claude to write a simple script to run multiple commands in parallel, passing arguments and filtering outputs for subsequent tool calls to reduce context.
I'm excited about this work because Code Mode enables more efficient and streamlined multi-step coding flows. For example, rather than passing large amounts of raw search data into the context window or having to make a large number of sequential calls to perform the same refactoring across dozens of files, Claude can orchestrate these tasks programmatically in a single pass.
Still, you will be able to interact with Claude as normal through natural prompts. And if you ever need to see the exact JavaScript that Claude generated, you can always use Ctrl+O to expand the collapsed Code rows in the transcript viewer.
One of the most exciting practical improvements from Code Mode is its ability to perform long-running operations, like running test suites or complex builds, as background processes. When Code Mode is running in either auto or bypassPermissions mode, scripts can run in the background for up to two hours. You can continue to interact with Claude and perform other work within the same session. The /tasks command provides complete transparency and control over background scripts.
Each tool call that is generated within a script is still governed by your current deny and ask permission policies, sandbox constraints, and PreToolUse hooks. Hooks can even be defined specifically for the REPL tool to inspect the generated JavaScript before running, or redact sensitive tokens from the output before reading it into the context.
To enable Code Mode, just start your session with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude or set the environment variable in your ~/.claude/settings.json file.
Give it a try by running multi-file audits, batch edits, or any type of parallel search-and-filter operation. Code Mode is experimental and the team is actively iterating on it, so please run /feedback in your terminal to let us know what works well and where you hit any edges.
Hope it's helpful!
Context Mode retweeted
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.
github.com/mksglu/context-mo…







