The Challenge
A health foods manufacturing and resale group wanted AI agents working across the business: sales, production, finance, marketing and customer service. The useful jobs were clear:
- Sales and marketing: Work out campaign pricing and discounts that still keep margin.
- Customer service: Draft replies for support staff when they’re overloaded.
- Marketing: Design flyers and promotional emails.
- Production: Work out which raw materials to order.
- Engineering: Prepare code changes and pull requests.
The hard part wasn’t getting agents to do these jobs. It was letting them do it safely. An agent that can read finance data, write to GitHub or send email is a real risk if it misbehaves, is manipulated by something it reads, or tries to get around its limits. Open agent frameworks generally trust the agent too much for that. They give it credentials and let it decide what to call.
Approach
The design is based on the idea behind OpenClaw: agents that staff talk to in their normal chat tool, each with its own skills. None of the OpenClaw code is used. I built the platform from scratch around one principle: the agent never controls its own access.
A Gateway With No AI in It
Everything goes through a central gateway, and the gateway has no AI in it. It’s ordinary, deterministic code, so it can’t be talked out of a rule.
- The gateway creates a sandbox for each agent run.
- The agent is given only the tools for its assigned skills.
- Every tool call goes through the gateway. Agents never hold API keys, so they can’t skip the controls by calling a service directly.
Keeping each agent limited to the skills it was assigned is the safest way to run them. An agent can’t misuse a tool it doesn’t have.
Permissions Per Agent, Per Tool
Permissions are set for each agent and each tool. Most agents only read. Some need write access to specific services, for example lodging a GitHub issue so a developer can fix something, and they get that one permission and nothing wider.
Sandboxing
Code execution and network calls are sandboxed. An agent can only reach what its tools allow, through the gateway.
Agent-to-Agent Messages, Kept Narrow
Agents talk to each other by passing messages through the gateway, under the same rules. I deliberately didn’t allow open-ended conversations between agents, such as a sales agent freely questioning a production agent. That’s too loose, and it makes errors and abuse hard to contain.
Where agents do work together, the path is defined. The best example is code:
- A coding agent prepares a pull request.
- It sends the PR to a review agent.
- The review agent assesses the risk. If the change is green tier (low risk), it reviews and merges it.
- Anything above green tier is escalated to a human.
Getting these two agents to work well together, without either one doing anything unexpected, was the hardest part of the project.
Full Audit Trail
Prompts, changes, API calls and data access are all audit logged. If anyone asks what an agent did, and why, there’s a complete record.
Where Staff Use It
About 45 staff use their agents through Google Chat, which they already used every day. There’s no new app to learn.
Infrastructure
The platform runs in the cloud on AWS ECS and Fargate, so agent sandboxes start and stop with demand. The agents use Claude and Codex models. Because tools and permissions live in the gateway rather than in the agent, the model behind an agent can be changed without changing what it is allowed to do.
The Outcome
The platform has been in production for a month, used by around 45 people across sales, production, finance, marketing and customer service. In that first month:
- 300+ support replies drafted for customer service staff
- 20 pull requests merged through the coding and review agents
- Many marketing campaigns run, with pricing, discounts, flyers and emails prepared by the agents
Each agent can do only what it’s been given permission to do, every action is logged, and low-risk code changes go from request to merged without waiting for a person, while anything riskier still reaches one.
Technologies Used
- Agents: Multi-agent platform inspired by OpenClaw, built from scratch
- Models: Claude, Codex
- Control: Deterministic (non-AI) gateway for permissions, tool access and agent messaging
- Security: Per-agent, per-tool permissions, sandboxed code execution and network access, no credentials held by agents
- Audit: Logging of prompts, changes, API calls and data access
- Interface: Google Chat
- Infrastructure: AWS ECS, AWS Fargate
- Integrations: GitHub (issues and pull requests)