Prerequisites
- Entire CLI installed
- Gemini CLI installed
- A Git repository with Entire enabled
How It Works
Entire automatically detects when Gemini is active and begins capturing the session. Entire integrates with Gemini CLI through Git hooks:- Process Detection - Entire detects when Gemini CLI is running
- File Monitoring - File changes are tracked during the session
- Checkpoint Creation - Based on your strategy settings
- Session Storage - Data saved to
entire/checkpoints/v1branch
Captured Data
| Data | Description |
|---|---|
| File changes | All files modified during the session |
| Timestamps | Session and checkpoint timing |
| Session boundaries | Start and end of Gemini sessions |
| Checkpoints | Rewind points within sessions |
Features
Session Capture
When you start Gemini CLI in an Entire-enabled repository:- Entire creates a new session
- File changes are tracked
- Checkpoints created per your strategy
- Session ends when Gemini CLI exits
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 Gemini 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
| 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) |
--full | Show full parsed transcript (all prompts/responses) |
-s, --short | Show summary only (omit prompts and files) |
Best Practices
Use Manual Commit Strategy
For command-line AI tools like Gemini CLI:Check Status Regularly
Monitor your session:Example Workflow
Troubleshooting
Session not detected
Session not detected
- Ensure you’re in an Entire-enabled repo:
entire status - Verify Gemini CLI is running from within the repository
- Check hooks are installed:
ls .git/hooks
No checkpoints created
No checkpoints created
- Checkpoints require file changes
- Make sure Gemini is modifying files in the repository
- Check your strategy settings in
.entire/settings.json
Limitations
- Conversation transcripts may not be captured depending on Gemini CLI version
- Session detection relies on process monitoring
- Works best with the manual-commit strategy