> ## Documentation Index
> Fetch the complete documentation index at: https://docs.termyte.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> Capture Claude Code work and return relevant local context.

# Claude Code

Select Claude Code when you run:

```bash theme={null}
termyte init
```

Termyte writes managed entries to `~/.claude/settings.json` for these events:

| Event              | What Termyte does                                            |
| ------------------ | ------------------------------------------------------------ |
| `SessionStart`     | Starts or updates the session and can return initial context |
| `UserPromptSubmit` | Captures the prompt and can return relevant context          |
| `PostToolUse`      | Captures the completed tool event                            |
| `Stop`             | Captures the final response and schedules summary work       |

Existing valid non-Termyte hook groups are kept. Running `termyte init` again replaces old Termyte entries with the current ones.

Claude Code can also form memories when setup confirms that its installed CLI can complete an authenticated, non-interactive request.

## Verify

Restart Claude Code, complete a small task, then run:

```bash theme={null}
termyte doctor
termyte viewer
```
