Skip to content
refs

fix(cli): refs hooks in Claude Code stay silent outside a refs clone

Aman Kumarcommitted Dec 3, 202654688c0parent d8735dc

The UserPromptSubmit and PostToolUse hooks were mcp_tool hooks. They ran in every project and failed when the refs MCP server was not connected, so Claude Code showed a hook error in projects that do not use refs. They are now a command hook, `refs hook events`, which exits at once outside a refs clone. `refs update` rewrites the hooks of existing installs.

2 files changed · +12 −3
apps/cli/refs.mjs+11 −2
packages/protocol/wire.ts+1 −1