Agent not connecting / socket mismatch
Agent not connecting / socket mismatch
Monocle creates a Unix socket based on its working directory. If your agent runs in a different directory, it looks for a socket in the wrong place and cannot connect.To diagnose: Press To start monocle on a specific socket:For Claude Code MCP: Add
I inside monocle to see the active socket path and how many subscribers are connected.Solution: set MONOCLE_SOCKETCopy the socket path shown by I and pass it to your agent commands via the environment variable:MONOCLE_SOCKET to the env block in .mcp.json:MCP channel not reconnecting (Claude Code)
MCP channel not reconnecting (Claude Code)
If you start or restart monocle while Claude Code is already running, the MCP channel connection may be stale and push notifications will not arrive.Solution: Type
/mcp in Claude Code and select monocle from the list to trigger a reconnect. You do not need to restart Claude Code.Push notifications not working
Push notifications not working
Push notifications require two things beyond a basic monocle installation:Also check that monocle is registered:If push notifications remain unavailable: Your feedback is not lost. It stays in the queue and will be delivered the next time the agent calls
- A JavaScript runtime — Bun, Deno, or Node.js — must be installed and on your
PATH. - Claude Code must be started with the
--dangerously-load-development-channelsflag:
The
--dangerously-load-development-channels flag is required during the MCP channels research preview./get-feedback or runs monocle review get-feedback.No feedback delivered to the agent
No feedback delivered to the agent
Confirm monocle is running in the right directory
Monocle must be running in the same Git repository as your agent. Check the title bar or press
I to see the working directory monocle is using.Verify the connection
Run this from the agent’s working directory:If monocle is reachable, this prints the current status. If it exits with an error, the agent cannot reach the socket — see the socket mismatch section above.
Review submitted but agent didn't respond
Review submitted but agent didn't respond
Feedback is always queued for reliability — the agent does not receive it automatically unless push notifications are enabled.
- With Claude Code and MCP channels: A push notification prompts the agent to retrieve feedback immediately. If the notification did not arrive, check the push notifications section above.
- With other agents: The agent must run the
/get-feedbackskill or callmonocle review get-feedbackto pull the queued feedback. Trigger this manually if the agent has not done so on its own. - To request the agent stop and wait: Press
Pin monocle to send a pause notification. The agent will callmonocle review get-feedback --waitand block until you submit your review. Pause requires MCP channel support (currently Claude Code only).
Multiple reviews accumulate in the queue and are delivered together as a single combined response when the agent next calls
get-feedback.