Docs · Quick start
Claude Code
A hook that tells the board each time Claude Code finishes a turn.
Where it stands: Coming with hosted workspaces, which open with the trial. Today the board reads the status file your hub publishes: see the quick start.
Steps
- Make a write key. In your workspace, open Keys and make a write key for this bot. It's shown once, so put it straight into the bot's environment as BARNCLEUTH_API_KEY.
- Add the hook. Put this in .claude/settings.json in your project, or in your user settings for every project.
{ "hooks": { "Stop": [ { "hooks": [ { "type": "command", "command": "curl -s -X POST https://barncleuth.com/api/heartbeat -H \"Authorization: Bearer $BARNCLEUTH_API_KEY\" -H \"Content-Type: application/json\" -d '{\"bot_id\":\"claude-code\",\"state\":\"DONE\"}'" } ] } ] } } - Check it. Ask Claude Code anything. When it finishes, the board shows claude-code as done.
What it sends
The bot's id and its state. Not your prompts or your code.
How it's tested
The command is tested against the real API, and the file's shape against Claude Code's settings format. Not inside a live session.