Install monocle
Follow the installation guide to install monocle via Homebrew or a pre-built binary.
Register monocle with your agent
Run The interactive picker lets you select which agents to register. Pass a named agent —
monocle register from your project directory to install the skills your agent needs to interact with monocle:claude, opencode, codex, gemini, or all — to skip the picker. Use --global to write to your user-level config directory instead of the current project.This installs skills into the agent-specific directory for your project and, for Claude Code, also writes the MCP channel config to .mcp.json for push notifications.| Agent | Skills directory | MCP config |
|---|---|---|
| Claude Code | .claude/skills/ | .mcp.json |
| OpenCode | .opencode/skills/ | — |
| Codex CLI | .codex/skills/ | — |
| Gemini CLI | .gemini/skills/ | — |
Start monocle
Open a separate terminal in your project directory and run:Keep this terminal open alongside the terminal where your agent is running. monocle connects to your agent automatically using Unix sockets.
Review your agent's code
As your agent writes code, diffs appear in the monocle TUI. Use the following keys to review:
j/k— move up and down through the file list and diffc— add a comment at the cursor (tag it as an issue, suggestion, note, or praise)v— start a visual selection for multi-line commentsS— submit your review
Enable push notifications (Claude Code only)
By default, your agent retrieves feedback by running If you start or restart monocle while Claude Code is already running, the MCP channel may need to reconnect. Type
/get-feedback on its own. With Claude Code and MCP channels, monocle can push feedback directly into the agent’s context the moment you submit.To enable push notifications, start Claude Code with the channel flag:The
--dangerously-load-development-channels flag is required because MCP channel support is currently in a research preview. See the Claude Code channels reference for details./mcp in Claude Code and select monocle to reconnect.What happens when you submit
When you pressS:
- monocle formats your comments into a structured review and queues it for delivery.
- Claude Code with MCP channels — a push notification prompts the agent to retrieve your feedback immediately.
- Other agents — the review waits in the queue until the agent runs
/get-feedbackor callsmonocle review get-feedback. Multiple reviews accumulate and are delivered together. - If there are no comments, the review is treated as an approval.
Pause the agent
If you want the agent to stop and wait while you review, pressP. The agent receives a pause notification and blocks until you submit your review.
Pause requires MCP channel support and is currently available for Claude Code only.