Skip to content

Deterministic Agent Control Protocol

Governance gateway for AI agents — bounded, auditable, session-aware control with MCP proxy, shell proxy & HTTP API. Works with Cursor, Claude Code, Codex, and any…

Install

$npx det-acp init cursor
Claude Code
claude mcp add deterministic-agent-control-pr -- npx det-acp init cursor
Cursor / Claude Desktop (mcp.json)
{
  "mcpServers": {
    "deterministic-agent-control-pr": {
      "command": "npx",
      "args": [
        "det-acp",
        "init",
        "cursor"
      ]
    }
  }
}

Install command taken from the project's README or registry entry. Always review code before running it.

Self-Evolving Deterministic Agent Control Protocol

A governance gateway for AI agents — making every action bounded, auditable, reversible, and explainable.

Works transparently with Cursor, Claude Code, Codex, and any MCP-compatible agent. Also supports shell command governance and a language-agnostic HTTP API.

🛡️ Governance in Action

  <b>1. Set Up Governance Rule</b>
  
  Enable the governance rule in Cursor's settings to protect your workspace.
</td>
  <b>2. Block Secrets Exfiltration</b>
  
  Agent attempts to read <code>.env</code> and write secrets — blocked instantly.
</td>
<td align="center" width="50%">
  
  
  <b>3. Block Credential Scanning</b>
  
  Agent tries to search for credentials and secrets files — denied by policy.
</td>

https://github.com/user-attachments/assets/ec7a9524-1527-4e51-b837-7e05a24b189d


Table of Contents


How It Works

Agents never execute tools directly. Every action flows through the control plane for evaluation, enforcement, and audit:

flowchart LR
    A["Agent"] -->|"action request"| CP["Control Protocol"]
    CP -->|"evaluate against policy"| D{"Decision"}
    D -->|"allow"| E["Agent Executes Action"]
    D -->|"deny"| F["Blocked + Reason Logged"]
    D -->|"gate"| G["Human Approval Required"]
    E -->|"record result"| L["Evidence Ledger"]
    G -->|"approved"| E

The protocol does not execute actions itself. It evaluates them against a policy, enforces session-level budgets, requires human approval for risky operations, and records everything in a tamper-evident audit ledger.


Core Principles

Principle Description
Bounded Agents can only perform allowed actions within allowed scopes
Session-Aware Budget, rate limits, and escalation rules across the full interaction
Auditable Every action logged in a tamper-evident ledger with SHA-256 hash chaining
Reversible Compensation plans for undoing executed actions
Explainable Full reporting — what was allowed, denied, gated, and why

Quick Start

Install

npm i @det-acp/core

Set Up Governance (One Command)

npx det-acp init cursor        # Cursor
npx det-acp init codex         # Codex CLI
npx det-acp init claude-code   # Claude Code

This generates all required files (policy, MCP config, governance rules) with sensible defaults. Edit policy.yaml to customize — everything else is handled automatically.

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related