cli
CLAUDE.md5.2k starsChanged 5 months agoMITView on GitHub
Go CLI built with Cobra and Charmbracelet Huh. AGENTS.md is a symlink to this file. Keep this entry point short: repo-wide rules and pointers, not command catalogs, implementation histories, or subsystem specifications. - cmd/entire/: entry point and external-command dispatch. - cmd/entire/cli/: Cobra commands, group roots, and CLI helpers. Group/verb files use <noun>_group.go and <noun>_<verb>.go. - cmd/entire/cli/agent/: built-in agent integrations and external-agent protocol. - cmd/entire/cli/strategy/: manual-commit strategy and lifecycle/git hooks. - cmd/entire/cli/checkpoint/: ephemeral and persistent checkpoint storage. - cmd/entire/cli/session/: session state…
Trending
Quiet since September.about the whole repository
Who's talking about entireio/cli
- A Hacker News story“Entire - hooks into your Git workflow to capture AI agent sessions”Hacker News · Feb 11, 2026 · 2 points
- @nsega.dev“Entire cli、これ面白そう。元GitHub CEOの人のスタートアップからプロダクト公開されたようで、触れるようになってるのを友人に教えてもらった。 docs.entire.io/introduction …”Bluesky · Feb 11, 2026 · 2 likes
- betterleaks/betterleaks“fix: set git env per-command, not at startup”GitHub · Mar 25, 2026 · 1 reactions
- jdx/mise“registry: add entire (aqua:entireio/cli)”GitHub · Feb 27, 2026 · 1 reactions
- @kevindangoor.com“Former GitHub CEO Thomas Dohmke launched Entire (https://entire.io). Their first offering, Entire CLI, is …”Bluesky · Feb 17, 2026 · 1 likes
The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 36
Talked about on GitHub, Hacker News and Bluesky (36 times).
On GitHub · 32
- Mar 25, 2026fix: set git env per-command, not at startup — betterleaks/betterleaks1 reaction · 4 comments
- Feb 27, 2026registry: add entire (aqua:entireio/cli) — jdx/mise1 reaction · 2 comments
- Sep 27, 2026Freshness: Entire CLI v0.10.6 -> v0.11.3 — thoroc/context-radar0 reactions
- Sep 26, 2026entire: 0.11.2 -> 0.11.3 — Kh05ifr4nD/coolheaded0 reactions
- Sep 23, 2026entire: 0.11.0 -> 0.11.2 — Kh05ifr4nD/coolheaded0 reactions
27 more on GitHub
- Sep 23, 2026entire: 0.10.6 -> 0.11.0 — Kh05ifr4nD/coolheaded0 reactions
- Sep 14, 2026fix: repair stale checkpoints and flag worktree setup gaps — MuskanPaliwal/cli0 reactions
- Sep 13, 2026fix: contain session paths across external agents — entireio/external-agents0 reactions · 8 comments
- Sep 9, 2026Landscape, positioning, and the agit name collision — agitHQ/agit0 reactions · 1 comment
- Sep 3, 2026entire: 0.10.3 -> 0.10.6 — Kh05ifr4nD/coolheaded0 reactions
- Sep 2, 2026crossjuris: shared cross-jurisdiction 421 follower — entireio/auth-go0 reactions · 4 comments
- Aug 27, 2026entire: 0.10.2 -> 0.10.3 — Kh05ifr4nD/coolheaded0 reactions
- Aug 26, 2026entire: 0.10.0 -> 0.10.2 — NixOS/nixpkgs0 reactions · 3 comments
- Aug 22, 2026Add Entire CLI — Git-native AI coding session checkpoints — jamesmurdza/awesome-ai-devtools0 reactions
- Aug 20, 2026entire: 0.10.1 -> 0.10.2 — Kh05ifr4nD/coolheaded0 reactions
- Aug 19, 2026entire: 0.10.0 -> 0.10.1 — Kh05ifr4nD/coolheaded0 reactions
- Aug 17, 2026entire: 0.9.0 -> 0.10.0 — NixOS/nixpkgs0 reactions · 4 comments
- Aug 15, 2026Add an entire-agent-aider external-agent integration — entireio/external-agents0 reactions
- Aug 13, 2026entire: 0.9.0 -> 0.10.0 — Kh05ifr4nD/coolheaded0 reactions
- Aug 12, 2026docs: record that the first tag has to clear v0.8.42 — harnaas/harnaas0 reactions
- Aug 11, 2026authcode, deviceflow: support region-dispatching authorization servers — entireio/auth-go0 reactions · 1 comment
- Jul 30, 2026entire: 0.8.42 -> 0.9.0 — NixOS/nixpkgs0 reactions · 2 comments
- Jul 30, 2026Add Windows support for entireio/cli — aquaproj/aqua-registry0 reactions · 1 comment
- Jul 27, 2026Suggest Entire CLI for AI Coding Session Checkpoints — jamesmurdza/awesome-ai-devtools0 reactions
- Jul 27, 2026entire: 0.8.42 -> 0.9.0 — Kh05ifr4nD/coolheaded0 reactions
- Jul 8, 2026entire: 0.8.1 -> 0.8.42 — Kh05ifr4nD/coolheaded0 reactions
- Jul 7, 2026Add entireio/cli — cedanl/dair-agentic-coding0 reactions
- Jun 19, 2026x/vulndb: potential Go vuln in github.com/entireio/cli: GHSA-2h46-9x5w-4wf7 — golang/vulndb0 reactions · 1 comment
- Apr 7, 2026feat: add entire plugin — asdf-vm/asdf-plugins0 reactions
- Mar 27, 2026Fail to open repository with negative fetch spec — go-git/go-git0 reactions · 1 comment
- Feb 24, 2026Entire.io | Every commit tells a story. Now you can read it. — MateuszNaKodach/SelfImprovement0 reactions
- Feb 13, 2026feat: Entire CLI 연동 검토 및 실행 액션플랜 — bestend/opencode-bootstrap0 reactions
On Hacker News · 2
- Feb 11, 2026Entire - hooks into your Git workflow to capture AI agent sessions2 points
- Feb 10, 2026CLI – hooks into your Git workflow to capture AI agent sessions1 point
On Bluesky · 2
- Feb 11, 2026Entire cli、これ面白そう。元GitHub CEOの人のスタートアップからプロダクト公開されたようで、触れるようになってるのを友人に教えてもらった。 docs.entire.io/introduction github.com/entireio/cli — @nsega.dev2 likes and reposts
- Feb 17, 2026Former GitHub CEO Thomas Dohmke launched Entire (https://entire.io). Their first offering, Entire CLI, is an open source tool to store all… — @kevindangoor.com1 likes and repost
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-integrationSkill
- changelogSkill
- e2eSkill
- test-repoSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
16 rules. About 0 are common, 5 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Use the Go version pinned by go.mod and tools configured in mise.toml.
- Distinctive: line 26
Read the applicable reference before changing that area, not every reference at session start.
- Distinctive: line 62
When changing E2E prompt wording, run the canary and update Vogon's regex parsing if needed.
- Very specific: line 65
Before implementing Go code, search nearby packages and helpers for reusable patterns.
- Very specific: line 71
Every top-level test and subtest calls t.Parallel() unless it changes process-global state (t.Chdir, t.Setenv, or their os equivalents).
- Very specific: line 83
Prefer execx.NonInteractive for real CLI/git test subprocesses so a developer's terminal cannot make them prompt or hang.
- Very specific: line 110
Use osroot operations and jsonutil.WriteFileAtomicIn / CreateTempIn.
- Very specific: line 116
Do not broaden symlink exceptions.
- Very specific: line 121
All settings access goes through settings.
- Very specific: line 134
Use gitrepo.Status, never worktree.Status().
- Very specific: line 136
Every git status subprocess passes --no-optional-locks.
- Distinctive: line 139
Use the git CLI, not go-git v5, for checkout and hard reset.
- Very specific: line 149
When Entire owns execution, pass arguments separately.
- Distinctive: line 161
Every read-only workflow must work without a TUI: provide complete text/JSON, stable IDs and detail commands, or direct selection flags.
- Very specific: line 163
Use uiform.New (or NewAccessibleForm in cli) for Huh forms.
- Distinctive: line 192
Update the relevant reference when subsystem behavior changes.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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.
Files
Entire CLI — repository instructions
Go CLI built with Cobra and Charmbracelet Huh. AGENTS.md is a symlink to this
file. Keep this entry point short: repo-wide rules and pointers, not command
catalogs, implementation histories, or subsystem specifications.
Project map
cmd/entire/: entry point and external-command dispatch.cmd/entire/cli/: Cobra commands, group roots, and CLI helpers. Group/verb files use<noun>_group.goand<noun>_<verb>.go.cmd/entire/cli/agent/: built-in agent integrations and external-agent protocol.cmd/entire/cli/strategy/: manual-commit strategy and lifecycle/git hooks.cmd/entire/cli/checkpoint/: ephemeral and persistent checkpoint storage.cmd/entire/cli/session/: session state shared across worktrees.cmd/entire/cli/integration_test/: simulated-hook integration tests.e2e/: real-agent tests and deterministic Vogon canary.internal/entireclient/: API clients, authentication, and user directories.
Use the Go version pinned by go.mod and tools configured in mise.toml.
For installed CLI usage, run entire agent-help, then
entire agent-help <command> for current flags; do not guess from a static list.
Read when relevant
Read the applicable reference before changing that area, not every reference at session start. Follow its related links when the task crosses those boundaries.
| Area being changed | Reference |
| Commands, help, experimental visibility, repo refs, prompts | CLI conventions |
| Test harnesses, isolation, TTY behavior, source guards | Testing |
Filesystem I/O, .entire, symlinks, hook configs, root anchors | Filesystem safety |
| Git operations, executable lookup, subprocesses, Windows launching | Git and subprocess safety |
| Caller identification or session current/tokens/adopt | Caller-session resolution |
| Control-plane auth or data-plane routing | API routing |
| Checkpoint writes, lifecycle, sync, settings trust, redaction | Implementation contracts, domain model, scenarios |
| Ref-based checkpoint backend | Ref backend |
| Agent integrations | Agent guide, integration checklist |
| External commands or agents | External commands, agent protocol |
| Security, privacy, scanners, OPF | Security and privacy, implementation contracts |
| Review command | Review architecture |
| E2E tests | E2E guide |
Verification
| Task | Command / requirement |
| Unit tests | mise run test |
| Integration tests | mise run test:integration; required when changing integration test code |
| Deterministic E2E canary | mise run test:e2e:canary; safe without API calls |
| All CI tests | mise run test:ci (unit + integration + canary) |
| Format and lint | mise run fmt && mise run lint |
| Before every commit | mise run check (format, lint, all CI tests) |
| Before any push or remote code update | mise run lint on the current tree, after the latest formatting pass |
| After every push to an open PR | check the trail's findings (entire trail finding list <n>); fix real ones, resolve with -m, and re-check after the fix lands. Not done until findings are clear |
| Duplication checks | mise run dup or mise run dup:staged; normal lint also checks duplication |
| Windows installer | mise run test:ps1; see testing reference for prerequisites |
Do not run real-agent E2E tests unless the user explicitly requests them. They make paid API calls. Vogon is the exception: its canary is deterministic and free. When changing E2E prompt wording, run the canary and update Vogon's regex parsing if needed. Formatting can rewrite files; an earlier lint pass is not sufficient.
Before implementing Go code, search nearby packages and helpers for reusable
patterns. Use /go:discover-related when available, otherwise rg and related
implementations/tests. Check .golangci.yaml; handle errors and avoid duplication.
Test safety
- Every top-level test and subtest calls
t.Parallel()unless it changes process-global state (t.Chdir,t.Setenv, or theirosequivalents). - Git tests use isolated temporary repositories, preferably
testutil.InitRepo(t, dir)plus its file/add/commit helpers. Redirect CWD before calling CWD-based handlers. Never mutate the real checkout's git/session state. - Tests must not access the developer's real config, cache, or keychain.
In-process fallbacks are shared per process; use per-test overrides and
tokenstore.UseFileBackendForTestingwhen isolation between tests is needed. Tests that can reach the OS keyring needkeyring.MockInit()inTestMain. - Spawned binaries do not inherit Go's test detection. Harnesses must isolate
ENTIRE_CONFIG_DIR,XDG_CACHE_HOME,ENTIRE_TOKEN_STORE=file,ENTIRE_TOKEN_STORE_PATH, andENTIRE_TEST_AUTH_STORE_FILE. - Prefer
execx.NonInteractivefor real CLI/git test subprocesses so a developer's terminal cannot make them prompt or hang. - Caller-resolution tests clear every variable from
agent.CallerSessionEnvVars(); never hand-maintain a partial list or inherit the developer's agent identity. - Source-scanning guards use
testutil.GitGrepGuard, restrict pathspecs to Go files, and fail on zero matches. Do not weaken guard ledgers to silence failures.
Filesystem and settings safety
Use the existing anchor for each tree; never assemble a path and perform bare I/O beneath it. Read the filesystem reference before adding or changing I/O.
| Tree | Canonical owner |
.entire | entiredir |
| Git common directory | gitdir |
| Working tree | worktreedir |
| Agent hook configuration | agent.HookConfigFile |
| Agent session store | agent.SessionStore |
| Active git hooks directory | strategy.hooksRootForInstall / ForRemoval |
| Per-user config/cache | userdirs.ConfigRoot / CacheRoot |
| Managed plugins | pluginRoot |
- Root bases come from trusted resolvers, not
filepath.Dir(target). Confining a file to its own derived parent proves nothing. Prefer an existing anchor. - Roots share the
osroot.Sharedregistry. Open child roots withosroot.SharedChild/OpenChild, not bareparent.OpenRoot. - Use
osrootoperations andjsonutil.WriteFileAtomicIn/CreateTempIn. Directories useMkdirAllNoSymlink; rooted read-only operations must also enforce symlink policy. Atomic writes replace leaf links rather than follow them. .entiremust be a real directory; validate throughpaths.ValidateEntireDirAt/RequireEntireDir. Do not treat an unresolved repository as absent. Settings reads must also refuse symlinks themselves.- Do not broaden symlink exceptions. Developer-vouched agent config directories
are scoped, locally trusted exceptions;
.entireand git hooks are not vouchable. entiredir.OpenForReadmust not create directories. Reset cached roots before deleting/recreating their directories. Useentiredir.Name/MustNameto bridge repo-relative constants and root-relative I/O names.- All settings access goes through
settings; never read or parse settings JSON ad hoc. Per-user config/cache resolution belongs only touserdirs. - Repository-controlled settings must not authorize executable discovery, custom executables, or instructions for permission-bypassed agents. Preserve the existing local-provenance gates and their rejection reporting.
- Existing exceptions (explicit user paths, global git config, transcript-read protocol gaps) are documented in the references; do not generalize them.
Git and subprocess safety
- Open repositories only through
gitrepo.OpenCurrent(ctx)orgitrepo.OpenPath(root), never direct go-git opens. This preserves alternates and reftable support. Do not fall back to CWD after failed repo resolution. - Use
gitrepo.Status, neverworktree.Status(). Agent-hook capture paths useStatusWithBudgetand preserve degraded-capture reporting on budget exhaustion. - Every
git statussubprocess passes--no-optional-locks. This does not protect worktree-comparinggit difffrom refreshing the index; use the hook-safe alternatives in the git reference. - Use the git CLI, not go-git v5, for checkout and hard reset; go-git can delete ignored/untracked directories. This is an implementation rule, not permission to run destructive git commands.
- Git-relative paths resolve against
paths.WorktreeRoot, never process CWD. - A git subprocess running inside a hook and targeting a repo via
Diror-Cmust usegitrepo.EnvWithoutRepoOverrides(). User-invoked CWD commands instead honor intentionally exported repo selectors. - PATH scanners use
execx.PathScanDirs(); external-agent execution requires absolute binary paths. User-directory overrides use the checkeduserdirsresolvers before any I/O. Preserve the documented developer-owned OPF exception. - When Entire owns execution, pass arguments separately; never interpolate
dynamic values into
cmd.exe. Agent-owned shell execution uses the shared escaping helper. See the reference for the literal-only Unix updater exception.
CLI behavior and output
- Load settings through the
settingspackage, not new helpers in CLI consumers. - Operational/debug messages use
logging.Debug/Info/Warn/Error; user output usescmd.OutOrStdout()/cmd.ErrOrStderr(). Never log prompts, file contents, or commit messages; log operational metadata only. - Cobra suppresses errors globally;
main.goprints returned errors. ReturnNewSilentError(err)only after printing a custom error yourself. - Every read-only workflow must work without a TUI: provide complete text/JSON, stable IDs and detail commands, or direct selection flags. Test that path.
- Use
uiform.New(orNewAccessibleFormincli) for Huh forms; these wire accessibility and theming centrally. Do not hand-rollWithAccessible. - Separately opened prompt terminals use
interactive.OpenPromptTTY()andPromptTTY.Close(), not a bare file close (Windows pending reads can hang). - Register experimental commands with
experimental.Register. Classify new commands inagentHelpClassification; default to unlisted/user-owned and flag the product choice for review. Agent guidance belongs inagentHelpGuidance, not CobraShort/Longor first-turn injection.
Session, checkpoint, and API contracts
*strategy.ManualCommitStrategyis the only strategy; there is no interface or worktree restore path. Checkpoints use shadow/metadata refs, not working-branch commits. Log resume is distinct from restoring worktree files.- Caller identity comes from
strategy.ResolveCallerSession, not newest state. Preserve resolution provenance; do not narrate worktree fallback or ambiguous matches as identified callers.IsCaller()excludes those guesses; consult the caller-resolution reference for current enforcement gaps. - Preserve sanitize → image externalization → redact ordering where all apply, fail-closed scanner behavior, and checkpoint-scoped token accounting. Read the implementation contracts before modifying any transcript/storage pipeline.
- Control-plane precedence belongs to
coreapi; displayclient.CoreOrigin()rather than independently resolving a possibly different target. - Repo-scoped data-plane requests resolve the repo's cell and fail on resolution
failure.
/meuses the home cell; repo-set queries use shared fanout helpers. Multi-cell operations share oneauth.CellClientFactoryper operation.
Maintaining these instructions
Update the relevant reference when subsystem behavior changes. Update this file only for repository-wide development rules or routing links. Preserve safety contracts in references and regression tests rather than accumulating incident narratives here. Prefer existing docs over a second account of the same behavior.
The root-file budget is 20 KiB, enforced alongside local documentation links
by go test ./docs/development. Extract specialized material instead of expanding
that budget. Do not require every linked document
to be loaded on every task. Keep AGENTS.md as the symlink to this file.
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
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.

