io.github.agent-polis/impact-preview
Impact preview for AI agents - see what changes before any action executes.
Versions
0.2.1latestTools 6
preview_file_write Preview what a file write operation will change BEFORE executing it. Shows a diff of current vs proposed content, risk assessment, and warnings. Use this before writing to any file to see exactly what will change. Args: path: Path to the file to write content: The content to write description: Description of what this change does Returns: Impact preview showing diff, risk level, and any warnings
preview_file_create Preview creating a new file BEFORE executing it. Shows what will be created, risk assessment, and any warnings. Args: path: Path where the file will be created content: The content for the new file description: Description of what this file is for Returns: Impact preview showing what will be created and risk assessment
preview_file_delete Preview deleting a file BEFORE executing it. Shows what will be deleted, current contents, and risk assessment. This is a destructive operation - always preview first! Args: path: Path to the file to delete description: Reason for deletion Returns: Impact preview showing what will be lost and risk assessment
preview_shell_command Preview a shell command BEFORE executing it. Analyzes the command for dangerous patterns and shows risk assessment. Shell commands can have system-wide effects - always preview first! Args: command: The shell command to analyze description: What this command is supposed to do Returns: Risk assessment and warnings for the command
preview_database_query Preview a database query BEFORE executing it. Analyzes the query for dangerous operations (DELETE, DROP, TRUNCATE). Database operations can cause data loss - always preview first! Args: query: The SQL query to analyze description: What this query is supposed to do Returns: Risk assessment and classification of the query
check_path_risk Quick check if a file path is sensitive/risky. Checks for patterns like .env, credentials, production configs, etc. Use this for a fast risk assessment before any file operation. Args: path: The file path to check Returns: Risk assessment for the path
Permissions 4
network medium filesystem low database medium env_vars low