SKILL.md files that instruct the agent to call monocle review CLI commands — to check review status, retrieve feedback, and submit content for review.
Registering Monocle
Runmonocle register to install skills and any required config for your agent:
claude, opencode, codex, gemini, all.
Use --global to register once and have Monocle available in every project without re-running per repo.
What registration writes
- Claude Code
- OpenCode
- Codex CLI
- Gemini CLI
monocle register claude writes three things:.claude/skills/— Installs theget-feedback,get-feedback-wait,review-plan, andreview-plan-waitskill files..mcp.json— Adds amonocleentry undermcpServerspointing tomonocle serve-mcp-channel. This enables MCP channel push notifications..claude/settings.json— Adds permission entries so Claude Code doesn’t prompt for approval when runningmonocle reviewcommands.
--global, the same files are written to ~/.claude/ and ~/.mcp.json instead.Alternative: agent plugin systems
Instead ofmonocle register, you can install Monocle through each agent’s built-in plugin or extension system:
- Claude Code
- Codex CLI
- Gemini CLI
OpenCode does not have a plugin marketplace. Use
monocle register opencode to install.Claude Code: MCP channels for push notifications
Claude Code supports MCP channels, which let Monocle push feedback directly into the agent’s context the moment you submit a review. To enable channels, start Claude Code with the channels flag:Socket pairing
Monocle starts a Unix socket server when it launches. Agent CLI commands (monocle review status, get-feedback, etc.) connect to that socket to communicate with the running session.
Monocle auto-pairs by matching working directories. If the agent runs in the same directory as Monocle, pairing happens automatically.
If auto-pairing fails — for example, if the agent’s working directory differs from Monocle’s — you can set the socket path manually:
I in the TUI to see the current socket path and the number of connected subscribers.
Session modes
By default,monocle starts a new review session. You can control session behavior with these flags:
| Flag | Behavior |
|---|---|
| (none) | Start a new session |
--continue | Resume the most recent session |
--resume | Open an interactive picker to choose a session |
--session ID | Resume a specific session by ID |
Unregistering
To remove Monocle’s configuration for an agent:Installed skills
Registration installs four skills for all supported agents:| Skill | Description |
|---|---|
/get-feedback | Retrieve pending review feedback from the queue |
/get-feedback-wait | Retrieve feedback, blocking until it’s available |
/review-plan | Find the active plan file and submit it for review (non-blocking) |
/review-plan-wait | Submit the plan and block until you approve or request changes |
The review loop
How feedback flows from diff to agent fix.
Configuration
Customize layout, diff style, keybindings, and more.