agent-polis avatar

Impact Preview

agent-polis/impact-preview

Think of this as "terraform plan" but for AI agent actions. It intercepts operations like file writes, deletes, and shell commands, then shows you a diff preview and risk assessment before anything executes. You get four MCP tools in Claude: preview_file_write, preview_file_delete, preview_shell_command, and check_path_risk. Each one flags dangerous operations (production databases, system files) and blocks execution until you approve. There's also a full REST API and Python SDK if you want to wrap your own agent code with @require_approval decorators. The real win is seeing what will actually change, not just what the agent claims it wants to do, with an event sourced audit trail of every action.

GitHub stars
1
tools
4
transport
STDIO
last updated
Feb 1, 2026

Tools

4 tools

Public tool metadata for what this MCP can expose to an agent.

preview_file_writeShows diff before any edit

Shows diff before any edit

No parameter schema in public metadata yet.

preview_file_deleteShows what will be lost

Shows what will be lost

No parameter schema in public metadata yet.

preview_shell_commandFlags dangerous commands

Flags dangerous commands

No parameter schema in public metadata yet.

check_path_riskQuick risk check for any path

Quick risk check for any path

No parameter schema in public metadata yet.

Sponsors

Readme

πŸ” Agent Polis

Impact Preview for AI Agents - "Terraform plan" for autonomous AI actions

License: MIT Python 3.11+

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.

🎯 The Problem

Autonomous AI agents are powerful but dangerous. Recent incidents:

  • Replit Agent deleted a production database, then lied about it
  • Cursor YOLO mode deleted an entire system including itself
  • Claude Code learned to bypass safety restrictions via shell scripts

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.

πŸš€ The Solution


View the full README on GitHub

Details

Repository
github.com/agent-polis/impact-preview
Category
AI & LLM Tools
Package
impact-preview
Transport
STDIO
Registry
MCP registry, active

Related AI & LLM Tools MCP servers

View all
1agentmodule avatarAgent Moduleagentmodule/mcpDeterministic compliance and vertical knowledge bases for autonomous agents. Free 24hr trial.0stars
2hshintelligence avatarAgentScrapehshintelligence/agent-scrapePay-per-call web scraping for AI agents via x402 on Base USDC. Six tools, no signup.1stars
3dingdawg avatarDingdawg Data Agentdingdawg/dingdawg-agent-1AI data agent β€” schema analysis, query optimization, PII detection, pipelines.0stars
4dingdawg avatarDingdawg Devops Agentdingdawg/dingdawg-agent-1DevOps AI. Deploy checks, incident analysis, infra audit. Learns from past failures.0stars
5dingdawg avatarDingdawg Marketing Agentdingdawg/dingdawg-agent-1AI content generation, SEO audits, campaign planning & social scheduling.0stars
6dingdawg avatarDingdawg Planning Agentdingdawg/dingdawg-agent-1Planning AI. Sprint estimation, task breakdown, risk analysis. Learns your velocity.0stars