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 MCP-compatible agent.
<p align="center">
<img src="assets/logo.png" alt="det-acp logo" width="280" />
</p>
# Self-Evolving Deterministic Agent Control Protocol
[](https://github.com/elliot35/deterministic-agent-control-protocol/stargazers)
[](https://github.com/elliot35/deterministic-agent-control-protocol/network/members)
[](https://github.com/elliot35/deterministic-agent-control-protocol/graphs/contributors)
[](LICENSE)
[](https://www.npmjs.com/package/@det-acp/core)


**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
<table>
<tr>
<td align="center" colspan="2">
<img src="assets/mcp-config.gif" alt="Setting up governance rule in Cursor" width="80%" />
<br />
<b>1. Set Up Governance Rule</b>
<br />
<sub>Enable the governance rule in Cursor's settings to protect your workspace.</sub>
</td>
</tr>
<tr>
<td align="center" width="50%">
<img src="assets/block-access-env.gif" alt="Blocking .env file access" width="90%" />
<br />
<b>2. Block Secrets Exfiltration</b>
<br />
<sub>Agent attempts to read <code>.env</code> and write secrets — blocked instanAgent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.