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

# Claude Code

> Capture Claude Code transcripts, file changes, tool calls, tokens, and subagent sessions with Entire

Claude Code is Entire's default integration and the only built-in integration marked stable. It captures the main session and nested subagent sessions.

Follow [Set Up an Agent](/agents/setup) for shared installation, verification, and troubleshooting steps.

## Add Claude Code

```bash theme={null}
entire agent add claude-code
claude
```

Entire adds lifecycle hooks to `.claude/settings.json` and preserves unrelated Claude Code settings. The hooks capture session boundaries, prompts, completed turns, and task events. Entire reads the full conversation, file changes, tool calls, and token usage from Claude Code's JSONL transcripts.

## Subagent Capture

Claude Code exposes task lifecycle events and separate subagent transcripts. Entire records each task against the parent session, attributes its files and tokens to that session, and materializes its transcript into the parent's next checkpoint. The checkpoint then carries the subagent's work on its own, without reading back into Claude Code's transcript directory.

Entire records any subagent that changed files. It also keeps read-only subagents, such as reviewers and search agents, when you launch them with `run_in_background`. A background launch defers capture to subagent stop, which is where Entire materializes a transcript even though the subagent wrote nothing. Foreground subagents complete at launch time, so a read-only one there leaves no record.

Among the built-in integrations, Claude Code is the one that reaches read-only subagents.

## Resume and Import

`entire session resume BRANCH` restores the recorded session data when needed and prints a command in this form:

```bash theme={null}
claude -r SESSION_ID
```

Entire can also import existing Claude Code transcripts from the previous 30 days as read-only checkpoints.

See the [`session resume` command reference](/cli-reference/session#session-resume) for flags and additional behavior.
