ACP (Agent Context Protocol)
ACP (Agent Context Protocol) lets you use Mona inside compatible code editors. She can read your open files, suggest edits, and execute commands — all from within your IDE.
Supported editors
| Editor | ACP Support | Plugin |
|---|---|---|
| VS Code | ✅ Native | ACP extension |
| Zed | ✅ Native | Built-in |
| JetBrains | ✅ Plugin | ACP plugin |
| Cursor | ⚠️ Partial | Compatible with Claude protocol |
Installation
ACP support ships with the standard [all] extras. If you installed the minimal bundle:
cd ~/.monoclaw/monoclaw-runtime
uv pip install -e ".[acp]"
VS Code setup
- Install the ACP extension from the marketplace
- Open Command Palette (
Cmd+Shift+P) → ACP: Connect Agent - Select MonoClaw from the list
- The extension will auto-detect your
monoclaw-acpbinary
Zed setup
- Open Settings → AI Assistant
- Select MonoClaw as the provider
- Zed will launch
monoclaw-acpautomatically
JetBrains setup
- Install the ACP plugin from the marketplace
- Go to Settings → Tools → ACP
- Set the path to
monoclaw-acp - Click Test Connection
How ACP works
- The editor launches
monoclaw-acpas a subprocess - ACP communicates via stdin/stdout using the Agent Context Protocol
- Mona receives:
- Open file contents
- Cursor position
- Selected text
- Project structure
- Mona responds with:
- Text edits
- Terminal commands
- Explanations
Features
Inline edits
Highlight code and ask Mona to modify it:
Refactor this function to use async/await
Mona suggests the edit inline with a diff view.
Terminal integration
Run commands from the editor:
Run the test suite
Mona executes npm test and shows results in the editor's terminal panel.
Context awareness
Mona automatically sees:
- The current file
- Recently opened files
- Git status
- Error messages (if integrated with the editor's diagnostics)
Configuration
# ~/.monoclaw/config.yaml
acp:
enabled: true
editor:
vs_code:
auto_accept: false # Require confirmation for edits
show_diff: true # Show diff before applying
zed:
auto_accept: true
show_diff: false
Security
- ACP runs with the same permissions as your user account
- Dangerous commands require approval (if approval mode is enabled)
- File edits can be reviewed before applying
- No code is sent to external services beyond your configured LLM provider
Troubleshooting
| Problem | Fix |
|---|---|
| "monoclaw-acp not found" | Ensure [acp] extra is installed and monoclaw-acp is on PATH |
| "Connection refused" | Restart the editor and try reconnecting |
| Slow responses | Check your LLM provider latency |
| Edits not applying | Enable "Show diff" to see if Mona suggested changes |