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

# Copilot CLI

> Capture Copilot CLI transcripts, file changes, tool calls, and token usage with Entire

The Copilot CLI integration uses GitHub Copilot CLI's project-level hooks.

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

## Add Copilot CLI

```bash theme={null}
entire agent add copilot-cli
copilot
```

Entire writes its hook configuration to `.github/hooks/entire.json`. The hooks capture session boundaries, prompts, completed turns, tool activity, errors, and subagent completion. Entire reads the full conversation, file changes, and tool calls from Copilot CLI's JSONL transcript.

## Limitations

Copilot CLI reports aggregate token usage when the session ends. Token totals may remain incomplete during an active session.

Copilot CLI provides a subagent stop hook without a corresponding start hook. Entire records the completed subagent operation and uses the parent session's pre-prompt state instead of a subagent-specific pre-task snapshot.

## Resume and Import

`entire session resume BRANCH` restores the recorded session data when needed and prints:

```bash theme={null}
copilot --resume SESSION_ID
```

Entire can import existing Copilot CLI 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.
