Automatic confirmation handling for Claude Code CLI within Cmder terminal emulator.
This Cmder plugin automatically monitors your console and detects Claude Code CLI's "Do you want to proceed?" prompts, automatically accepting them by sending an Enter keypress. This creates a seamless, uninterrupted workflow when using Claude Code in Cmder.
The automation consists of two files that work together:
config/profile.d/claude_auto_accept.cmd- Startup script that launches the monitor automatically whenever Cmder opensbin/claude_auto_accept.py- Python background process that:- Monitors the visible console screen buffer in real-time
- Detects Claude Code's confirmation prompts ("Do you want to proceed?")
- Automatically sends Enter keypress to accept (since "Yes" is selected by default)
- Runs silently in the background with cooldown protection to prevent spam
- Cmder
- Python
- Claude Code CLI
-
Copy the Python script:
- Copy
claude_auto_accept.pyto<your-cmder-root>/bin/
- Copy
-
Copy the startup script:
- Copy
claude_auto_accept.cmdto<your-cmder-root>/config/profile.d/
Note: The
profile.ddirectory may not exist in older Cmder installations. Create it if needed: - Copy
-
Restart Cmder
- Close all Cmder windows and reopen
- The auto-accept plugin will activate automatically
Plugin not loading:
- Verify Python is in your PATH:
where python - Check that both files exist in the correct locations
- Check Cmder's config for any conflicting settings
Still seeing prompts:
- The monitor has a 3-second cooldown between accepts
- Ensure the console window is focused and visible
- Check that you're using the standard Claude Code CLI
Multiple instances:
- The script uses console window locking to prevent multiple instances
- Each Cmder window gets its own monitor instance
- Lock files are stored in
%TEMP%directory
To remove the auto-accept functionality:
- Delete
<cmder-root>/config/profile.d/claude_auto_accept.cmd - Delete
<cmder-root>/bin/claude_auto_accept.py
The Python script can be modified to detect additional prompts. Edit the PROMPTS list in claude_auto_accept.py:
PROMPTS = [
{
"trigger": "Do you want to proceed?",
"confirm": ["Yes", "No"],
},
# Add more prompt patterns here
]You can adjust the monitoring behavior in the main() function:
COOLDOWN = 3 # seconds after an accept before looking again
POLL = 0.5 # seconds between screen reads
SETTLE = 0.3 # seconds to wait after detection before sending keyAutomatic Acceptance Risk
- This tool automatically accepts ALL "Do you want to proceed?" prompts from Claude Code CLI
- You will NOT be asked for confirmation before actions are executed
- Review Claude's planned actions carefully BEFORE they trigger the prompt
- This tool is designed for trusted workflows where you're confident in Claude's actions
No Liability
- This automation is provided AS-IS without any warranties
- Use at your own risk
- Always maintain backups of important work
- This is intended for personal development environments, not production systems
