Cocobox

Guardrails

A rule written in a prompt is a request: the model can misread it or argue past it. Cocobox's guardrails are enforced by the app, outside the model, so they hold whatever an agent says. This page lists them and links to the guide for each.

Approvals

When an agent wants to do something its tab does not allow on its own, Cocobox stops it and shows you a decision card: what will happen, what it touches, whether it can be undone, and the exact command or SQL. Nothing runs until you answer, and a request nobody answers in time is refused.

More in Approvals and decision cards.

Read-only connections

Tick Read-only when you add a database connection and writes to it are always refused, whatever the agent or you ask for. There is no approval to give. The connection shows a read only badge in the sidebar. More in SQL and connections.

Add a connection: name, type, host, database, TLS, an SSH tunnel, and a Read-only box: writes are always refused, whatever the agent or you ask for

A database copy per agent

Turn it on for a space and each new agent tab gets its own copy of the dev database (Postgres or SQLite), so agents do not clash on data and a bad write lands in a copy. Cocobox never copies anything named prod. A child tab's writes to its own copy go to its parent agent for approval; writes outside its copy come to you. More in SQL and connections.

SQL rules

Limits on child agents

More in Agents opening tabs and Approvals.

Checkpoints and undo

Approval happens before a change. Checkpoints are the way back after one. Every turn that changed files in the folder is a row in the Undo tab of the right panel: what was asked and what it changed.

  1. Show the right panel with ⇧⌘B and pick Undo.

  2. Open a row to see the files the turn changed. Click a file to see what the turn did to it.

  3. Put one file back and keep the rest of the turn, or put the whole folder back the way it was before the turn. Restoring the folder asks for a second click.

Checkpoints cover files in the tab's folder. They do not undo a push, a deploy or a database write. Each tab also works on its own branch in its own worktree, so a tab's changes stay out of your checkout until you merge them.

Spend caps

A daily cap per tab, in dollars or tokens, and one per scheduled run. Over the cap, the tab pauses and asks. Dollars are a list-price estimate, not a bill. More in Spend caps.

Checks Cocobox runs itself

In a workflow, a step is done when its command passes, and Cocobox runs the command, not the agent. With Verified done, every tab that finishes with changes runs the space's check. A command you have not seen shows for review before its first run; in a workflow an agent made, the agent that opened the tab reviews it. “Tests pass” with no test run on record is flagged.

The audit log

Every decision is kept in the Audit tab of the right panel, denials included: who asked, what, and who decided, you or a parent agent. Stats counts them: denied, blocked by rules, approved by a parent agent.

What guardrails do not do

Share a policy

Under Guardrail policy in Settings › Safety & spend, Share… gives you this repository's .cocobox/policy.toml as a file, with secrets and your own paths replaced by placeholders. Import… brings one in. A policy that would loosen your guardrails shows each rule it loosens and needs your yes before it replaces yours.

Agent setups work the same way: Share… and Import… under Agent setups in Settings › Agents.