Your agent is connected to the tool. That is not the same as being allowed to use it.
Better models do not make an agent system reliable. The system around the model does. Agents now refund customers, change code and delete data. Most teams I talk to check three things: does the model answer well, is the
Better models do not make an agent system reliable. The system around the model does.
Agents now refund customers, change code and delete data. Most teams I talk to check three things: does the model answer well, is the tool connected, did the call return 200. None of those answers the questions an owner or an auditor will ask later: who approved this exact action, what was the agent allowed to spend, and what happened when something failed halfway?
I have been building ContextOS to answer those questions. It is free and open (Apache-2.0), and it is not a hosted product. It runs in your own stack, with your own credentials and providers.
What it is
Two parts that work together.
An open contract for agent harnesses. Versioned JSON schemas and five control profiles that say what a well-run agent system must do: admit only verified context, define "done" before the run, check permission at the moment of action, and keep evidence of what changed.
An alpha runtime. A Rust gateway (contextosd) that sits between agents and their tools. Before a call is dispatched it checks identity, delegation, risk tier and exact action-bound approval. Around that sits Tower and the ctx CLI for fleets: inventory computed from the audit log, kill switches, and audit packs you can verify offline.
Three ideas that carry most of the weight
- Connected is not permitted. Every action is checked right before it runs: who asked, what they may do, whether this exact action was approved. Rules run in code, outside the prompt, so a clever prompt cannot talk past them.
- Limits are shared, not per agent. Two agents with one INR 1,000 limit must not each spend INR 800. The gateway holds a shared ceiling, and holds capacity while an outcome is unknown instead of guessing.
- Unknown is not done. If the payment system's answer never came back, the record says "unknown", not "success". Receipts show verified outcomes, not filled-in fields.
Refunds are just the example I use because the money is easy to count. The same checks apply to code changes, data deletes, and any tool an agent can call.
Try it without setting anything up
There is an Agent Failure Lab on the site with playback from real gateway runs: five ways a refund agent loses money without the gateway, and what changes with it. Or download the release, run one script, and verify the signed audit offline. No model key or payment account needed.
- Lab: https://contextosai.com/lab
- Site and docs: https://contextosai.com
- Code: https://github.com/contextosai/ContextOS
Limits, plainly
It is alpha. The gateway adds a hop to every tool call. It only governs tools that go through it, so agents with direct credentials are out of scope. Do not treat it as production-grade trust yet.
What I want to know
If you run agents that take real actions: what is the one check you wish you had before the call, and what would you want in the receipt afterwards? I will answer in the comments.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.