can you explain me this repo
- User
can you explain me this repo
Assistant
Entire CLI Repository
This is the CLI tool for Entire, built in Go. Here's a high-level overview:
What It Does
The CLI manages session checkpoints for coding agents (like Claude Code). It tracks what an AI agent does during a session — saving snapshots of code changes, session transcripts, and metadata — so users can rewind to previous points if needed.
Core Concepts
Strategies
The central abstraction is the Strategy pattern for how session data is stored:
Strategy Behavior manual-commit (default) Never touches your branch. Stores checkpoints on hidden shadow branches ( entire/<hash>-<hash>). You commit manually when ready.auto-commit Creates real commits on your branch with clean history, plus metadata on an orphan branch. Both strategies store session metadata (transcripts, prompts, context) on an orphan branch called
entire/checkpoints/v1.Checkpoints & Rewind
- Each checkpoint captures a snapshot of code changes + session metadata
- Users can list checkpoints (
GetRewindPoints) and restore to any previous one (Rewind) - A 12-hex-char checkpoint ID links user commits to their metadata via a
Entire-Checkpointgit trailer
Session Lifecycle
Sessions go through phases managed by a state machine:
ACTIVE→IDLE→ENDED, triggered by events likeTurnStart,TurnEnd,GitCommit.Key Directory Structure
cmd/entire/— Main entry pointcmd/entire/cli/commands/— Command implementations (cobra commands)cmd/entire/cli/strategy/— Strategy implementations (manual-commit, auto-commit)cmd/entire/cli/checkpoint/— Checkpoint storage (temporary on shadow branches, committed on metadata branch)cmd/entire/cli/session/— Session state management and phase state machinecmd/entire/cli/integration_test/— Integration tests
- User
can you add a test file in the root directory
Assistant
Created
test.txtin the root directory with some simple test content.