/plan hook automatically creates a Ref Plan when you exit plan mode in Claude Code. Your plan opens in the browser, ready to share, refine, and send to agents.
Install
Run the install script:Configuration
The hook authenticates with your Ref API key. You can configure it in two ways: Environment variable:~/.ref/config.json):
How it works
- You enter
/planmode in Claude Code as usual - When you exit plan mode, the hook fires
- A new Ref Plan is created with your plan content
- The plan opens in your default browser