We run several internal AI agents in production, and they all run on one platform. This post is about the principles behind that platform and why we chose them. We leave out which agents we run and what each one can reach, on purpose.
The problem
An agent reads real company and customer data, and some agents act on the outside world: they reply to a customer, change a file or alert an engineer. The model in the middle cannot be fully trusted. It can be wrong, and anything it reads, such as a customer message or a log line, can carry text that tries to steer it. Some runs happen on a timer, with nobody watching.
Built one at a time, each agent would carry its own access, approvals and audit trail. That is several places to get safety wrong, for a team too small to review them all with care.
One platform, so safety is built once
On our platform a new agent brings its jobs and the prompts for each job. It brings no code of its own. The platform brings everything that keeps it safe: how a run starts, what it may reach, how a person approves an action, how the run is recorded and how it is stopped.
This means the hard parts are reviewed once, by people who know them well, and every agent gets them the same way. The shared core knows no agent by name, so a fix to safety reaches every agent at once. Each model provider also sits behind one common interface, so moving an agent to another provider changes nothing in its tools or prompts.
An agent gets only what its job needs
Access follows the job, not the agent. A job that answers a question about one customer does not hold what a check across the whole system needs.
The limits do not live in the prompt. A limit the model could be talked out of is not a limit, so every boundary is enforced by the systems the agent uses, where the model cannot argue with it. We test each boundary by trying to cross it, and the test passes only if the attempt is refused.
Anything outside waits for a person
An action that reaches the outside world waits for a person to approve it. What the person approved is exactly what runs, and the model cannot change it after the approval.
When a result is uncertain, we choose the slow, safe path. We would rather a person check a message that may have gone than send a customer the same thing twice.
Code does what must be right every time
We let the model choose only where the choice needs judgement. The rest is code.
Take an example. Before an agent drafts an answer about a customer’s order, code gathers the facts about that one customer first. An answer should never rest on what the model happened to look up. The model then reads the evidence, can look further where it needs to, and writes its judgement in a fixed form. Code reads that judgement and acts on it within its own limits. Whether a run went well is decided from that judgement, never from the model’s prose.
We learned this the direct way. Where we let the model choose and order its own checks, most of our later changes went into tuning its limits. The checks written as plain code needed almost none.
Every run can be traced
Each run gets an id from the platform, never from the model. Everything the run did is recorded under that id, with private data removed first, and the id is shown with the answer. Anyone who doubts an answer can go straight to the steps behind it.
The trade-offs we accepted
| Choice | What it costs |
|---|---|
| One shared platform | A change to a shared part reaches every agent and must be checked against all of them |
| A person approves outside actions | Slower answers, and people’s time |
| Code gathers the basics | Changing what every run reads is a code change |
| Limits enforced outside the prompt | More setup for every system an agent uses |
What we would tell another team
- Build the safety parts once, in a shared platform, and keep agents to jobs and prompts.
- Give each job only what it needs, and put the limit where the model cannot argue with it.
- Prove every limit with a test that tries to cross it.
- Make what a person approved exactly what runs.
- Let code gather the basics and act on the verdict. Ask the model only to judge.
- Give every run an id from the platform, so every answer can be traced.
Agents outside Hubble reach our store through our MCP server, and partners build on the API docs. If you would like to build systems like this, see careers at Hubble.