cli
Copilot instructions5.2k starsChanged 5 months agoMITView on GitHub
Entire CLI is a Go CLI tool that captures AI coding agent sessions (Claude Code, Codex, Antigravity, OpenCode, Cursor, Factory AI Droid, Copilot CLI, etc.) as searchable metadata stored separately from code commits. It uses a strategy pattern for session/checkpoint management with minimal impact on commit history. Tech Stack: Go (version in mise.toml), Cobra (CLI), charmbracelet/huh (interactive prompts), go-git/v5 (with caveats) All commands use mise as the task runner. Always run these in order before committing: CI runs these checks…
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
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
19 rules. About 0 are common, 9 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
All commands use mise as the task runner.
- Very specific: line 24
All tests with race detection (mise run test:ci)
- Very specific: line 88
Internal/debug logging: Use logging.Debug/Info/Warn/Error(ctx, msg, attrs...) from cli/logging/.
- Very specific: line 89
User-facing output: Use fmt.Fprint*(cmd.OutOrStdout(), ...) or cmd.ErrOrStderr().
- Very specific: line 91
Don't use fmt.Print* for operational messages (checkpoint saves, hook invocations) - use the logging package.
- Distinctive: line 93
Privacy: Don't log user content (prompts, file contents, commit messages).
- Distinctive: line 114
Use the task-specific reference map to find detailed architecture and development documentation.
- Distinctive: line 118
Write tests that provide real value, not just coverage:
- Distinctive: line 121
Include edge cases and error conditions: - ensure error paths are properly tested
- Very specific: line 126
Run mise run test for quick validation, mise run test:ci for full CI parity.
- Very specific: line 128
Test accessibility features with ACCESSIBLE=1 environment variable.
- Distinctive: line 133
All errors must be handled explicitly
- Distinctive: line 134
No unused variables/imports
- Distinctive: line 136
Test files are exempt from some linters (gosec, wrapcheck, forbidigo)
- Very specific: line 138
Run mise run lint:full to check all code (not just new issues).
- Very specific: line 142
Add command in cmd/entire/cli/ following existing patterns (look at similar commands)
- Very specific: line 144
Use SilentError for custom error messages
- Distinctive: line 145
Add meaningful tests that verify behavior
- Distinctive: line 146
Consider integration tests if command has complex git interactions
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
Copilot Instructions for Entire CLI
Repository Overview
Entire CLI is a Go CLI tool that captures AI coding agent sessions (Claude Code, Codex, Antigravity, OpenCode, Cursor, Factory AI Droid, Copilot CLI, etc.) as searchable metadata stored separately from code commits. It uses a strategy pattern for session/checkpoint management with minimal impact on commit history.
Tech Stack: Go (version in mise.toml), Cobra (CLI), charmbracelet/huh (interactive prompts), go-git/v5 (with caveats)
Build & Validation Commands
All commands use mise as the task runner. Always run these in order before committing:
mise run fmt # Format with gofmt (required - CI will fail otherwise)
mise run lint # Lint with golangci-lint (only new issues)
mise run test # Unit tests
mise run test:ci # Full tests with race detection (same as CI)CI runs these checks on every PR (see .github/workflows/):
- gofmt formatting check (must pass - no unformatted files)
- golangci-lint
- go.mod tidy check
- All tests with race detection (
mise run test:ci)
Critical Code Patterns
Error Handling
The CLI uses SilentError to avoid duplicate error output (see errors.go):
// When you print a custom error message, return SilentError
fmt.Fprintln(cmd.ErrOrStderr(), "User-friendly error message")
return NewSilentError(errors.New("internal error"))
// For normal errors, just return them - main.go will print
return fmt.Errorf("failed to do X: %w", err)Forbidden go-git Operations
NEVER use go-git v5's Reset or Checkout directly - they delete .gitignored directories.
// WRONG - deletes .entire/ and .worktrees/
worktree.Reset(&git.ResetOptions{Mode: git.HardReset, Commit: hash})
worktree.Checkout(&git.CheckoutOptions{Branch: ref})
// CORRECT - use CLI wrappers from strategy/common.go and git_operations.go
HardResetWithProtection(hash)
CheckoutBranch(branch)Path Handling
NEVER use os.Getwd() for git-relative paths - breaks when running from subdirectories.
// WRONG - breaks in subdirectories
cwd, _ := os.Getwd()
absPath := filepath.Join(cwd, gitRelativePath)
// CORRECT - always use repo root
repoRoot, _ := paths.RepoRoot()
absPath := filepath.Join(repoRoot, gitRelativePath)The linter enforces these patterns via forbidigo rules in .golangci.yaml.
Accessibility
Interactive prompts must support screen readers:
// In cli package - use NewAccessibleForm()
form := NewAccessibleForm(huh.NewGroup(...))
// Outside cli (including strategy) - use cmd/entire/cli/uiform
form := uiform.New(huh.NewGroup(...))Both helpers apply accessibility and theming centrally. Do not hand-roll
IsAccessibleMode / WithAccessible wiring at call sites.
Logging vs User Output
- Internal/debug logging: Use
logging.Debug/Info/Warn/Error(ctx, msg, attrs...)fromcli/logging/. Writes to.entire/logs/. - User-facing output: Use
fmt.Fprint*(cmd.OutOrStdout(), ...)orcmd.ErrOrStderr().
Don't use fmt.Print* for operational messages (checkpoint saves, hook invocations) - use the logging package.
Privacy: Don't log user content (prompts, file contents, commit messages). Log only operational metadata (IDs, counts, paths, durations).
Project Structure
cmd/entire/
├── main.go # Entry point
└── cli/ # Main CLI package
├── strategy/ # Session checkpoint strategies (strategy pattern)
├── checkpoint/ # Low-level storage operations
├── session/ # Session state management (.git/entire-sessions/)
├── agent/ # AI agent abstraction layer
├── paths/ # Path utilities (RepoRoot)
└── integration_test/ # Integration tests (//go:build integration)Key configuration files:
mise.toml- Task definitions and Go version.golangci.yaml- Linting rules (forbidigo patterns for unsafe operations)go.mod- Module dependencies
Use the task-specific reference map to find detailed architecture and development documentation.
Testing Guidelines
Write tests that provide real value, not just coverage:
- Test behavior, not implementation - tests should validate what the code does, not how
- Include edge cases and error conditions - ensure error paths are properly tested
- When fixing bugs, write a test that surfaces the bug first - then write the fix
- Unit tests: Same directory as source,
*_test.gofiles - Integration tests:
cmd/entire/cli/integration_test/, require//go:build integrationtag
Run mise run test for quick validation, mise run test:ci for full CI parity.
Test accessibility features with ACCESSIBLE=1 environment variable.
Linting Notes
The linter is strict (many linters enabled). Key rules:
- All errors must be handled explicitly
- No unused variables/imports
wrapcheckrequires wrapping errors from external packages- Test files are exempt from some linters (gosec, wrapcheck, forbidigo)
Run mise run lint:full to check all code (not just new issues).
When Adding New Commands
- Add command in
cmd/entire/cli/following existing patterns (look at similar commands) - Register in
root.go - Use
SilentErrorfor custom error messages - Add meaningful tests that verify behavior
- Consider integration tests if command has complex git interactions
Trust These Instructions
These instructions are verified and accurate. Only search the codebase if information here is incomplete or found to be incorrect during execution.
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.

