agentleFS
codeyogi911codeyogi911/reflect/.claude/skills/entire-cli/SKILL.md

entire-cli

Skill1 starsChanged 8 months agoMITView on GitHub

Use and develop with the Entire CLI — a git-native tool that captures AI agent session transcripts, checkpoints, and attribution alongside commits. Covers day-to-day commands (enable, status, rewind, resume, explain, clean), configuration (settings, agents, checkpoint remotes, auto-summarization), security/redaction, troubleshooting, and building new agent integrations (Go Agent interface, ParseHookEvent, TranscriptAnalyzer, hook installation, external plugin protocol). Use when the user mentions Entire, entire enable, entire rewind, checkpoint, session transcript, agent integration, shadow branch, or AI session tracking.

  • Reads credentials
  • Installs packages
  • Commits and pushes

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Implement TranscriptPreparer: if your agent writes transcripts async

    line 168

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Entire CLI

Entire hooks into your git workflow to capture AI agent sessions as you work. Sessions are indexed alongside commits on a separate entire/checkpoints/v1 branch, creating a searchable record of how code was written.

Supported agents: Claude Code, Gemini CLI, OpenCode, Cursor, Factory AI Droid, GitHub Copilot CLI.

Quick Start

# Install
brew tap entireio/tap && brew install entireio/tap/entire
# Or: go install github.com/entireio/cli/cmd/entire@latest

# Enable in a repo
cd your-project && entire enable

# Check status
entire status

Commands

CommandDescription
entire enableInstall hooks for one or more agents
entire disableRemove hooks
entire statusShow current session info
entire rewindRestore code to a previous checkpoint
entire resume <branch>Checkout branch, restore latest session, print continue command
entire explainShow session or commit details (transcript, tokens, files)
entire cleanClean orphaned data (--all for repo-wide, --force to delete)
entire doctorFix stuck sessions
entire sessions stopMark active sessions as ended
entire loginDevice auth with Entire

entire enable flags

FlagPurpose
--agent <name>claude-code, gemini, opencode, cursor, factoryai-droid, copilot-cli
--forceReinstall hooks
--localWrite to settings.local.json (gitignored)
--skip-push-sessionsDon't auto-push checkpoint branch
--checkpoint-remote github:org/repoPush checkpoints to a separate repo
--telemetry=falseDisable anonymous analytics

Configuration

Two files in .entire/:

  • settings.json — project-wide, committed to git
  • settings.local.json — personal overrides, gitignored
OptionValues
enabledtrue / false
log_leveldebug, info, warn, error
strategy_options.push_sessionsAuto-push entire/checkpoints/v1 on git push
strategy_options.checkpoint_remote{"provider":"github","repo":"org/repo"}
strategy_options.summarize.enabledAI summary at commit time (requires claude CLI)
telemetryAnonymous usage stats

Agent hook locations

AgentConfig file
Claude Code.claude/settings.json
Gemini CLI.gemini/settings.json
OpenCode.opencode/plugins/entire.ts
Cursor.cursor/hooks.json
Factory AI Droid.factory/settings.json
Copilot CLI.github/hooks/entire.json

Key Concepts

Sessions

A unit of work with your AI agent. ID format: YYYY-MM-DD-<uuid>. Stored on entire/checkpoints/v1.

Checkpoints

Point-in-time snapshots within a session (12-hex-char IDs). Created when you or the agent commit. Linked to user commits via Entire-Checkpoint: <id> trailer.

Shadow branches

Temporary branches (entire/<hash>-<worktree>) holding full worktree snapshots + metadata during a session. Condensed to entire/checkpoints/v1 on commit, then deleted.

Attribution

Entire-Attribution: 73% agent (146/200 lines) trailer on commits. Uses per-file pool heuristic with LIFO assumption to separate agent vs. user contributions.

Security & Privacy

  • Transcripts are stored in your git repo on entire/checkpoints/v1 — visible to anyone with repo access
  • Automatic redaction (always on): entropy scoring + gitleaks pattern matching replaces detected secrets with REDACTED
  • Shadow branches may contain unredacted data — never push them manually
  • For sensitive repos, use a private repository or --checkpoint-remote to a private repo

Troubleshooting

IssueFix
Shadow branch conflictentire clean --force
Stuck sessionentire doctor
SSH auth errors on resumessh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
Debug modeENTIRE_LOG_LEVEL=debug entire status
Full cleanupentire clean --all --force

Known Limitations

  • git commit --amend -m "..." may lose Entire-Checkpoint trailer if no prior condensation exists and /dev/tty unavailable
  • git gc --auto can corrupt worktree indexes when using shadow branches (fix: git read-tree HEAD; prevent: git config gc.auto 0)
  • Concurrent ACTIVE sessions may produce spurious checkpoints (cosmetic only)

Building Agent Integrations

For step-by-step implementation of a new agent, see reference.md.

Architecture overview

Agents are passive data providers. The flow is:

Agent hook → ParseHookEvent() → Event → DispatchLifecycleEvent() → framework actions

Agents never call strategy methods directly — they only translate native hook payloads into normalized lifecycle events.

Core Agent interface (19 methods)

GroupMethods
IdentityName, Type, Description, DetectPresence, ProtectedDirs
EventsHookNames, ParseHookEvent
TranscriptReadTranscript, ChunkTranscript, ReassembleTranscript
SessionGetHookConfigPath, SupportsHooks, ParseHookInput, GetSessionID, GetSessionDir, ResolveSessionFile, ReadSession, WriteSession, FormatResumeCommand

Optional interfaces

InterfaceWhen to implement
HookSupportAgent uses a config file for hook registration
HookHandlerRequired for entire hooks <agent> CLI subcommands
TranscriptAnalyzerTranscript is parseable — extract file lists, prompts, summaries
TranscriptPreparerAgent writes transcripts async (needs flush before read)
TokenCalculatorTranscript contains token usage data
SubagentAwareExtractorAgent spawns subagents with separate transcripts
HookResponseWriterAgent can display messages from hooks
FileWatcherAgent doesn't support hooks; uses file-based detection

Event types

EventPurposeExample agent hooks
SessionStartNew session beginssession-start
TurnStartUser prompt submitteduser-prompt-submit, before-agent
TurnEndAgent finished respondingstop, after-agent
CompactionContext window compressedpre-compress, pre-compact
SessionEndSession terminatedsession-end
SubagentStartSubagent spawnedpre-task, subagent-start
SubagentEndSubagent completedpost-task, subagent-stop

Common pitfalls

  • Never use go-git v5 for checkout/reset — it deletes untracked dirs even if gitignored
  • Always use paths.RepoRoot() — os.Getwd() breaks from subdirectories
  • Implement TranscriptPreparer if your agent writes transcripts async
  • ParseHookEvent returning nil, nil is valid — means "no lifecycle action"
  • AgentName is the registry key ("claude-code"); AgentType is the display name ("Claude Code")

External agent plugin protocol

Standalone binaries matching entire-agent-<name> in $PATH can integrate without modifying the CLI. Protocol is subcommand-based over stdin/stdout with JSON. See reference.md for the full spec.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.