Prerequisites
- Entire CLI installed
- Copilot CLI installed
- A Git repository with Entire enabled
How It Works
Entire integrates with Copilot CLI through its native hooks system. Enable it with:.github/hooks/entire.json, which Copilot CLI automatically discovers and executes at key lifecycle events:
- Session Detection - Copilot CLI fires hooks on session start and end
- Turn Tracking - Each prompt and agent response is captured via hooks
- Checkpoint Creation - Created when you or the agent make a Git commit
- Transcript Capture - Session transcripts are read from Copilot CLI’s JSONL event log
- Session Storage - Data saved to
entire/checkpoints/v1branch
Captured Data
| Data | Description |
|---|---|
| Conversation | Full transcript of prompts and responses |
| File changes | All files modified during the session |
| Token usage | Input, output, and cache tokens |
| Timestamps | Session and checkpoint timing |
| Checkpoints | Rewind points within sessions |
Features
Rewind Support
Rewind to previous checkpoints during or after a session:| Flag | Description |
|---|---|
--to <commit> | Rewind to specific commit ID (non-interactive) |
--list | List available rewind points (JSON output) |
--logs-only | Only restore logs, don’t modify working directory |
--reset | Reset branch to commit (destructive) |
Resume Previous Sessions
Resume a previous Copilot CLI session by switching to its branch:- Checks out the specified branch
- Finds the session ID from commits unique to this branch
- Restores the session log if it doesn’t exist locally
- Shows the command to resume the session (e.g.,
copilot --resume <sessionId>)
| Flag | Description |
|---|---|
-f, --force | Resume from older checkpoint without confirmation |
Explain Commits
View or generate explanations of how code was written:| Flag | Description |
|---|---|
-c, --checkpoint <id> | Explain a specific checkpoint (ID or prefix) |
--commit <sha> | Explain a specific commit (SHA or ref) |
--generate | Generate an AI summary for the checkpoint |
--full | Show full parsed transcript (all prompts/responses) |
-s, --short | Show summary only (omit prompts and files) |
The
--generate flag requires Claude CLI to be installed and authenticated.Best Practices
Commit at Logical Points
Commit when you’ve made meaningful progress:Review Sessions in PRs
Share session context in pull request reviews:- Create a PR
- Commits include
Entire-Checkpointtrailers - Reviewers can click to view session details
- Understanding why code was written helps with review
Example Workflow
Troubleshooting
Session not detected
Session not detected
- Ensure you’re in an Entire-enabled repo:
entire status - Verify hooks are installed: check
.github/hooks/entire.jsonexists - Make sure Copilot CLI is running from within the repository
- Run
entire enable --agent copilot-clito reinstall hooks
No checkpoints created
No checkpoints created
- Checkpoints require file changes
- Make sure Copilot is modifying files in the repository
- Check your settings in
.entire/settings.json
Transcript not captured
Transcript not captured
- Verify Copilot CLI is writing events to
~/.copilot/session-state/ - Check that the session has a valid
events.jsonlfile - Token usage is only fully available after the session ends
Limitations
- Token usage is only available in aggregate after the session ends, not mid-session
- No subagent start hook — only subagent stop events are captured
- The
userPromptSubmittedhook fires beforesessionStarton the first prompt (handled automatically) - Works best when you commit at logical stopping points, or tell the agent to handle committing