Impact preview for AI agents - see what changes before any action executes.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Impact Preview for AI Agents - "Terraform plan" for autonomous AI actions
See exactly what will change before any AI agent action executes.
Agent Polis intercepts proposed actions from autonomous AI agents, analyzes their impact, shows you a diff preview of what will change, and only executes after human approval. Stop worrying about your AI agent deleting your production database.
Autonomous AI agents are powerful but dangerous. Recent incidents:
Developers want to use AI agents but don't trust them. Current solutions show what agents want to do, not what will happen. There's no "terraform plan" equivalent for AI agent actions.
@require_approval decorator for your agent codeThe fastest way to try Agent Polis is the MCP server with Claude Desktop or Cursor.
Add to your config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Ask Claude to edit a file - it now has these tools:
| Tool | What it does |
|---|---|
preview_file_write | Shows diff before any edit |
preview_file_delete | Shows what will be lost |
preview_shell_command | Flags dangerous commands |
check_path_risk | Quick risk check for any path |
Example prompt:
"Preview what would happen if you changed the database URL in config.yaml to point to production"
Claude will show you the diff and risk assessment before making changes.
For the complete approval workflow with dashboard and API:
You can retrieve the complete audit trail for an action:
ActionPreviewGenerated event payload includes machine-readable governance context:
data.governance.policy.decision / data.governance.policy.matched_rule_iddata.governance.scanner.reason_ids / data.governance.scanner.max_severityWrap your agent's dangerous operations:
Launch the Streamlit dashboard to review pending actions:
| Endpoint | Method | Description |
|---|---|---|
/api/v1/actions | POST | Submit action for approval |
/api/v1/actions | GET | List your actions |
/api/v1/actions/pending | GET | List pending approvals |
/api/v1/actions/{id} | GET | Get action details |
/api/v1/actions/{id}/preview | GET | Get impact preview |
/api/v1/actions/{id}/diff | GET | Get diff output |
/api/v1/actions/{id}/approve | POST | Approve action |
/api/v1/actions/{id}/reject | POST | Reject action |
/api/v1/actions/{id}/execute | POST | Execute approved action |
file_write - Write content to a filefile_create - Create a new filefile_delete - Delete a filefile_move - Move/rename a filedb_query - Execute a database query (read)db_execute - Execute a database statement (write)api_call - Make an HTTP requestshell_command - Run a shell commandcustom - Custom action type| Version | Focus | Status |
|---|---|---|
| v0.2.0 | File operation preview | Current |
| v0.3.0 | Database operation preview | Planned |
| v0.4.0 | API call preview | Planned |
| v0.5.0 | IDE integrations (Cursor, VS Code) | Planned |
| v1.0.0 | Production ready | Planned |
MIT License - see LICENSE for details.
Built for developers who want AI agents they can actually trust.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/impact-preview)<a href="https://allmcps.com/mcp/impact-preview"><img src="https://allmcps.com/api/badge/impact-preview?style=directory" alt="Impact Preview on AllMCPs" /></a>