Installation
Install Monocle via Homebrew, pre-built binaries, or from source
Quickstart
Register Monocle with your agent and start your first review session
Review Loop
Understand how the live review cycle works end-to-end
CLI Reference
Complete reference for all Monocle commands and flags
How it works
Monocle connects to your AI coding agent using Unix sockets. You run Monocle in a separate terminal while your agent works. As the agent writes code, you see diffs appear in real time, leave line-level comments, and submit your review when you’re ready. The agent retrieves your feedback and starts addressing it — you review the updated diffs, iterate, and ship.Register with your agent
Run
monocle register to install skills into your agent’s config directory. This works with Claude Code, OpenCode, Codex CLI, and Gemini CLI.Start reviewing
Launch your agent in one terminal, then start Monocle in another. Diffs appear automatically as the agent writes code.
Key features
Live diff viewer
Unified and split (side-by-side) views with syntax highlighting and intra-line diffs. Switch styles with
t.Structured comments
Tag feedback as issues, suggestions, notes, or praise. Add line-level or file-level comments with visual range selection.
Plan review
Review your agent’s plans and architecture decisions before it writes code. Block the agent until you approve with
/review-plan-wait.Push notifications
With Claude Code channels, feedback is pushed directly into the agent’s context the moment you submit — no polling needed.
Suggested edits
Propose exact code changes with GitHub-style suggestion blocks that the agent can apply directly.
Session persistence
Reviews survive restarts via SQLite. View past submission history with
:history.Supported agents
Monocle works with any coding agent that supports agent skills, including:- Claude Code — Full support including push notifications via MCP channels
- OpenCode — Pull-based feedback via skills
- Codex CLI — Pull-based feedback via skills
- Gemini CLI — Pull-based feedback via skills