Get release news

Why Constle

A guardrail inside the agent shares the agent's fate. Outside the agent is where enforcement starts, not where it ends.

On this page

Outside the agentLink to this section

A check that runs in the agent's process, or a rule the model reads in its prompt, is exposed to the same injected text that steers the agent. Constle's checks run on the host, outside the sandbox: where the agent's traffic passes through Constle (the egress proxy, the MCP gate and the agent-to-agent gate), and where the sandbox is built and stopped. See Architecture.

Constle is built around four choices.

Four choicesLink to this section

Evidence you can check yourselfLink to this section

With an identity declared, every audit entry is signed and chained to the one before it. constle audit verify runs offline and names the line where an edit, a reordering, or a deletion with a line after it breaks the chain. It also re-checks every signed approval the log records. What an intact chain does and does not prove is in Audit log and verification.

The agent's TLS is never interceptedLink to this section

Constle decides on the destination name and puts no certificate authority inside the sandbox. The cost is stated, not hidden: no per-path rules for allowed hosts, no spend metering of that traffic, and API keys you declare are passed into the sandbox.

Decisions at the tool-call boundaryLink to this section

Name a tool, and its calls that pass through the gate wait for a person. A signed decision must match the exact call it answers, and by default, with no answer, the call is refused and the run stops. Among calls that pass through the gate to priced MCP servers, a per-run cap, and with an identity a per-day cap, stops the run once a metered charge crosses it. See Human gates and Spend caps.

One contract per run, labelled honestlyLink to this section

Fields in the Agentfile's specification are marked enforced, validated, declared or informational, and the runtime reads the Agentfile once, when the run starts, so nothing changes the policy while the agent runs. A cap with nothing to meter is reported as NOT ENFORCED instead of looking real. See The Agentfile.

What Constle doesn't try to beLink to this section

It is not a fleet platform, not an agent framework and not a filesystem policy engine. It is one CLI that runs agents on your own machine, with Docker or a Firecracker microVM. Read the Known limitations before you rely on it, and What Constle is not for the rest.

QuestionsLink to this section

What does Constle do, and what does it leave out?Link to this section

Constle does not inspect HTTPS traffic, add credentials to outgoing requests, confine the filesystem or manage fleets of sandboxes. If you need those, Constle is not the tool.

It makes four choices on purpose:

  1. It never intercepts the agent's TLS. Egress is allowed or refused by destination name. No certificate authority is placed inside the sandbox.
  2. It leaves evidence you can verify yourself. With an identity declared, the audit log is signed and hash-chained. constle audit verify checks it offline and names the line where a change breaks the chain.
  3. It decides at the tool-call boundary. It holds named MCP tool calls that pass through the gate for a person, who answers at the terminal or with a signed decision that must match the exact call, and by default it refuses the call when nobody answers. It enforces per-run caps, and with an identity per-day caps, on calls that pass through the gate to priced MCP servers.
  4. It labels its own contract. Fields in the Agentfile's specification say whether the runtime enforces them, and before a run constle validate tells you which rules you wrote it won't enforce.

The trade-offs are real. API keys you declare are visible inside the sandbox. There is no filesystem policy. Constle is early. The Known limitations list where each rule stops.

Does Constle read my agent's traffic?Link to this section

It never intercepts the agent's TLS. For HTTPS traffic to allowed hosts, the proxy sees where the agent connects (host and port) and how many bytes moved, and nothing of what is said. That is also why such traffic is not metered for spend. Plain HTTP to port 80 of an allowed host passes through the proxy in clear. MCP tool calls are different by design: the agent sends them to Constle's gate, which reads each call to apply tool allowlists, approvals and metering, and a gated call's arguments go to your approval endpoint.

Can I use Constle together with guardrails inside my agent?Link to this section

Yes. They cover different things. In-agent guardrails judge content: what the model is asked and what it says. Constle governs reach: where the agent can connect, which tools it can call, what calls to priced servers may cost, and what gets recorded. Neither replaces the other. A worked example of the second half: Contain prompt injection.

Where is the source?Link to this section

The docs are live. The current source and its signed releases aren't public yet. More in Project status.