Updated · Markdown
Keep a human in the loop for AI agents, and stop destructive actions
Updated 2026-11-29. Written by the team that builds Tex, so weigh it accordingly.
Short answer: decide which actions need a person before they happen, and enforce that outside the model. An instruction such as "always ask before merging" is a request a model can misread or be talked out of. A held tool call, where the platform stops the call until a person allows it, is not. Then let the agent ask questions when it lacks a fact, and make waiting cheap so it doesn't guess.
Four kinds of human involvement
| Kind | Who starts it | What waits |
|---|---|---|
| Approval of an action (merge, delete, refund, send to a customer) | The platform, holding the tool call | That action |
| A question (a fact the agent lacks) | The agent | Its conclusion |
| A review of a finding or a run | The agent or its definition | Nothing |
| A correction after the fact | The person | Nothing |
Only approvals can't be argued away by a model, so they are the ones to enforce.
How Tex does it
- Held tool calls. Each agent has a policy per tool:
auto,approveornever. A call underapprovewaits in the session until someone allows or denies it, and the tool's page keeps the record of held calls. Admins can choose "Allow, and always allow". An agent's definition can make a tool's policy stricter, never looser. - Asks. An agent can ask a person a question. Its session waits, at no cost, until someone answers on the session's page. Tex emails a notice, and a daily digest tells the admins what still waits. The answer is the session's next message.
- In Slack. Install Tex's Slack app for your organization, and an agent's owner names the channel its asks and held calls go to. The agent never picks it. A reply in the post's thread answers the ask, from the member whose Slack email matches. A held call's post has Allow and Deny buttons that work only for members who may approve.
- Roles. Admins manage agents, knowledge bases, settings and tokens. Members run agents, chat and read.
- Budgets. Limits on sessions a day, tokens per session and turns per session stop a looping agent.
- Corrections. A correction in the chat reaches the curator, which writes it into the knowledge base every agent reads next time. A question a person answered once doesn't need asking again.
Questions people ask
Which actions should need approval? Anything hard to undo or seen by outsiders: merges to main, deletes, payments and refunds, emails or posts to customers, production changes.
Can a prompt injection get past an approval? A held call waits at Tex's tool forwarder, outside the sandbox and the model. The agent can ask for the call, but only a person can allow it.
What does waiting cost? Nothing. The session parks between turns, and its microVM idles out two minutes after its last turn.
What Tex doesn't do
- A Slack message can't start a new session; Slack threads answer the sessions Tex posted about.
- Holds apply to calls through Tex's tool forwarder (MCP tools). A command the agent runs inside its sandbox is limited by its egress list and the account it uses, not by a hold.