# Claude Code

> What Waddle adds to Claude Code, and how to give it Waddle Notes too.

## The hook

Preferences → Agents → Claude Code → **Set up** adds one command to `~/.claude/settings.json` for each of these hook events, with a 5 second timeout:

`SessionStart`, `UserPromptSubmit`, `PostToolUse`, `Stop`, `Notification`, `SessionEnd`

```json
{ "hooks": { "Stop": [{ "hooks": [{ "type": "command", "command": "\"/Users/you/.waddle/hooks/agent.sh\" claude", "timeout": 5 }] }] } }
```

That's one event of the six; the others look the same. Your own hooks stay as they were. New sessions get a duckling.

## Waddle Notes and your context

Give Claude Code Waddle's MCP server, and it can search and read your notes, and the context pages you let it read:

```sh
claude mcp add --scope user waddle -- waddle mcp
```

`--scope user` adds it for every folder, not only this one.

What it may do is up to you, in Preferences. See [MCP tools](https://docs.waddle.sh/mcp.md).

## Take it out

Preferences → Agents → Claude Code → **Remove** deletes Waddle's entries and nothing else.
