Prerequisites
- Entire CLI installed
- Copilot CLI installed
- A Git repository with Entire enabled
Enable
entire agent add copilot-cli creates .github/hooks/entire.json, which Copilot CLI automatically discovers and executes at key lifecycle events.
How it works
How it works
- 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 the
entire/checkpoints/v1branch.
What gets captured
What gets captured
| 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
Features
Rewind during sessions. Use
entire checkpoint rewind to restore to a previous checkpoint during or after a Copilot CLI session. See the rewind command reference for full flag documentation.Resume previous sessions. Switch to a session’s branch with entire session resume <branch>. The CLI restores the session log if needed and prints copilot --resume <sessionId>. See the resume command reference for full flag documentation.Explain commits. Inspect any commit or checkpoint with entire checkpoint explain. See the explain command reference for full flag documentation.The
--generate flag on entire checkpoint explain requires the configured provider CLI, such as Claude CLI, to be installed and authenticated.Caveats and limitations
Caveats and 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.
Best practices
Best practices
Commit at logical points. Commit when you’ve made meaningful progress:Review sessions in PRs. Commits include
Entire-Checkpoint trailers. Reviewers can click through to view session details — understanding why code was written helps with review.Example workflow
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 agent add 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