cli: Instructions file for Claude Code

CLAUDE.md

cli CLAUDE.md is an instructions file for Claude Code from entireio/cli. It costs 3,052 tokens per session, scanned A, original, MIT.

A set of repository instructions for the Entire command-line tool, a terminal program built with Go. It describes the project's architecture, directories, commands, agent integrations, checkpoints, sessions, and tests.

In plain words
What is it for?
It guides work on command implementations, agent support, strategy and checkpoint handling, session state, integration tests, and end-to-end tests.
Why use it?
It helps an agent understand where changes belong and how the CLI's commands and integrations are organized.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions AGENTS.md.

This is entireio/cli's own configuration. It tells Claude Code how to work on cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cli configures →

About the project

Entire CLI connects AI coding-agent sessions to Git so prompts, responses, files, tool calls, and checkpoints become a searchable record alongside commits. Developers and teams use it to understand why code changed, resume earlier sessions, keep agent context out of Git history, and support traceability. The catalogue includes commands, hooks, skills, agents, and plugins for the Entire workflow.

entireio/cli · 5,253 stars · on GitHub · entire.io

Reuse

Borrowing it

Nothing to install: this file belongs to entireio/cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/entireio/cli/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/entireio/cli

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cli CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/entireio/cli/claude-md/github.svg)](https://agentmods.dev/instructions/entireio/cli/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/entireio/cli/claude-md"><img src="https://agentmods.dev/badge/instructions/entireio/cli/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cli CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/entireio/cli/claude-md"><img src="https://agentmods.dev/badge/instructions/entireio/cli/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,052 This file is loaded in full into every session.
When invoked 3,052 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03052 $0.03052
Opus 5.5 $0.01221 $0.01221
Sonnet 5.5 $0.00610 $0.00610
Haiku 4.5 $0.00305 $0.00305

Measured 6d ago against content hash 669ce309073b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cli CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.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/: persistent checkpoint storage (written at commit).
  • 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 Security and privacy, implementation contracts
Review command Review architecture
Release artifacts, install scripts, version-check origins Release origins
E2E tests E2E guide

Read the full file on GitHub · 207 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · -25 tokens per session 669ce309073b
  2. 7d ago Changed · +1 lines · +26 tokens per session 85e0e10229ab
  3. 11d ago Changed · +4 lines · +61 tokens per session 2096a2834459
  4. 14d ago Changed · +1 lines 76ebdd93a930
  5. 18d ago Changed · +24 tokens per session 239d1a5b71ee
  6. 19d ago Changed · +32 tokens per session cdfe1d9766f3
  7. 1mo ago Changed · +1 lines · +51 tokens per session 2da9bd896004
  8. 1mo ago Changed · -1,944 lines · -34,174 tokens per session scan E → A 5bd31640f8fb
  9. 1mo ago Changed · +46 lines · +913 tokens per session 8128fdf0a286
  10. 1mo ago First seen · 2,098 lines · 36,144 tokens per session scan E 2b6a198d5e55

Subscribe to this mod's changes

cli CLAUDE.md is an instructions file published in the GitHub repository entireio/cli (5,253 stars, last pushed today), licensed MIT. It adds 3,052 tokens to every session, about $0.0122 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories