# Architecture Source: https://docs.entire.com/agents/agent-integration-protocol/architecture How the Entire CLI discovers and communicates with agent integrations Entire discovers agent integrations through executable naming and `$PATH` lookup: 1. You create an executable named `entire-agent-` 2. Place it anywhere on your `$PATH` 3. The CLI discovers it and registers it as a new agent, when you name it with `entire agent add` or `entire enable --agent`, when you pick it in the interactive `entire enable` or `entire agent` menu, or when `external_agents` is on in `.entire/settings.local.json` The integration communicates with the CLI through **subcommands** that read and write JSON over stdin and stdout. Each invocation is stateless. Every subcommand invocation receives these environment variables: | Variable | Description | | - | - | | `ENTIRE_REPO_ROOT` | Absolute path to the git repository root | | `ENTIRE_PROTOCOL_VERSION` | Protocol version (currently `1`) | Entire runs every subcommand from the repository root. The integration follows these conventions: * **Output:** JSON on stdout (unless noted otherwise) * **Errors:** Nonzero exit code and message on stderr * **Stateless:** Each invocation is independent, no persistent connection # Build an Agent Integration Source: https://docs.entire.com/agents/agent-integration-protocol/build-an-agent-integration Use the external-agents agent skill to add support for another coding agent You can build an agent integration when you want Entire to support a coding agent that is not natively supported in the Entire CLI yet. The [external-agents repository](https://github.com/entireio/external-agents) includes an agent skill that does most of the work. The skill researches the target agent. Next, it creates the starter code for the binary and writes tests. Then it writes the code that follows the protocol. You can write an integration in any language. This guide uses the Go version in that repository and its skill. For the protocol itself, see [Architecture](/agents/agent-integration-protocol/architecture), [Commands](/agents/agent-integration-protocol/commands), [Lifecycle](/agents/agent-integration-protocol/lifecycle), and [Data Model](/agents/agent-integration-protocol/data-model). > [!NOTE] > > **Building a private or internal integration?** This guide is the upstream contribution path, which ends in a pull request to `external-agents`. For an integration you won't contribute back, skip the issue and PR steps and follow the protocol reference above. ## Before You Start Open an issue in [`entireio/external-agents`](https://github.com/entireio/external-agents) before writing code. Adding support for a new agent creates an ongoing support commitment, so align with maintainers first. You need: * The target agent CLI installed and authenticated * [The Entire CLI installed](/installation) * [Go](https://go.dev/doc/install) and [mise](https://mise.jdx.dev/getting-started.html) * A target agent with lifecycle hooks or another reliable event mechanism * Readable session or transcript data * A stable session ID ## Clone the Repo ```bash theme={null} git clone https://github.com/entireio/external-agents.git cd external-agents mise trust mise install ``` New integrations live under `agents/entire-agent-`. Each integration is a standalone binary named `entire-agent-`. ## Run the Agent Skill The repo includes an agent skill named `entire-external-agent`, and supported tools discover it automatically with no additional configuration. See the [repo instructions](https://github.com/entireio/external-agents?tab=readme-ov-file#getting-started--zero-setup) for the current supported tools. Run the skill: ```text theme={null} /entire-external-agent ``` When prompted, provide the target agent name and slug. ## What the Skill Does The skill runs three phases: | Phase | What happens | | - | - | | **Research** | Finds the target agent's hooks, session IDs, transcript storage, CLI commands, and capabilities. | | **Write Tests** | Scaffolds the integration structure, protocol stubs, and lifecycle test wiring. | | **Implement** | Uses compliance and lifecycle failures to implement the integration and add tests. | You can also run a single phase when you need to restart or inspect part of the process. ```text theme={null} /entire-external-agent research /entire-external-agent write-tests /entire-external-agent implement ``` ## Reference Examples The [external-agents repository](https://github.com/entireio/external-agents) contains working integrations you can inspect while building your own: | Integration | Target agent | Notes | | - | - | - | | [`entire-agent-amp`](https://github.com/entireio/external-agents/tree/main/agents/entire-agent-amp) | Amp | Agent integration with transcript preparation, token calculation, and compact transcript support. | | [`entire-agent-goose`](https://github.com/entireio/external-agents/tree/main/agents/entire-agent-goose) | Goose | Agent integration that exports Goose sessions from SQLite-backed storage. | | [`entire-agent-kiro`](https://github.com/entireio/external-agents/tree/main/agents/entire-agent-kiro) | Kiro | Lifecycle hooks and transcript analysis for Kiro sessions. | For a minimal reference implementation outside the main examples repo, see [`roger-roger`](https://github.com/entireio/roger-roger). ## Review the Output When the skill finishes, review: * `agents/entire-agent-/AGENT.md` * `agents/entire-agent-/README.md` * The declared capabilities * Protocol compliance results * Lifecycle test results * Any remaining gaps or local dependencies Treat captured hook payloads and transcript fixtures as ground truth. Documentation can drift. ## Verify Locally Build the binary, put it on your `PATH`, and enable it in a test repository: ```bash theme={null} cd agents/entire-agent- mise run build export PATH="$PWD:$PATH" cd /path/to/test-repo entire enable --agent SLUG ``` Run the target agent and make a small file change. Then check that Entire captured the session: ```bash theme={null} entire status entire checkpoint list entire checkpoint explain CHECKPOINT_ID --short ``` Look for a checkpoint with the expected session, transcript, and modified files. ## Open the PR Reference the approved issue and include: * Agent name and binary name * Declared capabilities * Protocol compliance status * Lifecycle test status * Unit test coverage * Any local dependencies you could not test * Known limitations CI will build the agent and run the shared checks. # Commands Source: https://docs.entire.com/agents/agent-integration-protocol/commands Required commands and optional capabilities for agent integrations Every agent integration must implement these subcommands. ## Required Commands ### `info` Returns metadata and declares which optional capabilities your integration supports. ```bash theme={null} entire-agent-myagent info ``` ```json theme={null} { "protocol_version": 1, "name": "myagent", "type": "MyAgent", "description": "MyAgent - AI-powered code editor", "protected_dirs": [".myagent"], "hook_names": ["session-start", "session-end", "stop"], "capabilities": { "hooks": true, "transcript_analyzer": true, "transcript_preparer": false, "token_calculator": false, "text_generator": false, "hook_response_writer": false, "subagent_aware_extractor": false } } ``` | Field | Description | | - | - | | `protocol_version` | Must match the CLI's expected version (currently `1`) | | `name` | Registry name (must match the `` in the binary name) | | `type` | Display name / type identifier | | `description` | Description for readers | | `protected_dirs` | Directories the CLI should not modify (excluded from checkpoints and diffs) | | `hook_names` | Hook names this integration handles. You choose the strings. Your `install-hooks` configures the agent to call `entire hooks `, and the CLI passes `` unchanged to `parse-hook --hook`. They are separate from the `hook_type` values in [HookInput](/agents/agent-integration-protocol/data-model#hookinput) | | `capabilities` | Object declaring which optional capabilities are supported | ### `detect` Returns whether the agent is available in the current environment. Return `{"present": false}` if the agent's dependencies are not met. The CLI will skip enabling the agent. ```bash theme={null} entire-agent-myagent detect ``` ```json theme={null} {"present": true} ``` ### `get-session-id` Extracts a session ID from a hook input event. **stdin:** [HookInput](/agents/agent-integration-protocol/data-model#hookinput) JSON ```json theme={null} {"session_id": "abc123"} ``` ### `get-session-dir --repo-path ` Returns where agent sessions are stored. ```json theme={null} {"session_dir": "/path/to/sessions"} ``` ### `resolve-session-file --session-dir --session-id ` Resolves the session file path from a session directory and ID. ```json theme={null} {"session_file": "/path/to/session/file.jsonl"} ``` ### `read-session` Reads session data from a hook input event. **stdin:** [HookInput](/agents/agent-integration-protocol/data-model#hookinput) JSON **stdout:** [AgentSession](/agents/agent-integration-protocol/data-model#agentsession) JSON ### `write-session` Persists session data to disk. The integration chooses the storage location and format. **stdin:** [AgentSession](/agents/agent-integration-protocol/data-model#agentsession) JSON Exit `0` on success. ### `read-transcript --session-ref ` Reads a transcript file and returns its raw bytes on stdout. ### `chunk-transcript --max-size ` Splits a transcript (raw bytes on stdin) into chunks. ```json theme={null} {"chunks": ["", "..."]} ``` ### `reassemble-transcript` Reassembles chunks into a transcript when `entire session resume` restores stored session data. **stdin:** ```json theme={null} {"chunks": ["", "..."]} ``` **stdout:** Raw transcript bytes. ### `format-resume-command --session-id ` Returns the command a user would run to resume a session. ```json theme={null} {"command": "myagent --resume abc123"} ``` ## Optional Capabilities Set capabilities to `true` in your `info` response to enable these. The CLI will never call subcommands for capabilities you don't declare. ### `hooks` Manage agent lifecycle hooks for Entire integration. | Subcommand | Description | | - | - | | `parse-hook --hook ` | Parse a raw hook payload (stdin) into an [Event](/agents/agent-integration-protocol/data-model#event). Return `null` if not relevant. | | `install-hooks [--local-dev] [--force]` | Install hooks. `--local-dev` installs hooks pointing to a local development build. `--force` overwrites existing hook files. Returns `{"hooks_installed": 3}`. | | `uninstall-hooks` | Remove installed hooks. Exit `0` on success. | | `are-hooks-installed` | Check hook status. Returns `{"installed": true}`. | ### `transcript_analyzer` Extract data from agent transcripts. | Subcommand | Description | | - | - | | `get-transcript-position --path ` | Returns `{"position": 12345}` (byte offset). | | `extract-modified-files --path --offset ` | Returns `{"files": [...], "current_position": 12345}`. | | `extract-prompts --session-ref --offset ` | Returns `{"prompts": ["prompt text", ...]}`. | | `extract-summary --session-ref ` | Returns `{"summary": "...", "has_summary": true}`. | ### `transcript_preparer` | Subcommand | Description | | - | - | | `prepare-transcript --session-ref ` | Prepare a transcript file. Exit `0` on success. | ### `token_calculator` | Subcommand | Description | | - | - | | `calculate-tokens --offset ` | Calculate token usage from transcript bytes (stdin). `--offset` is the byte offset into the transcript to start counting from. | Output: ```json theme={null} { "input_tokens": 1500, "output_tokens": 500, "cache_creation_tokens": 0, "cache_read_tokens": 200, "api_call_count": 3 } ``` You must return `input_tokens` and `output_tokens`. The CLI uses `0` for fields you omit. ### `text_generator` | Subcommand | Description | | - | - | | `generate-text --model ` | Generate text from a prompt (stdin). Returns `{"text": "..."}`. | ### `hook_response_writer` | Subcommand | Description | | - | - | | `write-hook-response --message ` | Write a message in the agent's native hook format (stdout). | ### `subagent_aware_extractor` For agents that spawn subagents. | Subcommand | Description | | - | - | | `extract-all-modified-files --offset --subagents-dir ` | Extract modified files from main + subagent transcripts (stdin: main transcript). Returns `{"files": [...]}`. | | `calculate-total-tokens --offset --subagents-dir ` | Calculate total tokens across main + subagent transcripts (stdin: main transcript). Same format as `calculate-tokens`, with optional `subagent_tokens` nested object. | # Data Model Source: https://docs.entire.com/agents/agent-integration-protocol/data-model Data types exchanged between the Entire CLI and agent integrations ## HookInput Entire passes `HookInput` via stdin to `get-session-id` and `read-session`. ```json theme={null} { "hook_type": "stop", "session_id": "abc123", "session_ref": "/path/to/transcript.jsonl", "timestamp": "2026-01-13T12:00:00Z", "user_prompt": "Fix the login bug", "tool_name": "Write", "tool_use_id": "toolu_abc123", "tool_input": {"path": "/src/main.go"}, "raw_data": {} } ``` | Field | Type | Required | Description | | - | - | - | - | | `hook_type` | string | Yes | `session_start`, `session_end`, `user_prompt_submit`, `stop`, `pre_tool_use`, `post_tool_use` | | `session_id` | string | Yes | Agent session identifier | | `session_ref` | string | Yes | Session reference specific to the agent, typically a file path | | `timestamp` | string | Yes | RFC 3339 timestamp | | `user_prompt` | string | No | User's prompt text | | `tool_name` | string | No | Tool name (from tool use hooks) | | `tool_use_id` | string | No | Tool invocation ID | | `tool_input` | object | No | Raw tool input JSON | | `raw_data` | object | No | Extension data specific to the agent | ## AgentSession Entire passes `AgentSession` to `write-session` and receives it from `read-session`. ```json theme={null} { "session_id": "abc123", "agent_name": "myagent", "repo_path": "/path/to/repo", "session_ref": "/path/to/transcript.jsonl", "start_time": "2026-01-13T12:00:00Z", "native_data": null, "modified_files": ["src/main.go"], "new_files": [], "deleted_files": [] } ``` | Field | Type | Description | | - | - | - | | `session_id` | string | Agent session identifier | | `agent_name` | string | Agent registry name | | `repo_path` | string | Absolute path to the repository | | `session_ref` | string | Path to session in agent's storage | | `start_time` | string | RFC 3339 timestamp | | `native_data` | bytes/null | Opaque session content in agent's native format | | `modified_files` | string\[] | Files modified during the session | | `new_files` | string\[] | Files created during the session | | `deleted_files` | string\[] | Files deleted during the session | ## Event The `parse-hook` subcommand returns this normalized lifecycle event. ```json theme={null} { "type": 3, "session_id": "abc123", "session_ref": "/path/to/transcript.jsonl", "prompt": "Fix the login bug", "model": "claude-sonnet-4-20250514", "timestamp": "2026-01-13T12:00:00Z" } ``` **Event types:** | Value | Name | Description | | - | - | - | | 1 | SessionStart | Agent began a session | | 2 | TurnStart | User submitted a prompt | | 3 | TurnEnd | Agent finished responding | | 4 | Compaction | Agent compressed its context window, which triggers a save and offset reset | | 5 | SessionEnd | Session ended | | 6 | SubagentStart | Agent spawned a subagent | | 7 | SubagentEnd | Subagent completed its task | **Optional event fields:** `previous_session_id`, `session_ref`, `prompt`, `model`, `timestamp`, `tool_use_id`, `subagent_id`, `tool_input`, `subagent_type`, `task_description`, `response_message`, `metadata`. You must provide `type` and `session_id`. # Lifecycle Source: https://docs.entire.com/agents/agent-integration-protocol/lifecycle When the Entire CLI calls each agent integration command The CLI calls integration subcommands in five phases. ## Phase 1: Discovery (CLI Startup) Every time the CLI starts, it scans `$PATH` for binaries matching `entire-agent-`. 1. **`info`**: The CLI calls this command once per discovered binary. It reads your metadata, validates the protocol version, and registers the agent. If this fails, the CLI skips the agent. ## Phase 2: Enable (`entire enable`) When a user enables your agent for a repository: 1. **`detect`**: The CLI calls this command to check whether your agent is available in the current environment. 2. **`install-hooks [--local-dev] [--force]`**: The CLI calls this command to install your hooks into the agent, such as by writing hook configuration files. It calls this command only when you declare the `hooks` capability. ## Phase 3: Agent Session (Hooks Firing) After you enable the agent, its hooks fire during normal usage and the CLI processes them. This phase requires the `hooks` capability. Agents that don't declare it won't participate in the hook lifecycle. Every hook invocation follows this flow: ``` Hook fires → parse-hook normalizes → CLI dispatches Event by type ``` 1. **`parse-hook --hook `**: The CLI calls this command on every hook invocation with the raw payload on stdin. Return a normalized [Event](/agents/agent-integration-protocol/data-model#event), or `null` if the hook has no lifecycle significance and the CLI should take no action. The CLI then routes the event by type: ### SessionStart (Type 1) The agent fires this event when it begins a new session. 1. **`get-session-id`**: Extract the session ID from the hook input (stdin). 2. **`get-session-dir --repo-path `**: Return where sessions are stored. 3. **`resolve-session-file --session-dir --session-id `**: Resolve the session file path. 4. **`read-session`**: Read existing session data (stdin: [HookInput](/agents/agent-integration-protocol/data-model#hookinput)). 5. **`write-session`**: Persist updated session data. 6. **`write-hook-response --message `**: *(optional, if `hook_response_writer` capability)* Write a startup message in your agent's native format. ### TurnStart (Type 2) The agent fires this event when the user submits a new prompt. 1. **`extract-modified-files --path --offset `**: *(if `transcript_analyzer` capability)* Extract files changed since last checkpoint. 2. The CLI creates a git checkpoint of the current state. ### TurnEnd (Type 3) The agent fires this event when it finishes responding. 1. **`prepare-transcript --session-ref `**: *(if `transcript_preparer` capability)* Prepare the transcript. 2. **`read-transcript --session-ref `**: Read the raw transcript bytes. 3. **`chunk-transcript --max-size `**: Split large transcripts into storable chunks. 4. **`get-transcript-position --path `**: *(if `transcript_analyzer` capability)* Get the current byte offset. 5. **`extract-modified-files --path --offset `**: *(if `transcript_analyzer` capability)* Extract newly modified files. 6. **`calculate-tokens --offset `**: *(if `token_calculator` capability)* Calculate token usage. 7. The CLI stores a checkpoint in git history. ### Compaction (Type 4) The agent fires this event when it compresses its context window. The CLI follows the same flow as **TurnEnd** and saves the checkpoint before resetting the offset. ### SessionEnd (Type 5) The agent fires this event when the session ends. The CLI creates a final checkpoint and cleans up session state. ### SubagentStart / SubagentEnd (Types 6 and 7) The agent fires these events when it spawns or completes a subagent. If you declare the `subagent_aware_extractor` capability, the CLI calls: * **`extract-all-modified-files --offset --subagents-dir `** * **`calculate-total-tokens --offset --subagents-dir `** ## Phase 4: User Commands Some CLI commands invoke your integration outside the hook flow: | Command | Subcommands called | | - | - | | `entire session resume` | `get-session-dir`, `resolve-session-file`, `reassemble-transcript`, `write-session`, `format-resume-command`, and `extract-prompts` *(if `transcript_analyzer` capability)* | | `entire status` | `get-transcript-position` | ## Phase 5: Disable (`entire disable --uninstall`) 1. **`uninstall-hooks`**: The CLI calls this command to remove your installed hooks when you declare the `hooks` capability. ## Error Handling * **Timeout:** Each subcommand has a default timeout of 30 seconds. * **Output limits:** The CLI caps stdout and stderr at 10 MB each. Account for this limit when you implement `read-transcript` for large sessions. * **No retries:** The CLI does not retry failed subcommand calls. It treats a nonzero exit code with a message on stderr as a failure. * **Graceful degradation:** If `parse-hook` returns `null`, the CLI takes no action. If the repo has Entire disabled, hooks exit silently. # Agent Integration Protocol Source: https://docs.entire.com/agents/agent-integration-protocol/overview Add support for an AI coding agent that Entire does not ship with If your agent is not listed in our [native agent integrations](/agents/overview), you can still integrate it with Entire. This can be done with the Agent Integration Protocol by building an `entire-agent-` executable and putting it on your `$PATH`. Entire discovers it there and registers it as an agent. ## Add an Agent Integration After you put the executable on your `$PATH`, install its hooks in an existing Entire repository: ```bash theme={null} entire agent add NAME ``` During initial setup, select it with: ```bash theme={null} entire enable --agent NAME ``` See [`entire agent add`](/cli-reference/agent#agent-add) and [`entire enable --agent`](/cli-reference/enable) for their flags and setup behavior. > [!NOTE] > > Selecting an agent by name with `entire agent add` or `entire enable --agent` works before any setting is on, and sets `external_agents` to `true` in `.entire/settings.local.json`. If you install an integration executable after setup, run `entire agent add NAME` or add `"external_agents": true` to `.entire/settings.local.json`. Entire ignores the setting in `.entire/settings.json`. The setting key keeps its original name. > [!WARNING] > > Agent integrations receive repository paths and session data, and they run with the same filesystem access as the Entire CLI. Only install integrations you trust. ## Protocol Reference > [card] [Build an Agent Integration](/agents/agent-integration-protocol/build-an-agent-integration) > > Scaffold an executable and implement the protocol with working examples. > [card] [Architecture](/agents/agent-integration-protocol/architecture) > > See how the CLI discovers an integration and invokes it. > [card] [Lifecycle](/agents/agent-integration-protocol/lifecycle) > > Follow the CLI calls through discovery, setup, sessions, and shutdown. > [card] [Commands](/agents/agent-integration-protocol/commands) > > Implement each subcommand, input, and output. > [card] [Data Model](/agents/agent-integration-protocol/data-model) > > Use the JSON shapes that the protocol exchanges. # Antigravity Source: https://docs.entire.com/agents/antigravity Capture Antigravity CLI prompts, session transcripts, recorded file changes, and token usage with Entire Entire captures Antigravity CLI prompts, session transcripts, recorded file changes, and token usage, then links each session to its Git commits. ## Before You Start Install and authenticate [Antigravity CLI](https://antigravity.google/blog/introducing-google-antigravity-cli), and [install or update Entire](/installation). Run `entire agent list` to make sure your installed build includes `antigravity`. ## Add Antigravity From a repository where you already enabled Entire, run: ```bash theme={null} entire agent add antigravity agy ``` If you have not enabled Entire in the repository, run: ```bash theme={null} entire enable --agent antigravity agy ``` Work and commit as usual. Entire captures the session in the background. ## Hooks and Transcripts Entire manages the `entire` entry in `.agents/hooks.json` and preserves other entries. The hooks capture turn boundaries and file changes. Entire reads prompts, responses, and tool calls from Antigravity's full JSONL transcript. ## Token Usage Antigravity supplies token usage through its title feed rather than its transcripts. When `agy` is on your `PATH`, Entire setup configures the `title` command in `~/.gemini/antigravity-cli/settings.json` to pass that feed through `entire hooks antigravity title-tee`. Entire preserves an existing title command by wrapping it. Token capture depends on this setting. Run `entire doctor` to check it, or rerun `entire agent add antigravity` to repair the setup. Removing the integration with `entire agent remove antigravity` also removes Entire's title wrapper and restores the previous command when present. ## Verify Capture Check tracking and the integration's configuration: ```bash theme={null} entire status entire doctor ``` See [Set Up an Agent](/agents/setup#verify-capture) to verify checkpoints and troubleshoot capture. ## Limitations * Entire does not display a tracking banner inside Antigravity. Use `entire status` to check capture. * Entire does not yet support Antigravity subagent lifecycle hooks or attach subagent sessions to the parent checkpoint. Antigravity can still run subagents as separate conversations. ## Resume To resume a recorded session on a branch, run: ```bash theme={null} entire session resume BRANCH ``` Entire checks out the branch and restores the recorded session log when needed. In an interactive terminal, it asks whether to start the agent. Otherwise, it prints the resume command: ```bash theme={null} agy --conversation SESSION_ID ``` Entire keeps an existing local session log by default. See the [`session resume` command reference](/cli-reference/session#session-resume) for flags and checkout behavior. # Claude Code Source: https://docs.entire.com/agents/claude-code Capture Claude Code transcripts, file changes, tool calls, tokens, and subagent sessions with Entire Claude Code is Entire's default integration. It captures the main session and nested subagent sessions. Follow [Set Up an Agent](/agents/setup) for shared installation, verification, and troubleshooting steps. ## Add Claude Code ```bash theme={null} entire agent add claude-code claude ``` Entire adds lifecycle hooks to `.claude/settings.json` and preserves unrelated Claude Code settings. The hooks capture session boundaries, prompts, completed turns, and task events. Entire reads the full conversation, file changes, tool calls, and token usage from Claude Code's JSONL transcripts. ## Version and Capture Verification Brain v0.5.1 capture requires Claude Code **2.1.78 or later** with the generated Entire hooks. Check your installed version: ```bash theme={null} claude --version ``` If your version is older, update Claude Code before installing or refreshing the hooks. Then verify capture with a new session. After `entire agent add claude-code`, start a new Claude session in the repository. Make a file change, commit it, and inspect the resulting checkpoint. Follow [Verify Capture](/agents/setup#verify-capture) for the commands. The CLI capture hooks save sessions and checkpoints. Brain extracts memories from those sessions, and its agent instructions explain when to use them. See [Brain Setup](/guides/brain/overview#set-up-your-repository). ## Subagent Capture Claude Code exposes task lifecycle events and separate subagent transcripts. Entire records each task against the parent session, attributes its files and tokens to that session, and materializes its transcript into the parent's next checkpoint. The checkpoint then carries the subagent's work on its own, without reading back into Claude Code's transcript directory. Entire records any subagent that changed files. It also keeps read-only subagents, such as reviewers and search agents, when you launch them with `run_in_background`. A background launch defers capture to subagent stop, which is where Entire materializes a transcript even though the subagent wrote nothing. Foreground subagents complete at launch time, so a read-only one there leaves no record. Among the built-in integrations, Claude Code is the one that reaches read-only subagents. ## Resume and Import `entire session resume BRANCH` restores the recorded session data when needed and prints a command in this form: ```bash theme={null} claude -r SESSION_ID ``` Entire can also import existing Claude Code transcripts from the previous 30 days as read-only checkpoints. See the [`session resume` command reference](/cli-reference/session#session-resume) for flags and additional behavior. # Codex Source: https://docs.entire.com/agents/codex Capture Codex transcripts, file changes, tokens, and subagent sessions with Entire The Codex integration uses Codex's project-level hook system. Follow [Set Up an Agent](/agents/setup) for shared installation, verification, and troubleshooting steps. ## Add Codex ```bash theme={null} entire agent add codex codex ``` Entire writes `.codex/hooks.json`. Codex enables hooks by default beginning with version 0.124.0, so Entire does not create `.codex/config.toml` or set `codex_hooks = true`. The hooks capture session boundaries, prompts, completed turns, file-changing tool calls, and subagent events. Entire reads the full conversation and token usage from Codex rollout files under `~/.codex/` or `CODEX_HOME`. ## Limitations Ephemeral Codex runs may not provide a transcript path. Entire can process their hook events, but it cannot attach a full transcript without the rollout file. Entire records the subagents that changed files, materializes their transcripts into the parent's next checkpoint, and attributes their files to the parent session. It skips a subagent that wrote nothing, and it does not yet roll subagent tokens up into the parent session's totals. ## Resume and Import `entire session resume BRANCH` restores the recorded session data when needed and prints: ```bash theme={null} codex resume SESSION_ID ``` Entire can import existing Codex transcripts from the previous 30 days as read-only checkpoints. See the [`session resume` command reference](/cli-reference/session#session-resume) for flags and additional behavior. # Copilot CLI Source: https://docs.entire.com/agents/copilot-cli Capture Copilot CLI transcripts, file changes, tool calls, and token usage with Entire The Copilot CLI integration uses GitHub Copilot CLI's project-level hooks. Copilot in VS Code and the GitHub Copilot app run the same hooks, so `entire agent add copilot-cli` also captures their sessions. Follow [Set Up an Agent](/agents/setup) for shared installation, verification, and troubleshooting steps. ## Add Copilot CLI ```bash theme={null} entire agent add copilot-cli copilot ``` Entire writes its hook configuration to `.github/hooks/entire.json`. The hooks capture session boundaries, prompts, completed turns, tool activity, errors, and subagent completion. Entire reads the full conversation, file changes, and tool calls from Copilot CLI's JSONL transcript. ## Limitations Copilot CLI reports aggregate token usage when the session ends. Token totals may remain incomplete during an active session. Copilot CLI provides a subagent stop hook without a corresponding start hook. Entire records the completed subagent operation and uses the parent session's pre-prompt state instead of a subagent-specific pre-task snapshot. ## Resume and Import `entire session resume BRANCH` restores the recorded session data when needed and prints: ```bash theme={null} copilot --resume SESSION_ID ``` Entire can import existing Copilot CLI transcripts from the previous 30 days as read-only checkpoints. See the [`session resume` command reference](/cli-reference/session#session-resume) for flags and additional behavior. # Cursor Source: https://docs.entire.com/agents/cursor Capture Cursor IDE and CLI transcripts, file changes, tool calls, and subagent sessions with Entire The Cursor integration supports Cursor IDE and Cursor CLI through project-level hooks. Follow [Set Up an Agent](/agents/setup) for shared installation, verification, and troubleshooting steps. ## Add Cursor ```bash theme={null} entire agent add cursor cursor ``` Use `agent` instead of `cursor` to start Cursor CLI. Entire writes `.cursor/hooks.json`. The hooks capture session boundaries, prompts, completed turns, compaction, and subagent events. Entire reads the conversation and tool calls from Cursor's JSONL transcript. It identifies changed files from `Write` and `StrReplace` calls, hook payloads, and Git status. ## Limitations Cursor transcripts do not provide token usage, so Entire reads per-turn token counts from Cursor's stop hook. Cursor versions that omit those fields record no token usage. Cursor also does not expose a command that resumes the recorded native session, so `entire session resume` opens the project without restoring the prior Cursor conversation. Cursor CLI hook payloads may omit the transcript path. Entire resolves the transcript from Cursor's project session directory when this happens. Entire records the subagents that changed files, materializes their transcripts into the parent's next checkpoint, and attributes their files to the parent session. It skips a subagent that wrote nothing. ## Import Entire can import existing Cursor transcripts from the previous 30 days as read-only checkpoints. # Factory Source: https://docs.entire.com/agents/factory-droid Capture Factory Droid transcripts, file changes, tool calls, tokens, and subagent sessions with Entire The Factory integration uses Factory Droid's project-level hooks. Follow [Set Up an Agent](/agents/setup) for shared installation, verification, and troubleshooting steps. ## Add Factory ```bash theme={null} entire agent add factoryai-droid droid ``` Entire adds lifecycle hooks to `.factory/settings.json` and preserves unrelated Factory settings. The hooks capture session boundaries, prompts, completed turns, compaction, and task tool calls. Entire reads the full conversation, file changes, tool calls, and token usage from Factory's JSONL transcripts. ## Subagent Capture Factory exposes task tool events, and its Workers run as sessions of their own. Entire attributes a Worker's turn to the parent task invocation instead of minting a separate top-level session, rolls its files and tokens onto the parent session, and materializes its transcript into the parent's next checkpoint. Entire records a Worker that changed files, along with its transcript and its tokens. Capture keys on those file changes, so a read-only Worker leaves no record. ## Resume and Import `entire session resume BRANCH` restores the recorded session data when needed and prints: ```bash theme={null} droid --session-id SESSION_ID ``` Entire can import existing Factory transcripts from the previous 30 days as read-only checkpoints. See the [`session resume` command reference](/cli-reference/session#session-resume) for flags and additional behavior. # OpenCode Source: https://docs.entire.com/agents/opencode Capture OpenCode transcripts, file changes, tool calls, and token usage with Entire The OpenCode integration uses a project-level TypeScript plugin. Follow [Set Up an Agent](/agents/setup) for shared installation, verification, and troubleshooting steps. ## Add OpenCode ```bash theme={null} entire agent add opencode opencode ``` Entire writes `.opencode/plugins/entire.ts`. The plugin captures session and turn events, then uses `opencode export` to materialize the full conversation, file changes, tool calls, and token usage. OpenCode supports commits before a turn ends. Entire refreshes the exported transcript so a checkpoint created mid-turn includes the agent activity available at that point. ## Limitations OpenCode does not expose subagent lifecycle events. Entire captures the main session. `entire import` cannot import existing OpenCode sessions. ## Resume `entire session resume BRANCH` restores the recorded session data when needed and prints: ```bash theme={null} opencode -s SESSION_ID ``` See the [`session resume` command reference](/cli-reference/session#session-resume) for flags and additional behavior. # Agent Integrations Source: https://docs.entire.com/agents/overview Compare Entire's built-in AI coding agent integrations and their capabilities Entire uses agent hooks to capture AI coding sessions and connect them to Git commits. Claude Code is the default integration. Choose another integration with its agent name. ## Compare Built-In Integrations
Agent and CLI Name Hooks Transcript Tokens Subagents Resume Import
[Antigravity CLI](/agents/antigravity)\ `antigravity` NativeFullTitle feedNoYesNo
[Claude Code](/agents/claude-code)\ `claude-code` NativeFullYesAllYesYes
[Codex](/agents/codex)\ `codex` NativeFullYesFile changesYesYes
[Copilot CLI](/agents/copilot-cli)\ `copilot-cli` NativeFullAfter sessionPartialYesYes
[Cursor](/agents/cursor)\ `cursor` NativeFullStop hookFile changesNoYes
[Factory](/agents/factory-droid)\ `factoryai-droid` NativeFullYesFile changesYesYes
[OpenCode](/agents/opencode)\ `opencode` PluginFullYesNoYesNo
[Pi](/agents/pi)\ `pi` ExtensionFullYesNoYesYes
The Subagents column describes which subagents reach a checkpoint. "All" means Entire records every subagent that changed files, plus read-only subagents such as reviewers and search agents when you launch them with `run_in_background`. "File changes" means Entire records the subagents that changed files and skips a subagent that wrote nothing. "Partial" means Copilot CLI provides a subagent stop event without a corresponding start event. Entire notes that the subagent completed, but it cannot take a subagent-specific pre-task snapshot or attach the subagent's transcript. Claude Code and Factory roll subagent tokens up into the parent session's totals. Codex stores the transcripts without aggregating their tokens yet. Cursor stores the transcripts without token counts, because neither its subagent hook nor its transcript reports them. Whichever agent records the subagent, the parent's next checkpoint materializes the subagent's transcript alongside its own, so the checkpoint carries that work without reading back into the agent's transcript directory. entire.com does not browse these records yet. > [card] [Set Up an Agent](/agents/setup) > > Install hooks, add CLI-managed skills, verify capture, and troubleshoot shared setup. > [card] [Agent Integration Protocol](/agents/agent-integration-protocol/overview) > > Add an agent Entire does not ship with by writing an `entire-agent-` executable. CLI plugins use `entire-` instead and add commands rather than agent support. See working integrations at [github.com/entireio/external-agents](https://github.com/entireio/external-agents). ## Agent Integrations Entire can discover agent integrations from executables named `entire-agent-` on your `$PATH`. Select one by name with `entire enable --agent ` or `entire agent add `. Entire finds the named executable without any setting, then turns on `external_agents` in `.entire/settings.local.json` so hooks and other commands discover it. Agent integrations declare their own hooks and capabilities, so their support varies by implementation. See the [Agent Integration Protocol](/agents/agent-integration-protocol/overview) for the protocol, setup, and security model. ## MCP Hosts [`entire mcp`](/cli-reference/mcp) runs a stdio MCP server that exposes Entire's `agent_help` and `entire_status` tools. It gives an MCP host current CLI usage and repository status. It does not replace lifecycle hooks for session capture. # Pi Source: https://docs.entire.com/agents/pi Capture Pi transcripts, file changes, tool calls, and token usage with Entire The Pi integration uses a project-level TypeScript extension. Follow [Set Up an Agent](/agents/setup) for shared installation, verification, and troubleshooting steps. ## Add Pi ```bash theme={null} entire agent add pi pi ``` Entire writes `.pi/extensions/entire/index.ts`. The extension captures session boundaries, prompts, and completed turns. Entire reads the full conversation, file changes, tool calls, and token usage from Pi's JSONL transcript. [Enable Entire for Pi](https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/89f76783a7be608b7c7c646d8dd9ea1f/iframe?loop=true\&autoplay=true\&poster=https%3A%2F%2Fcustomer-0x5hsk8lh27fm00g.cloudflarestream.com%2F89f76783a7be608b7c7c646d8dd9ea1f%2Fthumbnails%2Fthumbnail.jpg%3Ftime%3D%26height%3D600) ## Limitations Pi does not expose a subagent transcript tree. Entire captures the main session. Pi's `write` and `edit` tools provide file paths in the transcript; files changed through shell commands remain visible in the Git diff but may not appear as transcript tool edits. ## Resume and Import `entire session resume BRANCH` restores the recorded session data when needed and prints: ```bash theme={null} pi --session SESSION_ID ``` Entire can import existing Pi transcripts from the previous 30 days as read-only checkpoints. See the [`session resume` command reference](/cli-reference/session#session-resume) for flags and additional behavior. # Set Up an Agent Source: https://docs.entire.com/agents/setup Install, verify, update, and remove Entire agent hooks Entire installs repository-level hooks for each AI coding agent you use. Agent hooks capture session events, while Entire's Git hooks connect the captured session to commits. ## Before You Start Install the [Entire CLI](/installation) and your preferred [agent integration](/agents/overview). Run these commands from a Git repository after you enable Entire. ## Install Agent Hooks Pass the integration's agent name to `entire agent add`: ```bash theme={null} entire agent add AGENT_NAME ``` For example: ```bash theme={null} entire agent add codex ``` You can install hooks for more than one agent in the same repository. Each integration keeps its configuration in the agent's project directory. During initial Entire setup, select an agent with: ```bash theme={null} entire enable --agent codex ``` ## Agent Integrations An agent integration adds support for a coding agent through an executable named `entire-agent-`. A CLI plugin uses `entire-` and adds a command instead. Add the agent integration executable to your `$PATH`. During setup, pass the external agent's name without the `entire-agent-` prefix: ```bash theme={null} entire enable --agent AGENT_NAME ``` Entire finds the named executable without any setting, then sets `external_agents` to `true` in `.entire/settings.local.json`. That setting turns on discovery for hooks and other commands, and `entire agent list` shows discovered integrations only while it is on. Entire reads `external_agents` only from the untracked `.entire/settings.local.json` and ignores it in `.entire/settings.json`, so a pull request cannot make every developer run an executable. See the [Agent Integration Protocol](/agents/agent-integration-protocol/overview) for the protocol and its security considerations. ## Install CLI-Managed Skills `entire agent add` can also install two repository-level skills: ```bash theme={null} entire agent add codex --agent-help-skill --search-skill ``` | Flag | Installs | | - | - | | `--agent-help-skill` | A skill that directs the agent to `entire agent-help` for usage that matches the installed CLI. Claude Code and Codex only. | | `--search-skill` | A skill that helps the agent run `entire search --json`. Every built-in agent except Antigravity. | These flags install the CLI-managed helpers. See [Install Skills](/learn/skills-overview#install-skills) for the Entire Skills collection. ## Hook Locations | Agent | Project Configuration | | - | - | | [Antigravity CLI](/agents/antigravity) | `.agents/hooks.json` | | Claude Code | `.claude/settings.json` | | Codex | `.codex/hooks.json` | | Copilot CLI | `.github/hooks/entire.json` | | Cursor | `.cursor/hooks.json` | | Factory | `.factory/settings.json` | | OpenCode | `.opencode/plugins/entire.ts` | | Pi | `.pi/extensions/entire/index.ts` | Entire preserves unrelated configuration when it adds JSON hooks. OpenCode and Pi use generated TypeScript files that Entire can reinstall when their templates change. ## Verify Capture List the installed integrations and inspect the repository: ```bash theme={null} entire agent list entire status --detailed ``` Start a new agent session from the repository after installing hooks. Existing agent processes do not load hooks added after they started. Commit a file change to create a checkpoint, then inspect it: ```bash theme={null} git add . git commit -m "Describe the change" entire checkpoint list ``` See [Session Storage](/guides/checkpoints/checkpoint-storage) for where Entire writes checkpoint data. ## Reinstall or Remove Hooks Reinstall missing, stale, or modified hooks with: ```bash theme={null} entire agent add AGENT_NAME --force ``` Remove Entire's hooks for one integration with: ```bash theme={null} entire agent remove AGENT_NAME ``` Removing one integration leaves other agent hooks and Entire's Git hooks in place. ## Troubleshoot Capture Run `entire doctor` when `entire status --detailed` does not show a session you started. Confirm that the integration's configuration file exists, restart the agent, and run it from inside the repository. Each agent page documents limitations on transcript capture, token usage, subagent capture, session resume, and transcript import. Use the [capability matrix](/agents/overview#compare-built-in-integrations) to find the relevant page. # List data-plane clusters attached to this control plane Source: https://docs.entire.com/api-reference/control-plane/clusters/list-data-plane-clusters-attached-to-this-control-plane /openapi/core.json get /clusters Users **Accepted credentials:** User token. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Get the calling account's identity and profile Source: https://docs.entire.com/api-reference/control-plane/identity/get-the-calling-accounts-identity-and-profile /openapi/core.json get /me Users **Accepted credentials:** User token. # List federated OIDC identity providers Source: https://docs.entire.com/api-reference/control-plane/identity/list-federated-oidc-identity-providers /openapi/core.json get /oidc-providers Users **Accepted credentials:** User token. Lists the OIDC identity providers that a service account binding can trust. Every caller sees every provider. A project manager can bind only the providers with self_serve set. # Get an organization Source: https://docs.entire.com/api-reference/control-plane/orgs/get-an-organization /openapi/core.json get /orgs/{orgId} Users **Accepted credentials:** User token. # List members of an organization Source: https://docs.entire.com/api-reference/control-plane/orgs/list-members-of-an-organization /openapi/core.json get /orgs/{orgId}/members Users **Accepted credentials:** User token. # List organizations the caller can see (or one by name) Source: https://docs.entire.com/api-reference/control-plane/orgs/list-organizations-the-caller-can-see-or-one-by-name /openapi/core.json get /orgs Users **Accepted credentials:** User token. # Get a project by id Source: https://docs.entire.com/api-reference/control-plane/projects/get-a-project-by-id /openapi/core.json get /projects/{projectId} Users **Accepted credentials:** User token. # List projects accessible to the caller (or one by name) Source: https://docs.entire.com/api-reference/control-plane/projects/list-projects-accessible-to-the-caller-or-one-by-name /openapi/core.json get /projects Users **Accepted credentials:** User token. # List projects owned by an organization Source: https://docs.entire.com/api-reference/control-plane/projects/list-projects-owned-by-an-organization /openapi/core.json get /orgs/{orgId}/projects Users **Accepted credentials:** User token. # Resolve a canonical project reference Source: https://docs.entire.com/api-reference/control-plane/projects/resolve-a-canonical-project-reference /openapi/core.json get /projects/resolve/{host}/{project} Users **Accepted credentials:** User token. Case-insensitive lookup by native project name (et) or GitHub owner namespace (gh). Uses project inspect permission, including platform administrators. An existing native (et) project the caller cannot inspect returns 403, so a creator can tell a taken name from a free one. Missing projects, and inaccessible GitHub (gh) namespaces, return 404. An automation token always receives 404. # Create repository Source: https://docs.entire.com/api-reference/control-plane/repos/create-repository /openapi/core.json post /repos Users Plugins **Accepted credentials:** User token, Plugin installation token. An account needs create permission on the project. A plugin installation's access token needs repositories:create. The repository goes in the installation's project and joins its coverage. A successful create does not guarantee token readiness. A failed grant reconciliation leaves the repository created and can delay token minting. An installation token cannot set clusterHost or mirrorClusterSlugs. An installation creates at most its plugin's daily limit of repositories in a rolling 24 hours (100 by default). Exceeding this limit returns 429 with Retry-After. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Get repository Source: https://docs.entire.com/api-reference/control-plane/repos/get-repository /openapi/core.json get /repos/{repoId} Users **Accepted credentials:** User token. # List repositories in a project (or one by name) Source: https://docs.entire.com/api-reference/control-plane/repos/list-repositories-in-a-project-or-one-by-name /openapi/core.json get /projects/{projectId}/repos Users **Accepted credentials:** User token. # List the caller's readable repositories (placement index) Source: https://docs.entire.com/api-reference/control-plane/repos/list-the-callers-readable-repositories-placement-index /openapi/core.json get /repos Users **Accepted credentials:** User token. # Create OIDC binding Source: https://docs.entire.com/api-reference/control-plane/service-accounts/create-oidc-binding /openapi/core.json post /service-accounts/{accountId}/bindings Users **Accepted credentials:** User token. Lets workloads that hold a token from an OIDC identity provider sign in as the service account. The attribute filter must pin the attributes that the provider requires. A provider without self_serve set returns 403. A token issued from a service account secret cannot create a binding. # Create service account Source: https://docs.entire.com/api-reference/control-plane/service-accounts/create-service-account /openapi/core.json post /service-accounts Users **Accepted credentials:** User token. Creates a service account in a project. Requires permission to manage the project. A project that does not exist or that the caller cannot manage returns 403. # Create service account secret Source: https://docs.entire.com/api-reference/control-plane/service-accounts/create-service-account-secret /openapi/core.json post /service-accounts/{accountId}/secrets Users **Accepted credentials:** User token. Returns the secret once. Exchange it at /oauth/token for a short-lived service account token. Only a person's own login session can create a secret. Any other token returns 403. A request to a region other than the service account's home region returns 421 with the home region's URL. # Delete OIDC binding Source: https://docs.entire.com/api-reference/control-plane/service-accounts/delete-oidc-binding /openapi/core.json delete /service-accounts/{accountId}/bindings/{bindingId} Users **Accepted credentials:** User token. Removes an OIDC binding. Deleting a binding that does not exist returns 204. # Delete service account Source: https://docs.entire.com/api-reference/control-plane/service-accounts/delete-service-account /openapi/core.json delete /service-accounts/{accountId} Users **Accepted credentials:** User token. Deletes the service account and revokes its repo and project grants. Its secrets and OIDC bindings stop working. Requires permission to manage the service account's project. # Delete service account secret Source: https://docs.entire.com/api-reference/control-plane/service-accounts/delete-service-account-secret /openapi/core.json delete /service-accounts/{accountId}/secrets/{secret_id} Users **Accepted credentials:** User token. Revokes one secret. Access tokens already issued from the secret stay valid until they expire. Deleting a secret that does not exist returns 204. A request to a region other than the service account's home region returns 421 with the home region's URL. # Get service account Source: https://docs.entire.com/api-reference/control-plane/service-accounts/get-service-account /openapi/core.json get /service-accounts/{accountId} Users **Accepted credentials:** User token. # Grant service account access on a repo or project Source: https://docs.entire.com/api-reference/control-plane/service-accounts/grant-service-account-access-on-a-repo-or-project /openapi/core.json post /service-accounts/{accountId}/grants Users **Accepted credentials:** User token. Gives the service account a role on a repo or project. The resource must belong to the service account's project. Requires permission to manage the resource. # List OIDC bindings Source: https://docs.entire.com/api-reference/control-plane/service-accounts/list-oidc-bindings /openapi/core.json get /service-accounts/{accountId}/bindings Users **Accepted credentials:** User token. # List service account grants Source: https://docs.entire.com/api-reference/control-plane/service-accounts/list-service-account-grants /openapi/core.json get /service-accounts/{accountId}/grants Users **Accepted credentials:** User token. Lists the service account's repo and project grants. The response holds only grants on resources the caller can manage, so a page can be shorter than pageSize while nextPageToken is set. # List service account secrets Source: https://docs.entire.com/api-reference/control-plane/service-accounts/list-service-account-secrets /openapi/core.json get /service-accounts/{accountId}/secrets Users **Accepted credentials:** User token. Lists secret metadata, newest first, including recently expired secrets. The response never contains a secret. A request to a region other than the service account's home region returns 421 with the home region's URL. # List service accounts in an org or project Source: https://docs.entire.com/api-reference/control-plane/service-accounts/list-service-accounts-in-an-org-or-project /openapi/core.json get /service-accounts Users **Accepted credentials:** User token. Lists the service accounts in one organization or one project. Pass exactly one of orgId and project_id. # Revoke service account access Source: https://docs.entire.com/api-reference/control-plane/service-accounts/revoke-service-account-access /openapi/core.json delete /service-accounts/{accountId}/grants/{resourceType}/{resourceId} Users **Accepted credentials:** User token. Removes the service account's role on a repo or project. Requires permission to manage the resource. # Stream live ref (branch/tag/HEAD) change events for a repository Source: https://docs.entire.com/api-reference/git/refs/stream-live-ref-branchtaghead-change-events-for-a-repository /openapi/generated/git.json get /repos/{repo_id}/refs/events Users Plugins **Accepted credentials:** User token, Plugin installation token. Streams live ref (branch/tag/HEAD) changes as they happen — a push, not a poll — with rapid updates to the same ref coalesced to at most one event roughly every 200ms. On connect you get a snapshot of current refs, then only changes from that point on; there is no history to replay, so a reconnect re-snapshots rather than catching up on what it missed. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Streaming requires ref-events configuration; credential validity and live repository access are rechecked during the stream. # Compare commits Source: https://docs.entire.com/api-reference/git/repositories/compare-commits /openapi/generated/git.json get /git/repos/{repoId}/compare Read the problem type, not only the status. - 404 `https://entire.com/errors/git-read/ref-not-found`: a requested ref does not resolve on this placement. A new repository answers this until its first push. - 404 `https://entire.com/errors/git-read/object-missing`: an object is absent on this placement. Retry. - 404 `https://entire.com/errors/git-read/repo-gone`: the repository has no refs and the object is absent. - 404 with no type: the token cannot read the repository, or the cause is none of the above. On a GitHub mirror or a ref forwarded to its owner, a 404 reflects this placement's view, which can lag the owner. A caller that acts on a mirror must not treat that 404 as final. # Create branch at a commit Source: https://docs.entire.com/api-reference/git/repositories/create-branch-at-a-commit /openapi/generated/git.json post /git/repos/{repoId}/branches If the target ref is in the Entire-owned namespace (refs/heads/entire/native/*) and this placement does not own it, the write is forwarded to the owning placement and applied there. Read-your-writes then lags replication by seconds: a read against this placement immediately afterwards may not show the new tip. A forwarded write is an ordinary push at the owner, so a namespace branch marked server-side-merge-only cannot be merged through this placement and must be merged from the owner cell. # Get commits by SHA in batch Source: https://docs.entire.com/api-reference/git/repositories/get-commits-by-sha-in-batch /openapi/generated/git.json post /git/repos/{repoId}/commits/batch # Get merge base Source: https://docs.entire.com/api-reference/git/repositories/get-merge-base /openapi/generated/git.json get /git/repos/{repoId}/merge-base Read the problem type, not only the status. - 404 `https://entire.com/errors/git-read/ref-not-found`: a requested ref does not resolve on this placement. A new repository answers this until its first push. - 404 `https://entire.com/errors/git-read/object-missing`: an object is absent on this placement. Retry. - 404 `https://entire.com/errors/git-read/repo-gone`: the repository has no refs and the object is absent. - 404 with no type: the token cannot read the repository, or the cause is none of the above. On a GitHub mirror or a ref forwarded to its owner, a 404 reflects this placement's view, which can lag the owner. A caller that acts on a mirror must not treat that 404 as final. # Get raw file by path Source: https://docs.entire.com/api-reference/git/repositories/get-raw-file-by-path /openapi/generated/git.json get /git/repos/{repoId}/raw/{path...} Read the problem type, not only the status. - 404 `https://entire.com/errors/git-read/ref-not-found`: a requested ref does not resolve on this placement. A new repository answers this until its first push. - 404 `https://entire.com/errors/git-read/object-missing`: an object is absent on this placement. Retry. - 404 `https://entire.com/errors/git-read/repo-gone`: the repository has no refs and the object is absent. - 404 with no type: the token cannot read the repository, or the cause is none of the above. On a GitHub mirror or a ref forwarded to its owner, a 404 reflects this placement's view, which can lag the owner. A caller that acts on a mirror must not treat that 404 as final. When the ref resolves but the file is absent, the answer is a 404 with the Entire-Path and Entire-Size headers set and no problem body. # Get tree Source: https://docs.entire.com/api-reference/git/repositories/get-tree /openapi/generated/git.json get /git/repos/{repoId}/tree Read the problem type, not only the status. - 404 `https://entire.com/errors/git-read/ref-not-found`: a requested ref does not resolve on this placement. A new repository answers this until its first push. - 404 `https://entire.com/errors/git-read/object-missing`: an object is absent on this placement. Retry. - 404 `https://entire.com/errors/git-read/repo-gone`: the repository has no refs and the object is absent. - 404 with no type: the token cannot read the repository, or the cause is none of the above. On a GitHub mirror or a ref forwarded to its owner, a 404 reflects this placement's view, which can lag the owner. A caller that acts on a mirror must not treat that 404 as final. A 404 `https://entire.com/errors/git-read/path-not-found` means the ref resolves, but the path is absent or names a file. # Get unified diff Source: https://docs.entire.com/api-reference/git/repositories/get-unified-diff /openapi/generated/git.json get /git/repos/{repoId}/diff Read the problem type, not only the status. - 404 `https://entire.com/errors/git-read/ref-not-found`: a requested ref does not resolve on this placement. A new repository answers this until its first push. - 404 `https://entire.com/errors/git-read/object-missing`: an object is absent on this placement. Retry. - 404 `https://entire.com/errors/git-read/repo-gone`: the repository has no refs and the object is absent. - 404 with no type: the token cannot read the repository, or the cause is none of the above. On a GitHub mirror or a ref forwarded to its owner, a 404 reflects this placement's view, which can lag the owner. A caller that acts on a mirror must not treat that 404 as final. # List branches Source: https://docs.entire.com/api-reference/git/repositories/list-branches /openapi/generated/git.json get /git/repos/{repoId}/branches # List commits Source: https://docs.entire.com/api-reference/git/repositories/list-commits /openapi/generated/git.json get /git/repos/{repoId}/commits The response lists commits newest first by committer date, not by author date. The order is deterministic: the same request over the same history returns the same sequence. Each page continues that sequence. In rare histories with clock skew, a later page can repeat a commit from an earlier page. Skip a commit SHA that an earlier page returned. The order is not topological. Under clock skew across a merge, a commit can appear before one of its children. Read the problem type, not only the status. - 404 `https://entire.com/errors/git-read/ref-not-found`: a requested ref does not resolve on this placement. A new repository answers this until its first push. - 404 `https://entire.com/errors/git-read/object-missing`: an object is absent on this placement. Retry. - 404 `https://entire.com/errors/git-read/repo-gone`: the repository has no refs and the object is absent. - 404 with no type: the token cannot read the repository, or the cause is none of the above. On a GitHub mirror or a ref forwarded to its owner, a 404 reflects this placement's view, which can lag the owner. A caller that acts on a mirror must not treat that 404 as final. # List references Source: https://docs.entire.com/api-reference/git/repositories/list-references /openapi/generated/git.json get /git/repos/{repoId}/refs # List tags Source: https://docs.entire.com/api-reference/git/repositories/list-tags /openapi/generated/git.json get /git/repos/{repoId}/tags # Resolve repository path Source: https://docs.entire.com/api-reference/git/repositories/resolve-repository-path /openapi/generated/git.json get /git/repos/resolve # A checkpoint's sessions as message trees Source: https://docs.entire.com/api-reference/sessions/checkpoints/a-checkpoints-sessions-as-message-trees /openapi/generated/sessions.json get /repos/{repo_id}/checkpoints/{checkpoint_id}/transcript Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Also requires pull on a separate checkpoint-storage repository when configured; denial on that repository returns 404. Separate anonymous exception: with no bearer, X-Anon-Repo can authorize public-repository reads when anonymous signing is configured; a separate checkpoint-storage repository must also be public. This exception is outside the user/plugin credential labels. # A single checkpoint, with its branch membership Source: https://docs.entire.com/api-reference/sessions/checkpoints/a-single-checkpoint-with-its-branch-membership /openapi/generated/sessions.json get /repos/{repo_id}/checkpoints/{checkpoint_id} Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Also requires pull on a separate checkpoint-storage repository when configured; denial on that repository returns 404. Separate anonymous exception: with no bearer, X-Anon-Repo can authorize public-repository reads when anonymous signing is configured; a separate checkpoint-storage repository must also be public. This exception is outside the user/plugin credential labels. # Checkpoints linked to a commit, with commit, diffstat, and sessions Source: https://docs.entire.com/api-reference/sessions/checkpoints/checkpoints-linked-to-a-commit-with-commit-diffstat-and-sessions /openapi/generated/sessions.json get /repos/{repo_id}/commits/{sha}/checkpoints Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Also requires pull on a separate checkpoint-storage repository when configured; denial on that repository returns 404. Separate anonymous exception: with no bearer, X-Anon-Repo can authorize public-repository reads when anonymous signing is configured; a separate checkpoint-storage repository must also be public. This exception is outside the user/plugin credential labels. # Checkpoints on a branch, with commit, diffstat, and sessions Source: https://docs.entire.com/api-reference/sessions/checkpoints/checkpoints-on-a-branch-with-commit-diffstat-and-sessions /openapi/generated/sessions.json get /repos/{repo_id}/checkpoints Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Also requires pull on a separate checkpoint-storage repository when configured; denial on that repository returns 404. Separate anonymous exception: with no bearer, X-Anon-Repo can authorize public-repository reads when anonymous signing is configured; a separate checkpoint-storage repository must also be public. This exception is outside the user/plugin credential labels. # Stream a checkpoint session's raw transcript Source: https://docs.entire.com/api-reference/sessions/checkpoints/stream-a-checkpoint-sessions-raw-transcript /openapi/generated/sessions.json get /repos/{repo_id}/checkpoints/{checkpoint_id}/transcript/raw Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Also requires pull on a separate checkpoint-storage repository when configured; denial on that repository returns 404. Anonymous access and share snapshots are not supported by this raw transcript operation. # Rank the agents that worked on a repository's files or paths Source: https://docs.entire.com/api-reference/sessions/experts/rank-the-agents-that-worked-on-a-repositorys-files-or-paths /openapi/generated/sessions.json post /repos/{repo_id}/experts Users Plugins **Accepted credentials:** User token, Plugin installation token. Ranks the coding agents that worked on specific parts of a repository, with supporting evidence. You describe the code either as explicit paths or as a natural-language topic, but not both; the natural-language form needs a code-search index and is unavailable where none is configured. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. # Your sessions across all repositories Source: https://docs.entire.com/api-reference/sessions/me/your-sessions-across-all-repositories /openapi/generated/sessions.json get /me/sessions Users **Accepted credentials:** User token. Your sessions from every repository, gathered from your checkpoint activity and merged into one list ordered globally across repositories. Each row carries its repository's route provider (github/entire); a repository with no resolvable provider is dropped and reported via meta.partial rather than linked to a guessed surface. This list has no cursor: it returns up to `limit` rows inside the timeframe and no `next_cursor`; narrow the timeframe or raise `limit` to see more. `kind[ne]` excludes sessions of the given kinds before the limit is applied, so a page is not displaced by rows the caller would hide; sessions with no kind are always included. Use an own-account bearer token (including supported service accounts). Plugin installation tokens are not accepted for this action. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires an account subject; automation principals are rejected. Results are limited to the caller and filtered by repository access. # Your trails across all repositories Source: https://docs.entire.com/api-reference/sessions/me/your-trails-across-all-repositories /openapi/generated/sessions.json get /me/trails Users **Accepted credentials:** User token. Trails you authored or that are assigned to you across every repository you belong to, newest first. A trail that you authored and that is assigned to you appears once. The timeframe bounds when a trail was last updated, not when it was opened, and repositories with trails turned off are left out. This list has no cursor: it returns up to `limit` rows inside the timeframe and no `next_cursor`; narrow the timeframe or raise `limit` to see more. Use an own-account bearer token (including supported service accounts). Plugin installation tokens are not accepted for this action. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires an account subject; automation principals are rejected. Results are limited to the caller and filtered by repository access. # A session's full transcript as a message tree Source: https://docs.entire.com/api-reference/sessions/sessions/a-sessions-full-transcript-as-a-message-tree /openapi/generated/sessions.json get /repos/{repo_id}/sessions/{session_id}/transcript Users Plugins **Accepted credentials:** User token, Plugin installation token. A session's full transcript, merged across all of its checkpoints. When the session has been shared, it is served from that public snapshot, so it stays readable after sharing. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Live reads require pull on the repository storing the checkpoint payload (contents:read for plugin installations). Other authorized automation principals are accepted. Separate public/share exceptions: with no bearer, X-Anon-Repo supports public-repository reads when anonymous signing is configured; the storage repository must be readable for live content. A caller without storage-repository access, including a tokenless caller without X-Anon-Repo, may instead read an existing visible share snapshot, even for a private repository. Missing or disabled shares return 404; access-check failures do not fall back to snapshots. These exceptions are outside the user/plugin credential labels. # A single session Source: https://docs.entire.com/api-reference/sessions/sessions/a-single-session /openapi/generated/sessions.json get /repos/{repo_id}/sessions/{session_id} Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Also requires pull on a separate checkpoint-storage repository when configured; denial on that repository returns 404. Separate anonymous exception: with no bearer, X-Anon-Repo can authorize public-repository reads when anonymous signing is configured; a separate checkpoint-storage repository must also be public. This exception is outside the user/plugin credential labels. # Sessions in a repository Source: https://docs.entire.com/api-reference/sessions/sessions/sessions-in-a-repository /openapi/generated/sessions.json get /repos/{repo_id}/sessions Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Also requires pull on a separate checkpoint-storage repository when configured; denial on that repository returns 404. Separate anonymous exception: with no bearer, X-Anon-Repo can authorize public-repository reads when anonymous signing is configured; a separate checkpoint-storage repository must also be public. This exception is outside the user/plugin credential labels. # List or stream trail events (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-activity/list-or-stream-trail-events-repo_id-addressing /openapi/generated/trails.json get /repos/{repo_id}/trails/{number}/events Users Plugins **Accepted credentials:** User token, Plugin installation token. Returns trail events by opaque repo id with the same JSON cursor pagination, category filters, open event catalog, Last-Event-ID SSE resume, and from=head latest-push start as the name-addressed route. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Trails must be enabled. Send requests to the repository’s primary API region. Streams recheck credentials, repository access and placement. # Get merge readiness for a trail (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-approvals/get-merge-readiness-for-a-trail-repo_id-addressing /openapi/generated/trails.json get /repos/{repo_id}/trails/{number}/mergeability Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Trails must be enabled. Send requests to the repository’s primary API region. # List a trail's recorded approval decisions (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-approvals/list-a-trails-recorded-approval-decisions-repo_id-addressing /openapi/generated/trails.json get /repos/{repo_id}/trails/{number}/approvals Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Trails must be enabled. Send requests to the repository’s primary API region. # Merge a Trail (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-approvals/merge-a-trail-repo_id-addressing /openapi/generated/trails.json post /repos/{repo_id}/trails/{number}/merge Users **Accepted credentials:** User token. Use an own-account bearer token (including supported service accounts). Plugin installation tokens are not accepted for this action. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push permission and an account subject; automation principals are rejected. Trails must be enabled. Send requests to the repository’s primary API region. Merge additionally enforces current merge policy, gates and any bypass authorization. # Submit an approval decision on a trail (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-approvals/submit-an-approval-decision-on-a-trail-repo_id-addressing /openapi/generated/trails.json post /repos/{repo_id}/trails/{number}/approvals Users **Accepted credentials:** User token. Use an own-account bearer token (including supported service accounts). Plugin installation tokens are not accepted for this action. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push permission and an account subject; automation principals are rejected. Trails must be enabled. Send requests to the repository’s primary API region. # Add a message to a discussion (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-discussions/add-a-message-to-a-discussion-repo_id-addressing /openapi/generated/trails.json post /repos/{repo_id}/trails/{number}/discussions/{discussion_id}/messages Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push OR write_discussions permission (discussions:write for plugin installations). Trails must be enabled. Send requests to the repository’s primary API region. Repository discussion authors may be accounts or automations; plugin authors are identified by installation so refreshed tokens retain authorship. Project discussions are account-only. # Delete a message (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-discussions/delete-a-message-repo_id-addressing /openapi/generated/trails.json delete /repos/{repo_id}/trails/{number}/discussions/{discussion_id}/messages/{message_id} Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push OR write_discussions permission (discussions:write for plugin installations). Trails must be enabled. Send requests to the repository’s primary API region. Repository discussion authors may be accounts or automations; plugin authors are identified by installation so refreshed tokens retain authorship. Project discussions are account-only. Only the author may edit or delete a message; another installation cannot edit it. # Edit a message (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-discussions/edit-a-message-repo_id-addressing /openapi/generated/trails.json patch /repos/{repo_id}/trails/{number}/discussions/{discussion_id}/messages/{message_id} Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push OR write_discussions permission (discussions:write for plugin installations). Trails must be enabled. Send requests to the repository’s primary API region. Repository discussion authors may be accounts or automations; plugin authors are identified by installation so refreshed tokens retain authorship. Project discussions are account-only. Only the author may edit or delete a message; another installation cannot edit it. # Get a discussion and its messages (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-discussions/get-a-discussion-and-its-messages-repo_id-addressing /openapi/generated/trails.json get /repos/{repo_id}/trails/{number}/discussions/{discussion_id} Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Trails must be enabled. Send requests to the repository’s primary API region. # List a trail's discussions (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-discussions/list-a-trails-discussions-repo_id-addressing /openapi/generated/trails.json get /repos/{repo_id}/trails/{number}/discussions Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Trails must be enabled. Send requests to the repository’s primary API region. # Start a new discussion (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-discussions/start-a-new-discussion-repo_id-addressing /openapi/generated/trails.json post /repos/{repo_id}/trails/{number}/discussions Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push OR write_discussions permission (discussions:write for plugin installations). Trails must be enabled. Send requests to the repository’s primary API region. Repository discussion authors may be accounts or automations; plugin authors are identified by installation so refreshed tokens retain authorship. Project discussions are account-only. # Update a discussion's title/resolved state (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-discussions/update-a-discussions-titleresolved-state-repo_id-addressing /openapi/generated/trails.json patch /repos/{repo_id}/trails/{number}/discussions/{discussion_id} Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push permission (contents:write for plugin installations); discussions:write alone is insufficient. Account subjects may retitle or resolve ordinary discussions. Automations may change resolution only for a discussion linked to a code-review comment; ordinary discussion mutations reject automations and code-review titles are read-only. Trails must be enabled. Send requests to the repository’s primary API region. # Get the configurable gate evaluation for a trail (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-gates/get-the-configurable-gate-evaluation-for-a-trail-repo_id-addressing /openapi/generated/trails.json get /repos/{repo_id}/trails/{number}/gates Users Plugins **Accepted credentials:** User token, Plugin installation token. Evaluates configured gates using persisted checks results. mergeable indicates whether these gates allow merging; it does not include merge conflicts or guarantee fresh CI evidence. Use /mergeability for current merge readiness. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Trails must be enabled. Send requests to the repository’s primary API region. # Atomically publish review comments and summary (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-reviews/atomically-publish-review-comments-and-summary-repo_id-addressing /openapi/generated/trails.json post /repos/{repo_id}/trails/{number}/reviews/{review_id}/comments Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push or write_findings permission (contents:write or findings:write for plugin installations), or the separate platform publish_review service grant. Comments must belong to the review author; a plugin installation authors its reviews, so a refreshed token of the same installation keeps authorship. Trails must be enabled. Send requests to the repository’s primary API region. # Get review state (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-reviews/get-review-state-repo_id-addressing /openapi/generated/trails.json get /repos/{repo_id}/trails/{number}/reviews/{review_id} Users Plugins **Accepted credentials:** User token, Plugin installation token. A review's current state, addressed by opaque repo id. Same projection, counts, keyset paging, and event cursor as the wire-parity path. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull or read_findings permission (contents:read or findings:read for plugin installations). Findings can include code excerpts: location selected_text and nearby_text, and suggested changes. Other authorized automation principals can also use this operation. Trails must be enabled. Send requests to the repository’s primary API region. # List all review comments for a trail (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-reviews/list-all-review-comments-for-a-trail-repo_id-addressing /openapi/generated/trails.json get /repos/{repo_id}/trails/{number}/reviews/comments Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull or read_findings permission (contents:read or findings:read for plugin installations). Findings can include code excerpts: location selected_text and nearby_text, and suggested changes. Other authorized automation principals can also use this operation. Trails must be enabled. Send requests to the repository’s primary API region. # Start a code review (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-reviews/start-a-code-review-repo_id-addressing /openapi/generated/trails.json post /repos/{repo_id}/trails/{number}/reviews Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push or write_findings permission (contents:write or findings:write for plugin installations). Separate service exception: platform publish_review also admits a caller without push; actor_id overrides require that platform grant and are forbidden for automations. Trails must be enabled. Send requests to the repository’s primary API region. # Update a review comment (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trail-reviews/update-a-review-comment-repo_id-addressing /openapi/generated/trails.json patch /repos/{repo_id}/trails/{number}/reviews/{review_id}/comments/{comment_id} Users Plugins **Accepted credentials:** User token, Plugin installation token. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push or write_findings permission (contents:write or findings:write for plugin installations); platform publish_review alone does not authorize PATCH. A caller without push may update only comments on reviews it authored. Comment-field and status-transition rules still apply. Trails must be enabled. Send requests to the repository’s primary API region. # Create a trail by repo id Source: https://docs.entire.com/api-reference/trails/trails/create-a-trail-by-repo-id /openapi/generated/trails.json post /repos/{repo_id}/trails Users **Accepted credentials:** User token. Creates a trail via the opaque repo id path; behaviour matches the wire-parity create (including the same status policy), and the Location header points back into this addressing scheme. Use an own-account bearer token (including supported service accounts). Plugin installation tokens are not accepted for this action. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push permission and an account subject; automation principals are rejected. Trails must be enabled. Send requests to the repository’s primary API region. # Get a trail by number (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trails/get-a-trail-by-number-repo_id-addressing /openapi/generated/trails.json get /repos/{repo_id}/trails/{number} Users Plugins **Accepted credentials:** User token, Plugin installation token. A single trail by number, addressed by opaque repo id. Same fields and composition boundary as the wire-parity path. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Trails must be enabled. Send requests to the repository’s primary API region. # List a repo's trails (repo_id addressing) Source: https://docs.entire.com/api-reference/trails/trails/list-a-repos-trails-repo_id-addressing /openapi/generated/trails.json get /repos/{repo_id}/trails Users Plugins **Accepted credentials:** User token, Plugin installation token. The repository's trails addressed by repo id, ordered by updated_at descending, then id descending. Cursors restore active filters and ordering without freezing a snapshot. Repeated filters must match the cursor. Callers without access receive 403; authorized callers receive 404 when trails are unavailable. Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository pull permission (contents:read for plugin installations). Other authorized automation principals can also use this operation. Trails must be enabled. Send requests to the repository’s primary API region. # Update a trail's metadata by repo id Source: https://docs.entire.com/api-reference/trails/trails/update-a-trails-metadata-by-repo-id /openapi/generated/trails.json patch /repos/{repo_id}/trails/{number} Users **Accepted credentials:** User token. Updates trail metadata via the opaque repo id path, with the same status policy and optional If-Match conditional behaviour. Use an own-account bearer token (including supported service accounts). Plugin installation tokens are not accepted for this action. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here. Requires live repository push permission and an account subject; automation principals are rejected. Trails must be enabled. Send requests to the repository’s primary API region. # Installation created Source: https://docs.entire.com/api-reference/webhooks/installation/installation-created /openapi/generated/webhooks.json webhook installation.created A customer installed the plugin on a project. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Installation deleted Source: https://docs.entire.com/api-reference/webhooks/installation/installation-deleted /openapi/generated/webhooks.json webhook installation.deleted The plugin was uninstalled from the project. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Installation repositories added Source: https://docs.entire.com/api-reference/webhooks/installation/installation-repositories-added /openapi/generated/webhooks.json webhook installation.repositories_added Repositories were added to the installation. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Installation repositories removed Source: https://docs.entire.com/api-reference/webhooks/installation/installation-repositories-removed /openapi/generated/webhooks.json webhook installation.repositories_removed Repositories were removed from the installation. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Installation updated Source: https://docs.entire.com/api-reference/webhooks/installation/installation-updated /openapi/generated/webhooks.json webhook installation.updated An installation changed. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Ref created Source: https://docs.entire.com/api-reference/webhooks/ref/ref-created /openapi/generated/webhooks.json webhook ref.created A branch or tag was created in a repository the installation covers. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Ref deleted Source: https://docs.entire.com/api-reference/webhooks/ref/ref-deleted /openapi/generated/webhooks.json webhook ref.deleted A branch or tag was deleted. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Ref updated Source: https://docs.entire.com/api-reference/webhooks/ref/ref-updated /openapi/generated/webhooks.json webhook ref.updated A branch or tag moved. A force push sets forced to true. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Trail closed Source: https://docs.entire.com/api-reference/webhooks/trail/trail-closed /openapi/generated/webhooks.json webhook trail.closed A trail was closed without a merge. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Trail merged Source: https://docs.entire.com/api-reference/webhooks/trail/trail-merged /openapi/generated/webhooks.json webhook trail.merged A trail was merged into its base. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Trail opened Source: https://docs.entire.com/api-reference/webhooks/trail/trail-opened /openapi/generated/webhooks.json webhook trail.opened A trail was opened, as a draft or ready. Opening a trail does not push a commit, so no ref event may follow. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Trail reopened Source: https://docs.entire.com/api-reference/webhooks/trail/trail-reopened /openapi/generated/webhooks.json webhook trail.reopened A closed trail was opened again. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Trail updated Source: https://docs.entire.com/api-reference/webhooks/trail/trail-updated /openapi/generated/webhooks.json webhook trail.updated An open or draft trail changed its head commit, branch, base, title, or draft state. changes names each field that changed. > [!WARNING] > > This endpoint is experimental. Its request and response formats may change. # Billing Source: https://docs.entire.com/billing Manage prepaid Agent usage credits, free trials, payment methods, and automatic top-ups. Entire bills only for Agent usage, using prepaid usage credits. You can continue using other features for free. Charges depend on the AI model tokens your Agents use. Add credit manually or enable automatic top-up to keep your Agents running. ## How Billing Works 1. **Free trial:** Each billing account receives a one-time trial credit when you set up billing with a verified card. No payment is necessary. New trials are [temporarily paused](#free-trial). 2. **Usage:** Each time your Agents run, the cost of their model tokens is deducted from your credit balance. 3. **Add credit:** When your trial credit is used up, add a card or pay with Link to buy credit. Features other than Agents stay free. 4. **Automatic top-up (optional):** Entire buys more credit when your balance falls below a threshold you choose. 5. **Zero balance:** If your balance reaches \$0, Agents stop until you add more credit. ## Billing Accounts Each personal account and organization is billed separately and has its own credit balance, trial, payment method, and invoices. Agents usage is billed to the account or organization that owns the repository. | Billing account | Who can manage billing | | - | - | | Personal account | The account owner | | Entire organization | Organization admins | | GitHub organization | Admins of the organization on GitHub | For GitHub organizations, Entire verifies admin status with GitHub. Removing someone as a GitHub admin also removes their access to the organization's billing in Entire. ## Free Trial > [!NOTE] > > Beep, boop. Due to overwhelming demand, we’ve temporarily paused free trial credits for new accounts. We will let the multiverse know as soon as possible when the trial is back. Every billing account receives a one-time trial credit of \*\*$100**. The trial ends after $100 of usage or 90 days after it starts, whichever happens first. The trial credit is granted when you set up billing in your account or organization settings with a verified credit or debit card. No payment is necessary. Trial credit is granted once per billing account, does not reset, and expires 90 days after it is granted. It has no cash value and cannot be transferred. > [!NOTE] > > [Custom agents](/guides/trails/agents#creating-a-custom-agent) require a payment method on the billing account before you can use the free trial credit. Add one under **Account > Billing** by selecting **Set up billing**. ## Add Credit You can add credit at any time. Once your trial is used up, adding a payment method and buying credit happens in a single flow. **1. Open Billing** Open **Account > Billing** for your personal account or organization. **2. Set Up Billing or Buy Credit** Select **Set up billing** if you haven't added a payment method, or **Buy credit** if billing is already set up. **3. Confirm Your Purchase** Add your credit card details or pay through your Link account, then confirm the purchase. [Set up billing and buy Agents usage credit](https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/9a70a48180156f10cca782b2b2c60f81/iframe) Credit is available immediately and expires 365 days after purchase. Stopped Agents resume automatically when you add credit. ### Update Your Payment Method Open **Account > Billing** and select **Manage card and billing details**. This opens a Stripe-hosted page and returns you to Entire when you're done. ![Account Billing page with Manage card and billing details highlighted under Payment method](https://mintcdn.com/entire/iIWTZ-0P0DyT90Aw/images/billing-payment-method.png?fit=max\&auto=format\&n=iIWTZ-0P0DyT90Aw\&q=85\&s=c236c4896affed114e9e69e6a79e7ec7) ## Automatic Top-Up Automatic top-up buys credit when your balance falls below a threshold, so Agents aren't interrupted. It's off by default. > [!NOTE] > > Automatic top-up is available only after you add a payment method. To turn it on: 1. Open **Account > Billing**. 2. Turn on **Automatic top-up**. 3. Set the threshold balance and the target balance to top up to. By default, Entire tops up to $50 when your balance falls below $10. 4. Save your changes. ![Account Billing page with the Automatic top-up section and its toggle highlighted](https://mintcdn.com/entire/iIWTZ-0P0DyT90Aw/images/billing-automatic-top-up.png?fit=max\&auto=format\&n=iIWTZ-0P0DyT90Aw\&q=85\&s=b44bde3d4774248e692e2f8c53a1fb3a) If a top-up payment fails, Agents stop until the payment succeeds or you add credit manually. ## Models and Pricing Entire offers the following models for your Agents. All prices are **USD per million tokens**, verified against official provider documentation on **October 25, 2026**. Tables show standard API rates for global processing; prompt-length exceptions are listed below. **Input** means uncached input. **Cache read** is the price for reusing cached input, and **cache write** is the price for storing input for later reuse. The write columns show different cache lifetimes. ### Anthropic | Model | Input | Output | Cache read | Cache write (5 min) | Cache write (1 hour) | | - | - | - | - | - | - | | Claude Opus 5.5 (default) | \$4.00 | \$20.00 | \$0.20 | \$5.00 | \$8.00 | | Claude Fable 5.2 | \$8.00 | \$40.00 | \$0.20 | \$10.00 | \$16.00 | | Claude Opus 5 | \$5.00 | \$25.00 | \$0.50 | \$6.25 | \$10.00 | | Claude Sonnet 5.5 | \$2.00 | \$10.00 | \$0.10 | \$2.50 | \$4.00 | | Claude Sonnet 5 | \$2.00 | \$10.00 | \$0.20 | \$2.50 | \$4.00 | | Claude Haiku 5.5 (up to 100,000 prompt tokens) | \$0.10 | \$0.50 | \$0.01 | \$0.125 | \$0.20 | | Claude Haiku 5.5 (over 100,000 prompt tokens) | \$0.50 | \$2.50 | \$0.05 | \$0.625 | \$1.00 | Haiku 5.5 counts all input tokens, including cache reads and writes, toward the 100,000-token threshold. A request above that threshold uses the higher rates for the full request. The other Claude models listed here keep standard token rates across their context windows. Anthropic's default cache lifetime is 5 minutes; 1-hour writes cost more. Reusing a cached prefix refreshes its lifetime at the cache-read rate. ### OpenAI | Model | Input | Output | Cache read | Cache write (30 min) | Cache write (12 hours) | | - | - | - | - | - | - | | GPT-6 Astra | \$10.00 | \$50.00 | \$1.00 | \$12.50 | \$25.00 | | GPT-5.6 Sol | \$4.00 | \$20.00 | \$0.40 | \$5.00 | \$10.00 | | GPT-6.1 Sol (default) | \$2.00 | \$10.00 | \$0.10 | \$2.50 | \$5.00 | | GPT-6 Sol | \$2.00 | \$10.00 | \$0.20 | \$2.50 | \$5.00 | | GPT-6.1 Terra | \$1.00 | \$5.00 | \$0.05 | \$1.25 | \$2.50 | | GPT-5.6 Luna | \$0.20 | \$1.20 | \$0.02 | \$0.25 | \$0.50 | | GPT-6 Luna | \$0.10 | \$0.50 | \$0.01 | \$0.125 | \$0.25 | For GPT-5.6 and later, the default cache-write lifetime is 30 minutes at 1.25× the uncached input rate. The Responses API also supports 12-hour writes at 2.5× input. The 12-hour prices for GPT-6 Sol and GPT-5.6 Luna above are calculated using that published multiplier. These are total write prices, not additional fees on top of uncached input. Cache-read prices are the same for both lifetimes. For all OpenAI models listed here, requests with more than 272,000 input tokens cost 2× the input rate and 1.5× the output rate for the full request. GPT-6 and GPT-6.1 models also double cache-read and cache-write rates at that threshold. Agents usage is priced at the model provider's published rates. Rates update automatically when providers change their prices. Regional processing or faster processing modes can have different prices. The cache duration used by a model call determines which write rate applies. Larger models generally cost more per run than smaller ones. The total cost also depends on how many tokens a run uses and how much input is reused from cache. ## When Your Balance Reaches Zero When your balance reaches \$0, Agents stop for that billing account in every region, and new runs do not start. Agents resume automatically once credit is added through a purchase or a successful top-up. ## Payments and Invoices Purchases and top-ups are charged to your payment method immediately through Stripe. You also receive a monthly usage invoice. It only shows an amount due if usage continued briefly after your credits reached zero and before your Agents stopped. ## Defaults and Limits | Setting | Value | | - | - | | Free trial | \$100 credit, once per billing account ([temporarily paused](#free-trial) for new accounts) | | Trial credit expiration | 90 days after issuance | | Minimum credit purchase | \$10 | | Default credit purchase | \$25 | | Purchased credit expiration | 365 days after purchase | | Automatic top-up | Off by default | | Default top-up threshold | \$10 | | Default top-up target | \$50 | | Automatic top-up monthly maximum | None | ## Limitations * Usage credits currently cover Agents model usage only. You can continue using other features for free. * Usage takes a few minutes to record, and model calls in progress are allowed to finish. A small amount of usage can therefore run past \$0. It is charged on your monthly usage invoice or covered by your next top-up. * Trial credits expire 90 days after issuance unless stated otherwise. Purchased credits expire 365 days after purchase. Both are non-refundable and non-transferable. # activity Source: https://docs.entire.com/cli-reference/activity Show your Entire activity overview from your hosted Entire account. Show your Entire activity overview from your hosted Entire account. ```bash theme={null} entire activity [flags] ``` This command loads your activity from the last month from [entire.com](https://entire.com), including: * Activity overview and aggregate stats * Repository breakdown * Recent sessions > [!NOTE] > > **Only published work appears here.** `entire activity` reads your account's activity from Entire's servers, across every repository you can see — it is not scoped to the current checkout. Work in a repository you have not [published to Entire](/guides/repositories/repository) and pushed is not included. | Flag | Description | | - | - | | `--commits` | Show recent commits instead of recent sessions | If you are not logged in, authenticate first: ```bash theme={null} entire login ``` When you run `entire activity` in an interactive terminal, it opens a richer terminal UI. In non-interactive contexts, such as piped output, or when accessibility mode is enabled with `ACCESSIBLE=1`, it falls back to a simpler static text view that works better with screen readers. ```bash theme={null} # Open the interactive activity view entire activity # Show recent commits instead of recent sessions entire activity --commits # Use simpler static output for screen readers ACCESSIBLE=1 entire activity ``` > [!NOTE] > > `entire activity` shows account-level activity from Entire, not just local repository state. # agent Source: https://docs.entire.com/cli-reference/agent Manage agent integrations in the current repository. Manage agent integrations in the current repository. ```bash theme={null} entire agent SUBCOMMAND ``` ## agent list List installed and available agents, including `antigravity` for [Antigravity CLI](/agents/antigravity). ```bash theme={null} entire agent list ``` ## agent add Install hooks for an agent. ```bash theme={null} entire agent add AGENT_NAME [flags] ``` Use this command to add an agent included with Entire or an `entire-agent-` executable that follows the [Agent Integration Protocol](/agents/agent-integration-protocol/overview). During initial repository setup, use [`entire enable --agent AGENT_NAME`](/cli-reference/enable) instead. | Flag | Description | | - | - | | `--agent-help-skill` | Install the Entire agent-help skill for the selected agent. Claude Code and Codex only; other agents are skipped. | | `--force` | Reinstall hooks even if already present | | `--search-skill` | Install the Entire search skill for the selected agent. Supported for every built-in agent except Antigravity; other agents are skipped. | See [Set Up an Agent](/agents/setup) for shared setup, hook locations, verification, and troubleshooting. ## agent remove Uninstall hooks for an agent. ```bash theme={null} entire agent remove AGENT_NAME ``` # agent-help Source: https://docs.entire.com/cli-reference/agent-help Show agent-facing usage that matches the installed Entire CLI. Show coding agents which Entire command to use and retrieve exact usage for the installed CLI. Unlike static command documentation, `agent-help` generates its output from the installed Entire binary. This helps agents avoid guessing commands or flags that may differ between CLI versions. ```bash theme={null} entire agent-help [COMMAND...] [flags] ``` With no command, `agent-help` prints a high-level map of available commands and when to use them: ```bash theme={null} entire agent-help ``` The output also identifies the repository detected from the Git remote. You do not need to provide the repository name when working in the current repository. ## Get Help for a Command Pass a command or nested command path to see its description, subcommands, and currently installed flags: ```bash theme={null} entire agent-help status entire agent-help checkpoint explain entire agent-help session resume ``` The command map only includes commands available in the current installation and repository. Commands that are deprecated, internal, or unavailable for the repository are omitted. ## Get Structured Output Use `--json` when an agent or script needs structured output: ```bash theme={null} entire agent-help --json entire agent-help checkpoint explain --json ``` The JSON response includes the command name, short and long descriptions, detected repository, subcommands, and flags when applicable. ## Flags | Flag | Description | | - | - | | `--json` | Emit structured JSON instead of text | | `--help`, `-h` | Show help for `agent-help` | > [!NOTE] > > `entire agent-help` describes the CLI installed on your machine. Use this command as the source of truth when its output differs from static documentation. # api Source: https://docs.entire.com/cli-reference/api Make an authenticated request to an Entire API and print the response. Make an authenticated HTTP request to an Entire API and print the JSON response. ```bash theme={null} entire api PATH [flags] ``` Entire selects the backend host and supplies the bearer token automatically. > [!WARNING] > > These internal endpoints may change without notice. Prefer dedicated CLI commands such as [`entire activity`](/cli-reference/activity), [`entire search`](/cli-reference/search), and [`entire repo`](/cli-reference/repo) when available. ## Choose a Backend | Value | Backend | | - | - | | `--to core` | The control plane. This is the default: orgs, repos, mirrors, clusters, and `/me`. | | `--to cell` | Your home `entire-api` cell: `/me/*` activity and repository aggregates. | Use `--jurisdiction SLUG` to reach a specific jurisdiction's cell instead of your home one. It implies `--to cell`. Find your home jurisdiction with [`entire auth status`](/cli-reference/auth#auth-status). ## Path Placeholders `PATH` is the full path on the chosen host, such as `/api/v1/clusters`. These placeholders are filled from the current repository's `origin` remote: | Placeholder | Value | | - | - | | `{owner}` | The GitHub owner, or the project for a repository hosted on Entire | | `{repo}` | The repository name | | `{repo_id}` | The repository's Entire ULID, from its mirror. Cells key on this. Only a GitHub `origin` resolves it; an `/et/` origin is refused. | ## Flags | Flag | Description | | - | - | | `-F, --field KEY=VALUE` | Add a typed parameter. `true`, `false`, `null`, and numbers are converted. Repeatable. | | `-H, --header KEY:VALUE` | Add a request header. Repeatable. | | `-i, --include` | Print the response status line and headers too. | | `--input FILE` | File containing the request body. Use `-` for standard input. | | `-j, --jurisdiction SLUG` | Target a specific jurisdiction's cell, such as `us` or `eu`, instead of your home cell. Implies `--to cell`. | | `-X, --method METHOD` | HTTP method. Defaults to `GET`, or `POST` when a field or body is given. | | `-f, --raw-field KEY=VALUE` | Add a string parameter, with no type conversion. Repeatable. | | `--to BACKEND` | Which backend to call: `core` or `cell`. Defaults to `core`. | ## Examples For a walkthrough of creating, updating, archiving, and reading results from project Agents, see [Manage Agents from the CLI](/guides/trails/agents#manage-agents-from-the-cli). ```bash theme={null} # Control plane entire api /api/v1/clusters # Your home cell entire api --to cell /api/v1/me/activity # A specific jurisdiction's cell entire api --jurisdiction eu /api/v1/me/activity # Fill the current repository's ULID into the path entire api --to cell "/api/v1/me/recap?repo={repo_id}" # POST with a string field entire api -X POST /api/v1/projects -f name=demo ``` ## Continue With > [card] [auth token](/cli-reference/auth#auth-token) > > Get the bearer token itself, for use with `curl`. > [card] [repo](/cli-reference/repo) > > Use the purpose-built commands where they exist. # auth Source: https://docs.entire.com/cli-reference/auth Manage authentication and saved login contexts. Manage authentication and saved login contexts. ```bash theme={null} entire auth SUBCOMMAND ``` ## Login Contexts A **context** is a saved login. Each one pairs a login server with an identity, and stores its tokens in your operating system's credential store. Contexts are recorded in `~/.config/entire/contexts.json`, or `$ENTIRE_CONFIG_DIR/contexts.json` when that variable is set. One context is active at a time. The active context supplies the identity for every authenticated operation: `git clone entire://…`, the control-plane commands ([`cluster`](/cli-reference/cluster), [`org`](/cli-reference/org), [`project`](/cli-reference/project), [`repo`](/cli-reference/repo)), and the data commands ([`activity`](/cli-reference/activity), [`search`](/cli-reference/search), [`dispatch`](/cli-reference/dispatch)). Entire names a new context after its login server's host. When you log in as a second identity on a host that already has a context, Entire names the new one `HANDLE@HOST` instead of replacing the first. To act as a different context for a single command, use the [`--context` global flag](/cli-reference/global-flags) instead of switching. ## auth login Authenticate with your Entire account. Equivalent to the top-level [`entire login`](/cli-reference/login). ```bash theme={null} entire auth login [flags] ``` See [`entire login`](/cli-reference/login) for the `--device` and `--server` flags. ## auth logout Sign out of your Entire account. Equivalent to the top-level [`entire logout`](/cli-reference/logout). ```bash theme={null} entire auth logout [flags] ``` It logs out of every saved context, not just the active one. See [`entire logout`](/cli-reference/logout) for the `--everywhere` flag. ## auth status Show authentication status for the active context. ```bash theme={null} entire auth status [flags] ``` The report is a verdict line and a few rows covering who you are signed in as, your home jurisdiction, where tokens are stored, and your sessions. The active context appears as its own row only when more than one login is saved. Timestamps are humanized, and `user` is shown as the provider-qualified handle you can paste into a [`grant`](/cli-reference/grant) command. Use it to find your home jurisdiction slug, which [`entire api`](/cli-reference/api) and [`entire dispatch`](/cli-reference/dispatch) accept as `--jurisdiction`. | Flag | Description | | - | - | | `--json` | Output as JSON. | | `--sessions` | Print the full session table, with the current CLI session marked. | ## auth contexts List saved login contexts and mark the active one. ```bash theme={null} entire auth contexts ``` The table shows each context's name, handle, and login server, with `(active)` in a trailing column on the one in use. This command is local only and makes no network requests. ```text theme={null} CONTEXT HANDLE LOGIN SERVER auth.entire.io octocat https://auth.entire.io (active) staging.entire.io octocat https://staging.entire.io ``` ## auth switch Switch the active login context. ```bash theme={null} entire auth switch [CONTEXT] ``` With no argument, Entire lists the saved contexts and asks which to switch to. Pass a name to switch without being asked. The switch takes effect on the next operation. It is persistent and machine-wide: it changes the identity for every shell, worktree, and background Git hook until you switch back. ```bash theme={null} entire auth switch staging.entire.io ``` ## auth token Print an Entire bearer token for use in scripts and `curl` requests. ```bash theme={null} entire auth token ``` This prints the token the CLI uses for its own API calls, which is your current login, refreshed if it is near expiry. When [`ENTIRE_TOKEN`](/cli-reference/global-flags#environment-variables) is set, it prints that token instead. If `ENTIRE_TOKEN` holds a service account secret, the command exchanges it first and prints the service account token. One token covers everything. It works against the control-plane API — orgs, repos, clusters, `/me` — and against every `entire-api` cell. ```bash theme={null} curl -H "Authorization: Bearer $(entire auth token)" \ "https://us.console.entire.io/api/v1/clusters" curl -H "Authorization: Bearer $(entire auth token)" \ "https://aws-us-east-2.api.entire.io/api/v1/me/activity" ``` Only the token goes to standard output. Errors and the not-logged-in hint go to standard error, so command substitution stays clean. > [!WARNING] > > The output is a live credential. Treat it as a secret: do not log it, commit it, or paste it into a shared transcript. > [!NOTE] > > `--jurisdiction` is removed. It minted a separate jurisdictional token for a cell's API; the plain token is now accepted there directly, so drop the flag. Passing it fails with a migration hint. ## Continue With > [card] [Global Flags](/cli-reference/global-flags) > > Act as another login for a single command with `--context`. > [card] [api](/cli-reference/api) > > Make authenticated requests without handling tokens yourself. # blame Source: https://docs.entire.com/cli-reference/blame A git-blame-style command for viewing file history with checkpoint and session context. `entire blame` is a git-blame-style command for viewing file history with checkpoint and session context. ```bash theme={null} entire blame FILE[:LINE[-LINE]] [flags] ``` Traditional `git blame` tells you which commit and Git author last touched each line. But after agent-assisted work, the Git author is often not the whole story. `entire blame` starts from the same line history, then tells you the intent behind how the code was created: the prompt that asked for it, the session it came from, and the checkpoint that saved it. [Entire blame demo](https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/ab2d696d319f2f9d1643c9e57f8132a2/iframe?muted=true\&loop=true\&autoplay=true\&poster=https%3A%2F%2Fcustomer-0x5hsk8lh27fm00g.cloudflarestream.com%2Fab2d696d319f2f9d1643c9e57f8132a2%2Fthumbnails%2Fthumbnail.jpg%3Ftime%3D%26height%3D600) Use `entire blame` when you need to review agent-assisted changes, audit a suspicious line, or find the checkpoint behind a specific change. The command works in Entire-enabled repositories and supports JSON output for scripts and tooling. ## Try it Run `entire blame` from an Entire-enabled repository, then pass the file you want to inspect. ```bash theme={null} entire blame path/to/file.ts entire blame path/to/file.ts --line 12-20 entire blame path/to/file.ts --long entire blame path/to/file.ts --json ``` `FILE:12` and `FILE:12-20` are equivalent to passing `--line`. ## Attribution Tags Each line shows the attribution status of the commit that introduced it. Tags are commit-level signals: * `AI`: the commit was attributed to an AI agent session * `MX`: the commit mixed AI-attributed and human-attributed work * `HU`: the commit was made without AI-attributed checkpoint data * `??`: the line is uncommitted When available, the output also links lines to their Entire checkpoint metadata. A line never changes tag between `entire blame` and [`entire why`](/cli-reference/why). See [What do `entire blame` and `entire why` actually tell me?](/faq#what-do-entire-blame-and-entire-why-actually-tell-me) for what these tags do and do not promise. ## Flags | Flag | Description | | - | - | | `--line LINE_OR_RANGE` | Only show a line or range, for example `12` or `12-20` | | `--long` | Show the full attribution table with agent, model, author, and session columns | | `--json` | Output attribution as JSON | ## Continue With > [card] [Investigate Why Code Exists](/learn/investigate-why-code-exists) > > Trace a surprising line from attribution to checkpoint context. > [card] [why](/cli-reference/why) > > Explain the context behind a file or line. > [card] [Introducing entire blame](https://entire.com/blog/introducing-entire-blame) > > Read the launch post on the Entire blog. # checkpoint Source: https://docs.entire.com/cli-reference/checkpoint List, explain, measure, search, and delete checkpoints. Work with checkpoints captured by Entire. ```bash theme={null} entire checkpoint SUBCOMMAND ``` `entire checkpoint` is also available as `entire cp` and `entire checkpoints`. ## checkpoint list List checkpoints on the current branch. ```bash theme={null} entire checkpoint list [flags] ``` | Flag | Description | | - | - | | `--json` | Output as JSON instead of the human view | | `--no-pager` | Disable pager output | | `--outgoing` | List the checkpoints your next `git push` sends, read locally with no network call. `git-refs` backend only | | `--pending` | List the live session's shadow-branch rewind points, plus logs-only resume points recovered from commits whose logs are already condensed, instead of condensed checkpoints | | `--session ID` | Filter checkpoints by session ID (or prefix). Not valid with `--pending` | ## checkpoint explain Show human-readable context for checkpoints, sessions, and commits. Add `--generate` for an AI-written summary. ```bash theme={null} entire checkpoint explain [CHECKPOINT_ID | COMMIT_SHA] [flags] ``` | Flag | Description | | - | - | | `-c, --checkpoint ID` | Explain a specific checkpoint (ID or prefix) | | `--commit SHA` | Explain a specific commit (SHA or ref, "commit-ish") | | `--force` | Regenerate summary even if one already exists (requires `--generate`) | | `--full` | Show full parsed transcript (all prompts/responses) | | `--generate` | Generate an AI summary for the checkpoint | | `--insecure-http-auth` | Allow plain HTTP auth for `--repo`. Local development only. | | `--json` | Output metadata as JSON. See [Machine-Readable Output](#machine-readable-output). | | `--limit N` | Cap the list view at N checkpoints. Defaults to `100`. Only meaningful with `--json`. | | `--no-pager` | Disable pager output | | `--raw-transcript` | Show raw transcript file (JSONL format) | | `--repo REPO` | A forge-qualified reference: `gh/OWNER/REPO` or `et/PROJECT/REPO`. See [Explain a Checkpoint in Another Repository](#explain-a-checkpoint-in-another-repository). | | `--search-all` | Search all commits (no branch/depth limit, may be slow) | | `--session ID` | Filter checkpoints by session ID (or prefix) | | `--session-index N` | Pick a session within a multi-session checkpoint, 0-based. Defaults to the latest. Only meaningful with `--transcript` or `--raw-transcript`. | | `-s, --short` | Show summary only (omit prompts and files) | | `--task ID` | With `--transcript`, stream a subagent's stored transcript instead, selected by `tool_use_id` or `agent_id` as listed under `tasks` in `--json`. | | `--summary-timeout-seconds N` | Hard deadline in seconds for `--generate`. Overrides the `summary_timeout_seconds` setting. `0` uses the setting; if that is also unset, no automatic deadline applies. | | `--transcript` | Stream stored checkpoint transcript bytes (JSONL) to stdout: a session's, or a subagent's with `--task` | > [!NOTE] > > The `--generate` flag requires the configured provider CLI, such as Claude CLI, to be installed and authenticated. ### Machine-Readable Output `--json` emits metadata only. With no target it lists checkpoints; with a target it emits a single checkpoint envelope, including its subagent task records under `tasks` and the full session token breakdown (`subagent_tokens`, `subagent_tokens_complete`, `api_call_count`). Transcript bytes are never embedded in that envelope. To get the transcript itself, use `--transcript`, which streams the stored checkpoint transcript bytes to standard output: ```bash theme={null} entire checkpoint explain 01KVBJCW --json entire checkpoint explain 01KVBJCW --transcript > session.jsonl entire checkpoint explain 01KVBJCW --transcript --session-index 0 > first-session.jsonl entire checkpoint explain 01KVBJCW --transcript --task TOOL_USE_ID > subagent.jsonl ``` ### Explain a Checkpoint in Another Repository `--repo` reads a checkpoint owned by a different repository through that repository's Entire API. It takes a forge-qualified reference — `gh/OWNER/REPO` or `et/PROJECT/REPO`, or a full `entire://` URL — and refuses a bare `owner/repo`. This is the drill-down for a cross-repo [`entire search`](/cli-reference/search) hit. Nothing is written to the current repository. ```bash theme={null} entire checkpoint explain CHECKPOINT_ID --repo gh/owner/name ``` This needs the full checkpoint ID, passed positionally or with `--checkpoint`, and a checkpoint that has been pushed. ## checkpoint tokens Show token usage and optimization recommendations for a checkpoint. ```bash theme={null} entire checkpoint tokens CHECKPOINT_ID [flags] ``` | Flag | Description | | - | - | | `--agent-brief` | Output compact next-step guidance for agents | | `--compare ID` | Compare against a baseline checkpoint ID | | `--json` | Output as JSON | `--json` and `--agent-brief` are mutually exclusive. The report resolves its target through the same path as `checkpoint explain`: an unambiguous checkpoint ID prefix, or a commit-ish carrying an `Entire-Checkpoint` trailer. Metadata missing locally is fetched from the checkpoint remote. ```bash theme={null} entire checkpoint tokens 01KVBJCW entire checkpoint tokens 01KVBJCW --compare 01KVBK7Q entire checkpoint tokens 01KVBJCW --json ``` ## checkpoint delete Delete one checkpoint from this repository and from every checkpoint remote that holds it. ```bash theme={null} entire checkpoint delete CHECKPOINT_ID [flags] ``` The full checkpoint ID is required; prefixes are not accepted. Deleting from a remote cannot be undone. Without `--force`, the command asks for confirmation and refuses when it cannot prompt. | Flag | Description | | - | - | | `--dry-run` | Print what would be deleted without changing anything | | `-f`, `--force` | Delete without asking for confirmation | | `--json` | Output as JSON | | `--local-only` | Delete only the local copy; leave every remote untouched | | `--remote REMOTE` | Limit remote deletion to this remote; the local copy is still deleted. Repeatable. `checkpoint_remote` names the dedicated checkpoint remote | > [!WARNING] > > Deleting a checkpoint is not a full purge. Other checkpoints from the same session are listed but not deleted, and each one carries the session's full transcript, so the session stays visible on entire.com while any of them remain. On the legacy `entire/checkpoints/v1` branch, the checkpoint is removed from the branch tip only, and the branch's history still contains it. On the `git-branch` backend, a local removal reaches the sync remote on the next `git push`, so `--local-only` (or a `--remote` selection that leaves that remote out) is refused while it holds a copy or cannot be reached. With `push_sessions` disabled the removal is not pushed, but re-enabling it later pushes it. ```bash theme={null} entire checkpoint delete 01KVBJCWQ1A2B3C4D5E6F7G8H9 --dry-run entire checkpoint delete 01KVBJCWQ1A2B3C4D5E6F7G8H9 entire checkpoint delete 01KVBJCWQ1A2B3C4D5E6F7G8H9 --remote origin --force ``` ## checkpoint search Search checkpoints using semantic and keyword matching. ```bash theme={null} entire checkpoint search [QUERY] [flags] ``` `entire checkpoint search` is an alias for [`entire search`](/cli-reference/search). See that page for the [flags](/cli-reference/search#flags), inline filters, code search, and the interactive result view. # clean Source: https://docs.entire.com/cli-reference/clean Clean up Entire session data. Clean up Entire session data. ```bash theme={null} entire clean [flags] ``` | Flag | Description | | - | - | | `-a, --all` | Clean all Entire session data across the repository | | `-d, --dry-run` | Show what would be cleaned without actually deleting | | `-f, --force` | Skip confirmation and override the active-session guard | | `--session ID` | Clean a specific session by ID | By default, `entire clean` removes session data for the current `HEAD` commit: * Session state files for sessions based on the current commit * The shadow branch for the current commit and worktree Use `--session ID` to clean a single session. This removes the session state and deletes its shadow branch if no other session still needs it. File changes remain in your working directory. Use `--all` to clean Entire session data across the repository: * All session state files in `.git/entire-sessions/` * All shadow branches * Temporary files in `.entire/tmp/` Committed checkpoint data is preserved: the refs under `refs/entire/checkpoints/`, or the `entire/checkpoints/v1` branch in repositories that use the legacy branch backend. ```bash theme={null} # Preview cleanup for the current HEAD entire clean --dry-run # Clean one session entire clean --session 2026-02-02-test123 --force # Clean all session data in the repository entire clean --all --force ``` > [!NOTE] > > `entire reset` has been removed. Use `entire clean` instead, or `entire clean --all` for repository-wide cleanup. # cluster Source: https://docs.entire.com/cli-reference/cluster Show the Entire clusters you can place projects and repositories on. Show the Entire clusters you can place projects and repos on. ```bash theme={null} entire cluster SUBCOMMAND ``` A cluster is one regional EntireDB deployment. Clusters are where [repositories](/cli-reference/repo) are provisioned and where [mirror placements](/guides/repositories/mirrors) live, and their public hosts are what `--cluster` accepts elsewhere in the CLI. ## cluster list List the clusters Entire has available. ```bash theme={null} entire cluster list [flags] ``` The table shows three columns, each a value another command takes: `REGION` is the jurisdiction slug [`entire org create --region`](/cli-reference/org) and [`entire project create --region`](/cli-reference/project) name, `CLUSTER` is the cluster's placement slug, and `HOST` is what every `--cluster` flag takes, including the [`entire repo mirror list --cluster`](/cli-reference/repo#entire-repo-mirror-list) filter. A `DEFAULT` column appears only when some cluster is not its region's default. It marks the default within each region, not one global default. Pass the `HOST` value — such as `aws-us-east-2.entire.io`, not the region or slug — to [`entire repo mirror add --cluster`](/cli-reference/repo#entire-repo-mirror-add), [`entire repo mirror list --cluster`](/cli-reference/repo#entire-repo-mirror-list), [`entire repo clone --cluster`](/cli-reference/repo#entire-repo-clone), and [`entire repo remote add --cluster`](/cli-reference/repo#entire-repo-remote-add). [`entire auth status`](/cli-reference/auth#auth-status) shows your home jurisdiction. ```bash theme={null} entire cluster list entire cluster list --json ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | ## Continue With > [card] [repo](/cli-reference/repo) > > Create repositories and mirror placements on a cluster. > [card] [Mirrors](/guides/repositories/mirrors) > > Understand how regional placements work. # completion Source: https://docs.entire.com/cli-reference/completion Generate a shell completion script for the Entire CLI. Generate the autocompletion script for `entire` for the specified shell. ```bash theme={null} entire completion SHELL ``` | Shell | Command | | - | - | | Bash | `entire completion bash` | | Zsh | `entire completion zsh` | | Fish | `entire completion fish` | | PowerShell | `entire completion powershell` | Each subcommand prints a script to stdout. Run `entire completion SHELL --help` for the shell-specific instructions on where to load it. For Bash and Zsh, the quickest option is to source it from your shell profile: ```bash theme={null} source <(entire completion zsh) ``` See [Shell Completion](/installation#shell-completion) in the installation guide for profile snippets. ## Continue With > [card] [Installation](/installation) > > Install and update the Entire CLI. > [card] [Global Flags](/cli-reference/global-flags) > > Flags every command accepts. # configure Source: https://docs.entire.com/cli-reference/configure Update non-agent Entire settings in the current repository, such as telemetry, Git hook installation mode, strategy options, and the summary provider. Update non-agent Entire settings in the current repository: telemetry, Git hook installation mode, strategy options, and the summary provider. Agent hook installation is handled by [`entire agent`](/cli-reference/agent). Running `entire configure` with no flags prints its help. ```bash theme={null} entire configure [flags] ``` | Flag | Description | | - | - | | `--absolute-git-hook-path` | Embed full binary path in Git hooks. Required for GUI Git clients that don't source shell profiles. See [GUI Git Clients](/guides/configuration/git-hooks#gui-git-clients). | | `--checkpoint-backend BACKEND` | Set checkpoint storage to `refs` (one Git ref per checkpoint) or `branch` (one shared branch). | | `--checkpoint-remote PROVIDER:OWNER/REPO` | Push checkpoint data to a separate repository. `PROVIDER` is `github` or `gitlab`, as in `github:org/checkpoints-private`. See [Checkpoint Remote](/guides/checkpoints/store-checkpoints-in-another-repo). | | `-f, --force` | Force reinstall the Entire Git hook | | `--local` | Write settings to `.entire/settings.local.json` instead of `.entire/settings.json` | | `--project` | Write settings to `.entire/settings.json` even if it already exists | | `--skip-push-sessions` | Disable automatic pushing of session logs on Git push | | `--summarize-model MODEL` | Set the model hint used by `checkpoint explain --generate` | | `--summarize-provider PROVIDER` | Set the provider used by `checkpoint explain --generate`. Requires an installed agent that supports text generation. | | `--summarize-timeout-seconds N` | Set the hard deadline in seconds for `checkpoint explain --generate`. `0` clears the setting, leaving summary generation unbounded. | | `--telemetry` | Enable anonymous usage analytics (default: true) | Use `entire agent remove NAME` to uninstall hooks for a specific agent. # disable Source: https://docs.entire.com/cli-reference/disable Disable Entire in a repository. Hooks stay installed but exit silently, so session capture stops while existing session data is preserved. Disable Entire in a repository. Hooks stay installed but exit silently, so session capture stops while existing session data is preserved. Commands show a disabled message. ```bash theme={null} entire disable [flags] ``` | Flag | Description | | - | - | | `--force` | Skip confirmation prompt (use with `--uninstall`) | | `--local` | Update `.entire/settings.local.json`. This is the default. | | `--project` | Update `.entire/settings.json` instead of `.entire/settings.local.json` | | `--uninstall` | Completely remove Entire from this repository: `.entire/`, Git hooks, agent hooks, session state, and shadow branches | > [!NOTE] > > Disabling Entire does not delete your session history. You can re-enable at any time with `entire enable`. Use `--uninstall` to completely remove Entire from the repository. # dispatch Source: https://docs.entire.com/cli-reference/dispatch Generate a dispatch summarizing recent agent work. Generate a dispatch summarizing recent agent work. ```bash theme={null} entire dispatch [flags] ``` `entire dispatch` has two modes: * **Cloud mode** (default) generates a dispatch from Entire server data * **Local mode** (`--local`) generates a dispatch from local repository data using your locally installed agent CLI Cloud mode carries the requirement below, and covers repositories placed in exactly one jurisdiction — the cell for that jurisdiction generates the dispatch. Local mode reads the repository on disk instead, so it works without a published repository. > [!NOTE] > > **Requires a published repository.** Entire answers this from its own servers rather than from your local clone, so the repository must be published somewhere Entire can reach and its checkpoints pushed. > > Publish by [creating a repository on Entire](/guides/repositories/repository) or by [mirroring a GitHub repository](/guides/repositories/mirrors), then `git push`. `entire enable` does not create or push to a remote for you. > > Your work becomes available shortly after it reaches Entire, so give a recent push a couple of minutes before treating a missing result as a problem. If you run `entire dispatch` with no flags in an interactive terminal, Entire launches a guided wizard. In non-interactive contexts, or whenever you provide flags, it prints markdown output directly. | Flag | Description | | - | - | | `--local` | Generate via the locally installed agent CLI instead of the Entire server | | `--since TIME` | Start of the time window. Accepts Go durations, relative times, or ISO dates. Defaults to `7d`. | | `--until TIME` | End of the time window. Defaults to now. | | `--all-branches` | Include every existing local branch. Only valid with `--local`. | | `--repos REPO` | Limit cloud dispatch to up to 5 repositories, comma-separated. Each is forge-qualified: `gh/OWNER/REPO` or `et/PROJECT/REPO`. | | `--voice PRESET_OR_TEXT` | Customize the dispatch tone with a preset such as `neutral` or `marvin`, or provide your own text. | | `--agent NAME` | Local text-generation agent to use. Only valid with `--local`. | | `-j, --jurisdiction SLUG` | Jurisdiction whose cell generates the cloud dispatch, such as `us` or `eu`. Defaults to your home jurisdiction. | Use cloud mode when you want a dispatch from Entire-tracked repo data: ```bash theme={null} # Default dispatch for recent work in the current repo entire dispatch # Limit cloud dispatch to specific repos entire dispatch --repos gh/entireio/cli,et/myproject/service ``` Use local mode when you want a dispatch from local repository history: ```bash theme={null} # Local dispatch from the current branch entire dispatch --local # Local dispatch across all local branches entire dispatch --local --all-branches ``` You can also customize the dispatch voice: ```bash theme={null} entire dispatch --voice neutral ``` > [!NOTE] > > `--repos` cannot be combined with `--local`, and `--all-branches` only applies to `--local`. > [!NOTE] > > Cloud dispatch supports up to 5 repositories per request, and each must be forge-qualified as `gh/OWNER/REPO` or `et/PROJECT/REPO`. A bare `owner/repo` is refused. ## Jurisdictions A cloud dispatch covers repositories placed in exactly one jurisdiction, and is generated by that jurisdiction's cell. Without `--jurisdiction`, Entire uses your home jurisdiction, which [`entire auth status`](/cli-reference/auth#auth-status) reports. A repository mirrored only elsewhere is reported as not found in your home jurisdiction. Pass `--jurisdiction SLUG` to target the jurisdiction the repository is actually placed in: ```bash theme={null} entire dispatch --repos gh/entirehq/ferrata --jurisdiction us ``` # doctor Source: https://docs.entire.com/cli-reference/doctor Diagnose session, log, and hook problems in a repository, and offer to fix them. Diagnose problems in the current repository and offer to fix them. ```bash theme={null} entire doctor [flags] ``` | Flag | Description | | - | - | | `-f, --force` | Fix all issues without prompting (condense if possible, otherwise discard) | ## What Doctor Checks | Check | What it reports | | - | - | | Disconnected metadata branches | The local and remote `entire/checkpoints/v1` branches share no common ancestor. Doctor fixes this by cherry-picking local checkpoints onto the remote tip. | | Operational logs | Entire cannot write to `.entire/logs`, so diagnostics may be missing. | | Codex hook trust | Installed Codex hooks lack a `trusted_hash` entry in your Codex config. Review and approve them with `/hooks` in Codex. | | Hook config drift | Installed agent hooks differ from the current CLI configuration. Run `entire enable --force` to reinstall them. | | Stuck sessions | See [Stuck Sessions](#stuck-sessions) below. | ## Stuck Sessions A session is considered stuck if: * It is in ACTIVE phase with no interaction for over 1 hour * It is in ENDED phase with uncondensed checkpoint data on a shadow branch For each stuck session, you can choose to: * **Condense**: Save session data to permanent [checkpoint storage](/guides/checkpoints/checkpoint-storage) * **Discard**: Remove the session state and shadow branch data * **Skip**: Leave the session as-is Without a terminal to prompt on, such as an agent or CI, `entire doctor` reports each issue and points at `--force` instead of prompting. ## doctor migrate-checkpoints Convert the checkpoints on the `entire/checkpoints/v1` branch into per-checkpoint refs under `refs/entire/checkpoints//`, the layout the ref-based backend uses. ```bash theme={null} entire doctor migrate-checkpoints [flags] ``` | Flag | Description | | - | - | | `--dry-run` | Report what would be migrated without writing refs | | `--remote NAME` | Remote to push migrated refs to. Defaults to the checkpoint sync remote | Each checkpoint keeps its 12-character hex ID as the ref name, and its current tree is wrapped in a fresh commit. The command does not remap the existing branch commits and does not delete the branch. It skips checkpoints it has already converted, so re-running it after more branch activity is safe. Run it while the branch backend is still primary. Once `checkpoints.primary.type` is `git-refs`, the command reports that there is nothing to migrate and exits, because the refs are authoritative at that point. New refs are queued for push. Run interactively, the command asks whether to push them now. Run without a terminal, it leaves them queued, and they flush on the next `git push` once the ref-based backend is primary. > [!NOTE] > > Migration is optional. See [Both Backends Stay Readable](/guides/checkpoints/checkpoint-storage#both-backends-stay-readable) for how readers resolve branch-backed checkpoints after a switch. ## doctor logs Show recent operational logs. ```bash theme={null} entire doctor logs [flags] ``` | Flag | Description | | - | - | | `-f, --follow` | Stream new log lines as they are written | | `--tail N` | Show the last N lines. Use `0` for all. Defaults to `100`. | ## doctor bundle Produce a diagnostic bundle for bug reports. ```bash theme={null} entire doctor bundle [flags] ``` | Flag | Description | | - | - | | `-o, --out PATH` | Path to write the bundle archive. Defaults to the OS temp directory. | | `--raw` | Skip secret redaction. Use only when support has asked for an unredacted bundle. | ## doctor trace Show hook performance traces for debugging slow Git operations. ```bash theme={null} entire doctor trace [flags] ``` | Flag | Description | | - | - | | `--hook TYPE` | Filter by hook type, such as `post-commit`, `prepare-commit-msg`, or `pre-push` | | `--json` | Output as JSON | | `--last N` | Show the last N hook invocations. Defaults to `1`. | | `--slow` | Only include traces flagged slow, meaning those logged at WARN | | `--summary` | Aggregate across traces instead of showing each one, reporting which step dominates per hook. Uses `--last 200` unless you set `--last`. | ```bash theme={null} # The most recent hook trace entire doctor trace # The last five post-commit traces entire doctor trace --last 5 --hook post-commit # Which step dominates, across the slow traces only entire doctor trace --summary --slow ``` Hooks that take 1.5 seconds or longer are traced by default, at WARN level, so a slow hook records its own breakdown with no configuration. Set `ENTIRE_PERF_SLOW_MS=0` to turn that off. A `log_level` above WARN also hides them. > [!NOTE] > > To trace every hook, including fast ones, raise verbosity: set `ENTIRE_LOG_LEVEL=debug` in your shell profile, or add `"log_level": "debug"` to `.entire/settings.local.json`. # enable Source: https://docs.entire.com/cli-reference/enable Initialize Entire in a Git repository. This installs the necessary Git hooks to capture AI coding sessions. Initialize Entire in a Git repository. This installs the necessary Git hooks to capture AI coding sessions. ```bash theme={null} entire enable [flags] ``` If Entire is not yet configured, this runs the full configuration flow. If Entire is already configured but disabled, this re-enables it. In a directory that is not a Git repository, see [Bootstrap a New Repository](#bootstrap-a-new-repository). ## Flags | Flag | Description | | - | - | | `--absolute-git-hook-path` | Embed full binary path in Git hooks. Required for GUI Git clients that don't source shell profiles. See [GUI Git Clients](/guides/configuration/git-hooks#gui-git-clients). | | `--agent NAME` | Agent to set up hooks for: [`antigravity`](/agents/antigravity), `claude-code`, `codex`, `opencode`, `cursor`, `copilot-cli`, `factoryai-droid`, `pi`, or an `entire-agent-` executable that follows the [Agent Integration Protocol](/agents/agent-integration-protocol/overview). Runs without prompts. | | `--agent-help-skill` | Install the Entire agent-help Skill, which points agents at [`entire agent-help`](/cli-reference/agent-help), for the selected agents. Claude Code and Codex only; other agents are skipped. | | `--checkpoint-backend BACKEND` | Set checkpoint storage to `refs` (one Git ref per checkpoint) or `branch` (one shared branch). A first-time setup uses `refs` when you omit the flag. | | `--checkpoint-push-remote NAME` | Git remote that receives checkpoint uploads. Saved to `.entire/settings.local.json`, even with `--project`. Mutually exclusive with `--checkpoint-remote`. Without it, Entire asks which remote to use only during first-time interactive setup, without `--agent`, and only when more than one remote is eligible; `--yes`, `--skip-push-sessions`, and `--checkpoint-remote` skip the question and leave automatic election in place. | | `--checkpoint-remote PROVIDER:OWNER/REPO` | Push checkpoint data to a separate repository. `PROVIDER` is `github` or `gitlab`, as in `github:org/checkpoints-private`. See [Checkpoint Remote](/guides/checkpoints/store-checkpoints-in-another-repo). | | `-f, --force` | Force reinstall hooks (removes existing Entire hooks first) | | `--import-history` | During first-time setup, import the selected agents' existing session history from the last 30 days without prompting. See [`entire import`](/cli-reference/import). | | `--local` | Write settings to `.entire/settings.local.json` instead of `.entire/settings.json`. | | `--project` | Write settings to `.entire/settings.json` even if it already exists | | `--search-skill` | Install the Entire search Skill for the selected agents. Supported for every built-in agent except Antigravity; other agents are skipped. See [`entire search`](/cli-reference/search). | | `--skip-push-sessions` | Disable automatic pushing of session logs on Git push | | `--telemetry` | Enable anonymous usage analytics (default: true) | | `-y, --yes` | Accept defaults without prompting. Useful for automation, CI, and bootstrap flows. | Use `--yes` for non-interactive setup flows: ```bash theme={null} # Non-interactive setup for a specific agent entire enable --yes --agent claude-code # Non-interactive setup using default choices entire enable --yes ``` To add another agent after initial setup, run [`entire agent add AGENT_NAME`](/cli-reference/agent#agent-add). `--yes` is not just a confirmation bypass. It runs `entire enable` non-interactively with default choices. On a fresh repository, it enables the default setup without prompts. On an already configured repository, it follows the setup-management path. Outside a Git repository, it also accepts the bootstrap defaults to initialize Git and create the initial commit. Important behavior: * If you also pass `--agent NAME`, that explicit agent selection takes precedence over the default multi-agent behavior. * If you pass `--telemetry=false`, or set `ENTIRE_TELEMETRY_OPTOUT`, that explicit telemetry opt-out still overrides the `--yes` default. * `--yes` does not import existing agent history. Add `--import-history` when you want the last 30 days of transcripts imported too. > [!NOTE] > > The `--local` and `--project` flags control which Entire settings file is modified. Entire always modifies the agent's **project** settings (e.g., `.agents/hooks.json`, `.claude/settings.json`, `.opencode/plugins/entire.ts`, `.factory/settings.json`, or `.pi/extensions/entire/index.ts`). ## Bootstrap a New Repository When run outside a Git repository, `entire enable` offers to initialize one and make the initial commit. It never creates or pushes to a remote, so publish the repository yourself when you are ready. Until you do, the commands that read from Entire's servers — [`search`](/cli-reference/search), [`activity`](/cli-reference/activity), [`experts`](/cli-reference/experts), and cloud [`dispatch`](/cli-reference/dispatch) — have nothing to return. Publish by [creating an Entire repository](/guides/repositories/repository) or [mirroring a GitHub repository](/guides/repositories/mirrors). Use these flags for non-interactive setup: | Flag | Description | | - | - | | `--init-repo` | Initialize a Git repository non-interactively when the directory is not one. | | `--no-init-repo` | Exit instead of prompting to initialize a repository. | | `--initial-commit-message MESSAGE` | Commit message for the initial commit. | | `--skip-initial-commit` | Don't create the initial commit. | ```bash theme={null} # Initialize a repository and commit, without prompts entire enable --init-repo --agent claude-code # Initialize with your own first commit message entire enable --init-repo --initial-commit-message "Start project" --agent claude-code # Fail rather than prompt when this isn't a repository entire enable --no-init-repo ``` # experts Source: https://docs.entire.com/cli-reference/experts Rank agents, Skills, and tools by their contributions to a file, directory, or topic. Rank agents, Skills, and tools by their contributions to a file, directory, or topic. ```bash theme={null} entire experts [SCOPE_OR_QUERY] [flags] ``` `entire experts` is experimental and appears under [labs](/cli-reference/labs) while the workflow is still being refined. > [!NOTE] > > **Requires a published repository.** Entire answers this from its own servers rather than from your local clone, so the repository must be published somewhere Entire can reach and its checkpoints pushed. > > Publish by [creating a repository on Entire](/guides/repositories/repository) or by [mirroring a GitHub repository](/guides/repositories/mirrors), then `git push`. `entire enable` does not create or push to a remote for you. > > Your work becomes available shortly after it reaches Entire, so give a recent push a couple of minutes before treating a missing result as a problem. ## Inputs The argument is either a single scope, meaning a file or directory path, or a natural-language query. One of the two is required unless you pass `--staged`, which uses your staged file paths as the scopes instead. ## Flags | Flag | Description | | - | - | | `--branch NAME` | Branch to inspect. | | `--json` | Print JSON. | | `--limit N` | Maximum profiles to return, from 1 to 20. Values above 20 are clamped. Defaults to `8`. | | `--repo REPO` | Repository to inspect, as `OWNER/REPO`, `gh/OWNER/REPO`, or a repository ULID. An `et/` reference is refused. | | `--staged` | Use staged file paths as the scopes. | | `--tui` | Browse provenance in an interactive viewer. Requires a terminal. | ## Examples ```bash theme={null} # Provenance for a directory entire experts src/payments --json # Provenance for a natural-language query entire experts "who owns token refresh" # Provenance for what you are about to commit entire experts --staged ``` > [!NOTE] > > `entire experts` looks the repository up as a [mirrored](/guides/repositories/mirrors) GitHub repository, so a repository created on Entire is not found by name. ## Continue With > [card] [blame](/cli-reference/blame) > > See per-line attribution for a single file. > [card] [why](/cli-reference/why) > > Explain the context behind a file or line. # Global Flags Source: https://docs.entire.com/cli-reference/global-flags Shared flags and environment variables, plus the root-only version flag. These flags are available on the root command and on every subcommand: | Flag | Description | | - | - | | `--context NAME` | Act as this saved login for this command only, instead of the active context. It propagates to the Git and agent processes the command spawns. Run [`entire auth contexts`](/cli-reference/auth#auth-contexts) to list the names. | | `--help`, `-h` | Show help for `entire` or any subcommand | ```bash theme={null} # Run one command as another saved login entire --context staging activity ``` `--context` does not change the active context. To switch it persistently, use [`entire auth switch`](/cli-reference/auth#auth-switch). Entire passes the selection to child processes through `ENTIRE_CONTEXT`, so a spawned `git clone` or agent uses the same login. An unknown context name is rejected before any child runs. `--context` does not reach plugin commands such as [`entire investigate`](/cli-reference/investigate) or [`entire graph`](/cli-reference/graph). Set `ENTIRE_CONTEXT` in the environment for those. ## Version Flag `--version` (`-v`) is available only on the root command. Use `entire --version` or [`entire version`](/cli-reference/version) to show build information. ## Environment Variables | Variable | Description | | - | - | | `ACCESSIBLE` | Set to any value to enable accessibility mode. Entire uses simpler text prompts instead of interactive terminal UI, which works better with screen readers. | | `ENTIRE_CONTEXT` | Act as this saved login for a shell or a single Git operation. The environment-variable equivalent of `--context`. | | `ENTIRE_TOKEN` | Use this token or service account secret instead of a saved login. For example, a login token from [`entire auth token`](/cli-reference/auth#auth-token) or a [service account secret](/guides/configuration/service-accounts#sign-in-with-a-secret). | ```bash theme={null} # Use a saved login for one Git operation ENTIRE_CONTEXT=staging git push # Use simpler static output for screen readers ACCESSIBLE=1 entire activity ``` See [Logging and Diagnostics](/guides/configuration/logging-and-diagnostics) for the variables that control log level and diagnostics. # grant Source: https://docs.entire.com/cli-reference/grant Manage Entire access grants and organization membership. Manage Entire access grants and organization membership. ```bash theme={null} entire org grant COMMAND entire project grant COMMAND entire repo grant COMMAND ``` Grants are managed at three levels, each under the command for the thing it governs: membership in an [organization](/cli-reference/org), access to a [project](/cli-reference/project), and access to a [repository](/cli-reference/repo). A **grantee** is addressed as a provider-qualified handle, such as `github:alice`, and nothing else. An account ULID is refused, including by `remove`. Orgs and projects are addressed by name or ULID, and repositories by their `/et/PROJECT/REPO` path. Omit the grantee on a terminal and most of these offer an interactive multi-select of candidates, with a role per grantee for `add`. `entire org grant add` is the exception: it always requires the grantee. `add` and `list` accept `--json` to print raw JSON instead of a table. `remove` does not. > [!NOTE] > > Access to a [GitHub mirror](/guides/repositories/mirrors) follows GitHub collaborator permissions and updates when GitHub reports a change, rather than being managed with these commands. `entire repo grant list` reads a mirror's access with a `/gh/` reference, but `add` and `remove` take `/et/` references only. See [Mirror Access and Permissions](/guides/repositories/mirror-access-and-permissions). ## entire org grant Manage organization membership. ### `entire org grant add` Grant a user org access. ```bash theme={null} entire org grant add ORG GRANTEE [flags] ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | | `--role ROLE` | Org role: `owner`, `admin`, or `member`. Defaults to `member`. | ```bash theme={null} entire org grant add acme github:alice --role admin ``` ### `entire org grant list` List who has org access. ```bash theme={null} entire org grant list ORG [flags] ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | ### `entire org grant remove` Revoke a user's org access. ```bash theme={null} entire org grant remove ORG [GRANTEE] ``` ```bash theme={null} entire org grant remove acme github:alice ``` ## entire project grant Manage project access. ### `entire project grant add` Grant a user project access. ```bash theme={null} entire project grant add PROJECT [GRANTEE] --role ROLE [flags] ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | | `--role ROLE` | Project role: `reader`, `writer`, or `admin`. Required, though Entire asks for it if you omit it on a terminal. | ```bash theme={null} entire project grant add widgets github:alice --role writer ``` ### `entire project grant list` List who has project access. ```bash theme={null} entire project grant list PROJECT [flags] ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | ### `entire project grant remove` Revoke a grantee's project access. ```bash theme={null} entire project grant remove PROJECT [GRANTEE] ``` ```bash theme={null} entire project grant remove widgets github:alice ``` ## entire repo grant Manage repository access. The repository is addressed by its `/et/PROJECT/REPO` path. ### `entire repo grant add` Grant a user repo access. Takes an `/et/PROJECT/REPO` reference; a mirror's access is managed on GitHub. ```bash theme={null} entire repo grant add REPO [GRANTEE] --role ROLE [flags] ``` Omit `GRANTEE` on a terminal to choose from the members of the owning org who do not have repo access yet, and set a role for each. | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | | `--role ROLE` | Repo role: `reader`, `writer`, or `admin`. Required, though Entire asks for it if you omit it on a terminal. | ```bash theme={null} entire repo grant add /et/acme/web github:alice --role writer ``` ### `entire repo grant list` List who can reach a repository. This one answers for both forges. ```bash theme={null} entire repo grant list REPO [flags] ``` An `/et/PROJECT/REPO` reference lists the repository's grants: each grantee, their `reader`, `writer`, or `admin` role, and whether the grant is held on the repository itself or inherited. A `/gh/OWNER/REPO` reference lists who can pull the mirror. That access follows the upstream GitHub repository and is read-only here. The check runs live against your own GitHub identity, so you must be a current admin of the upstream repository or the owner of a personal one. Run it as yourself rather than with a service-account token. ```bash theme={null} entire repo grant list /et/acme/web entire repo grant list /gh/acme/widget ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. Every row carries `granteeId`, `role`, and `source`, plus `granteeName` when a name resolved, so one script reads either forge. A mirror's rows carry no `granteeType`, because that endpoint reports no grantee kind. | ### `entire repo grant remove` Revoke a grantee's repo access. Takes an `/et/PROJECT/REPO` reference. ```bash theme={null} entire repo grant remove REPO [GRANTEE] ``` ```bash theme={null} entire repo grant remove /et/acme/web github:alice ``` ## Continue With > [card] [repo edit](/cli-reference/repo#entire-repo-edit) > > Make a repository readable by all authenticated Entire users. > [card] [Mirror Access and Permissions](/guides/repositories/mirror-access-and-permissions) > > Understand GitHub-synced access for mirrors. # entire-graph Source: https://docs.entire.com/cli-reference/graph Search and analyze your codebase from the Entire CLI. entire-graph is an installable [plugin](/cli-reference/plugin) for the [Entire CLI](/cli-reference) that gives your coding agent a map of your codebase. It helps your agent find the right code, understand how it connects, and see what a change could affect before it starts editing. Install entire-graph before running `entire graph`: ```bash theme={null} entire plugin install graph ``` Then run entire-graph commands with: ```bash theme={null} entire graph COMMAND [flags] ``` Run `entire graph help` to see every command in your installed version, and `entire graph COMMAND --help` for command-specific flags. Pass `--repo .` when you run these outside an Entire session. ## graph setup Write `.entire/agent-guide.md`, add managed blocks to `AGENTS.md` and `CLAUDE.md`, and register the Claude Code SubagentStart hook in the per-user `.claude/settings.local.json` (skip the hook with `--no-claude-hook`). Replaces the removed `init-agents` command. ```bash theme={null} entire graph setup [--repo PATH] [--strict | --normal] [--no-claude-hook] ``` See [Install and Enable entire-graph](/guides/graph/set-up-graph) for the complete setup workflow. ## graph agent-guide Print the coding-agent guide that `setup` installs. ```bash theme={null} entire graph agent-guide ``` ## graph index Build a committed-tree cache before running a batch of `--head` queries. The default profile is `full`. ```bash theme={null} entire graph index --repo . [flags] ``` ## graph capabilities Report supported languages, parsing coverage, relation types, and features as JSON. ```bash theme={null} entire graph capabilities --json ``` ## graph query Return ranked source regions for a plain-language description of a task or bug. ```bash theme={null} entire graph query --repo . --profile full --query "token refresh returns 401" ``` You can also pass the text as the final argument instead of using `--query`: ```bash theme={null} entire graph query --repo . --format text "token refresh returns 401" ``` Query reads the working tree by default, so results include uncommitted changes. Use `--head` to search the committed tree instead. Results fit within a byte budget. Top results include full function bodies, while later results may contain only locations. Use `--max-context-bytes` to change the total. | Flag | Description | | - | - | | `--query TEXT` | The task or bug in one plain sentence. Required unless you pass the text as the final argument. | | `--top-k N` | Number of results. Default is `10`. | | `--format text\|json\|ndjson\|agent` | Default is `json`. `text` is tiered for reading, `agent` is compact. | | `--profile syntax-only\|fast\|full` | Parsing depth. Default is `fast`, but the installed agent guide asks for `full`, which activates the call graph. | | `--deep` | Also run the exhaustive BM25 pass and fuse it in. Slower, and reads every eligible file. | | `--head` | Search the committed tree instead of the working tree. | | `--max-context-bytes N` | Output byte budget. `0` removes the bound. Default is `24576`. | Each result includes a `signals` array that explains why it ranked, such as `path`, `body`, `symbol-name`, or `graph:callers`. ## graph impact Show callers, callees, type consumers, data flows, related files, and same-container symbols for one symbol. ```bash theme={null} entire graph impact --repo . --symbol Router.Match ``` Impact reads the working tree by default. Use `--head` to inspect the committed tree instead. ```text theme={null} Index: cache-hit (64ms) | Query: 0ms | Total: 64ms Impact: Router.Match (mux.go:151) def=151 span=151-182 [method in Router] Blast radius: 1 caller (1 direct, 0 transitive), 0 callees, 3 type consumers, 1 data flow, 7 co-change files, 29 siblings. Callers (1 direct, 0 transitive; who breaks if behavior changes): - Router.ServeHTTP (mux.go:203, def :188) ``` | Flag | Description | | - | - | | `--symbol NAME\|FILE:LINE` | Symbol to analyze. Required. | | `--depth 1\|2` | Caller traversal depth. Default is `2`. | | `--limit N` | Max entries per section. Default is `15`. | | `--exclude-tests` | Drop test-only entries. | | `--file`, `--line`, `--kind` | Disambiguate an ambiguous name. | Text output begins with `Index: cache-hit` or `Index: cache-miss`. ## graph neighbors Show direct relationships for one symbol, filtered by relation and direction. ```bash theme={null} entire graph neighbors --repo . --symbol validateToken --relation CALLS --direction in ``` Neighbors reads the working tree by default. Use `--head` to inspect the committed tree instead. | Flag | Description | | - | - | | `--symbol NAME\|FILE:LINE` | Symbol to inspect. Required. | | `--relation TYPE` | Relation family to follow. Default is `CALLS`. | | `--direction both\|in\|out` | `in` is callers, `out` is callees. Default is `both`. | | `--depth 1\|2` | Hops to traverse. Default is `1`. | | `--limit N` | Max neighbors per direction. Default is `20`. | | `--internal-only` | Drop unresolved external endpoints. | Text output begins with `Index: cache-hit` or `Index: cache-miss`. ## graph def Show a symbol's declaration. For a type, include its fields, methods, and implementations. ```bash theme={null} entire graph def RouteMatch --repo . ``` This command reads the working tree by default. Use `--head` to inspect the committed tree instead. ## graph explain Read a build or test failure from standard input and append the declarations of the symbols it names. ```bash theme={null} go test ./... 2>&1 | entire graph explain --repo . ``` Explain reads the working tree by default, so its declarations match the code that produced the failure. Use `--head` to inspect the committed tree instead. ## graph commit List entity-level changes in a commit relative to its first parent, including added, removed, renamed, signature-changed, and body-changed symbols. ```bash theme={null} entire graph commit [REV] [flags] ``` Each change includes an estimated dependent count. ## graph diff List entity-level changes between two Git references. `analyze` is an alias for this command. ```bash theme={null} entire graph diff --base BASE --head HEAD [flags] ``` ## graph checkpoint Analyze the commit associated with an [Entire checkpoint](/guides/sessions/overview#what-is-a-checkpoint). ```bash theme={null} entire graph checkpoint CHECKPOINT_ID [flags] ``` ## graph snapshot Export the complete graph as NDJSON, including files, external endpoints, symbols, relations, and a summary. ```bash theme={null} entire graph snapshot --repo . --format ndjson [flags] ``` Snapshot reads the committed tree by default. Use `--worktree` to include uncommitted changes. It also supports `--format compact-ndjson`. ## graph symbols Export symbol records as NDJSON. ```bash theme={null} entire graph symbols --repo . --format ndjson [flags] ``` Symbols reads the committed tree by default. Use `--worktree` to include uncommitted changes. Use `query` or `def` for targeted lookups because this command does not filter by name. ## graph edges Export relation records as NDJSON. Filter the output with `--to`, `--from`, and `--relation`. ```bash theme={null} entire graph edges --repo . --format ndjson [flags] ``` Edges reads the committed tree by default. Use `--worktree` to include uncommitted changes. ## graph snapshot-query Query a saved compact snapshot without rebuilding the graph. ```bash theme={null} entire graph snapshot --repo . --format compact-ndjson > graph.compact.ndjson entire graph snapshot-query --input graph.compact.ndjson --symbol Cache.Refresh ``` ## graph doctor Report the resolved repository, Entire environment variables, plugin data directory access, and whether network access is disabled. ```bash theme={null} entire graph doctor [--json] ``` `doctor --assert` is a preflight. It parses a command line against your installed binary and tells you whether it would be rejected, without running anything: ```bash theme={null} entire graph doctor --assert "query --profile full --top-k 10 --format text" ``` ## graph health Report how completely entire-graph indexed the committed tree, including when the result is healthy. ```bash theme={null} entire graph health [--repo PATH] [--json] [--refresh] ``` The report lists flagged source files and their percentage of the total, the 5% threshold at which coverage counts as degraded, a breakdown by language and diagnostic type, and the affected files with parser diagnostic locations. Documentation, configuration, and data files are not counted as source files. Files skipped on purpose, such as oversized or minified files, are listed separately. A parser diagnostic means entire-graph could not fully analyze a file. It does not mean the source code is invalid. Health always uses the committed tree at `HEAD` and the `full` profile, so it does not include uncommitted changes. It reuses a matching index or builds one first. | Flag | Description | | - | - | | `--json` | Print structured health JSON instead of text. | | `--refresh` | Rebuild the index even when a matching one exists, and invalidate derived query caches. | | `--profile syntax-only\|fast\|full` | Index profile. Default is `full`. | | `--ignore-file PATH` | Extra exclude rules in gitignore syntax. Repeatable. | | `--include-file PATH` | Re-include ignored paths. Repeatable. | Use `doctor` to check the environment and `health` to check index coverage. ## graph version Print the installed entire-graph plugin version. Add `--json` to include the provider name. ```bash theme={null} entire graph version [--json] ``` ## graph stats Compare entire-graph usage with grep and file reads in local coding-agent transcripts, including an estimated token saving. ```bash theme={null} entire graph stats [flags] ``` > [!NOTE] > > `stats` reads local coding-agent session transcripts from disk. It is for humans, not part of the agent workflow, and the installed guide tells agents not to run it unless asked. ## Continue with > [card] [Use entire-graph with Your Coding Agent](/guides/graph/use-graph) > > Learn what to ask and what happens after you prompt your agent. > [card] [Install and Enable entire-graph](/guides/graph/set-up-graph) > > Install the plugin and turn it on for a repository. > [card] [entire-graph Troubleshooting](/guides/graph/troubleshooting) > > Fix install, adoption, and cache problems. > [card] [entire-graph Overview](/guides/graph/overview) > > Understand what entire-graph is for. > [card] [entire-graph Repository](https://github.com/entireio/entire-graph) > > Browse the source and the full reference docs. # help Source: https://docs.entire.com/cli-reference/help Display help information about any command. Display help information about any command. ```bash theme={null} entire help [COMMAND] ``` | Argument | Description | | - | - | | `command` | Optional. The command to get help for. | ```bash theme={null} # Show general help entire help # Get help for a specific command entire help enable entire enable --help ``` ## Print the Command Tree Pass `-t` to print every command and subcommand as a tree, with its one-line description: ```bash theme={null} entire help -t ``` ```text theme={null} entire ├── activity - Show your activity overview ├── agent - Manage agent integrations (add, remove, list) │ ├── add - Install hooks for an agent │ ├── list - List installed and available agents │ └── remove - Uninstall hooks for an agent ... ``` > [!NOTE] > > For output aimed at coding agents rather than people, use [`entire agent-help`](/cli-reference/agent-help), which generates its command map from the installed binary and supports `--json`. # import Source: https://docs.entire.com/cli-reference/import Import pre-existing local agent transcripts as read-only checkpoints. Import pre-existing local agent transcripts for the current repository as read-only checkpoints. ```bash theme={null} entire import AGENT [flags] ``` > [!NOTE] > > `entire import` is experimental. It appears under **Experimental commands** in developer and nightly builds, but is hidden from top-level help in stable releases. It remains runnable in all builds and appears in [`entire labs`](/cli-reference/labs). Run `entire import --help` to see supported agents. ## Supported Agents | Agent | Command | | - | - | | Claude Code | `entire import claude-code` | | Codex | `entire import codex` | | Copilot CLI | `entire import copilot-cli` | | Cursor | `entire import cursor` | | Factory | `entire import factoryai-droid` | | Pi | `entire import pi` | ## Flags | Flag | Description | | - | - | | `--dry-run` | Report what would be imported without writing checkpoints | | `--path DIRECTORY` | Override the transcript directory to import from | | `--session ID` | Import only this session ID. Repeatable. | ## Examples Check what would be imported: ```bash theme={null} entire import claude-code --dry-run ``` Import Claude Code transcript history: ```bash theme={null} entire import claude-code ``` Import a specific Codex session: ```bash theme={null} entire import codex --session SESSION_ID ``` Import from a custom transcript directory: ```bash theme={null} entire import claude-code --path TRANSCRIPT_DIRECTORY ``` ## Behavior `entire import` scans the agent's local transcript store for the current repository and imports history from the past month. Imported checkpoints are: * read-only * searchable * explainable * idempotent, so already-imported turns are skipped * not rewindable * not linked to a Git commit ## Continue With > [card] [Import Past Sessions](/guides/sessions/import-past-agent-history) > > Follow the guide for importing past local agent sessions. > [card] [Search](/cli-reference/search) > > Search imported checkpoints and other Entire history. # investigate Source: https://docs.entire.com/cli-reference/investigate Run a multi-agent investigation from a prompt, seed document, issue, or PR. entire-investigate is an installable [plugin](/cli-reference/plugin) for the Entire CLI. It runs a multi-agent investigation: agents take turns appending findings, evidence, and analysis to a shared findings document until quorum is reached. Install it before running `entire investigate`: ```bash theme={null} entire plugin install investigate ``` Running `entire investigate` without the plugin offers to install it, and reports `the entire-investigate plugin is not installed` in a non-interactive run. ```bash theme={null} entire investigate [SEED_DOC] [flags] entire investigate SUBCOMMAND ``` `entire investigate` is experimental while the workflow is still being refined. Its flags are unchanged from when the command shipped in the CLI itself. > [!NOTE] > > Settings move with the command. Copy any old `investigate` settings object into `.entire/investigate.local.json`; a legacy `investigate` block in `.entire/settings.json` is ignored. ## Inputs Use one of these inputs: | Input | Description | | - | - | | `SEED_DOC` | Path to a starting findings file | | `--issue-link URL` | GitHub issue or pull request URL resolved through `gh` | When neither input is supplied and the multi-agent picker opens, the picker collects an investigation prompt that becomes the topic for the run. ## Flags | Flag | Description | | - | - | | `--agents AGENTS` | Override configured agents with a comma-separated list | | `--max-turns N` | Per-agent turn budget. Defaults to `2`. | | `--quorum N` | Approvals needed to terminate. `0` means all agents. | | `--continue RUN_ID` | Resume an existing run | | `--edit` | Re-open the investigate config picker | | `--findings` | Browse local investigation manifests | | `--allow-untrusted-seed` | Required for non-interactive `--issue-link` investigations because the seed is attacker-influenced GitHub content | ## Subcommands | Subcommand | Description | | - | - | | `show RUN_ID` | Print a saved investigation's summary and findings | | `fix RUN_ID` | Launch a coding agent with the run's findings as grounded context | | `clean RUN_ID` | Delete a saved investigation. Add `--force` to skip the confirmation prompt. | | `clean --all` | Delete all saved investigation artifacts | ## Examples ```bash theme={null} entire investigate leaderboard-route-investigation.md --max-turns 1 entire investigate --findings entire investigate show RUN_ID entire investigate fix RUN_ID entire investigate clean RUN_ID ``` ## Continue With > [card] [Investigate Why Code Exists](/learn/investigate-why-code-exists) > > Walk through a complete provenance investigation. > [card] [plugin](/cli-reference/plugin) > > Install, list, and upgrade Entire plugins. # labs Source: https://docs.entire.com/cli-reference/labs Explore experimental Entire workflows. Explore experimental Entire workflows. ```bash theme={null} entire labs ``` This command lists newer Entire workflows that are available to try while they are still being refined. Use it to discover experimental commands and see where to find their command-specific help. The set changes as workflows graduate, so run `entire labs` for what your installed CLI offers. | Command | Purpose | | - | - | | [`entire review`](/cli-reference/review) | Run a multi-agent review against a branch | | [`entire import claude-code`](/cli-reference/import) | Import existing Claude Code transcripts as local, read-only history | | [`entire tokens`](/cli-reference/tokens) | Analyze token usage diagnostics | | [`entire tokens profile`](/cli-reference/tokens#tokens-profile) | Aggregate token usage across committed checkpoints | | [`entire session tokens`](/cli-reference/session#session-tokens) | Show token usage and recommendations for a session | | [`entire blame`](/cli-reference/blame) | Show which lines came from Entire checkpoints | | [`entire why`](/cli-reference/why) | Show why a line exists | | [`entire experts`](/cli-reference/experts) | Show agent, Skill, and tool provenance for files or topics | ```bash theme={null} # List experimental workflows entire labs # Open help for one of them entire review --help ``` > [!NOTE] > > `entire labs` is a discovery command. It does not run the listed workflows as nested subcommands. For example, use `entire review --help`, not `entire labs review --help`. # login Source: https://docs.entire.com/cli-reference/login Log in to Entire. Log in to Entire. ```bash theme={null} entire login [flags] ``` By default this opens a browser redirect flow. If Entire is running interactively, it prompts before opening the approval URL automatically. With no interactive terminal, over SSH, or on a Linux or BSD machine with no graphical display, `entire login` uses the device-code flow instead. It prints an approval URL and a code that you enter in a browser on any machine. Use `--device` to choose this flow explicitly. | Flag | Description | | - | - | | `--device` | Use the device-code flow, entering a code in your browser, instead of the default browser redirect. | | `--server URL` | Login server to authenticate against. Rarely needed; the default serves all standard accounts. Defaults to `https://auth.entire.io`. | ```bash theme={null} # Device-code flow, for a remote host or container entire login --device ``` > [!NOTE] > > A completed login is saved as a [context](/cli-reference/auth#login-contexts): a named pairing of login server and identity, with its tokens in your operating system's credential store. Logging in again as the same identity updates that context in place. Run [`entire auth contexts`](/cli-reference/auth#auth-contexts) to see them all. ## Machines with No OS Keyring Tokens are stored in your operating system's credential store: macOS Keychain, Linux Secret Service, or Windows Credential Manager. This also applies to device-code logins on headless machines, so no other setup is needed when a keyring is available. If the machine has no usable keyring, `entire login` fails with a `save login` error, often `failed to unlock correct collection` on Linux. In that case, use the file-backed token store: ```bash theme={null} ENTIRE_TOKEN_STORE=file entire login ``` Tokens are written with `0600` permissions to `tokens.json` in your Entire config directory (`~/.config/entire`, or `$ENTIRE_CONFIG_DIR` when set). Override the location with `ENTIRE_TOKEN_STORE_PATH`. Later commands must read from the same store, so either set `ENTIRE_TOKEN_STORE=file` in every environment that runs Entire, or select the file store once in `config.json` in your Entire config directory: ```json ~/.config/entire/config.json theme={null} {"token_store": "file"} ``` `token_store` accepts `"file"` or `"keyring"`. When `ENTIRE_TOKEN_STORE` is set, even to an empty value, it takes precedence over `config.json`. If `config.json` can't be read or parsed, or `token_store` has any other value, Entire reports an error naming the file when it reads or saves a login, even when `ENTIRE_TOKEN_STORE` is set. Fix or remove the file. Entire doesn't fall back to the keyring. Entire never switches to file storage automatically. Use the keyring when available, since the file stores your tokens in plain text. ## CI and Automation Where nobody is at a browser, such as a CI runner, a remote VM, or a cloud coding agent's sandbox, sign in as a service account or store your own login. ### Sign In as a Service Account On a platform that issues OIDC tokens to its jobs, such as GitHub Actions or Google Cloud, the job signs in with no stored credential. See the [OpenID Connect (OIDC) guide](/guides/configuration/oidc). On any other platform, create a [service account secret](/guides/configuration/service-accounts#sign-in-with-a-secret) and set it as `ENTIRE_TOKEN`: ```bash theme={null} ENTIRE_TOKEN= entire ... ``` The CLI exchanges the secret for a service account token and renews that token as needed. ### Machines That Keep Their Files On a self-hosted runner, a long-lived VM, or a container with a persistent home directory, log in once with the device-code flow: ```bash theme={null} entire login --device ``` Approve the printed code from any browser. The stored login refreshes itself, so later runs need no further setup. If the machine has no usable keyring, add `ENTIRE_TOKEN_STORE=file` or [set `token_store` in `config.json`](#machines-with-no-os-keyring). The login is then stored on disk, so keep the config directory on persistent storage, or set `ENTIRE_TOKEN_STORE_PATH` to a file on persistent storage. Don't copy a stored login to another machine. Each refresh replaces the stored refresh token and invalidates the old one, so two copies refreshing the same login can sign both out. ### Jobs That Run as Root Cron jobs, systemd units, and `sudo` commands often run as root with a minimal environment. To let them use Entire without passing environment variables, select the file store in root's `config.json` and log in once as root: ```bash theme={null} sudo mkdir -p /root/.config/entire echo '{"token_store": "file"}' | sudo tee /root/.config/entire/config.json sudo entire login --device ``` Except on Windows, Entire reads root's home directory from the system user database, not from `HOME`. This is for security. `sudo -E` keeps your environment, including your `HOME`. If Entire followed it, root would read its login and settings from a directory a non-root user owns, and write root-owned files there. Only root can change the user database, so no one else can redirect root's config. A process with no `HOME` set also uses the user database. The same home holds root's Entire cache and managed plugins. `ENTIRE_CONFIG_DIR` still overrides the config directory. The example uses `/root`, the usual Linux home for root. On macOS, it is `/var/root`. ### Fresh Environments on Every Run When each run starts from a clean environment, pass a login token through `ENTIRE_TOKEN` instead of logging in. Get the token by running [`entire auth token`](/cli-reference/auth#auth-token) on a machine where you're logged in, store it as a secret in the environment, and run: ```bash theme={null} ENTIRE_TOKEN= entire ... ``` `ENTIRE_TOKEN` bypasses stored credentials, and the CLI never writes it to disk. A login token acts as you and expires after 8 hours. Use it for a one-off job. For a job that runs on every push or on a schedule, [sign in as a service account](#sign-in-as-a-service-account). > [!NOTE] > > Reading Entire data, such as Trails, findings, or API responses, only needs the CLI installed and authenticated. Running `entire enable` and installing agent hooks are only needed to capture an agent's sessions. # logout Source: https://docs.entire.com/cli-reference/logout Log out of Entire. Log out of every saved login. ```bash theme={null} entire logout [flags] ``` For each saved [login context](/cli-reference/auth#login-contexts), this ends every CLI session on that login server, other machines included, and removes the login from this machine. Nothing narrows it. An explicit `--context` is refused rather than ignored, and `ENTIRE_CONTEXT` is ignored. Press Ctrl-C to stop the sweep partway. Browser and web sessions stay signed in unless you pass `--everywhere`. | Flag | Description | | - | - | | `--everywhere` | Also end browser and web sessions on each login server. A browser is signed out on its next request, and the web app once its access token expires. | ```bash theme={null} # Log out of every saved login, CLI sessions only entire logout # Also end browser and web sessions entire logout --everywhere ``` > [!NOTE] > > Against an older login server, a plain `entire logout` falls back to revoking only the current session. # mcp Source: https://docs.entire.com/cli-reference/mcp Run Entire as a Model Context Protocol server over stdio. Run a Model Context Protocol (MCP) server over stdio. ```bash theme={null} entire mcp ``` `entire mcp` is hidden from `entire --help`, but it is a normal command and runs wherever the CLI is installed. Configure an MCP host to launch `entire mcp` as a stdio server. It exposes Entire's `agent_help` and `entire_status` as MCP tools, so an agent without a hook or context-injection channel can still discover and use Entire. The server is read-only and speaks newline-delimited JSON-RPC 2.0. > [!NOTE] > > This does not replace lifecycle hooks. An MCP host learns what Entire can do and what the repository's state is, but session capture still comes from the hooks that [`entire enable`](/cli-reference/enable) installs. See [Agents](/agents/overview) for the integration paths. ## Tools | Tool | Description | | - | - | | `agent_help` | The command map for the installed CLI, the same content as [`entire agent-help --json`](/cli-reference/agent-help). Takes an optional `command` argument naming a subcommand path, space-separated, such as `checkpoint` or `repo mirror add`, to drill into one command. | | `entire_status` | The current repository's Entire status, byte-identical to [`entire status --json`](/cli-reference/status). It returns JSON, not the human-readable table. | ## Configure a Host Most hosts take a command and arguments. Point yours at the `entire` binary with the `mcp` subcommand: ```json theme={null} { "mcpServers": { "entire": { "command": "entire", "args": ["mcp"] } } } ``` The exact file and schema depend on the host. Use an absolute path to `entire` if the host does not inherit your shell's `PATH`. ## Continue With > [card] [Agents](/agents/overview) > > Compare hooks, context injection, and MCP as integration paths. > [card] [agent-help](/cli-reference/agent-help) > > See the command map this server exposes. # org Source: https://docs.entire.com/cli-reference/org Manage Entire organizations. Manage Entire organizations. ```bash theme={null} entire org COMMAND ``` An organization owns [projects](/cli-reference/project), which in turn own [repositories](/cli-reference/repo). To manage who belongs to an org, use [`entire org grant`](/cli-reference/grant#entire-org-grant). Use an organization's name or ULID with `get` and `delete`. Most subcommands accept `--json` to print raw JSON instead of a table; `delete`, `grant remove`, and `invite revoke` do not. ## `entire org create` Create an organization. ```bash theme={null} entire org create NAME [flags] ``` | Flag | Description | | - | - | | `--region SLUG` | Jurisdiction slug. Defaults to the server's home jurisdiction. | ```bash theme={null} entire org create acme entire org create acme --region eu ``` ## `entire org list` List organizations you can see. ```bash theme={null} entire org list [flags] ``` ## `entire org get` Show an organization by name or ULID. ```bash theme={null} entire org get ORG [flags] ``` ## `entire org delete` Delete an organization by name or ULID. ```bash theme={null} entire org delete ORG [flags] ``` | Flag | Description | | - | - | | `-f, --force` | Skip the confirmation prompt. | | `-y, --yes` | Skip the confirmation prompt. Alias for `--force`. | ## `entire org invite` Invite an email address to an organization. Use this to reach people who have never signed in to Entire: [`entire org grant add`](/cli-reference/grant#entire-org-grant) needs an existing account, while an invitation reaches an address. The invitee accepts through the link in the email they receive. ### `entire org invite send` Send an invitation. ```bash theme={null} entire org invite send ORG --email EMAIL [flags] ``` Inviting an address that already has an open invitation sends the mail again and keeps the role the invitation was created with. ```bash theme={null} entire org invite send acme --email dev@example.com --role admin ``` | Flag | Description | | - | - | | `--email EMAIL` | Email address to invite. Required. | | `--json` | Output raw JSON instead of a table. | | `--role ROLE` | Role the invitation grants: `owner`, `admin`, or `member`. Defaults to `member`. | ### `entire org invite list` List an organization's invitations. ```bash theme={null} entire org invite list ORG [flags] ``` ```bash theme={null} entire org invite list acme --status all ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | | `--status STATUS` | Lifecycle state to list: `open`, `accepted`, `revoked`, `expired`, or `all`. Defaults to `open`. | ### `entire org invite revoke` Revoke the open invitation for an email address so its link stops working. ```bash theme={null} entire org invite revoke ORG --email EMAIL ``` ```bash theme={null} entire org invite revoke acme --email dev@example.com ``` | Flag | Description | | - | - | | `--email EMAIL` | Email address whose open invitation to revoke. Required. | ## Continue With > [card] [project](/cli-reference/project) > > Create and manage the projects an org owns. > [card] [grant](/cli-reference/grant) > > Manage org membership and access. # plugin Source: https://docs.entire.com/cli-reference/plugin Discover, install, inspect, update, and troubleshoot commands that extend the Entire CLI. CLI plugins are executables named `entire-` that add commands to Entire. For example, an executable named `entire-graph` runs when you enter `entire graph`. This system is separate from the [Agent Integration Protocol](/agents/agent-integration-protocol/overview), which uses `entire-agent-` executables to integrate coding agents. ```bash theme={null} entire plugin COMMAND ``` > [!WARNING] > > A CLI plugin is a native executable that runs with your user account's filesystem, network, and process permissions. Entire filters the environment passed to plugins, but it does not sandbox them. Install plugins only from sources you trust. ## Command Tree | Command | Purpose | | - | - | | `entire plugin browse` | Interactively browse the plugin index and install a selection. | | `entire plugin doctor` | Check managed plugins for broken entries, integrity problems, and missing dependencies. | | `entire plugin index update` | Force a refresh of the synced plugin index. | | `entire plugin info NAME` | Show index and install details for a plugin. | | `entire plugin install NAME\|URL\|PATH` | Install from the index, a repository, or a local executable. | | `entire plugin list` | List plugins installed in the managed directory. | | `entire plugin remove NAME` | Remove a managed plugin. | | `entire plugin search [TERM]` | Search the plugin index. | | `entire plugin upgrade [NAME]` | Upgrade one or all plugins installed from remote repositories. | ## Discovery and Precedence When you run a command such as `entire graph build`, Entire: 1. Checks whether `graph` is a command included with Entire. 2. Looks for an executable named `entire-graph` on `$PATH`. 3. Runs that executable with `build` as its argument and passes stdin, stdout, stderr, and its exit code through unchanged. Commands included with Entire take precedence. If you install `entire-version`, for example, `entire version` still runs the command included with Entire. Entire temporarily prepends the managed plugin directory to `$PATH` during plugin discovery. Therefore, a managed plugin takes precedence over an `entire-` executable with the same name elsewhere on your shell's `$PATH`. Entire keeps the managed directory on `$PATH` while a plugin runs so it can invoke other managed plugins. Entire reserves names beginning with `entire-agent-` for agent integrations and does not dispatch them as CLI commands. Follow the [Agent Integration Protocol](/agents/agent-integration-protocol/overview) to build or install one. ### Run an Unmanaged Plugin You do not need `entire plugin install` to run a plugin. Make the binary executable and place it anywhere on your `$PATH`: ```bash theme={null} chmod +x /path/to/entire-example entire example --help ``` Unmanaged plugins do not appear in `entire plugin list`. `entire plugin upgrade` does not update them, and you must remove them from `$PATH` manually. ## Managed Directory `entire plugin install` uses the first managed root that applies: | Environment | Managed Root | | - | - | | Override | `$ENTIRE_PLUGIN_DIR` | | Linux and macOS | `$XDG_DATA_HOME/entire/plugins`, or `~/.local/share/entire/plugins` | | Windows | `%LOCALAPPDATA%\entire\plugins`, or `~\AppData\Local\entire\plugins` | `ENTIRE_PLUGIN_DIR` must be an absolute path. Under the root, Entire uses this layout: ```text theme={null} / ├── bin/ # Executables discovered as entire- ├── data// # Durable storage available to the plugin └── pkg// ├── entire- # Binary from a remote install └── manifest.yml # Version, source, checksum, and dependencies ``` Remote installs store the downloaded binary and its provenance under `pkg/`, then link the binary into `bin/`. Local path installs link the source executable directly into `bin/`, so rebuilding the source normally updates the command immediately. When symbolic links are unavailable, Entire falls back to a hard link and then a copy. Each plugin receives: | Variable | Value | | - | - | | `ENTIRE_CLI_VERSION` | The version of the Entire CLI that launched it. | | `ENTIRE_REPO_ROOT` | The repository root, when the command runs inside a repository. | | `ENTIRE_PLUGIN_DATA_DIR` | The plugin's durable `data/` directory. The plugin creates it when needed. | Entire passes common operating system, terminal, locale, CI, proxy, SSH agent, `ENTIRE_*`, `LC_*`, and `XDG_*` variables. Entire excludes other variables by default to reduce accidental credential exposure. You can explicitly pass additional names or prefixes with `ENTIRE_PLUGIN_ENV`, for example: ```bash theme={null} ENTIRE_PLUGIN_ENV='AWS_*,GH_TOKEN' entire example ``` This filtering is defense in depth, not a security boundary: a malicious plugin can still read files and credentials available to your user account. ## Install a Plugin Install a plugin from the synced index, a git repository URL, or a local executable. ```bash theme={null} entire plugin install NAME|URL|PATH [flags] ``` | Source | Example | Behavior | | - | - | - | | Index name | `entire plugin install run` | Resolves the name through the synced plugin index. | | Repository URL | `entire plugin install https://github.com/entireio/entire-run` | Resolves a release from the repository. A URL not listed in the index requires confirmation. | | Local path | `entire plugin install ./dist/entire-run` | Links an existing executable into the managed directory. | Local paths must be explicit: include a directory separator or begin with `./`. The executable's basename must be `entire-` so Entire can derive the command name. For a remote install, Entire: 1. Uses the tag supplied with `--pin`, or tries the newest stable semantic version tag. Without `--pin`, Entire tries up to two older stable tags when newer tags lack a compatible release asset. 2. Reads `entire-plugin.yml` from that tag when the repository provides it. 3. Downloads the matching release asset over HTTPS. 4. Verifies the asset against the release's checksum manifest. 5. Stores the binary and install manifest in the managed directory. 6. Resolves and offers to install declared dependencies. Installing from a URL that is not in the plugin index asks for confirmation. Pass `--yes` to skip the prompt; a run without a terminal requires this flag for an unlisted URL. ### Checksum Verification Remote installation looks for `checksums.txt` or a supported plugin checksum filename in the release. When the manifest covers the release asset, Entire computes its SHA-256 digest and refuses the install if it does not match. Entire also records a digest of the installed binary so `entire plugin doctor` can detect later changes. If the release asset has no published checksum covering your platform, installation stops. `--allow-unverified` bypasses that requirement and records the install as unverified; `plugin doctor` continues to report it. Future upgrades preserve the original choice: a verified install cannot silently become unverified, while an unverified install remains allowed to upgrade without a new flag. > [!WARNING] > > A matching checksum proves that the downloaded bytes match the checksum published with that release. It does not prove that the repository owner, release process, or plugin code is trustworthy. Use `--allow-unverified` only after you have independently decided to trust the source and accept that the download is not authenticated by a published checksum. ### Dependencies A plugin repository can declare runtime dependencies in `entire-plugin.yml`: ```yaml theme={null} name: example description: Example Entire CLI plugin requires: - name: graph min_version: v0.4.0 ``` `min_version` accepts an optional minimum semantic version. Entire does not support version ranges. Entire resolves dependencies by name through the plugin index, including transitive dependencies. A plugin author cannot supply a dependency repository URL in `entire-plugin.yml`. Entire shows the dependencies it plans to install or upgrade and asks once for confirmation. Use `--yes` in a run without a terminal or `--no-deps` to install only the requested plugin. If a dependency already comes from a local path or your shell's `$PATH`, Entire treats it as present but cannot verify its minimum version. Run `entire plugin doctor` to inspect the resulting state. | Flag | Description | | - | - | | `--allow-unverified` | Install when no published checksum covers the release asset. | | `--force` | Replace an existing managed entry with the same name. | | `--index URL` | Use a different plugin index for this command. | | `--no-deps` | Do not install declared dependencies. | | `--pin TAG` | Install exactly this tag and skip the plugin during upgrades. | | `--yes` | Skip confirmation prompts for unlisted sources and dependencies. | ## List Managed Plugins List plugins installed in the managed directory. ```bash theme={null} entire plugin list ``` ```text theme={null} Managed plugin directory: /Users/you/.local/share/entire/plugins/bin run v0.1.0 → /Users/you/.local/share/entire/plugins/pkg/run/entire-run ``` This command does not list unmanaged `entire-` executables elsewhere on `$PATH`. ## Search the Plugin Index Search the synced plugin index. Run the command without a term to list everything available. A `*` marks a managed plugin that is already installed. ```bash theme={null} entire plugin search [TERM] [flags] ``` ```text theme={null} * run Launch one of the agents enabled for Entire in the current repository [official] upgrade Upgrade the system-installed Entire binary [official] ``` Entire caches the Git repository that contains the index. On the next index operation after the cached copy is 24 hours old, Entire attempts a refresh. If a refresh fails while you are offline, Entire uses the existing cached copy. The index URL resolves in this order: `--index`, `ENTIRE_PLUGIN_INDEX_URL`, then Entire's default index. | Flag | Description | | - | - | | `--index URL` | Use a different plugin index for this command. | ## Inspect a Plugin Show index metadata and managed install details for a plugin, including its repository, version, pin, and dependencies. ```bash theme={null} entire plugin info NAME [flags] ``` ```text theme={null} Name: run Description: Launch one of the agents enabled for Entire in the current repository Repository: https://github.com/entireio/entire-run Official: true Installed: v0.1.0 (from https://github.com/entireio/entire-run) ``` | Flag | Description | | - | - | | `--index URL` | Use a different plugin index for this command. | ## Browse the Plugin Index Browse the plugin index in an interactive picker and install a selection. ```bash theme={null} entire plugin browse [flags] ``` The picker shows each plugin's name and description. Before downloading anything, Entire shows the repository that provides the binary and asks you to confirm. > [!NOTE] > > This command needs a terminal. Use `entire plugin search` and `entire plugin install NAME` in scripts and runs without a terminal. | Flag | Description | | - | - | | `--index URL` | Use a different plugin index for this command. | ## Upgrade Plugins Upgrade one plugin installed from a remote repository, or use `--all` to upgrade every eligible plugin. Entire tries the newest stable semantic version first and uses the same release asset fallback as installation. ```bash theme={null} entire plugin upgrade NAME entire plugin upgrade --all ``` Entire cannot upgrade local path installs because they have no remote install manifest. Pinned plugins stay at their selected version until you reinstall them without `--pin`. | Flag | Description | | - | - | | `--all` | Upgrade every eligible plugin installed from a remote repository. | ## Remove a Plugin Remove a plugin from the managed directory. ```bash theme={null} entire plugin remove NAME [flags] ``` If another managed plugin declares the target as a dependency, Entire refuses removal unless you pass `--force`. This command does not remove unmanaged executables elsewhere on `$PATH`. | Flag | Description | | - | - | | `--force` | Remove a plugin even when other managed plugins depend on it. | ## Diagnose Plugin Problems Check managed plugins for: * broken managed entries * dangling links to local paths * missing or outdated dependencies * unverified installs * changes to a binary installed from a remote repository * the macOS quarantine attribute ```bash theme={null} entire plugin doctor ``` ```text theme={null} All plugins healthy. ``` The command prints a suggested fix for each actionable problem and exits unsuccessfully when it finds issues. ## Update the Plugin Index Force a refresh of the plugin index from its Git repository. ```bash theme={null} entire plugin index update [flags] ``` Use this command when `plugin search` does not show a newly published plugin or when you need to refresh the index before the cached copy becomes stale. | Flag | Description | | - | - | | `--index URL` | Refresh a different plugin index. | ## Troubleshooting ### `entire NAME` Reports an Unknown Command 1. Confirm the executable is named `entire-NAME`, including the `entire-` prefix. 2. Run `entire plugin list` for a managed install. 3. For an unmanaged install, run `command -v entire-NAME` on Linux or macOS, or `where entire-NAME` on Windows. 4. On Linux or macOS, make the file executable with `chmod +x /path/to/entire-NAME`. 5. Run `entire plugin doctor` to check managed entries. ### The Wrong Copy Runs Entire prepends the managed `bin/` directory during discovery, so it wins over matching executables elsewhere on `$PATH`. Run `entire plugin list` to see the managed entry. Remove it with `entire plugin remove NAME` if you intend to use the copy from your shell's `$PATH`. If the name matches a command included with Entire, Entire runs that command. Rename the plugin executable and invoke it under the new name. ### A Plugin Is Missing from Search Refresh and search the index: ```bash theme={null} entire plugin index update entire plugin search NAME ``` If the plugin is not indexed, install its repository URL directly. Review the repository before accepting the unlisted source prompt. ### Installation Needs a Terminal An unlisted repository URL and dependency installation require confirmation. In CI or another environment without a terminal, review the source and its `entire-plugin.yml` dependencies first, then add `--yes`. ### Checksum Verification Fails Do not bypass a checksum mismatch. A mismatch means the downloaded asset differs from the published digest. If no checksum covers your platform, ask the plugin author to publish one. `--allow-unverified` is an explicit choice for a missing checksum, not a remedy for a mismatch. ### A Local Plugin Does Not Update Local installs use a symbolic link when the platform allows it, so rebuilding the source updates the command. On systems that require the hard link or copy fallback, reinstall with `--force` after rebuilding: ```bash theme={null} entire plugin install ./dist/entire-example --force ``` ### Dependencies Are Missing or Outdated Run `entire plugin doctor` and follow its suggested install or upgrade commands. Reinstall the parent plugin without `--no-deps` if you want Entire to plan the transitive dependency set again. # project Source: https://docs.entire.com/cli-reference/project Manage Entire projects. Manage Entire projects. ```bash theme={null} entire project COMMAND ``` A project is owned by an [organization](/cli-reference/org) or by an account, and in turn owns [repositories](/cli-reference/repo). To manage who can reach a project, use [`entire project grant`](/cli-reference/grant#entire-project-grant). Use a project's name or ULID with `get` and `delete`. Most subcommands accept `--json` to print raw JSON instead of a table; `delete` and `grant remove` do not. ## `entire project create` Create a project owned by an org or an account. ```bash theme={null} entire project create NAME --owner OWNER [flags] ``` `--owner` names the owning org (by name or ULID) or account (as `github:handle`, or by ULID). `--owner-type` selects which of the two you mean. | Flag | Description | | - | - | | `--owner OWNER` | Owning org (name or ULID), or account (`github:handle` or ULID). Required. | | `--owner-type TYPE` | Owner kind: `org` or `account`. Defaults to `org`. | | `--region SLUG` | Jurisdiction slug. Defaults to the server's home jurisdiction. | ```bash theme={null} # Project under an org, by name entire project create widgets --owner acme --owner-type org # Project owned by an account, by handle entire project create widgets --owner github:alice --owner-type account ``` ## `entire project list` List projects you can see. ```bash theme={null} entire project list [flags] ``` | Flag | Description | | - | - | | `--name NAME` | Filter by exact project name. | | `--org ORG` | List projects owned by this org, by name or ULID. | ## `entire project get` Show a project by name or ULID. ```bash theme={null} entire project get PROJECT [flags] ``` ## `entire project delete` Delete a project by name or ULID. ```bash theme={null} entire project delete PROJECT [flags] ``` | Flag | Description | | - | - | | `-f, --force` | Skip the confirmation prompt. | | `-y, --yes` | Skip the confirmation prompt. Alias for `--force`. | ## Continue With > [card] [repo](/cli-reference/repo) > > Create and manage the repositories a project owns. > [card] [grant](/cli-reference/grant) > > Grant and revoke project access. # recap Source: https://docs.entire.com/cli-reference/recap Summarize recent checkpoint activity. Summarize recent checkpoint activity. ```bash theme={null} entire recap [flags] ``` `entire recap` shows a time-based summary of agent and checkpoint activity. By default, it opens the interactive recap view for today. Use `--static` when you want plain terminal output, such as in a script, transcript, or docs example: ```bash theme={null} entire recap --static ``` ## Time Windows Choose the range you want to summarize: ```bash theme={null} # Today only entire recap --day # Last 7 days entire recap --week # This calendar month entire recap --month # Rolling 90 days entire recap --90 ``` ## Views Limit recap to one agent: ```bash theme={null} entire recap --agent codex ``` Choose which columns to show: ```bash theme={null} entire recap --view you entire recap --view team entire recap --view both ``` ## Flags | Flag | Description | | - | - | | `--90` | Show the rolling 90-day window. | | `--agent ID` | Show activity for one agent, or use `all`. Defaults to `all`. | | `--color MODE` | Set color output to `auto`, `always`, or `never`. Defaults to `auto`. | | `--day` | Show today only. This is the default time window. | | `--insecure-http-auth` | Allow plain HTTP auth. Local development only. | | `--month` | Show this calendar month. | | `--static` | Print static output instead of opening the interactive recap. | | `--view VIEW` | Choose which columns to show: `you`, `team`, or `both`. Defaults to `both`. | | `--week` | Show the last 7 days. | | `-h, --help` | Show help for `entire recap`. | ## Examples ```bash theme={null} # Open the interactive recap for today entire recap # Print a static recap for today entire recap --static # Print the last 7 days without color entire recap --week --static --color never # Show only your activity entire recap --view you # Show one agent's activity entire recap --agent codex --static ``` # repo Source: https://docs.entire.com/cli-reference/repo Manage Entire Repositories and GitHub mirror placements. Manage Entire Repositories. ```bash theme={null} entire repo COMMAND ``` ## Repository References Commands that take a `REPO` accept a forge-qualified reference that names where the repository lives. The leading slash is optional, so `gh/OWNER/REPO` works too: | Reference | Meaning | | - | - | | `/et/PROJECT/REPO` | An Entire repository in a project. | | `/gh/OWNER/REPO` | A GitHub repository that Entire mirrors. | A trailing `.git` is never part of a repository name, so `/et/PROJECT/REPO` and `/et/PROJECT/REPO.git` address the same repository. A bare `OWNER/REPO` names no forge, so Entire refuses it and suggests the qualified spellings. A GitHub URL such as `github.com/OWNER/REPO` is refused too, so that one repository has one spelling: the mirror, clone, remote, and grant commands name the `/gh/OWNER/REPO` form to use instead, while the rest report the reference they expected. Which reference a command takes depends on what it acts on: | Commands | Accepted | | - | - | | `repo clone`, `repo mirror add\|remove`, `repo remote add` | `/gh/` and `/et/` references. | | `repo view` | `/et/` and `/gh/` references, or an `entire://` clone URL. A ULID or a bare name is refused. | | `repo edit`, `repo delete`, `repo protection`, `repo visibility get` | An `/et/` path, a bare name with `--project`, or a repository ULID. A `/gh/` reference is refused by name — pass the mirror's ULID instead, since these commands resolve a name only through an `/et/` path. | | `repo grant add`, `repo grant remove` | An `/et/` path only. A mirror's access is the upstream GitHub repository's. | | `repo grant list` | `/et/` and `/gh/` references. | > [!NOTE] > > A GitHub mirror's visibility and branch protection are the upstream repository's, managed on GitHub. `repo protection list` says so rather than returning an empty rule set. ## `entire repo create` Create a repository in a project. ```bash theme={null} entire repo create NAME [flags] ``` A name ending in `.git`, in any letter case, is refused. By default the command waits for provisioning to become active. Active means provisioning completed; later pushes or mirror creation can still fail for other reasons. If creation succeeds but readiness cannot be confirmed, the command exits nonzero and preserves the repository result. Do not create the repository again to recover. | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. Standard output carries one repository object, while progress and recovery instructions go to standard error. | | `--no-wait` | Return after creation without confirming provisioning readiness. | | `--object-format FORMAT` | Git object format: `sha1` or `sha256`. Defaults to the server default. | | `--project PROJECT` | Owning project name or ULID. Required. | | `--wait-timeout DURATION` | Time limit for project resolution, creation, and provisioning readiness. Must be positive. Defaults to `10m0s`. Applies to `--no-wait` runs too. | ## `entire repo list` List repositories in a project. ```bash theme={null} entire repo list --project PROJECT [flags] ``` By default at most 1,000 repositories are fetched, and a note on standard error says so when the project has more. Rows come in server order; this list has no local filters or sort. With `--json`, a paged response wraps rows in an `{items, nextPageToken}` envelope. | Flag | Description | | - | - | | `--all` | Fetch every repository instead of the first 1,000. Slower on large projects. | | `--json` | Output raw JSON instead of a table. | | `--limit N` | Fetch and show only the first N repositories. `0` uses the default fetch budget. | | `--no-pager` | Print directly to standard output instead of a pager. | | `--page-size N` | Fetch a single page of at most N entries, from 1 to 500, and print the resume cursor. The server may cap N further. | | `--page-token TOKEN` | Fetch the single page at this cursor, from a previous run's `nextPageToken`. | | `--project PROJECT` | Project to list, by name or ULID. Required. | ## `entire repo view` Show a repository: its name, visibility, and one row per cluster it is placed on, with that cluster's role, clone URL, and status. ```bash theme={null} entire repo view REPO [flags] ``` `REPO` names its forge, and nothing else addresses a repository here: | Form | Shows | | - | - | | `/et/PROJECT/REPO` | An Entire repository's primary cluster and each mirror of it, plus seeding progress while a mirror is being created. | | `/gh/OWNER/REPO` | A GitHub upstream, with its mirror on every cluster. This is the `mirror list` `NAME` column. | | `entire://CLUSTER/...` | The repository behind a clone URL, as `git clone` takes it. A trailing `.git`, as pasted from `git remote -v`, resolves the same repository. | The `CLUSTER` column prints the public host that `--cluster` accepts elsewhere. Primary and mirror rows share one status vocabulary, such as `ready`, `processing`, or `failed`. A state the CLI does not recognize is shown as the server reports it. A clone URL is looked up on the login server fronting its cluster, so it resolves even when that cluster belongs to another federation. Every other form is looked up on the active context's login server. This command does not wait. It exits successfully when it can read the repository, even if provisioning is still in progress or has failed. For scripting, use `--authoritative --json` and inspect `state`, where `active` means provisioning completed. Examples: ```bash theme={null} entire repo view /et/acme/web entire repo view /gh/octocat/hello-world entire repo view /et/acme/web --json entire repo view entire://aws-us-east-2.entire.io/et/acme/web ``` | Flag | Description | | - | - | | `--authoritative` | Fail rather than leave the status cell blank when the server cannot confirm provisioning state. | | `--json` | Output raw JSON instead of a table. | ## `entire repo edit` Edit a repository's settings. ```bash theme={null} entire repo edit REPO --visibility VISIBILITY [flags] ``` `--visibility public` grants read-only access to any authenticated Entire user, while push and repository management stay restricted to grantees. `--visibility private` restricts the repository to explicit grantees. The caller needs manage permission on the repository. ```bash theme={null} entire repo edit /et/my-project/my-repo --visibility private ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | | `--project PROJECT` | Owning project name or ULID. Required when `REPO` is a bare name, and redundant with a `/et/PROJECT/REPO` path or a ULID. | | `--visibility VISIBILITY` | Visibility to set: `public` or `private`. Required. | ## `entire repo clone` Clone an Entire repository, a GitHub mirror, or a full `entire://` clone URL. ```bash theme={null} entire repo clone REPO [TARGET_DIR] [flags] ``` `REPO` takes one of three forms: | Form | Behavior | | - | - | | `/et/PROJECT/REPO` | An Entire repository. Entire looks up every cluster it is readable from: its home cluster and any ready native mirrors. | | `/gh/OWNER/REPO` | A GitHub mirror. Entire looks up the clusters the repository is mirrored on. | | `entire://CLUSTER/gh/OWNER/REPO` | A full clone URL, which already names the cluster. Entire passes it straight to `git clone` with no lookup, and `--cluster` is ignored. | With either reference, a single cluster is cloned directly. When the repository is readable on several, an interactive terminal prompts you to pick one. Without a terminal, an `/et/` repository falls back to its own primary cluster, while a `/gh/` mirror falls back to `aws-us-east-2.entire.io` and errors asking for `--cluster` if the mirror is not placed there. Pass `--cluster` to choose either way, or `--nearest` to let Entire measure. The optional `TARGET_DIR` is passed through to `git clone` in every case. Examples: ```bash theme={null} entire repo clone /et/my-project/example entire repo clone /gh/octocat/hello-world entire repo clone /gh/octocat/hello-world ./hello-world entire repo clone /gh/octocat/hello-world --cluster aws-us-east-2.entire.io entire repo clone /gh/octocat/hello-world --nearest entire repo clone entire://aws-us-east-2.entire.io/gh/octocat/hello-world ``` | Flag | Description | | - | - | | `--cluster HOST` | Cluster to clone from when the repository is readable on more than one. For a `/gh/` reference it may belong to another auth context. | | `--nearest` | Time a connection to each cluster and clone from the fastest, instead of prompting. It orders the prompt by distance, and replaces the no-terminal default — an `/et/` repository's primary cluster, or `aws-us-east-2.entire.io` for a `/gh/` mirror — when that default was measured and lost. Cannot be combined with `--cluster`: both choose a cluster, so Entire asks you to pass one. | The `--nearest` timing is local, and the control plane is never told where you are. Each candidate cluster does see a connection from you, where without the flag only the one you clone from would. ## `entire repo delete` Delete a repository. ```bash theme={null} entire repo delete REPO [flags] ``` | Flag | Description | | - | - | | `-f, --force` | Skip the confirmation prompt. | | `--project PROJECT` | Owning project name or ULID. Required when `REPO` is a bare name, and redundant with a `/et/PROJECT/REPO` path or a ULID. | | `-y, --yes` | Skip the confirmation prompt. Alias for `--force`. | ## `entire repo mirror add` Register a mirror placement on one or more clusters. ```bash theme={null} entire repo mirror add [REPO] [flags] ``` With no arguments, `entire repo mirror add` opens an interactive wizard to choose repositories and regions, then creates every repository and region pair in parallel and prints the clone URLs. `--cluster` requires a `REPO`. With a `REPO`, the command places it on every cluster named by `--cluster` in parallel, then waits for each to become usable. Repeat the flag or comma-separate the hosts for several. Placement is idempotent for a given repository and cluster, so naming one the repository is already on reports it rather than failing. Every cluster is attempted independently: one that fails does not stop the others, and the command exits nonzero naming the ones that did. Alongside the clone URLs, the command suggests [`entire repo remote add origin --override`](#entire-repo-remote-add) to repoint an existing checkout at the new mirror. ### GitHub and Entire Repositories | Reference | Behavior | | - | - | | `/gh/OWNER/REPO` | Mirrors the GitHub upstream. When `--cluster` is omitted, an interactive terminal offers the available clusters as a multi-select, and a non-interactive run defaults to `aws-us-east-2.entire.io`. | | `/et/PROJECT/REPO` | Places replicas of an Entire repository and waits for each to be seeded. A native mirror goes in a region other than the repository's own, so only those clusters are offered and `--cluster` has no default. A non-interactive run must name one. | Examples: ```bash theme={null} entire repo mirror add entire repo mirror add /gh/octocat/hello-world entire repo mirror add /gh/octocat/hello-world --cluster aws-us-east-2.entire.io entire repo mirror add /gh/octocat/hello-world --cluster aws-us-east-2.entire.io,aws-eu-central-1.entire.io entire repo mirror add /et/acme/web --cluster aws-eu-central-1.entire.io ``` | Flag | Description | | - | - | | `--cluster HOST` | Cluster host to mirror onto. Repeat the flag or comma-separate hosts for several. A terminal offers a multi-select when this is omitted; for a `/gh/` reference other runs use `aws-us-east-2.entire.io`. | | `--no-wait` | Return once the placements are registered, without waiting for the initial clone. | | `--timeout DURATION` | How long to wait for mirror request submission, placement, and clone readiness. `0` waits indefinitely. Defaults to `30m0s`. | ## `entire repo mirror list` List repositories you can see: existing mirrors and GitHub repositories you could onboard. ```bash theme={null} entire repo mirror list [flags] ``` GitHub is the default view. Pass `--forge et` for Entire repositories and where each is placed, or `--forge all` for both in one table. The `NAME` column always prints the forge-qualified reference the other commands take. Existing mirrors appear once per repository, with their clusters and status. Available GitHub repositories show access and availability instead of placement details. Sparse cells show `-`. Use [`entire repo view /gh/OWNER/REPO`](#entire-repo-view) for per-cluster clone URLs. Filters and `--sort` apply to the fetched rows, so combine them with `--all` to work over the complete list. | Flag | Description | | - | - | | `--access ACCESS` | Filter available repositories by `read`, `write`, or `admin`. | | `--all` | Fetch the complete directory instead of the first 1,000 entries. | | `--available` | Show GitHub repositories that can be onboarded. | | `--cluster HOST` | Show only repositories mirrored on this cluster, by public host as the `HOST` column of `entire cluster list` prints it. A cluster slug is refused. Drops onboardable candidates. | | `--forge FORGE` | Which repositories to list: `gh` for GitHub mirrors and onboardable GitHub repos, `et` for Entire repositories, or `all` for both. Defaults to `gh`. | | `--json` | Output raw JSON instead of a table. | | `--limit N` | Show at most `N` rows after filters and sorting. | | `--mirrored` | Show repositories with mirror placements. | | `--name NAME` | Filter by a substring of the `NAME` column, such as `acme/web` or `/gh/acme`, case-insensitively. | | `--no-pager` | Print directly to standard output. | | `--owner OWNER` | Filter by upstream owner. | | `--page-size N` | Fetch one page of `N` entries, from 1 to 500. | | `--page-token TOKEN` | Fetch one page from a previous response cursor. | | `--private[=false]` | Show private repositories, or public repositories when set to `false`. | | `--sort KEY` | Sort by a column key. Prefix the key with `-` for descending order. | | `--status STATUS` | Filter by mirror or onboarding status. | ## `entire repo mirror remove` Remove mirror placements from one or more clusters. ```bash theme={null} entire repo mirror remove REPO [flags] ``` The command removes the placements on every cluster named by `--cluster`, in parallel. Other clusters' placements of the same repository, and the repository itself, are unaffected. Removing a mirror placement does not delete or rewrite an upstream GitHub repository. There is no default cluster. Which clusters a repository is on is a property of the repository, so guessing one would delete a copy you never named. With `--cluster` omitted, a terminal offers the clusters the repository is actually mirrored on as a multi-select, with each placement's status; nothing starts ticked, so the selection doubles as the confirmation. A non-interactive run must name the clusters. An Entire repository's own primary cluster is listed but never removable — use [`entire repo delete`](#entire-repo-delete) for that. Teardown is asynchronous, so the command waits for each placement to disappear. Examples: ```bash theme={null} entire repo mirror remove /gh/octocat/hello-world entire repo mirror remove /gh/octocat/hello-world --cluster aws-eu-central-1.entire.io entire repo mirror remove /et/acme/web --cluster aws-eu-central-1.entire.io,aws-ap-south-1.entire.io ``` | Flag | Description | | - | - | | `--cluster HOST` | Cluster host to remove the mirror from. Repeat the flag or comma-separate hosts for several. A terminal offers a multi-select when this is omitted. | | `--timeout DURATION` | How long to wait for each placement to be torn down. `0` waits indefinitely. Defaults to `30m0s`. | ## `entire repo remote add` Add a Git remote that goes through Entire instead of the forge. ```bash theme={null} entire repo remote add REMOTE_NAME [REPO] [flags] ``` The repository is resolved from the current clone's remotes; pass `REPO` to name a different one. With more than one cluster to choose from, a terminal gets a picker and a script gets the repository's primary cluster: its home cluster for an `/et/` repository, or `aws-us-east-2.entire.io` for a GitHub mirror. A script errors if the repository is not placed on its primary cluster. `--cluster` selects one either way, the same as [`entire repo clone`](#entire-repo-clone). `REMOTE_NAME` must not already exist. As with `git remote add`, an occupied name is refused rather than repointed. The command only ever edits local Git configuration. The cluster must already serve the repository, so create the placement with [`entire repo mirror add`](#entire-repo-mirror-add) first; nothing server-side is changed. Examples: ```bash theme={null} entire repo remote add entire entire repo remote add entire --cluster aws-us-east-2.entire.io entire repo remote add entire /gh/octocat/hello-world entire repo remote add origin --override ``` | Flag | Description | | - | - | | `--cluster HOST` | Cluster host to use when the repository is on several. | | `--override` | Repoint `REMOTE_NAME` when it already exists, instead of refusing. | > [!WARNING] > > `--override` prints the URL it replaced, with any credentials redacted. That printout is the only record of the previous URL, so keep your own copy if you need it. To find a clone URL without touching Git configuration, use [`entire repo view`](#entire-repo-view), which lists the URL for each cluster. ## `entire repo protection` List, add, or remove a repository's branch-protection rules. ```bash theme={null} entire repo protection SUBCOMMAND REPO [flags] ``` Each rule names a branch pattern and a level. **protected** refuses force pushes and deletion, while fast-forward pushes stay allowed. **server-side merge only** also refuses every direct push, so the branch moves only through a merge Entire performs, such as a trail merge. A pattern is `HEAD` for the default branch, a branch name such as `main`, or a pattern with `*` and `?` wildcards such as `release/*`. > [!NOTE] > > Branch protection applies to Entire repositories only. For a GitHub mirror, `entire repo protection list` says the rules are the upstream repository's. That note is part of the table output; with `--json`, standard output is `[]` and the note goes to standard error. Every subcommand takes `--json` to print raw JSON instead of a table, and `--project PROJECT` to name the owning project when `REPO` is a bare name. ### `entire repo protection list` Show a repository's branch-protection rules. ```bash theme={null} entire repo protection list REPO [flags] ``` ### `entire repo protection add` Protect a branch, or change the level of an existing rule. ```bash theme={null} entire repo protection add REPO BRANCH [flags] ``` A new rule protects the branch from force pushes and deletion. With `--server-side-merge-only`, every direct push is refused. Re-adding a branch without the flag keeps its current level; pass `--server-side-merge-only=false` to lower it. The command prints the resulting rules. The caller needs manage permission on the repository. ```bash theme={null} entire repo protection add /et/acme/web main entire repo protection add /et/acme/web 'release/*' --server-side-merge-only ``` | Flag | Description | | - | - | | `--server-side-merge-only` | Refuse every direct push, so the branch moves only through a merge Entire performs. Omit it to keep an existing rule's level, or pass `=false` to lower it. | ### `entire repo protection remove` Remove a branch-protection rule. ```bash theme={null} entire repo protection remove REPO BRANCH [flags] ``` `BRANCH` names the rule as it was added. Removing a branch that has no rule changes nothing. The command prints the resulting rules and needs manage permission on the repository. ## `entire repo grant` Grant and revoke repository access, and list who can reach a repository. ```bash theme={null} entire repo grant add REPO [GRANTEE] --role ROLE entire repo grant list REPO entire repo grant remove REPO [GRANTEE] ``` `entire repo grant list` answers for both forges: an `/et/` reference lists the repository's grants, and a `/gh/` reference lists who can pull the mirror. `add` and `remove` take `/et/` references only, because a mirror's access follows the upstream GitHub repository. See [grant](/cli-reference/grant#entire-repo-grant) for roles, grantee syntax, and flags. ## `entire repo visibility get` Show whether an Entire repository is public or private. ```bash theme={null} entire repo visibility get REPO [flags] ``` Set visibility with [`entire repo edit --visibility`](#entire-repo-edit). | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | | `--project PROJECT` | Owning project name or ULID. Required when `REPO` is a bare name, and redundant with a `/et/PROJECT/REPO` path or a ULID. | ## Continue With > [card] [Mirror a GitHub Repository](/learn/mirror-a-github-repository) > > Create a mirror and use it from Git. > [card] [Mirror Access and Permissions](/guides/repositories/mirror-access-and-permissions) > > Understand GitHub-synced access, collaborator sync, and offboarding. > [card] [project](/cli-reference/project) > > Manage the projects that own repositories. > [card] [grant](/cli-reference/grant) > > Grant and revoke repository access. # review Source: https://docs.entire.com/cli-reference/review Run a multi-agent review against a branch and consolidate the results into a final verdict. Run a multi-agent review against the current branch, or against another branch with `--target`. ```bash theme={null} entire review [PROFILE] [flags] ``` `entire review` starts reviewer agents in parallel, then uses a judge agent to consolidate their reports into a final verdict. Reviews are saved as named profiles in Entire settings. On first run, guided setup writes a profile and asks before starting agents. ## Configure a Review Profile Open the review setup flow: ```bash theme={null} entire review --configure ``` Use non-interactive flags when you want to create or update a profile from a script: ```bash theme={null} entire review --configure \ --set-agents codex,claude-code \ --set-judge codex \ --set-output local ``` This creates the default `general` profile unless you choose another profile name in the interactive setup. ## Run a Review Run a named profile: ```bash theme={null} entire review general ``` You can also select a profile with `--profile`: ```bash theme={null} entire review --profile general ``` Scope the review against a specific base branch: ```bash theme={null} entire review general --base origin/main ``` Add one-off instructions for a single run: ```bash theme={null} entire review general --prompt "Focus on auth, error handling, and missing tests." ``` Run only one reviewer from the selected profile: ```bash theme={null} entire review general --agent codex ``` Review a branch other than the one you are on, without switching your checkout. Entire checks it out in a worktree and reviews it there: ```bash theme={null} entire review general --target feature/token-refresh --cleanup-worktree ``` ## Flags | Flag | Description | | - | - | | `--configure` | Set up a review profile. Shows available agents and profiles unless paired with `--set-*` flags. | | `--set-agents AGENTS` | With `--configure`, set comma-separated reviewer agents for the profile. | | `--set-judge AGENT[=MODEL]` | With `--configure`, set the consolidating judge. | | `--set-output MODE` | With `--configure`, set where the verdict is delivered: `local` or `trail`. Defaults to `local`. | | `--local` | With `--configure`, save to `.entire/settings.local.json` instead of shared `.entire/settings.json`. | | `--set-task TEXT` | With `--configure`, set the profile's canonical task text. | | `--set-model AGENT=MODEL` | With `--configure`, set a model for a reviewer agent. Repeatable. | | `--set-slot AGENT[=MODEL]` | With `--configure`, set one reviewer slot. Repeatable; the same agent or model can appear more than once. | | `--edit` | Reopen the advanced review profile skill picker. | | `--findings [HANDLE]` | Browse local review findings. Pass a handle to print one saved run. | | `--agent NAME` | Run one reviewer from the selected profile. | | `--agents` | List reviewer agents available for the selected profile. | | `--model NAME` | Override the model for the selected `--agent` reviewer. Requires `--agent`. | | `--models` | List the models each review agent advertises. Optionally combine with `--agent NAME`. | | `--profile NAME` | Select a review profile. You can also pass the profile name as the positional argument. | | `--prompt TEXT` | Add one-off instructions for this review run. | | `--timeout DURATION` | Time limit for each reviewer and the judge. By default, reviewers have no timeout and the judge has a 20-minute timeout. | | `--base REF` | Scope the review against a Git ref instead of the default mainline ref. Defaults to the first existing ref from `origin/HEAD`, `origin/main`, `origin/master`, `main`, or `master`. | | `--target REF` | Check out a branch in a worktree and run the review there. Accepts a branch name, a trail ID, or an Entire trail URL. | | `--cleanup-worktree` | Remove a newly created `--target` worktree after a successful review. Interactive runs ask when you omit this flag. | | `--list` | List configured review profiles with their reviewers and judge. | | `-h, --help` | Show help for `entire review`. | A reviewer that exceeds the timeout is canceled and marked failed; the other reviewers and the judge continue. If the judge times out or fails, the review ends without a verdict. > [!NOTE] > > `entire review --findings` only browses local findings. It does not apply fixes. ## Attach an Existing Review To tag an already-finished session as a review, use [`entire session attach`](/cli-reference/session#session-attach) with `--review`: ```bash theme={null} entire session attach SESSION_ID --review ``` ## Examples ```bash theme={null} # Configure a review profile entire review --configure # Configure a profile without the interactive setup entire review --configure --set-agents codex,claude-code --set-judge codex --set-output local # Run the general profile entire review general # Review a stacked branch against its parent entire review general --base origin/my-parent-branch # Run one configured reviewer entire review general --agent codex # Browse local findings entire review --findings # List configured profiles entire review --list ``` ## Continue with > [card] [Review and Recap Agent Work](/learn/review-and-recap-agent-work) > > Configure reviewers, run a review, and inspect recent activity in one tutorial. > [card] [Review Profiles](/guides/configuration/review-profiles) > > Configure shared and local review behavior. # runner Source: https://docs.entire.com/cli-reference/runner Set up and tune this repository's trail runners. Manage the trail runner configs in `.entire/runners/`. > [!NOTE] > > File-based repository Runners are separate from project Agents. To configure > project Agents through the CLI, use [`entire api`](/cli-reference/api) as described > in [Manage Agents from the CLI](/guides/trails/agents#manage-agents-from-the-cli). ```bash theme={null} entire runner SUBCOMMAND ``` `entire runner` is experimental and is hidden from the top-level help. A [runner](/glossary#runner) scores and reviews a branch's changes; this command manages the per-repository set: risk, confidence, drift, security, review, and others. ## runner setup Create and tailor this repository's trail runners. ```bash theme={null} entire runner setup [RUNNER] [flags] ``` `setup` creates the default runner set in a repository that has none, and tailors the generic templates to this repository using gathered signal: its documentation and structure, merged pull requests and issues, checkpoint churn hotspots, and past trail findings. In a terminal with no flags, `setup` asks whether you want the generic defaults or defaults tailored to this repository. Otherwise, name the action up front with one of `--yes`, `--defaults-only`, `--print-prompt`, or `--dry-run`. A non-interactive run requires one of them. `--yes` and `--dry-run` each call your configured summary provider once. With no provider configured and several agents installed, you are asked which to use; `--agent NAME` names one for this run instead and saves nothing. Pass a runner name, such as `risk` or `trail-risk`, to tune only that runner. | Flag | Description | | - | - | | `--agent NAME` | Text-generation agent to tailor with for this run, such as `codex`. Skips the provider choice and saves nothing. Only applies to runs that tailor: `--yes`, `--dry-run`, or choosing to tailor at the prompt. | | `--debug-dir DIRECTORY` | Write the assembled prompt as `prompt.txt` and, when a provider runs, its raw response as `response.txt`, to this directory. | | `--defaults-only` | Create the generic default runners and stop. No tailoring, and no provider call. | | `--dry-run` | Show the tailoring as a diff and write nothing. | | `--limit N` | How many recent pull requests, issues, and trails to sample. Defaults to `20`. | | `--print-prompt` | Create the default runners if missing, then print the tailoring prompt for your own agent to run instead of calling a provider. | | `--sources SOURCES` | Comma-separated data sources to gather: `repo`, `prs`, `checkpoints`, `trails`, or `all`. Defaults to `all`. | | `-y, --yes` | Create the default runners if missing, then tailor them to this repository in place. | ```bash theme={null} # Create the default runners and tailor them to this repository entire runner setup --yes # Create the generic defaults and stop entire runner setup --defaults-only # Print the tailoring prompt for your own agent entire runner setup --print-prompt # Preview the tailoring for the risk runner without writing entire runner setup risk --dry-run --sources repo ``` > [!WARNING] > > `--yes` rewrites files in `.entire/runners/`. Review changes with `git diff -- .entire/runners/` before committing. ## Continue With > [card] [review](/cli-reference/review) > > Run a multi-agent review against a branch. > [card] [Glossary](/glossary#runner) > > See how runners and trails fit together. # search Source: https://docs.entire.com/cli-reference/search Search checkpoints, commits, and sessions with hybrid semantic and keyword matching, or search code content with --code. Search indexed Entire history from the CLI. Add `--code` to search code content instead. ```bash theme={null} entire search [QUERY] [flags] ``` `entire checkpoint search` is an equivalent alias. In CLI versions 0.9.0 and earlier, `entire search` was hidden from `entire --help` but remained runnable. By default, search is scoped to the current repository. Use `--repo`, `--all-repos`, or `repo:*` to change the scope. Run without arguments to open interactive search. Use `--json` for machine-readable output. > [!NOTE] > > **Requires a published repository.** Entire answers this from its own servers rather than from your local clone, so the repository must be published somewhere Entire can reach and its checkpoints pushed. > > Publish by [creating a repository on Entire](/guides/repositories/repository) or by [mirroring a GitHub repository](/guides/repositories/mirrors), then `git push`. `entire enable` does not create or push to a remote for you. > > Your work becomes available shortly after it reaches Entire, so give a recent push a couple of minutes before treating a missing result as a problem. Search queries Entire's index, so indexing has to finish before new work appears. See [What Is Indexed and When](/guides/search/what-is-indexed). ## Examples ```bash theme={null} entire search "auth token refresh" entire search "auth token refresh" --repo entireio/cli entire search "repo:* auth token refresh" entire search "retry logic" author:alex branch:main date:month entire search "auth token refresh" --json entire search "auth token refresh" --compact --limit 5 ``` ## Flags | Flag | Description | | - | - | | `--all-repos` | Search all accessible repositories instead of only the current repository. | | `--author NAME` | Filter by author name. | | `--branch NAME` | Filter by branch name. | | `--case-sensitive` | Reserved for future case-sensitive code search. Only valid with `--code`; currently does not change backend matching. | | `--code` | Search code content across repositories instead of checkpoints, commits, and sessions. | | `--compact` | Return trimmed JSON for agents. Implies `--json` and cannot be combined with `--code`. | | `--date PERIOD` | Filter by time period. Use `week` or `month`. | | `--json` | Output as JSON. | | `--limit N` | Maximum number of results per page, or total results with `--code`. Default is `10`. | | `--page N` | Page number, 1-based. Default is `1`. | | `--repo REPOSITORY` | Filter by repository. Accepts `gh/owner/repo`, `et/project/repo`, `owner/repo`, a repository ULID, or `*`; repeatable and comma-separated. | ## Inline Filters CLI queries also support inline filters: ```bash theme={null} entire search "retry logic author:alex date:month branch:main repo:entireio/cli" ``` Supported inline filters are: * `author:NAME` * `date:week|month` * `branch:NAME` * `repo:OWNER/NAME` * `repo:*` ## Compact Output for Agents Use `--compact` to omit full prompts and return a smaller semantic-search response: ```bash theme={null} entire search "auth token refresh" --compact --limit 5 ``` Each result includes its identifiers, type, ranking metadata, and a truncated title. Repository, branch, author, date, files touched, and match snippets appear when available. `--compact` implies `--json`. It cannot be combined with `--code`. For semantic search, `--limit` sets the maximum results per page. For Code Search, it sets the maximum total results. ## Code Search Use `--code` to search code content instead of checkpoints, commits, and sessions. Results are grouped under a `repo:path` heading with line-numbered matches beneath it. ```bash theme={null} entire search --code "refreshAccessToken" entire search --code "refreshAccessToken" --repo entireio/cli entire search --code "repo:* refreshAccessToken" entire search --code "refreshAccessToken" --json ``` Code search matches exact text and is currently case-insensitive. The CLI accepts `--case-sensitive`, but the search backend does not yet apply it. In `--code` mode, `repo:` is the only supported inline filter. The `author:`, `branch:`, and `date:` tokens are treated as literal query text, and the `--author`, `--branch`, `--date`, and `--page` flags do not apply. In interactive search, press `3` to switch to the **Code** tab. The other tabs are **Commits** (`1`) and **Sessions** (`2`). Checkpoint matches fold into their owning sessions. Use `entire checkpoint explain CHECKPOINT_ID` to open a checkpoint directly. ## Continue With > [card] [Search](/guides/search/overview) > > Compare semantic and keyword search with literal code search. > [card] [Search in the CLI](/guides/search/search-in-cli) > > Use both search modes from your terminal. > [card] [Search Past Work and Code](/learn/search-past-agent-work) > > Practice search with a guided tutorial. > [card] [What Is Indexed and When](/guides/search/what-is-indexed) > > Check availability, timing, and repository scope. # service-account Source: https://docs.entire.com/cli-reference/service-account Manage a project's service accounts. Manage a project's service accounts. ```bash theme={null} entire service-account COMMAND ``` A service account is a non-human account that a project owns. Grant it access to repositories, then let your jobs and agents sign in as it with an [OIDC token](/guides/configuration/oidc) or a [secret](/guides/configuration/service-accounts#sign-in-with-a-secret). See [Service Accounts](/guides/configuration/service-accounts) for the full setup. `entire sa` is short for `entire service-account`. Commands name a service account by its `svc_` ID or as `PROJECT/NAME`, such as `acme/deploy`. ## `entire service-account create` Create a service account in a project. You need permission to manage the Entire project. ```bash theme={null} entire service-account create PROJECT NAME [flags] ``` Names are unique within a project. An organization or account can have up to 5 service accounts across all its projects. | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | ```bash theme={null} entire service-account create acme deploy ``` ## `entire service-account list` List a project's service accounts. ```bash theme={null} entire service-account list PROJECT [flags] ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | ## `entire service-account get` Show a service account. ```bash theme={null} entire service-account get SERVICE_ACCOUNT [flags] ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | ## `entire service-account delete` Delete a service account with its grants, bindings, and secrets. Jobs that sign in as it stop working. ```bash theme={null} entire service-account delete SERVICE_ACCOUNT [flags] ``` | Flag | Description | | - | - | | `-f, --force` | Skip the confirmation prompt. | | `-y, --yes` | Skip the confirmation prompt. Alias for `--force`. | ## `entire service-account grant` Grant a service account a role on one repository or on its own project. ```bash theme={null} entire service-account grant SERVICE_ACCOUNT (--repo REPO | --project PROJECT) --role ROLE ``` The repository or project must belong to the service account's project. Granting again changes the role. | Flag | Description | | - | - | | `--project PROJECT` | The service account's own project, by name or ULID. Grants every repository in it. | | `--repo REPO` | A repository in the service account's project, by name or as `/et/PROJECT/REPO`. | | `--role ROLE` | `reader`, `writer`, or `admin`. Required. | ```bash theme={null} entire service-account grant acme/deploy --repo web --role writer entire service-account grant acme/deploy --project acme --role reader ``` ## `entire service-account grants` List the repository and project grants a service account holds. Only grants you can manage are shown. ```bash theme={null} entire service-account grants SERVICE_ACCOUNT [flags] ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | ## `entire service-account revoke` Remove a service account's grant on a repository or project. ```bash theme={null} entire service-account revoke SERVICE_ACCOUNT (--repo REPO | --project PROJECT) ``` | Flag | Description | | - | - | | `--project PROJECT` | The service account's own project, by name or ULID. | | `--repo REPO` | A repository in the service account's project, by name or as `/et/PROJECT/REPO`. | ```bash theme={null} entire service-account revoke acme/deploy --repo web ``` ## `entire service-account providers` List the OIDC platforms you can bind a service account to. Name one to see the pins a binding can set, which ones are required, and the platform's setup guide. ```bash theme={null} entire service-account providers [NAME] [flags] ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | ```bash theme={null} entire service-account providers entire service-account providers buildkite ``` ## `entire service-account bind` Let a platform's jobs and agents sign in as a service account with their OIDC tokens. Each `--pin` narrows which tokens match. ```bash theme={null} entire service-account bind SERVICE_ACCOUNT --provider NAME --pin NAME=VALUE... [flags] ``` A terminal asks for any required pin you leave out. A service account holds one binding per platform. A pin matches a name, so unbind before you rename or delete a bound repository or pipeline. See [OpenID Connect (OIDC)](/guides/configuration/oidc) for each platform's pins. | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | | `--pin NAME=VALUE` | A token attribute to match. Repeat for each pin. | | `--provider NAME` | The platform, such as `github-actions` or `buildkite`. Required. | ```bash theme={null} entire service-account bind acme/deploy --provider github-actions --pin repository=acme/web entire service-account bind acme/deploy --provider buildkite --pin organization=acme --pin pipeline=deploy ``` ## `entire service-account bindings` List a service account's bindings. ```bash theme={null} entire service-account bindings SERVICE_ACCOUNT [flags] ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | ## `entire service-account unbind` Remove a binding, so the platform's jobs can no longer sign in as the service account. Removing a binding that doesn't exist succeeds. Tokens already issued keep working for up to 45 minutes after you remove a binding. To cut access sooner, revoke the service account's grants. ```bash theme={null} entire service-account unbind SERVICE_ACCOUNT BINDING_ID ``` ```bash theme={null} entire service-account unbind acme/deploy eib_01HZX7QABCDEFGHJKMNPQRSTVW ``` ## `entire service-account secret create` Create a secret for a service account and print it once. You need permission to manage the Entire project to create a secret. ```bash theme={null} entire service-account secret create SERVICE_ACCOUNT [flags] ``` Only the secret goes to stdout, so you can redirect it into a file or a secret store. A secret lasts 90 days by default. A service account holds at most two unexpired secrets, so you can create a new one before you delete the old one. | Flag | Description | | - | - | | `--expires-in-days DAYS` | Lifetime in days, 1 to 365. Defaults to 90. | | `--json` | Output raw JSON instead of the secret alone. | ```bash theme={null} entire service-account secret create acme/deploy > deploy.secret entire service-account secret create acme/deploy --expires-in-days 30 ``` ## `entire service-account secret list` List a service account's unexpired secrets, and those that expired in the last 30 days, with when and from which client each was last used. The secrets themselves are never shown again. ```bash theme={null} entire service-account secret list SERVICE_ACCOUNT [flags] ``` | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | ## `entire service-account secret delete` Delete a secret, so it can no longer be exchanged. Tokens already exchanged from it keep working until they expire, at most 10 minutes. Deleting a secret that doesn't exist succeeds. ```bash theme={null} entire service-account secret delete SERVICE_ACCOUNT SECRET_ID ``` ```bash theme={null} entire service-account secret delete acme/deploy sas_01HZX7QABCDEFGHJKMNPQRSTVW ``` ## Continue With > [card] [Service Accounts](/guides/configuration/service-accounts) > > Create a service account, grant it access, and sign in with a secret. > [card] [OpenID Connect (OIDC)](/guides/configuration/oidc) > > Let your jobs and agents sign in with their platform's token. # session Source: https://docs.entire.com/cli-reference/session View and manage agent sessions tracked by Entire. View and manage agent sessions tracked by Entire. ```bash theme={null} entire session SUBCOMMAND ``` `entire session` is also available as `entire sessions`. ## Session Lifecycle ```mermaid theme={null} flowchart LR start["Agent starts"] --> active["Active"] active -->|"tracking lingers after the agent exits"| stale["Stale"] active -->|"session stop"| stopped["Stopped"] stale -->|"session stop --force"| stopped stopped -->|"session resume"| resumed["Resumed"] resumed -->|"start agent"| active elsewhere["Active in another worktree"] -->|"session adopt"| adopted["Adopted"] adopted --> active transcript["Existing transcript"] -->|"session attach"| attached["Attached"] attached --> checkpoint["Checkpoint linked to latest commit"] history["Past local transcript"] -->|"entire import"| imported["Imported"] imported --> archive["Checkpoint for inspection only"] ``` The diagram shows the paths through a session workflow. `entire session info` reports live sessions as active or ended. Stale, resumed, adopted, attached, and imported describe a session's condition or how its context entered Entire: | State or Outcome | Meaning | | - | - | | Active | Entire is tracking the agent session. | | Stale | The agent has stopped, but its tracking state still appears active. Stop it to clear the live state. | | Stopped | `entire session stop` marked the session as ended. | | Resumed | `entire session resume` checked out the branch and restored the session log. Starting the agent returns the session to active work. | | Adopted | `entire session adopt` moved an active session from another worktree into the current repository. | | Attached | `entire session attach` linked an existing transcript to the latest commit and checkpoint. | | Imported | `entire import` stored past transcript history as a checkpoint for inspection only, with no commit link. | ## session current Show the session running this command, or the most recent one in this worktree. When an agent runs this command, Entire reports that agent's own session, read from the session ID the agent publishes into the environment of the commands it runs. Failing that, it falls back to the most recently active session in this worktree, and then to the most recent one anywhere in the repository's shared session store. The output says which one you got: the `Resolved` line in text mode, or the `resolution` field with `--json`. Only `caller-env` and `ancestry` identify the session running the command; `other-worktree` can be any unrelated session, because every worktree of a repository shares one store. Check it before acting on the session. ```bash theme={null} entire session current [flags] ``` | Flag | Description | | - | - | | `--json` | Output as JSON | | `--transcript` | Stream raw agent transcript bytes to stdout | ## session list List all sessions tracked by Entire, including ended sessions. ```bash theme={null} entire session list [flags] ``` For active sessions only, use [`entire status`](/cli-reference/status). | Flag | Description | | - | - | | `--json` | Output as JSON | ## session info Show detailed information for a specific session. `entire session info` shows agent, model, status, worktree, timing, token usage, checkpoint linkage, and files touched. ```bash theme={null} entire session info SESSION_ID [flags] ``` | Flag | Description | | - | - | | `--json` | Output as JSON | | `--transcript` | Stream raw agent transcript bytes to stdout | ## session tokens Show token usage and optimization recommendations for a session. ```bash theme={null} entire session tokens [SESSION_ID] [flags] ``` When you omit the session ID, Entire identifies the calling agent's session from agent session IDs and process ancestry, falling back to the most recently active session in this worktree and then elsewhere in the repository. The report says how the session was resolved, and ambiguous or cross-worktree matches also print a warning on standard error. | Flag | Description | | - | - | | `--agent-brief` | Give agents compact guidance for the next step | | `--current` | Prefer the current worktree's most recent session | | `--json` | Output as JSON | ## session stop Stop one or more active sessions. ```bash theme={null} entire session stop [SESSION_ID] [flags] ``` | Flag | Description | | - | - | | `--all` | Stop all active sessions | | `-f, --force` | Skip the confirmation prompt | `entire session stop` marks sessions as ended. It does not create a checkpoint or flush pending work. Commit first when you want Entire to link session context to code changes. ```bash theme={null} # Stop a specific session without confirmation entire session stop SESSION_ID --force # Stop all active sessions without confirmation entire session stop --all --force ``` ## session attach Attach an existing agent session that Entire did not capture automatically. ```bash theme={null} entire session attach SESSION_ID [flags] ``` This command reads the session transcript, creates or updates a checkpoint, and links it to the latest commit. Use it if you started the session before installing hooks, the hooks did not fire, or you want to preserve a research session. If the latest commit already has an `Entire-Checkpoint` trailer, Entire adds the session to that checkpoint. Otherwise, Entire creates a checkpoint and offers to amend the commit with the trailer. | Flag | Description | | - | - | | `-a, --agent NAME` | Agent that created the session. Defaults to `claude-code`. Run `entire agent list` to see registered agents, including discovered [agent integrations](/agents/agent-integration-protocol/overview). | | `-f, --force` | Skip confirmation and amend the latest commit with the checkpoint trailer | | `--review` | Tag the attached session as an agent review | | `--skills SKILL` | Declare a review Skill that ran. Repeat the flag for multiple Skills. Only used with `--review`. | ```bash theme={null} # Attach a Codex session and amend HEAD automatically entire session attach SESSION_ID --agent codex --force # Attach a session as a review entire session attach SESSION_ID --agent codex --review # Record multiple Skills used during a review entire session attach SESSION_ID --review --skills review --skills security ``` > [!NOTE] > > `entire session attach` requires at least one commit in the repository. If Entire cannot locate the transcript for the selected agent, it tries to detect the agent from known transcript locations. ## session adopt Adopt an active session from another worktree into the current repository. ```bash theme={null} entire session adopt [SESSION_ID] --from SOURCE_WORKTREE [flags] ``` Use this command when an agent starts in one repository or worktree, then moves and makes changes in another. | Flag | Description | | - | - | | `--from PATH` | Source worktree that already tracks the session | | `--force` | Replace an existing local state file for the same session | | `--yes` | Confirm adoption and replacement within the same store without prompting | ## session resume Resume an agent session from a branch or interactive picker. ```bash theme={null} entire session resume [BRANCH] [flags] ``` With no argument, Entire opens an interactive picker of stopped sessions across all worktrees. After you select a session, Entire checks out its branch, restores the session log, and asks whether to start the agent. With a branch argument, Entire: 1. Checks out the specified branch. 2. Finds the session ID from commits unique to the branch. 3. Restores the session log if it does not exist locally. 4. Asks whether to start the agent in an interactive terminal or prints the resume command in a terminal without interactive input. | Argument | Description | | - | - | | `BRANCH` | Optional branch that contains the session to resume | | Flag | Description | | - | - | | `-f, --force` | Resume from an older checkpoint without confirmation and overwrite the local session log from that checkpoint | ```bash theme={null} # Select a stopped session interactively entire session resume # Resume the session associated with a branch entire session resume BRANCH # Resume from an older checkpoint without confirmation entire session resume BRANCH --force ``` > [!NOTE] > > If the branch exists on the remote but not locally, Entire prompts you to fetch it. > [!WARNING] > > If the branch contains newer commits without checkpoints, Entire can reset Git state to the most recent commit with a checkpoint. Entire prompts before continuing unless you use `--force`. # status Source: https://docs.entire.com/cli-reference/status Show the current Entire status for this repository. Show whether Entire is currently enabled or disabled for this repository. ```bash theme={null} entire status [flags] ``` | Flag | Description | | - | - | | `--detailed` | Show detailed status for each settings file | | `--json` | Output as JSON | For all sessions, including ended ones, use [`entire session list`](/cli-reference/session#session-list). # tokens Source: https://docs.entire.com/cli-reference/tokens Analyze token usage across sessions and checkpoints. Analyze token usage across sessions and checkpoints. ```bash theme={null} entire tokens SUBCOMMAND ``` `entire tokens` is experimental and appears under [labs](/cli-reference/labs) while the workflow is still being refined. Three commands report on token usage, at different scopes: | Command | Scope | | - | - | | [`entire session tokens`](/cli-reference/session#session-tokens) | One session | | [`entire checkpoint tokens`](/cli-reference/checkpoint#checkpoint-tokens) | One checkpoint | | `entire tokens profile` | Committed checkpoint history | ## tokens profile Aggregate token usage and recommendations across committed checkpoint history. ```bash theme={null} entire tokens profile [flags] ``` | Flag | Description | | - | - | | `--all` | Analyze all committed checkpoints. | | `--json` | Output as JSON. | | `--limit N` | Maximum committed checkpoints to analyze. Defaults to `50`. | ```bash theme={null} entire tokens profile entire tokens profile --all entire tokens profile --limit 200 --json ``` The profile reads committed checkpoint metadata only. It does not inspect transcripts or source files, so it is deterministic and adds no token cost while you diagnose token usage. By default it scans the latest 50 committed checkpoints. ## Continue With > [card] [session tokens](/cli-reference/session#session-tokens) > > Token usage and recommendations for one session. > [card] [checkpoint tokens](/cli-reference/checkpoint#checkpoint-tokens) > > Token usage and recommendations for one checkpoint. # trail Source: https://docs.entire.com/cli-reference/trail Create, review, and merge trails across repositories and branches. Manage [trails](/glossary#trail): project intent, the repository branches linked to it, discussions, findings, approvals, and merges. ```bash theme={null} entire trail SUBCOMMAND [flags] ``` `entire trail` may not appear in `entire help`; run `entire trail --help` to see its subcommands. Coding agents can run `entire agent-help trail` for the same surface with agent-specific guidance. Trail commands call the Entire API with your saved login, so run [`entire login`](/cli-reference/login) first. They need network access and access to the credential store where the login is saved. ## Trails and Changes A project trail holds intent: a title, description, type, priority, assignees, and an open or closed status. It can span several repositories. Each repository branch linked to the trail is a change, and each change is reviewed, approved, and merged on its own. Project trails and changes are numbered separately. Trail numbers are project-wide, so trail `12` means the same trail from any repository in the project. Change numbers are per repository and are written as `/`. Commands that take a `` argument accept these selectors: | Selector | Meaning | | - | - | | `12` | A project trail by its project-wide number. | | A ULID | A project trail by its ID. | | `/` | A change: one repository branch of a trail, such as `app/7`. Accepted by `show`, `checkout`, `resume`, `watch`, `finding`, `approve`, `approvals`, `merge`, and `unlink`. `show` displays the parent trail. | | None | The trail that the current branch belongs to. | Do not pass an entire.com trail URL as a selector. Use the number from the URL instead, and add `--project` when the project is not the current repository's. ## Shared Flags These flags apply to every `entire trail` subcommand. | Flag | Description | | - | - | | `--project PROJECT` | Project as `gh/` or `et/`. Required for `list`. Otherwise defaults to the current repository's namespace: `gh/` for a GitHub mirror, `et/` for a repository hosted on Entire. | | `--repo REPO` | Target repository as `forge/owner/repo`, such as `gh/acme/app`, or a clone URL. Defaults to the `origin` remote. For `list`, it only filters within the required `--project`. Ignored by `resume`. | `--repo` and `--branch` select one repository branch of a trail for `checkout`, `resume`, `finding`, `watch`, `approve`, `approvals`, and `merge`. They do not aggregate across every repository on the trail. ## trail create Create a trail and publish its branch. ```bash theme={null} entire trail create --title TITLE [flags] ``` `create` makes a repository-scoped trail, then links a branch to it. In the current repository it publishes the local branch first, so no separate commit or push is required. It uses the current feature branch, or derives a new branch name from the title when you are on the base branch. Use `--branch` to choose a branch, or `--no-branch` for intent only. With `--no-branch`, the current or `--repo` repository becomes the trail's scope, which requires write access to that repository. `--project` without `--repo` creates unscoped intent instead, which requires project management permission. With `--repo`, no local branch is published. Link existing remote work, or pass `--branch-action create` to create the branch on the server from `--base`. `create` does not commit changes or change your local checkout. Branches are preserved if creation fails. | Flag | Description | | - | - | | `--assignee LOGINS` | Assignee logins. Replaces the complete list; `--assignee=` clears it. | | `--base BRANCH` | Base branch for new code work. Requires `--branch`. | | `--body TEXT` | Trail description. | | `--branch BRANCH` | Branch to use. Defaults to the current feature branch, or a branch derived from the title when on the base branch. | | `--branch-action ACTION` | `link` to link existing remote work, or `create` to create a new branch. Defaults to `link`. Requires `--branch`. | | `--idempotency-key KEY` | Retry key for linking the branch. With intent-only creation, requires project management permission. | | `--json` | Output raw JSON instead of a table. | | `--no-branch` | Create intent only. Cannot be combined with `--branch`, `--base`, or `--branch-action`. | | `--priority PRIORITY` | `urgent`, `high`, `medium`, `low`, or `none`. | | `--status STATUS` | Lifecycle status: `open` or `closed`. | | `--title TITLE` | Trail title. Required. | | `--type TYPE` | `bug`, `feature`, or `task`. | ```bash theme={null} # Create a trail for the current feature branch entire trail create --title "Add rate limiting to the API" --type feature # Create intent only, scoped to this repository entire trail create --title "Investigate flaky login test" --no-branch # Create a trail in another repository and a new branch on the server entire trail create --repo gh/acme/app --title "Fix pagination" \ --branch fix-pagination --branch-action create --base main ``` > [!NOTE] > > With a branch, `--idempotency-key` applies only to the link step. If linking fails after the trail is created, retry with `entire trail link` rather than creating another trail. ## trail list List trails in a project. ```bash theme={null} entire trail list --project PROJECT [flags] ``` `list` shows trails in one project, newest update first, and does not need a checkout. `--project` is required even inside a clone. `--repo` only filters within that project. Omitting `--status` includes every lifecycle state. | Flag | Description | | - | - | | `--json` | Output raw JSON instead of a table. | | `--limit N` | Page size, from 1 to 100. Defaults to `50`. | | `--page-token TOKEN` | Continue from a previous run's `nextPageToken`. Use the same project and filters. | | `--status STATUS` | Filter by `open` or `closed` before pagination. | ```bash theme={null} # List open trails in a GitHub owner's project entire trail list --project gh/acme --status open # List trails in an Entire project that touch one repository entire trail list --project et/platform --repo et/platform/api ``` ## trail show Show trail intent and its repositories and branches. ```bash theme={null} entire trail show [] [flags] ``` Pass a project trail number or ID, or a `/` change to show its parent trail. Without a selector, `show` follows the current branch to its trail. With `--json`, each entry in `changes[]` is one repository branch with its own URL. | Flag | Description | | - | - | | `--branch BRANCH` | Find the trail through this repository branch. Defaults to the current branch when no trail is given. | | `--json` | Output raw JSON instead of a table. | ```bash theme={null} # Show the trail for the current branch entire trail show # Show trail 12 in another project as JSON entire trail show 12 --project gh/acme --json ``` ## trail update Update a trail's intent and lifecycle. ```bash theme={null} entire trail update [] [flags] ``` Without a selector, `update` acts on the current branch's trail. Pass at least one field to change. | Flag | Description | | - | - | | `--add-assignee LOGINS` | Add assignee logins. | | `--assignee LOGINS` | Assignee logins. Replaces the complete list; `--assignee=` clears it. | | `--body TEXT` | Trail description. `--body=` clears it. | | `--branch BRANCH` | Find the trail through this repository branch. Defaults to the current branch when no trail is given. | | `--json` | Output raw JSON instead of a table. | | `--priority PRIORITY` | `urgent`, `high`, `medium`, `low`, or `none`. | | `--remove-assignee LOGINS` | Remove assignee logins. | | `--status STATUS` | Lifecycle status: `open` or `closed`. | | `--title TITLE` | Trail title. | | `--type TYPE` | `bug`, `feature`, or `task`. | ```bash theme={null} # Close the current branch's trail entire trail update --status closed # Raise priority and add an assignee on trail 12 entire trail update 12 --priority high --add-assignee octocat ``` ## trail link Link a repository branch to a trail. ```bash theme={null} entire trail link [flags] ``` `link` attaches an existing remote branch to a project trail, given by number or ID. `--branch` defaults to the current branch. Use `--branch-action create` to create the branch on the server from `--base`. Existing work and reviews are preserved. A branch that already belongs to another trail is rejected. | Flag | Description | | - | - | | `--base BRANCH` | Base branch for new code work. Requires `--branch`. | | `--branch BRANCH` | Branch to link. Defaults to the current branch. Required with `--repo`. | | `--branch-action ACTION` | `link` to link existing remote work, or `create` to create a new branch. Defaults to `link`. | | `--idempotency-key KEY` | Retry key for linking. When omitted, Entire generates one and prints it so a failed link can be retried with the same key. | | `--json` | Output raw JSON instead of a table. | | `--status STATUS` | Lifecycle status for the linked branch: `open` or `closed`. | ```bash theme={null} # Link the current branch to trail 12 entire trail link 12 # Link a branch in another repository to the same trail entire trail link 12 --repo gh/acme/web --branch rate-limit-ui ``` ## trail unlink Unlink a repository branch without deleting its work. ```bash theme={null} entire trail unlink [] [flags] ``` `unlink` removes a repository branch from a trail. The branch, code, reviews, and sessions are preserved. A trail with one open change unlinks it. With several, they are listed so you can pass one as `/` or select it with `--branch`. | Flag | Description | | - | - | | `--branch BRANCH` | Select the repository branch to unlink. | ```bash theme={null} entire trail unlink app/7 ``` ## trail checkout Check out a trail's branch. ```bash theme={null} entire trail checkout [] [flags] ``` The trail can be given as an argument or with `--trail`. Without one, the current branch's trail is used. `--branch` selects the working branch; otherwise the current branch, or the trail's only branch in this repository, is selected. When neither applies, the open changes are listed so you can pass one as `/`. Remote-only branches are fetched. `checkout` must run inside a clone of the trail's repository. The trail is looked up against that clone's `origin` remote, and `--repo` is not accepted. With `--worktree`, the branch is checked out into a Git worktree under `.entire/worktrees` at the repository root instead of switching the current checkout. Gitignored files that match `.worktreeinclude` patterns are copied into the worktree. In a terminal, the command prints a `cd` command for the new worktree. When standard output is not a terminal, it prints only the worktree path. | Flag | Description | | - | - | | `--branch BRANCH` | Select a branch within the trail in this repository. | | `-f, --force` | Skip the prompt before fetching a remote-only branch. | | `--trail TRAIL` | Project trail number, ID, or `/`. Defaults to the current branch's trail. | | `--worktree` | Check out the trail branch in a worktree under `.entire/worktrees` instead of switching this checkout. | ```bash theme={null} # Check out the branch of trail 12 entire trail checkout 12 # Check out a change into its own worktree and enter it cd "$(entire trail checkout app/7 --worktree)" ``` ## trail resume Resume a trail's agent session. ```bash theme={null} entire trail resume [] [flags] ``` The trail can be given as an argument or with `--trail`. Without one, the current branch's trail is used. When several branches match, pass `--branch`. In an interactive terminal, `resume` shows the trail context, restores the checkpoint sessions on the trail branch, and asks whether to start the agent. If the checkpoint has several sessions, you choose which one to start. Non-interactive runs show the same context and print resume commands for the latest checkpoint on the trail branch. Use `--session` or `--checkpoint` to resume an exact session or checkpoint. With a trail number or ID, `--branch` asserts the branch you expect the trail to be attached to. If it does not match, `resume` stops before checking anything out. | Flag | Description | | - | - | | `--branch BRANCH` | Expected trail branch. Fails if the trail is attached to a different branch. | | `--checkpoint ID` | Resume a specific checkpoint on the trail branch. | | `-f, --force` | Skip prompts and overwrite existing session logs from checkpoints. | | `--json` | Output the trail resume context as JSON. | | `--no-resume` | Show the trail resume context without restoring or resuming a session. | | `--session ID` | Resume a specific known local session on the trail branch. | | `--trail TRAIL` | Project trail number, ID, or `/`. Defaults to the current branch's trail. | ```bash theme={null} # Resume the agent session for trail 12 entire trail resume 12 # Show what would be resumed without restoring anything entire trail resume app/7 --no-resume ``` > [!WARNING] > > `--force` overwrites existing local session logs with the versions stored in checkpoints. ## trail watch Tail events for a trail's selected repository branch. ```bash theme={null} entire trail watch [] [flags] ``` `watch` subscribes to the trail's event stream for the selected repository branch and prints events as they arrive. It reconnects automatically when the server caps the connection, about every 50 seconds, and on transient network errors. Without a selector, the current branch's trail is used. | Event | Meaning | | - | - | | `ready` | Initial frame, including the trail and cursor. | | `` | A trail domain event, such as reviews, findings, runners, or monitors. | | `reconnect` | The server cap was reached; the stream is re-established. | | `forbidden` | Access was revoked; the stream ends. | | `error` | A server-side error; treated as a reconnect. | | Flag | Description | | - | - | | `--branch BRANCH` | Select a repository branch within the trail. | | `--json` | Print each event as a single JSON line. | | `--once` | Open one connection, then exit instead of reconnecting. | | `--show-pings` | Print keepalive pings, which are otherwise suppressed. | ```bash theme={null} # Follow events for the current branch's trail as JSON lines entire trail watch --json ``` ## trail comment Discuss the whole trail across repositories. ```bash theme={null} entire trail comment SUBCOMMAND [flags] ``` Comments are discussions between people on the whole trail. Agents report through [findings](#trail-finding) instead: when Entire detects an agent session, the write subcommands (`add`, `reply`, `edit`, `delete`, `resolve`, `unresolve`) are refused, while `list` and `show` still work. These flags apply to every `trail comment` subcommand: | Flag | Description | | - | - | | `--branch BRANCH` | Find the trail through this repository branch. | | `--trail TRAIL` | Project trail number, ID, or `/`. Defaults to the current branch's trail. | Every subcommand also accepts `--json` to output raw JSON instead of a table. ### trail comment list List the trail's discussions. ```bash theme={null} entire trail comment list [flags] ``` ### trail comment show Show a discussion and its messages. ```bash theme={null} entire trail comment show [flags] ``` ### trail comment add Start a discussion on the trail. ```bash theme={null} entire trail comment add -m BODY [flags] ``` | Flag | Description | | - | - | | `-m, --body TEXT` | Message body. Required. | | `--title TITLE` | Discussion title. | ### trail comment reply Reply to a discussion. ```bash theme={null} entire trail comment reply -m BODY [flags] ``` | Flag | Description | | - | - | | `-m, --body TEXT` | Message body. Required. | ### trail comment edit Edit a discussion message. ```bash theme={null} entire trail comment edit -m BODY [flags] ``` | Flag | Description | | - | - | | `-m, --body TEXT` | New message body. Required. | ### trail comment delete Delete a discussion message. ```bash theme={null} entire trail comment delete [flags] ``` | Flag | Description | | - | - | | `-f, --force` | Confirm the deletion. | ### trail comment resolve Resolve a discussion. ```bash theme={null} entire trail comment resolve [flags] ``` ### trail comment unresolve Reopen a resolved discussion. ```bash theme={null} entire trail comment unresolve [flags] ``` ```bash theme={null} # Start a discussion on trail 12 entire trail comment add --trail 12 --title "Rollout plan" -m "Ship behind a flag first?" # Reply, then resolve entire trail comment reply DISCUSSION_ID -m "Agreed, flag it." entire trail comment resolve DISCUSSION_ID ``` ## trail approve Approve a trail's selected repository branch. ```bash theme={null} entire trail approve [] [flags] ``` Without a selector, the current branch's trail is used. Only the selected branch is approved, not every repository on the trail. The branch must be open. | Flag | Description | | - | - | | `--branch BRANCH` | Select a repository branch within the trail. | | `-m, --message TEXT` | Optional approval comment. | ```bash theme={null} entire trail approve app/7 -m "Looks good" ``` ## trail approvals List approval decisions on a trail's selected repository branch. ```bash theme={null} entire trail approvals [] [flags] ``` | Flag | Description | | - | - | | `--branch BRANCH` | Select a repository branch within the trail. | | `--json` | Output as JSON. | ## trail merge Merge one of a trail's changes into its base branch. ```bash theme={null} entire trail merge [] [flags] ``` Without a selector, `merge` merges the current branch's change. A trail with one open change merges it, in any repository. With several, they are listed with their review state so you can pass one as `/` or select it with `--branch` and `--repo`. Each change merges on its own; merging one never merges the trail's other changes. The trail's [gates](/guides/trails/gates) are checked first: approvals, CI checks, the base branch's CI, being up to date, and any other configured gates. When a blocking gate fails or is still pending, the blocking gates are listed and nothing is merged. A change that conflicts with its base is never merged; resolve the conflicts first. `--dry-run` only reports whether the change can be merged. It exits non-zero when the merge would be refused, so it can gate CI. After merging a change in a repository hosted on Entire, the server deletes the trail's branch when the repository's delete-branch-on-merge setting is on. Your local branch is not touched. `--delete-branch` and `--no-delete-branch` override that setting for one merge. Before deleting the branch, the server moves any open trails based on it onto this trail's base, and keeps the branch when one of them cannot be moved. A GitHub-backed trail's branch follows GitHub's own auto-delete setting, so both flags are refused there. | Flag | Description | | - | - | | `--branch BRANCH` | Select a repository branch within the trail. | | `--delete-branch` | Delete the trail's branch after merging, overriding the repository setting. Repositories hosted on Entire only. | | `--dry-run` | Only check whether the change can be merged; do not merge. | | `--force` | Merge even when blocking gates fail. Requires bypass permission. | | `--json` | Output as JSON. | | `--no-delete-branch` | Keep the trail's branch after merging, overriding the repository setting. Repositories hosted on Entire only. | | `-y, --yes` | Skip the confirmation prompt before `--force` bypasses gates. | ```bash theme={null} # Check whether the current branch's change can merge entire trail merge --dry-run # Merge one change of trail 12 entire trail merge app/7 ``` > [!WARNING] > > `--force` bypasses blocking gates and is recorded on the trail. The repository's bypass policy decides who may use it. Without a terminal to confirm in, or with `--json`, `--force` also requires `--yes`. ## trail finding Manage a trail's agent findings. ```bash theme={null} entire trail finding [] [flags] entire trail finding SUBCOMMAND [flags] ``` A [finding](/glossary#finding) is an issue raised against a trail's branch, typically by a [runner](/cli-reference/runner) or an agent review. Findings apply only to the selected repository branch, not the whole trail. Run `entire trail finding` with no subcommand to show the finding dashboard for the current branch's trail; it takes the same filter flags as [`trail finding list`](#trail-finding-list). These flags apply to every `trail finding` subcommand: | Flag | Description | | - | - | | `--branch BRANCH` | Select a repository branch within the trail. | | `--trail TRAIL` | Project trail number, ID, or `/`. Defaults to the current branch's trail. Pass the trail either positionally or with `--trail`, not both. | ### trail finding list List findings for a trail. ```bash theme={null} entire trail finding list [] [flags] ``` By default, `list` shows open findings on the current code version. | Flag | Description | | - | - | | `--cursor CURSOR` | Continue from the next cursor returned by a previous page. | | `--freshness FRESHNESS` | Filter by code-version freshness: `current`, `stale`, or `any`. Defaults to `current`. | | `--include-dismissed` | Include dismissed findings. | | `--json` | Output as JSON. | | `-n, --limit N` | Maximum number of findings to show. Defaults to `100`. | | `--severity SEVERITY` | Filter by comma-separated severity values: `high`, `medium`, `low`. | | `--status STATUS` | Filter by comma-separated lifecycle status: `open`, `resolved`, `dismissed`, or `any` for all. Defaults to `open`. | ### trail finding show Show a finding. ```bash theme={null} entire trail finding show [] ``` ### trail finding add Create a finding on a trail. ```bash theme={null} entire trail finding add [] -m BODY [flags] ``` A finding can carry a location and a suggested change. A patch must modify a single existing file in this worktree; when `--file` is omitted, the location defaults to the file the patch modifies. | Flag | Description | | - | - | | `-m, --body TEXT` | Finding body. Required. | | `--client-id KEY` | Retry key for this finding and its review. The server keeps it for 24 hours; reuse it with the same fields. | | `--confidence N` | Finding confidence from `0.0` to `1.0`. | | `--end-line N` | End line for the finding location. Requires `--line` or `--start-line`. | | `--file PATH` | File path for the finding location. Required with any line flag. | | `--instruction TEXT` | Manual suggested-change instruction to attach. | | `--json` | Output as JSON. | | `--line N` | Line number for the finding location. Cannot be combined with `--start-line`. | | `--patch DIFF` | Unified-diff suggested change to attach. | | `--patch-file PATH` | Read the unified-diff suggested change from a file, or `-` for standard input. Cannot be combined with `--patch`. | | `--severity SEVERITY` | `high`, `medium`, or `low`. | | `--start-line N` | Start line for the finding location. | ### trail finding apply Apply a finding's unified-diff suggestion to the current worktree. ```bash theme={null} entire trail finding apply [] [flags] ``` By default, `apply` only changes files. Pass `--resolve` to also mark the finding resolved once the patch applies. `apply` patches this clone, so `--repo` is not accepted. | Flag | Description | | - | - | | `--check` | Only check whether the patch applies; do not modify files. | | `--resolve` | Mark the finding resolved after applying. | ### trail finding resolve Resolve a finding. ```bash theme={null} entire trail finding resolve [] [flags] ``` | Flag | Description | | - | - | | `-m, --message TEXT` | Status reason to record. | ### trail finding dismiss Dismiss a finding. ```bash theme={null} entire trail finding dismiss [] [flags] ``` | Flag | Description | | - | - | | `-m, --message TEXT` | Status reason to record. | ### trail finding reopen Reopen a resolved or dismissed finding. ```bash theme={null} entire trail finding reopen [] [flags] ``` | Flag | Description | | - | - | | `-m, --message TEXT` | Status reason to record. | ### trail finding update Update a finding's metadata. Pass at least one of `--body`, `--severity`, or `--confidence`. ```bash theme={null} entire trail finding update [] [flags] ``` | Flag | Description | | - | - | | `-m, --body TEXT` | Finding body. | | `--confidence N` | Finding confidence from `0.0` to `1.0`. | | `--json` | Output as JSON. | | `--severity SEVERITY` | `high`, `medium`, or `low`. | ```bash theme={null} # List open high-severity findings for the current branch entire trail finding list --severity high # Include stale and resolved findings entire trail finding list --freshness any --status any # Add a finding with a location entire trail finding add -m "Missing nil check on the response" \ --severity medium --file internal/api/client.go --line 42 # Check, then apply a suggested change and resolve the finding entire trail finding apply FINDING_ID --check entire trail finding apply FINDING_ID --resolve # Dismiss a finding with a reason entire trail finding dismiss FINDING_ID -m "Intended behavior; covered by tests" ``` > [!NOTE] > > When the findings gate is configured, open findings at or above its severity threshold block the merge until each one is resolved or dismissed. See [Gates](/guides/trails/gates). ## Continue With > [card] [Trails overview](/guides/trails/overview) > > Learn how trails group intent, branches, and checkpoints. > [card] [Agents](/guides/trails/agents) > > Configure the automated evaluations that run on a trail. > [card] [Gates](/guides/trails/gates) > > Configure the checks a change must pass before it merges. > [card] [runner](/cli-reference/runner) > > Set up the runners that raise findings on a trail. # version Source: https://docs.entire.com/cli-reference/version Show build information including the CLI version, Go version, and OS/architecture. Show build information including the CLI version, Go version, and OS/architecture. ```bash theme={null} entire version ``` You can also use the `--version` flag on the root command: ```bash theme={null} entire --version ``` Both produce the same three lines: the CLI version, the Go version the release was built with, and your platform. See [Verify the Install](/installation#verify-the-installation) for a worked example. > [!NOTE] > > Nightly and development builds report a longer version string that encodes the build date and commit. Include the whole line when you file a bug report. # why Source: https://docs.entire.com/cli-reference/why Explain the commit, checkpoint, prompt, and session behind a file or line. Explain the captured context behind a file or line. ```bash theme={null} entire why FILE[:LINE] [flags] ``` Use `entire why` when you want to jump from a file or specific line to the commit, checkpoint, prompt, and session behind it. ## Flags | Flag | Description | | - | - | | `--line LINE` | Explain a specific line, for example `12`. This is the same as `FILE:12`. | | `--json` | Output explanation as JSON | ## Examples ```bash theme={null} entire why overview.mdx entire why overview.mdx:12 entire why overview.mdx --line 12 entire why overview.mdx:12 --json ``` ## Continue With > [card] [Investigate Why Code Exists](/learn/investigate-why-code-exists) > > Use `entire why` in a full provenance investigation. > [card] [checkpoint explain](/cli-reference/checkpoint#checkpoint-explain) > > Inspect the full checkpoint context. # Delete Your Account Source: https://docs.entire.com/delete-account Permanently delete your Entire account, and cancel during the 7-day cooldown You can permanently delete your Entire account from [entire.com](https://entire.com) at any time. This page covers what gets deleted, the 7-day cooldown, how to cancel, and what happens when deletion completes. This is how you exercise your **right to erasure** (the "right to be forgotten") under the GDPR and similar laws. For what data we hold and how long we keep it, see the [Privacy Policy](https://entire.com/privacy). ## Before You Start When you open the delete dialog, Entire shows you a preview of exactly what will happen to your account. Review it before you confirm. * **Permanently deleted**: your Entire account, your profile data, and the repositories connected to your personal account. * **Access you'll lose**: your memberships in other organizations and any roles granted to you. You are removed from those organizations; the organizations themselves and their repositories are not deleted. Your Git repositories are not touched. Checkpoint data lives in your own repository, either as one Git ref per checkpoint under `refs/entire/checkpoints/` or on the `entire/checkpoints/v1` branch, so deleting your Entire account does not erase it. Delete those refs yourself if you want the transcripts gone. See [Where your data lives](/security#where-your-data-lives). > [!WARNING] > > You can't delete your account while you **own an organization**. Transfer > ownership or delete each organization you own first, then delete your account. > The dialog lists the organizations you still own. ## Delete Your Account **1. Open Account Settings** Sign in to [entire.com](https://entire.com), open your **Account** settings, and find the **Danger zone**. **2. Start the Deletion** Click **Delete account**. Entire loads a preview of what will be deleted and which access you'll lose. **3. Confirm** Type your GitHub username to confirm, then click **Delete my account**. If you still own an organization, resolve the blockers listed in the dialog first. **4. You're Signed Out** Your account is scheduled for deletion and you're signed out everywhere immediately. A 7-day cooldown begins. ## 7-Day Cooldown Deletion is not immediate. Your account enters a **7-day cooldown** during which nothing is erased yet and you can still change your mind. While the cooldown is running: * You're signed out, and your access tokens stop working, so you can't push new work or use the API. * You can sign back in to cancel. Signing in **does not** cancel the deletion on its own. You have to click **Cancel deletion**. ### Cancel a Pending Deletion **1. Sign Back In** Return to [entire.com](https://entire.com) and sign in. You'll see a banner: *"Your account is scheduled for deletion on \[date]."* **2. Cancel** Click **Cancel deletion**. Your account is no longer scheduled for deletion and full access is restored right away. > [!WARNING] > > Once the 7-day cooldown ends, deletion is **permanent and cannot be undone**. > Erased data cannot be recovered. ## What Happens When Deletion Completes When the cooldown ends, Entire permanently erases your account and personal data across every region where we store it. We also ask the third-party services we use, such as our analytics and CRM providers, to erase your personal data. Those providers are listed on our [Subprocessors](https://entire.com/subprocessors) page. ## What We Keep After Deletion We keep a small amount of information after deletion where the law requires it: tax, accounting, and security records. The [Privacy Policy](https://entire.com/privacy) lists what and for how long. Repository content follows the repository, not your account: it is retained for as long as the repository exists on our services and is deleted when the repository (or the relevant history) is deleted. ## Other Data Requests Deleting your account is the fastest way to erase your personal data yourself. To ask for a copy of your data, correct it, or move it somewhere else, email us. > [card] [Email legal@entire.io](mailto:legal@entire.io) > > Reach us for privacy questions and requests about your data. The [Privacy > Policy](https://entire.com/privacy) lists your rights in full. # Frequently Asked Questions Source: https://docs.entire.com/faq Answers to common questions about checkpoints and attribution. ## Checkpoints ### Why Does Entire Use Commit Trailers Instead of Git Notes? Entire links commits to checkpoints with an `Entire-Checkpoint` trailer: ```text theme={null} Entire-Checkpoint: a3b2c4d5e6f7 ``` The trailer points to checkpoint metadata stored in your repository: one Git ref per checkpoint under `refs/entire/checkpoints/` by default, or the shared `entire/checkpoints/v1` branch in repositories that use the legacy branch backend. Entire uses this approach because commit trailers survive common Git workflows better than metadata attached only to a commit SHA. Git notes have a few practical limitations: * Normal Git pushes skip them unless you configure note refs separately * They attach to commit SHAs, which change during rebases, amends, and cherry-picks * Hosted Git platforms do not consistently support them in review and merge workflows By storing the stable checkpoint ID in the commit message, Entire keeps the link with the commit itself. That is more reliable for teams that rebase, amend, cherry-pick, use hosted merge flows, or have contributors using different Git clients. ## Attribution ### What Do `entire blame` and `entire why` Actually Tell Me? Both commands answer questions about a line of code, and both answer them at the level of the commit that introduced the line, not the line itself. [`entire blame`](/cli-reference/blame) shows git-blame-style output with the attribution status of each line's introducing commit: * `AI`: Entire attributed the commit to an AI agent session * `MX`: the commit mixed AI-attributed and human-attributed work * `HU`: the commit carries no AI-attributed checkpoint data * `??`: the line is uncommitted [`entire why`](/cli-reference/why) takes a line and returns the commit, checkpoint, prompt, and session behind it. What they promise: * The commit that introduced the line as Git currently records it * Whether that commit carried agent-attributed checkpoint data * The session and prompt behind that commit, when a checkpoint is linked What they do not promise: * That a given line was written by a specific agent or person. The tag describes the whole commit, so a line hand-edited inside an `AI` commit still reads as `AI`. * That the answer survives history rewriting. Both commands follow Git blame, so a rebase, squash, or manual conflict resolution reattributes the line to whichever commit Git now credits. * Line-level counts. `--long` adds agent, model, author, and session columns, all still commit-level. > [!NOTE] > > `entire blame` and `entire why` are [labs commands](/cli-reference/labs). They work today, and their output may change. ### Why Doesn't Entire Provide Durable Line-Level AI Attribution? Entire preserves durable session and commit provenance. That means Entire can reliably answer questions like: * Which session produced this commit? * Which prompts and transcript led to this change? * Which checkpoint is linked to this commit? Entire can calculate attribution for a session or commit, such as how many changed lines came from an agent versus a human. That is different from assigning a permanent owner to every line of code as it moves through Git history. Durable line-level attribution is much harder. In normal team workflows, line-level metadata becomes fragile when: * Commits are rebased, amended, cherry-picked, or squashed * Merge conflicts are resolved manually * Merges happen in hosted Git UIs * Human edits are mixed into a manual commit before commit time The core issue is that lines move. A line can shift, split, merge with nearby edits, or be rewritten later. Keeping per-line attribution correct across those changes requires repair logic that runs everywhere history changes. Entire currently prioritizes a more durable record: * Preserve the full session transcript * Link commits to stable checkpoint IDs * Keep commit-level provenance intact across common Git workflows ## Continue With > [card] [Investigate Why Code Exists](/learn/investigate-why-code-exists) > > Trace a surprising line from attribution to the checkpoint context behind it. > [card] [Glossary](/glossary) > > Definitions for checkpoints, sessions, trails, runners, and the rest of Entire's vocabulary. # Glossary Source: https://docs.entire.com/glossary The vocabulary Entire uses across the CLI, the web interface, and this documentation. 35 terms | Glossary term | Definition | | - | - | | **Agent** | An AI coding assistant connected to Entire, such as [Antigravity CLI](/agents/antigravity), [Claude Code](/agents/claude-code), [Codex](/agents/codex), [Copilot CLI](/agents/copilot-cli), [Cursor](/agents/cursor), [Factory](/agents/factory-droid), [OpenCode](/agents/opencode), or [Pi](/agents/pi). On entire.com, a project Agent is also a review job with a trigger, a model, and a signal. See [Agents](/guides/trails/agents). | | **Agent run** | One execution of an agent inside a session. Entire compares your work before each run with the agent's changes so line attribution can stay accurate. | | **Checkpoint** | A save point for your work. Entire creates checkpoints around agent activity and links committed ones to Git commits. | | **Checkpoint ID** | The identifier for a checkpoint, shown in the CLI and entire.com. The format follows the [storage backend](#checkpoint-storage-backend): ref-based storage, the default, uses a 26-character time-sortable ULID such as `01KVBJCWYA4YW6J5M9GP655HZN`; branch-based storage uses 12 hexadecimal characters such as `8a513f56ed70`. | | **Checkpoint linking** | The connection between a Git commit and the Entire checkpoint that captured the session context behind it. | | **Checkpoint ref** | The Git ref that holds one checkpoint under the ref-based backend, at `refs/entire/checkpoints//`. List them with `git for-each-ref refs/entire/checkpoints/`. | | **Checkpoint remote** | A Git remote that holds checkpoint metadata separately from your code remote. By default, Entire pushes checkpoint metadata to your code remote. | | **Checkpoint storage backend** | How Git organizes checkpoints in your repository. `git-refs` writes one [checkpoint ref](#checkpoint-ref) per checkpoint and is the default for repositories enabled with CLI 0.10.0 or later. `git-branch` writes all of them to the [checkpoints branch](#checkpoints-branch). See [Session Storage](/guides/checkpoints/checkpoint-storage). | | **Checkpoints branch** | The Git branch where Entire stores checkpoint and session metadata under the branch-based backend. Entire names the branch `entire/checkpoints/v1`. | | **Code Search** | A literal search over the text of tracked files on a repository's indexed branch, returning the files and lines that contain a match. Run `entire search --code`, or open the **Code** tab in entire.com. | | **Commit trailer** | Structured metadata that Entire appends to a Git commit message. On your own commits, Entire adds only the [`Entire-Checkpoint`](#entire-checkpoint) trailer. | | **Committed checkpoint** | A checkpoint that Entire has linked to a Git commit and written to checkpoint storage. | | **Dispatch** | A markdown summary of recent agent work across one or more repositories, branches, and time windows. | | **Entire CLI** | The command line tool that records sessions, creates checkpoints, links commits, and syncs metadata. | | **entire.com** | The web interface for searching and browsing repositories, sessions, checkpoints, dispatches, and agent activity captured by Entire. | | **Entire Repository** | A Git repository that EntireDB serves. Entire can host the repository or connect it to an upstream GitHub repository through one or more mirror placements. | | **Entire-Checkpoint** | A commit trailer that records the checkpoint ID associated with a commit. | | **Finding** | A single issue a review [Agent](/guides/trails/agents) or [runner](/glossary#runner) raises against a branch or [trail](/glossary#trail), such as a bug, a regression, or a missing test. When the repository's Findings [gate](/guides/trails/gates) is on, open findings at or above its severity threshold block the change from merging until you resolve or dismiss each one. | | **Line attribution** | Entire's calculation of how many changed lines in a commit came from the agent and how many came from a human. | | **Metadata** | Structured data Entire records about sessions and checkpoints, including timestamps, agent type, token usage, attribution, and configuration. | | **Mirror** | A copy of a repository on Entire's Git network in a region of your choice. A GitHub repository mirror keeps GitHub as the upstream while Entire serves Git traffic through one or more regional placements. A regional mirror of a repository hosted on Entire forwards pushes to the repository's primary region. See [Repositories](/guides/repositories/repository). | | **Mirror placement** | A copy of a repository on one EntireDB cluster: a GitHub-backed mirror, or a regional replica of a repository hosted on Entire. Each placement has its own cluster, status, and `entire://` URL. | | **Nested session** | A child session created when an agent spawns another agent or sub-agent during the same body of work. | | **Plugin** | An executable named `entire-` on your `$PATH` that adds a command to the Entire CLI. Running `entire ` dispatches to it. Distinct from a [skill](/glossary#skill), which teaches an agent to use Entire in natural language. | | **Repository object** | The control-plane record that identifies an Entire Repository and stores metadata such as its owning project, visibility, and placement information. The `entire repo` commands manage these objects. | | **Runner** | A config-driven job that runs an AI coding agent in an isolated cloud sandbox against a branch or [trail](/glossary#trail). You define runners per repository in `.entire/runners/`. They produce automated review comments, summaries, scores, and findings. Project [Agents](/guides/trails/agents), configured on entire.com, are the newer way to review changes and run beside runners. | | **Search** | Entire's search over every indexed repository you can access, covering both [semantic search](#semantic-search) and [Code Search](#code-search) so one query returns the code and the work behind it. See the [Search overview](/guides/search/overview). | | **Semantic search** | A search over indexed Entire history that matches by phrase, meaning, or agent context rather than by exact words, returning related commits and sessions. Its literal counterpart is [Code Search](#code-search). | | **Session** | A complete interaction with an AI coding agent from start to finish. Sessions include prompts, responses, code changes, checkpoints, token usage, metadata, and line attribution. | | **Session context** | The prompts, responses, tool activity, code changes, and metadata that explain what happened during a session. | | **Shadow branch** | A temporary local branch that holds checkpoints during active sessions. Entire names shadow branches like `entire/-` and does not push them to remote repositories. | | **Skill** | A reusable workflow that helps an agent use Entire history, checkpoints, and session context for a specific task. | | **Token usage** | Counts of input tokens, output tokens, cache creation tokens, cache reads, and API calls recorded for a checkpoint or session. | | **Trail** | Entire's unit of work, from one intent to shipped code. A trail can span several repositories: each repository branch linked to it is a [change](/cli-reference/trail#trails-and-changes) that is reviewed and merged on its own. A trail groups that intent, the [checkpoints](/glossary#checkpoint) recorded along the way, and a rolled-up summary and report. Teams review the trail instead of the raw diff. | | **Worktree ID** | An opaque identifier Entire puts in a shadow branch name to tell active worktrees apart. | No glossary terms match your filter. # Endpoints Source: https://docs.entire.com/guides/api/apis Browse published API endpoints by resource. Browse the published callable endpoints below. Reference pages provide credential, permission and Experimental details where documented. For plugin-capable endpoints, see [Endpoints in Plugins](/guides/api/plugins/apis). Paths are relative to the server shown on the reference page. Start with [Getting Started](/guides/api/getting-started), [Authentication](/guides/api/authentication) and [Regions and routing](/guides/api/regions-and-routing) to choose credentials and the correct host. Outbound event definitions are documented separately in [Webhooks](/guides/api/plugins/webhooks). ## Accounts and projects ### Clusters
EndpointReference
GET /clusters[List data-plane clusters attached to this control plane](/api-reference/control-plane/clusters/list-data-plane-clusters-attached-to-this-control-plane)
### Account
EndpointReference
GET /me[Get the calling account's identity and profile](/api-reference/control-plane/identity/get-the-calling-accounts-identity-and-profile)
GET /oidc-providers[List federated OIDC identity providers](/api-reference/control-plane/identity/list-federated-oidc-identity-providers)
### Organizations
EndpointReference
GET /orgs[List organizations the caller can see (or one by name)](/api-reference/control-plane/orgs/list-organizations-the-caller-can-see-or-one-by-name)
GET /orgs/\{orgId}[Get an organization](/api-reference/control-plane/orgs/get-an-organization)
GET /orgs/\{orgId}/members[List members of an organization](/api-reference/control-plane/orgs/list-members-of-an-organization)
### Projects
EndpointReference
GET /orgs/\{orgId}/projects[List projects owned by an organization](/api-reference/control-plane/projects/list-projects-owned-by-an-organization)
GET /projects[List projects accessible to the caller (or one by name)](/api-reference/control-plane/projects/list-projects-accessible-to-the-caller-or-one-by-name)
GET /projects/resolve/\{host}/\{project}[Resolve a canonical project reference](/api-reference/control-plane/projects/resolve-a-canonical-project-reference)
GET /projects/\{projectId}[Get a project by id](/api-reference/control-plane/projects/get-a-project-by-id)
### Repositories
EndpointReference
GET /projects/\{projectId}/repos[List repositories in a project (or one by name)](/api-reference/control-plane/repos/list-repositories-in-a-project-or-one-by-name)
GET /repos[List the caller's readable repositories (placement index)](/api-reference/control-plane/repos/list-the-callers-readable-repositories-placement-index)
POST /repos[Create repository](/api-reference/control-plane/repos/create-repository)
GET /repos/\{repoId}[Get repository](/api-reference/control-plane/repos/get-repository)
### Service accounts
EndpointReference
GET /service-accounts[List service accounts in an org or project](/api-reference/control-plane/service-accounts/list-service-accounts-in-an-org-or-project)
POST /service-accounts[Create service account](/api-reference/control-plane/service-accounts/create-service-account)
GET /service-accounts/\{accountId}[Get service account](/api-reference/control-plane/service-accounts/get-service-account)
DELETE /service-accounts/\{accountId}[Delete service account](/api-reference/control-plane/service-accounts/delete-service-account)
GET /service-accounts/\{accountId}/bindings[List OIDC bindings](/api-reference/control-plane/service-accounts/list-oidc-bindings)
POST /service-accounts/\{accountId}/bindings[Create OIDC binding](/api-reference/control-plane/service-accounts/create-oidc-binding)
DELETE /service-accounts/\{accountId}/bindings/\{bindingId}[Delete OIDC binding](/api-reference/control-plane/service-accounts/delete-oidc-binding)
GET /service-accounts/\{accountId}/grants[List service account grants](/api-reference/control-plane/service-accounts/list-service-account-grants)
POST /service-accounts/\{accountId}/grants[Grant service account access on a repo or project](/api-reference/control-plane/service-accounts/grant-service-account-access-on-a-repo-or-project)
DELETE /service-accounts/\{accountId}/grants/\{resourceType}/\{resourceId}[Revoke service account access](/api-reference/control-plane/service-accounts/revoke-service-account-access)
GET /service-accounts/\{accountId}/secrets[List service account secrets](/api-reference/control-plane/service-accounts/list-service-account-secrets)
POST /service-accounts/\{accountId}/secrets[Create service account secret](/api-reference/control-plane/service-accounts/create-service-account-secret)
DELETE /service-accounts/\{accountId}/secrets/\{secret\_id}[Delete service account secret](/api-reference/control-plane/service-accounts/delete-service-account-secret)
## Git ### Git
EndpointReference
GET /git/repos/resolve[Resolve repository path](/api-reference/git/repositories/resolve-repository-path)
GET /git/repos/\{repoId}/branches[List branches](/api-reference/git/repositories/list-branches)
POST /git/repos/\{repoId}/branches[Create branch at a commit](/api-reference/git/repositories/create-branch-at-a-commit)
GET /git/repos/\{repoId}/commits[List commits](/api-reference/git/repositories/list-commits)
POST /git/repos/\{repoId}/commits/batch[Get commits by SHA in batch](/api-reference/git/repositories/get-commits-by-sha-in-batch)
GET /git/repos/\{repoId}/compare[Compare commits](/api-reference/git/repositories/compare-commits)
GET /git/repos/\{repoId}/diff[Get unified diff](/api-reference/git/repositories/get-unified-diff)
GET /git/repos/\{repoId}/merge-base[Get merge base](/api-reference/git/repositories/get-merge-base)
GET /git/repos/\{repoId}/raw/\{path...}[Get raw file by path](/api-reference/git/repositories/get-raw-file-by-path)
GET /git/repos/\{repoId}/refs[List references](/api-reference/git/repositories/list-references)
GET /git/repos/\{repoId}/tags[List tags](/api-reference/git/repositories/list-tags)
GET /git/repos/\{repoId}/tree[Get tree](/api-reference/git/repositories/get-tree)
### Ref events
EndpointReference
GET /repos/\{repo\_id}/refs/events[Stream live ref (branch/tag/HEAD) change events for a repository](/api-reference/git/refs/stream-live-ref-branchtaghead-change-events-for-a-repository)
## Trails ### Trails
EndpointReference
GET /repos/\{repo\_id}/trails[List a repo's trails (repo\_id addressing)](/api-reference/trails/trails/list-a-repos-trails-repo_id-addressing)
POST /repos/\{repo\_id}/trails[Create a trail by repo id](/api-reference/trails/trails/create-a-trail-by-repo-id)
GET /repos/\{repo\_id}/trails/\{number}[Get a trail by number (repo\_id addressing)](/api-reference/trails/trails/get-a-trail-by-number-repo_id-addressing)
PATCH /repos/\{repo\_id}/trails/\{number}[Update a trail's metadata by repo id](/api-reference/trails/trails/update-a-trails-metadata-by-repo-id)
### Approvals
EndpointReference
GET /repos/\{repo\_id}/trails/\{number}/approvals[List a trail's recorded approval decisions (repo\_id addressing)](/api-reference/trails/trail-approvals/list-a-trails-recorded-approval-decisions-repo_id-addressing)
POST /repos/\{repo\_id}/trails/\{number}/approvals[Submit an approval decision on a trail (repo\_id addressing)](/api-reference/trails/trail-approvals/submit-an-approval-decision-on-a-trail-repo_id-addressing)
POST /repos/\{repo\_id}/trails/\{number}/merge[Merge a Trail (repo\_id addressing)](/api-reference/trails/trail-approvals/merge-a-trail-repo_id-addressing)
GET /repos/\{repo\_id}/trails/\{number}/mergeability[Get merge readiness for a trail (repo\_id addressing)](/api-reference/trails/trail-approvals/get-merge-readiness-for-a-trail-repo_id-addressing)
### Discussions
EndpointReference
GET /repos/\{repo\_id}/trails/\{number}/discussions[List a trail's discussions (repo\_id addressing)](/api-reference/trails/trail-discussions/list-a-trails-discussions-repo_id-addressing)
POST /repos/\{repo\_id}/trails/\{number}/discussions[Start a new discussion (repo\_id addressing)](/api-reference/trails/trail-discussions/start-a-new-discussion-repo_id-addressing)
GET /repos/\{repo\_id}/trails/\{number}/discussions/\{discussion\_id}[Get a discussion and its messages (repo\_id addressing)](/api-reference/trails/trail-discussions/get-a-discussion-and-its-messages-repo_id-addressing)
PATCH /repos/\{repo\_id}/trails/\{number}/discussions/\{discussion\_id}[Update a discussion's title/resolved state (repo\_id addressing)](/api-reference/trails/trail-discussions/update-a-discussions-titleresolved-state-repo_id-addressing)
POST /repos/\{repo\_id}/trails/\{number}/discussions/\{discussion\_id}/messages[Add a message to a discussion (repo\_id addressing)](/api-reference/trails/trail-discussions/add-a-message-to-a-discussion-repo_id-addressing)
DELETE /repos/\{repo\_id}/trails/\{number}/discussions/\{discussion\_id}/messages/\{message\_id}[Delete a message (repo\_id addressing)](/api-reference/trails/trail-discussions/delete-a-message-repo_id-addressing)
PATCH /repos/\{repo\_id}/trails/\{number}/discussions/\{discussion\_id}/messages/\{message\_id}[Edit a message (repo\_id addressing)](/api-reference/trails/trail-discussions/edit-a-message-repo_id-addressing)
### Activity
EndpointReference
GET /repos/\{repo\_id}/trails/\{number}/events[List or stream trail events (repo\_id addressing)](/api-reference/trails/trail-activity/list-or-stream-trail-events-repo_id-addressing)
### Gates
EndpointReference
GET /repos/\{repo\_id}/trails/\{number}/gates[Get the configurable gate evaluation for a trail (repo\_id addressing)](/api-reference/trails/trail-gates/get-the-configurable-gate-evaluation-for-a-trail-repo_id-addressing)
### Reviews
EndpointReference
POST /repos/\{repo\_id}/trails/\{number}/reviews[Start a code review (repo\_id addressing)](/api-reference/trails/trail-reviews/start-a-code-review-repo_id-addressing)
GET /repos/\{repo\_id}/trails/\{number}/reviews/comments[List all review comments for a trail (repo\_id addressing)](/api-reference/trails/trail-reviews/list-all-review-comments-for-a-trail-repo_id-addressing)
GET /repos/\{repo\_id}/trails/\{number}/reviews/\{review\_id}[Get review state (repo\_id addressing)](/api-reference/trails/trail-reviews/get-review-state-repo_id-addressing)
POST /repos/\{repo\_id}/trails/\{number}/reviews/\{review\_id}/comments[Atomically publish review comments and summary (repo\_id addressing)](/api-reference/trails/trail-reviews/atomically-publish-review-comments-and-summary-repo_id-addressing)
PATCH /repos/\{repo\_id}/trails/\{number}/reviews/\{review\_id}/comments/\{comment\_id}[Update a review comment (repo\_id addressing)](/api-reference/trails/trail-reviews/update-a-review-comment-repo_id-addressing)
## Sessions and checkpoints ### Your activity
EndpointReference
GET /me/sessions[Your sessions across all repositories](/api-reference/sessions/me/your-sessions-across-all-repositories)
GET /me/trails[Your trails across all repositories](/api-reference/sessions/me/your-trails-across-all-repositories)
### Checkpoints
EndpointReference
GET /repos/\{repo\_id}/checkpoints[Checkpoints on a branch, with commit, diffstat, and sessions](/api-reference/sessions/checkpoints/checkpoints-on-a-branch-with-commit-diffstat-and-sessions)
GET /repos/\{repo\_id}/checkpoints/\{checkpoint\_id}[A single checkpoint, with its branch membership](/api-reference/sessions/checkpoints/a-single-checkpoint-with-its-branch-membership)
GET /repos/\{repo\_id}/checkpoints/\{checkpoint\_id}/transcript[A checkpoint's sessions as message trees](/api-reference/sessions/checkpoints/a-checkpoints-sessions-as-message-trees)
GET /repos/\{repo\_id}/checkpoints/\{checkpoint\_id}/transcript/raw[Stream a checkpoint session's raw transcript](/api-reference/sessions/checkpoints/stream-a-checkpoint-sessions-raw-transcript)
GET /repos/\{repo\_id}/commits/\{sha}/checkpoints[Checkpoints linked to a commit, with commit, diffstat, and sessions](/api-reference/sessions/checkpoints/checkpoints-linked-to-a-commit-with-commit-diffstat-and-sessions)
### Experts
EndpointReference
POST /repos/\{repo\_id}/experts[Rank the agents that worked on a repository's files or paths](/api-reference/sessions/experts/rank-the-agents-that-worked-on-a-repositorys-files-or-paths)
### Sessions
EndpointReference
GET /repos/\{repo\_id}/sessions[Sessions in a repository](/api-reference/sessions/sessions/sessions-in-a-repository)
GET /repos/\{repo\_id}/sessions/\{session\_id}[A single session](/api-reference/sessions/sessions/a-single-session)
GET /repos/\{repo\_id}/sessions/\{session\_id}/transcript[A session's full transcript as a message tree](/api-reference/sessions/sessions/a-sessions-full-transcript-as-a-message-tree)
# Authentication Source: https://docs.entire.com/guides/api/authentication Choose an own-account bearer, service account secret, plugin JWT, installation token, or plugin OAuth user access token. Choose a credential for the operation you want to call. **User token** means a bearer for your own account, including supported service accounts. An `Authorization: Bearer` field alone does not tell you which tokens the endpoint accepts. | Credential | Used for | Authority | | :- | :- | :- | | **User token** | Work under your own account, including account-authorized plugin management. | Your account's permissions; supported service accounts are included. | | **Service account secret** | Scripts and jobs that must not act as you, such as a local agent or a cron job. | Exchanged for a service account token that lives at most 10 minutes; the service account's own grants. The secret expires in at most one year. | | **Platform OIDC token** | Jobs on a platform that issues OIDC tokens, such as GitHub Actions or Google Cloud. | Exchanged for a service account token that lasts 45 minutes; the service account's own grants. See [OpenID Connect (OIDC)](/guides/configuration/oidc). | | **Plugin JWT** | Supported installation operations on Core, including repository discovery and token minting. | Your registered plugin key and the named installation; use a 5-minute lifetime (10-minute maximum). | | **Plugin installation token** | Plugin runtime work on selected repositories and supported Core operations. | Entire-issued bearer, narrowed to the installation's granted permissions; about 45 minutes. | | **Plugin OAuth user token** | Discover which of your plugin's installations and repositories a signed-in user can access. | Plugin OAuth delegation; not the user's own-account bearer or an installation token. | ## Use your own account [Log in with the CLI](/cli-reference/login), then use [`entire api`](/cli-reference/api) to make authenticated requests. For an HTTP client, [`entire auth token`](/cli-reference/auth#auth-token) prints the bearer for your active login context: ```bash theme={null} curl -H "Authorization: Bearer $(entire auth token)" \ "https://us.console.entire.io/api/v1/clusters" ``` Treat the output as a secret. If `ENTIRE_TOKEN` is set, `entire auth token` uses that bearer override after validation and trimming; check that it is the credential you intend to use. The [Go SDK](/guides/api/sdks) also accepts this bearer. Use endpoints documented to accept an own-account bearer. Where available, the **Users** badge identifies this calling context. Service accounts are included where supported; the badge does not grant permissions or promise access to every resource. ## Run as a service account A [service account](/guides/configuration/service-accounts) lets a script call the API without acting as you. To call the API as one, [create a secret](/guides/configuration/service-accounts#sign-in-with-a-secret) and exchange it for a service account token. Send the secret to the auth URL for its region as the subject of an RFC 8693 token exchange, with the service account ID as the `resource`. A `us` secret goes to `https://us.auth.entire.io`: ```bash theme={null} TOKEN=$(curl -sS -X POST "https://us.auth.entire.io/oauth/token" -u "entire-cli:" \ --data-urlencode "grant_type=urn:ietf:params:oauth:grant-type:token-exchange" \ --data-urlencode "subject_token_type=urn:ietf:params:oauth:token-type:access_token" \ --data-urlencode "subject_token=$ENTIRE_TOKEN" \ --data-urlencode "audience=https://us.auth.entire.io" \ --data-urlencode "resource=svc_" \ | jq -r '.access_token // error(.error_description)') ``` A secret has this layout. The `` part shows which auth URL to use: ```text theme={null} ent_svc____ ``` The service account token lives at most 10 minutes, and never past the secret's own expiry. Read its lifetime from `expires_in` rather than assuming one, and exchange the secret again when the token is close to expiry or after a `401`. Never send the secret itself as a bearer. The [Go SDK](/guides/api/sdks) does this exchange for you. To manage service accounts over the API instead of in entire.com or the CLI, call these endpoints with your own login token: * [Create a service account](/api-reference/control-plane/service-accounts/create-service-account) and [list service accounts](/api-reference/control-plane/service-accounts/list-service-accounts-in-an-org-or-project). * [Grant access on a repository or project](/api-reference/control-plane/service-accounts/grant-service-account-access-on-a-repo-or-project), [list grants](/api-reference/control-plane/service-accounts/list-service-account-grants), and [revoke access](/api-reference/control-plane/service-accounts/revoke-service-account-access). * [Create a secret](/api-reference/control-plane/service-accounts/create-service-account-secret), [list secrets](/api-reference/control-plane/service-accounts/list-service-account-secrets), and [delete a secret](/api-reference/control-plane/service-accounts/delete-service-account-secret). * [Create an OIDC binding](/api-reference/control-plane/service-accounts/create-oidc-binding), [list bindings](/api-reference/control-plane/service-accounts/list-oidc-bindings), and [delete a binding](/api-reference/control-plane/service-accounts/delete-oidc-binding). ## Read endpoint labels Audience labels and **Accepted credentials** details are being added to the service specifications. Use the operation and workflow guidance when those details are absent. When labels are available, read them as follows: | Endpoint audience badge | Meaning | | :- | :- | | Users | Accepts own-account credentials, including supported service accounts. | | Plugins | Accepts registered plugin-flow credentials. Read **Accepted credentials** to choose the right kind. | An endpoint that accepts both account and plugin credentials shows both badges below its title. Each context may have different permissions and restrictions. The **Accepted credentials** details list alternatives, not tokens you must send together. These documentation labels are independent of the JWT `aud` claim and the **Experimental** marker. Older specifications may not have labels yet: an absent label does not imply access. Public, share-link and internal flows need their own documented rules. An audience badge describes accepted credentials, not authorization success. Read the operation's permissions, repository or project scope, ownership rules and placement requirements. Plugin permissions such as `contents:read`, `discussions:write` and `repositories:create` are capabilities granted to the installation; they are distinct from OAuth sign-in scopes. Even a `GET` may require a write capability. ## Plugin management and runtime A user managing a plugin installation still acts with their own account and its management permissions. Installing a plugin does not turn that user's bearer into a plugin credential. Your service signs a plugin JWT to obtain an installation token, then uses that Entire-issued token for repository work. Do not send the plugin JWT directly to the region API. [Building a Plugin](/guides/api/plugins/overview) covers registration, customer installation and runtime requests. Plugins remain available to selected partners only. ## Plugin JWTs Sign a fresh JWT for each call, or reuse one for a few minutes: | Claim | Value | | :- | :- | | `iss` | Your registered issuer, normally `urn:entire:plugin:{slug}`. | | `aud` | The regional Core authentication origin, followed by `/api/authz/sts`. For example `https://us.auth.entire.io/api/authz/sts`. | | `plugin_id` | Your slug. | | `installation_id` | The installation you are acting for. | | `iat` | Now, minus 30 seconds. Core allows no clock skew on this claim. | | `exp` | Use no more than 5 minutes after `iat`. Core enforces a 10-minute maximum for both PEM and JWKS registrations. | Header: `"alg": "EdDSA"`, and `"kid"` when you registered a JWKS URL. ## Access tokens An installation access token is separate from both an own-account bearer and a plugin OAuth user access token. Mint one with the [access-tokens endpoint](/guides/api/plugins/act-for-an-installation#mint-an-access-token). What the token can reach depends on what you ask for: | You request | You get | | :- | :- | | A `repository_id` and some permissions | A token for that repository alone, with only those permissions. Prefer this. | | No repository, and every effective permission accepted by the installation | A token for every selected repository, with those permissions, including `repositories:create` when registered and accepted. Treat it as the whole installation's authority. | | No repository, and only `{"installations": "read"}` | A token that reaches no repository. | | No repository, and only `{"repositories": "create"}` | A token that reaches no repository. It can only [create repositories](/guides/api/plugins/act-for-an-installation#create-a-repository) in the installation's project. | | A `repository_id` and `repositories:create` | `400 invalid_request`. Creating is never scoped to a repository. | | No repository, and another otherwise valid permission subset | `400 repository_required`. | Requested repository and project capabilities must be covered by the plugin's registered permissions and the installation's accepted permissions. The built-in `installations:read` permission is available to every installation. A newly registered capability awaiting customer acceptance returns `403 permission_not_accepted`; registration alone does not upgrade existing grants. `409 coverage_changed` instead describes a coverage or grant race during minting. Hand only a token scoped to one repository to code you trust less than your service, such as a customer's build job. Cache tokens until shortly before they expire. Entire limits how many tokens one installation can mint, and answers `429 rate_limited` with a `Retry-After` header, in seconds, when you exceed it. Send credentials only to trusted Core origins or a repository `api_base_url` returned by Entire, with the validation appropriate to your flow. See [Regions and routing](/guides/api/regions-and-routing). ## Plugin OAuth user access tokens Use the [user OAuth flow](/guides/api/plugins/user-oauth-flow) when your service needs to discover a user's accessible installations and repositories. Its access token has audience `entire:plugin-api` and is accepted on the two plugin user routes documented there. It cannot read repository contents or mint installation tokens. For runtime work, use your plugin JWT to mint an installation token. Recheck the user's access before later actions performed for that user. OAuth client assertions, ID tokens, refresh tokens and install receipts each have their own protocol role; none substitutes for an endpoint's accepted bearer. # Getting Started Source: https://docs.entire.com/guides/api/getting-started The Entire API has two layers. The **control plane** (a Core, one per jurisdiction such as US or EU) manages organizations, projects, repositories and plugin installations. The **region API** holds repository data: contents, branches, check runs. For authenticated calls, choose a credential accepted by that operation and send it to the correct host. See [Authentication](/guides/api/authentication) for the credentials and [Regions and routing](/guides/api/regions-and-routing) for which host to call. ## Two ways in > [card] [Use your own login](/cli-reference/api) > > Automate your own work. `entire auth token` prints your bearer token. Call the API over HTTP, through `entire api`, or with the [Go SDK](/guides/api/sdks). > [card] [Build a plugin](/guides/api/plugins/overview) > > Act on repositories that customers share with your service. Install flow, receipts, installation tokens and the SDK's `plugin` package. Selected partners only. The **API Reference** tab contains one canonical endpoint reference, grouped by resource: [accounts, projects and repositories](/api-reference/control-plane/projects/list-projects-accessible-to-the-caller-or-one-by-name) on Core, and repository data on the region API. > [!NOTE] > > Plugins are available to selected partners only. Experimental endpoints may change; check each operation's marker and version. ## Make your first request For your own work, [log in](/cli-reference/login), use [`entire api`](/cli-reference/api) or obtain an [own-account bearer](/guides/api/authentication#use-your-own-account), and choose an endpoint that accepts it. Your account still needs the operation's resource permissions. For a customer integration, start in **Plugins**: [register](/guides/api/plugins/register), [install](/guides/api/plugins/install-flow), then [mint an installation token](/guides/api/plugins/act-for-an-installation#mint-an-access-token). Use the same API Reference for runtime requests. The [plugin OAuth user flow](/guides/api/plugins/user-oauth-flow) is optional discovery on behalf of a user; its token cannot replace an installation token. ## Find an endpoint Browse [all published endpoints](/guides/api/apis), or follow the plugin guides for a supported integration workflow. Read each operation's authentication and permission requirements. Audience badges are being added to the service specifications. Where present, **Users** and **Plugins** identify the supported calling contexts; an endpoint supporting both shows both badges. An absent badge does not imply access. See the [authentication legend](/guides/api/authentication#read-endpoint-labels) for credential types and scope. # Access repositories Source: https://docs.entire.com/guides/api/plugins/act-for-an-installation List an installation's repositories, mint access tokens for them, clone them or read commits and files, and create new ones. This guide uses your [plugin JWT](/guides/api/authentication#plugin-jwts) to list repositories and mint a Plugin installation token on Core. Use the installation token for repository work at the [repository's region](/guides/api/regions-and-routing), or for [creating a repository](#create-a-repository) on Core. Read each endpoint's **Accepted credentials** details for supported alternatives. ## List repositories ```http theme={null} GET https://{core}/api/v1/plugins/{slug}/installations/{installation_id}/repositories Authorization: Bearer {plugin JWT} ``` The response lists the installation's repositories that have a processing primary. New repositories may be absent during provisioning, but they can also appear before provisioning or grants are ready. List membership and primary metadata are discovery information, not a readiness check: ```json theme={null} { "repositories": [{ "id": "repo_01M3...", "full_name": "acme/api", "path": "/et/acme/api", "clone_url": "https://aws-us-east-2.entire.io/et/acme/api.git", "entire_clone_url": "entire://aws-us-east-2.entire.io/et/acme/api", "placements": [ {"region": "aws-us-east-2", "role": "processing_primary", "api_base_url": "https://aws-us-east-2.api.entire.io"}, {"region": "aws-eu-central-1", "role": "mirror"} ] }], "next_cursor": null } ``` Store a repository's `id`, which never changes. Names and hosts can change, so list the repositories again rather than caching them for long. Customers can change the selection without notice. Use this list for coverage and routing discovery; token minting and each resource operation still enforce current grants and scope. `path` is the repository's web path, also sent as `repository.path` on ref events. Native repositories use `/et/{project}/{repository}`; mirrors use `/gh/{owner}/{repository}`. `/et/acme/api` and `/gh/acme/api` can both exist and are different repositories. Use `path` for web links and `id` as your key. Older responses may omit `path`. Send repository API calls to the placement whose role is `processing_primary`, using its `api_base_url`. Ignore placement roles you don't know. This endpoint returns one page; `next_cursor` is always `null`. ## Mint an access token ```http theme={null} POST https://{core}/api/v1/plugins/{slug}/installations/{installation_id}/access-tokens Authorization: Bearer {plugin JWT} Content-Type: application/json {"repository_id": "repo_01M3...", "permissions": {"contents": "read"}} ``` A successful mint answers `201`: ```json theme={null} {"token": "...", "username": "x-access-token", "expires_at": "2026-10-13T20:37:23Z", "permissions": {"contents": "read", "installations": "read"}} ``` Prefer a token scoped to one repository. See [Access tokens](/guides/api/authentication#access-tokens) for what each combination of repository and permissions reaches. ## Errors | Status and code | Meaning | What to do | | :- | :- | :- | | `401 unauthorized` | Entire could not verify your plugin JWT: wrong key, issuer, audience or times. | Check the [claims table](/guides/api/authentication#plugin-jwts) and your server clock. | | `404 not_found` | The installation is gone, or the repository is not in it. | Stop acting for it. List the repositories again. | | `400 unsupported_permission` | You asked for a permission you did not register. | Request only registered permissions. | | `400 invalid_request` | You asked for `repositories:create` with a `repository_id`. | Mint a create token without a repository. | | `400 repository_required` | You named no repository, and the permissions are not every accepted permission, only `repositories:create`, or only `installations:read`. | Name a `repository_id`, or request one of those whole-installation sets. | | `403 permission_not_accepted` | You requested a registered permission this installation has not accepted. | Ask a customer project manager to accept the updated permissions through the install consent flow. | | `409 coverage_changed` | Repository coverage or grants changed during the mint, or grant reconciliation is incomplete. | Refresh discovery and retry the mint with backoff. If it persists, ask your Entire contact to investigate the grants. | | `429 rate_limited` | Too many mints for this installation. | Wait for `Retry-After`, in seconds, and cache tokens until shortly before they expire. | | `403 forbidden` | Entire refused to issue the token. | Don't retry in a loop. If it persists, ask your Entire contact. | | `503` | A required service is unavailable. | Retry with backoff; investigate persistent failures. | Error bodies are RFC 9457 problem documents, with a machine-readable `code` member. ## Clone a repository Install `git-remote-entire` on the machine that will clone. It doesn't need the Entire CLI. Download the current stable release, check it, and put `git-remote-entire` on `PATH`: ```bash theme={null} curl -fsSLO https://install.entire.com/latest/git-remote-entire-linux-amd64.tar.gz curl -fsSLO https://install.entire.com/latest/checksums.txt sha256sum --ignore-missing -c checksums.txt tar -xzf git-remote-entire-linux-amd64.tar.gz git-remote-entire ``` Archives are named `git-remote-entire--.tar.gz` (`.zip` on Windows) for `linux`, `darwin` and `windows` on `amd64` and `arm64`. `/latest/` redirects to the current stable release. For a reproducible build, download from `https://install.entire.com/v/` instead. For up to a minute after a release, the two `/latest/` links can point at different releases, so retry a checksum failure. The [Entire CLI](/installation) also includes the helper. Mint a `contents:read` token for the repository and set it as `ENTIRE_TOKEN` for the Git process. `ENTIRE_TOKEN` overrides the helper's bearer credential. Pass the repository's `entire_clone_url`, unchanged, to `git clone`: ```bash theme={null} ENTIRE_TOKEN="$TOKEN" git clone "$ENTIRE_CLONE_URL" checkout ``` Here `$TOKEN` and `$ENTIRE_CLONE_URL` are shell variables holding the minted token and the returned URL. For a native repository, the URL might be `entire://aws-us-east-2.entire.io/et/acme/api`. A mirror might return `entire://aws-us-east-2.entire.io/gh/acme/api`. Accept both. Don't construct the URL from `full_name`, or replace `/gh/` with `/et/`. Keep the token out of logs, command arguments and Git configuration. Give untrusted code, such as a customer's build, only a token you minted for its repository with `repository_id`. Use `expires_at` to renew the token before later fetches. Use the returned `entire_clone_url` with `git-remote-entire` for this workflow. To push to a native repository, your plugin must be registered for `contents:write`, and the token must request it. You can't push to a mirror through Entire. Reading a mirror and [reporting checks](/guides/api/plugins/report-checks) use the same APIs as a native repository. The [Go SDK](/guides/api/plugins/go-sdk#clone-with-git) can prepare the helper's environment for you, but it uses the installation's token, which reaches every repository in the installation. Use it only where you trust Git as much as your plugin. For an untrusted build, mint a repository token with the SDK's `RepositoryToken` and set `ENTIRE_TOKEN` yourself. ## Read a commit or file For a small read, you don't need to clone. Send these requests to the repository's `api_base_url` with a `contents:read` token: ```http theme={null} GET {api_base_url}/api/v1/repos/{repo_id}/commits/{sha} Authorization: Bearer {access token} ``` Use the repository's `id` from the list and a full 40- or 64-character commit SHA. The response includes `commit_sha`, `branches`, `default_branch` and a `commit` object with the message, author and nullable changed-file counts. ```http theme={null} GET {api_base_url}/api/v1/repos/{repo_id}/raw?ref={ref}&path={path} Authorization: Bearer {access token} ``` URL-encode both query values. `ref` can be a SHA, branch or tag; `HEAD` reads the default branch. `path` is relative to the repository root. The response streams the whole file. It is always `text/plain` and sent as an attachment, whatever the file holds, so decide how to read it from its path, not its `Content-Type`. Compare the received byte count with the `Entire-Size` header to detect an interrupted transfer; retry an incomplete read. Clone instead if you need many files. An unknown ref or file path answers `404`, as does a path that names a directory. To list a directory, use `GET {api_base_url}/api/v1/repos/{repo_id}/tree?ref={ref}&path={path}`. A token with only `checks:write` cannot read repository contents. Both raw and tree reads return `404` for refs in the reserved `entire/` namespace, including fully qualified names such as `refs/heads/entire/checkpoints/v1`. ## Create a repository A plugin registered with `repositories:create` can create repositories in the installation's project once the customer has accepted that permission. The customer sees "Create repositories in this project" on the install page. The permission only creates: it doesn't read or write contents, delete repositories or change settings. To push to a repository you created, register `contents:write` too. First mint a token with no `repository_id`: ```http theme={null} POST https://{core}/api/v1/plugins/{slug}/installations/{installation_id}/access-tokens Authorization: Bearer {plugin JWT} Content-Type: application/json {"permissions": {"repositories": "create"}} ``` The response carries `"permissions": {"repositories": "create", "installations": "read"}`. The token reaches no repository. An installation-wide token also creates when it includes `repositories:create`. It must request every effective permission currently accepted by that installation, not pending catalog additions. Then call the canonical [Create repository endpoint](/api-reference/control-plane/repos/create-repository) on the same Core: ```http theme={null} POST https://{core}/api/v1/repos Authorization: Bearer {access token} Content-Type: application/json {"name": "api", "objectFormat": "sha1"} ``` `objectFormat` is optional: `sha1`, the default, or `sha256`. Leave out `projectId`, and Core uses the installation's project. Any other project answers `404`. Omit `clusterHost` and `mirrorClusterSlugs`; nonempty values are rejected for plugins. A successful create answers `201` with the repository: ```json theme={null} {"repositoryId": "repo_01M3...", "name": "api", "owningProjectId": "...", "state": "provisioning", ...} ``` Store `repositoryId` immediately. It is the `id` the repository list, access tokens and webhooks use. The new repository joins the installation, including a selected repository list, but `201` can still be returned when grant reconciliation fails. A subsequent [token mint](#mint-an-access-token) can return `409 coverage_changed` until those grants are repaired. Repository-added events are queued for covering installations; delivery also depends on their webhook configuration and processing. ### Wait for provisioning The repository response’s `state: "active"` confirms completed repository provisioning. This is separate from an installation’s lifecycle state. If create returns `provisioning`, continue with the saved repository ID: 1. [List the installation's repositories](#list-repositories) until that ID has a `processing_primary` placement and `api_base_url`. 2. [Mint a repository-scoped token](#mint-an-access-token) for the permissions your next operation needs. For `409 coverage_changed`, refresh the repository list to check coverage, then retry minting with backoff. Ask your Entire contact to repair persistent grant reconciliation failures. For `403 permission_not_accepted`, have the customer accept the requested permission before retrying. 3. Call the repository API at the discovered URL. Handle that operation's errors separately from discovery and token minting. Placement discovery provides the address; it does not confirm activation or grants. Keep the saved ID through discovery, minting and repository-operation failures. Repeat those steps as appropriate instead of repeating the non-idempotent create. ### Create errors Core answers a refused create with an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document. Branch on its `type`, not on the status alone: `409` and `429` carry other conditions too. | Status and `type` | Meaning | What to do | | :- | :- | :- | | `400` or `422` | The name or body is invalid, or placement fields contain prohibited nonempty values. Schema validation can return `422` before the handler runs. | Fix the request. | | `401` | The token expired, or the customer uninstalled your plugin. | Mint a new token. Stop if the installation is gone. | | `403` | The token lacks `repositories:create`. | Mint a token with `{"repositories": "create"}`. | | `403` `https://entire.com/errors/plugins/installation-suspended` | The installation is suspended. | Stop creating until it is active again. | | `404` | The project doesn't exist, or isn't the installation's project. | Leave out `projectId`. | | `409` `https://entire.com/errors/repo/name-in-use` | The project already has a repository with that name. | Pick another name, or list the repositories to find the existing one. | | `429` `https://entire.com/errors/repo/create-limit-reached` | The installation reached its create limit. | Wait for `Retry-After`, in seconds. | | `503` | A required service or placement is unavailable. | Investigate persistent failures and reconcile any uncertain create result before retrying. | A create is not idempotent. If the connection drops before you read the response, list the installation's repositories before you create again: a `409` can mean your own earlier create succeeded. ### Limits and ownership By default, an installation can create 100 repositories in a rolling 24-hour period; the limit is configurable. To raise the limit, ask your Entire contact. The customer's project owns every repository you create. The repositories stay when the customer uninstalls your plugin. The customer can remove one from the installation's selection like any other repository, and then you lose access to it. # Endpoints Source: https://docs.entire.com/guides/api/plugins/apis Endpoints available to plugins, linked to the shared API Reference. This page lists endpoints explicitly tagged for plugin use. Each endpoint link opens its canonical API Reference page; read the credential and permission details where documented. Shared APIs may accept both account and plugin credentials; those callers have different permissions and scope. Paths are relative to the server shown on the reference page. For the full plugin workflow, start with [Access repositories](/guides/api/plugins/act-for-an-installation), [Receive webhooks](/guides/api/plugins/webhooks) or [User OAuth flow](/guides/api/plugins/user-oauth-flow). Browse all published callable endpoints in [Endpoints in API Reference](/guides/api/apis). ## Accounts and projects ### Repositories
EndpointReference
POST /repos[Create repository](/api-reference/control-plane/repos/create-repository)
## Git ### Ref events
EndpointReference
GET /repos/\{repo\_id}/refs/events[Stream live ref (branch/tag/HEAD) change events for a repository](/api-reference/git/refs/stream-live-ref-branchtaghead-change-events-for-a-repository)
## Trails ### Trails
EndpointReference
GET /repos/\{repo\_id}/trails[List a repo's trails (repo\_id addressing)](/api-reference/trails/trails/list-a-repos-trails-repo_id-addressing)
GET /repos/\{repo\_id}/trails/\{number}[Get a trail by number (repo\_id addressing)](/api-reference/trails/trails/get-a-trail-by-number-repo_id-addressing)
### Approvals
EndpointReference
GET /repos/\{repo\_id}/trails/\{number}/approvals[List a trail's recorded approval decisions (repo\_id addressing)](/api-reference/trails/trail-approvals/list-a-trails-recorded-approval-decisions-repo_id-addressing)
GET /repos/\{repo\_id}/trails/\{number}/mergeability[Get merge readiness for a trail (repo\_id addressing)](/api-reference/trails/trail-approvals/get-merge-readiness-for-a-trail-repo_id-addressing)
### Discussions
EndpointReference
GET /repos/\{repo\_id}/trails/\{number}/discussions[List a trail's discussions (repo\_id addressing)](/api-reference/trails/trail-discussions/list-a-trails-discussions-repo_id-addressing)
POST /repos/\{repo\_id}/trails/\{number}/discussions[Start a new discussion (repo\_id addressing)](/api-reference/trails/trail-discussions/start-a-new-discussion-repo_id-addressing)
GET /repos/\{repo\_id}/trails/\{number}/discussions/\{discussion\_id}[Get a discussion and its messages (repo\_id addressing)](/api-reference/trails/trail-discussions/get-a-discussion-and-its-messages-repo_id-addressing)
PATCH /repos/\{repo\_id}/trails/\{number}/discussions/\{discussion\_id}[Update a discussion's title/resolved state (repo\_id addressing)](/api-reference/trails/trail-discussions/update-a-discussions-titleresolved-state-repo_id-addressing)
POST /repos/\{repo\_id}/trails/\{number}/discussions/\{discussion\_id}/messages[Add a message to a discussion (repo\_id addressing)](/api-reference/trails/trail-discussions/add-a-message-to-a-discussion-repo_id-addressing)
DELETE /repos/\{repo\_id}/trails/\{number}/discussions/\{discussion\_id}/messages/\{message\_id}[Delete a message (repo\_id addressing)](/api-reference/trails/trail-discussions/delete-a-message-repo_id-addressing)
PATCH /repos/\{repo\_id}/trails/\{number}/discussions/\{discussion\_id}/messages/\{message\_id}[Edit a message (repo\_id addressing)](/api-reference/trails/trail-discussions/edit-a-message-repo_id-addressing)
### Activity
EndpointReference
GET /repos/\{repo\_id}/trails/\{number}/events[List or stream trail events (repo\_id addressing)](/api-reference/trails/trail-activity/list-or-stream-trail-events-repo_id-addressing)
### Gates
EndpointReference
GET /repos/\{repo\_id}/trails/\{number}/gates[Get the configurable gate evaluation for a trail (repo\_id addressing)](/api-reference/trails/trail-gates/get-the-configurable-gate-evaluation-for-a-trail-repo_id-addressing)
### Reviews
EndpointReference
POST /repos/\{repo\_id}/trails/\{number}/reviews[Start a code review (repo\_id addressing)](/api-reference/trails/trail-reviews/start-a-code-review-repo_id-addressing)
GET /repos/\{repo\_id}/trails/\{number}/reviews/comments[List all review comments for a trail (repo\_id addressing)](/api-reference/trails/trail-reviews/list-all-review-comments-for-a-trail-repo_id-addressing)
GET /repos/\{repo\_id}/trails/\{number}/reviews/\{review\_id}[Get review state (repo\_id addressing)](/api-reference/trails/trail-reviews/get-review-state-repo_id-addressing)
POST /repos/\{repo\_id}/trails/\{number}/reviews/\{review\_id}/comments[Atomically publish review comments and summary (repo\_id addressing)](/api-reference/trails/trail-reviews/atomically-publish-review-comments-and-summary-repo_id-addressing)
PATCH /repos/\{repo\_id}/trails/\{number}/reviews/\{review\_id}/comments/\{comment\_id}[Update a review comment (repo\_id addressing)](/api-reference/trails/trail-reviews/update-a-review-comment-repo_id-addressing)
## Sessions and checkpoints ### Checkpoints
EndpointReference
GET /repos/\{repo\_id}/checkpoints[Checkpoints on a branch, with commit, diffstat, and sessions](/api-reference/sessions/checkpoints/checkpoints-on-a-branch-with-commit-diffstat-and-sessions)
GET /repos/\{repo\_id}/checkpoints/\{checkpoint\_id}[A single checkpoint, with its branch membership](/api-reference/sessions/checkpoints/a-single-checkpoint-with-its-branch-membership)
GET /repos/\{repo\_id}/checkpoints/\{checkpoint\_id}/transcript[A checkpoint's sessions as message trees](/api-reference/sessions/checkpoints/a-checkpoints-sessions-as-message-trees)
GET /repos/\{repo\_id}/checkpoints/\{checkpoint\_id}/transcript/raw[Stream a checkpoint session's raw transcript](/api-reference/sessions/checkpoints/stream-a-checkpoint-sessions-raw-transcript)
GET /repos/\{repo\_id}/commits/\{sha}/checkpoints[Checkpoints linked to a commit, with commit, diffstat, and sessions](/api-reference/sessions/checkpoints/checkpoints-linked-to-a-commit-with-commit-diffstat-and-sessions)
### Experts
EndpointReference
POST /repos/\{repo\_id}/experts[Rank the agents that worked on a repository's files or paths](/api-reference/sessions/experts/rank-the-agents-that-worked-on-a-repositorys-files-or-paths)
### Sessions
EndpointReference
GET /repos/\{repo\_id}/sessions[Sessions in a repository](/api-reference/sessions/sessions/sessions-in-a-repository)
GET /repos/\{repo\_id}/sessions/\{session\_id}[A single session](/api-reference/sessions/sessions/a-single-session)
GET /repos/\{repo\_id}/sessions/\{session\_id}/transcript[A session's full transcript as a message tree](/api-reference/sessions/sessions/a-sessions-full-transcript-as-a-message-tree)
# Report deployments Source: https://docs.entire.com/guides/api/plugins/deployments Show the resources your plugin deployed, and links to them, on an Entire Change. A plugin registered with `deployments:write` can report the resources it deployed for a commit, such as a preview site, with their status and links. When deployment data is available for a Change's current head, entire.com shows a Deployments section with the resources and a ready count, such as 3 of 4 ready. The Deployments API only reports deployments: it doesn't create them, and it never blocks a merge. > [!NOTE] > > Deployments are on Entire's v0 API. Field names may change before the contract is final. ## What you need * **`deployments:write`**, on your plugin's installation token. Ask Entire to add it when you [register your plugin](/guides/api/plugins/register). It grants nothing else. `checks:write`, `contents` permissions and user tokens don't grant it. * **The project's acceptance.** Adding the permission to your plugin doesn't grant it to existing installations. It stays pending until a project manager accepts it. Until then, minting a token for that permission returns `403 permission_not_accepted`. A resource write without effective deployment authority returns `403 forbidden`. Keep using already accepted check or [discussion permissions](/guides/api/plugins/trail-comments) while awaiting approval. Send every call below to the repository's [`api_base_url`](/guides/api/regions-and-routing), under `/api/v0` rather than `/api/v1`, with the installation's [access token](/guides/api/plugins/act-for-an-installation#mint-an-access-token) as bearer token. Use the public `repo_…` repository ID and the full 40- or 64-character commit SHA. The [Go SDK](#with-the-go-sdk) does the minting and routing for you. ## Report a resource ```http theme={null} POST /api/v0/repos/{repo_id}/commits/{sha}/deployments Authorization: Bearer {access token} Content-Type: application/json { "branch": "feature-x", "deployments": [{ "key": "preview-site", "name": "Preview site", "status": "completed", "conclusion": "success", "environment_url": "https://preview.example.com", "external_updated_at": "2026-10-24T09:12:00Z" }] } ``` Set `external_updated_at` to when the state changed on your side, in UTC, not to when you send the request. Keep each resource's `key` the same across updates and across commits. | Field | Required | Notes | | :- | :- | :- | | `branch` | Yes | The branch name, without `refs/heads/`. | | `deployments` | Yes | 1 to 1,000 resources, each with a different `key`. Keep the serialized body below 1 MiB. | | `key` | Yes | Your stable ID for the resource, up to 255 characters. Keys are per plugin: another plugin's `preview-site` is a different resource. | | `name` | Yes | Shown on the Change, up to 255 characters. | | `status` | Yes | `queued`, `in_progress`, `completed` or `inactive`. See [Keep it current](#keep-it-current). | | `conclusion` | With `completed` | `success`, `failure`, `cancelled` or `skipped`. Omit it for every other status. | | `external_updated_at` | Yes | UTC, no more than 60 seconds in the future. | | `environment` | No | Defaults to `preview`, the only environment Entire documents in v0. Other values, up to 64 characters, are stored and returned but treated the same way. | | `environment_url` | No | The deployed resource, as an `https` URL without credentials, up to 2,048 bytes. | | `logs_url` | No | The deployment's logs, with the same rules. | | `type` | No | A free-form kind, such as `site` or `function`, up to 64 characters. | | `group` | No | `{"key": "...", "name": "..."}`, both required, to group related resources. The UI flattens simpler sets; named headings appear with multiple named groups when at least one contains multiple resources. | | `started_at`, `completed_at` | No | UTC. `completed_at` can't be before `started_at`. | | `deadline_at` | No | UTC, at most 24 hours ahead. A queued or in-progress resource past its deadline is flagged stale in the Change projection; this does not change its stored status or add a field to the plugin GET report. | The response has one result per resource, in request order: ```json theme={null} {"results": [{"deployment": {"id": "...", "key": "preview-site", "status": "completed", "conclusion": "success"}, "outcome": "created"}]} ``` `outcome` is `created`, `updated`, `unchanged` or `ignored_stale`. `deployment` is the stored state, whether or not your write applied. ## Keep it current * Report `queued`, then `in_progress`, then `completed` with a `conclusion`. * Report `inactive` when you remove the deployed resource, such as a torn-down preview, and omit `conclusion`, so its links stop being offered. * Retries are safe. Entire orders writes by `external_updated_at`, so an older report never overwrites a newer one. At an equal time, a write never moves a resource back to an earlier status, so a late retry can't revive a torn-down preview. Reuse the same `external_updated_at` when you retry. * Report each commit you deploy. A Change shows only the deployments on its head commit, never an earlier commit's. Deployments never gate a merge. If you use [check runs](/guides/api/plugins/go-sdk#report-check-runs) for merge gating, keep publishing them separately. Using the same key for a check and a deployment is a convention, not a link Entire makes. ## Read your reports `GET` on the same URL returns your plugin's current report for each key on that commit, ordered by key. It returns only your plugin's deployments: ```json theme={null} {"deployments": [{"id": "...", "plugin": "acme-previews", "key": "preview-site", "name": "Preview site", "environment": "preview", "status": "completed", "conclusion": "success", ...}], "next_cursor": "..."} ``` Pass `?per_page=` (1 to 100, default 30). While the response has a `next_cursor`, pass it back unchanged as `?cursor=` for the next page. ## Errors Errors are `application/problem+json`. Branch on `code`, not on the status. | Status | `code` | Meaning | Retry? | | :- | :- | :- | :- | | `401` | `unauthenticated` | The token is missing or invalid. | After minting a new token. | | `403` | `forbidden` | The token lacks `deployments:write`, or the project hasn't accepted it. | No. | | `403` | `repo_not_covered` | The installation doesn't cover this repository. | No. | | `409` | `wrong_cell` | The repository moved to another region. | Yes, at its new `api_base_url`. | | `409` | `deployment_owner_conflict` | Another live installation of your plugin owns a key in the batch. | No. | | `413` | `request_too_large` | The body reaches the 1 MiB limit. | Split the batch. | | `422` | `validation_error` | A field, SHA, `per_page` or `cursor` is invalid. `detail` says which. Malformed JSON or a missing body can instead return `400`. | No. | | `503` | `service_unavailable` | Deployment storage is unreachable. | Yes, with backoff. | ## With the Go SDK Add `Deployments: plugin.Write` to `Config.Permissions`, matching your registration. `inst.Deployments` then reports and reads deployments: ```go theme={null} func reportPreview(ctx context.Context, inst *plugin.Installation, repoID, sha, branch, url string, deployedAt time.Time) error { _, err := inst.Deployments.Upsert(ctx, repoID, sha, plugin.DeploymentsRequest{ Branch: branch, Deployments: []plugin.Deployment{{ Key: "preview-site", Name: "Preview site", Status: plugin.Completed, Conclusion: plugin.Success, EnvironmentURL: url, ExternalUpdatedAt: deployedAt, }}, }) return err } ``` The SDK validates common request fields locally, sends the write to the repository's region, retries it with the same body, and follows a repository that moved. The server remains authoritative for request size, validation and live authorization. Report a removed resource with `Status: plugin.Inactive`. `inst.Deployments.List` returns one page of your current reports, and `inst.Deployments.All` iterates over all of them. A refusal is an `*entire.HTTPError`: `entire.HasCode(err, entire.CodeForbidden)` checks a resource-side `forbidden` refusal. A token mint for an unaccepted permission uses the distinct code `permission_not_accepted`; inspect that code separately and ask a project manager to accept the permission. Neither is the mint's `409 coverage_changed` grant/coverage race. # Build it with the Go SDK Source: https://docs.entire.com/guides/api/plugins/go-sdk Handle installs, read, clone and create repositories, report check runs and deployments, comment on trails and receive events with the Entire Go SDK. The SDK needs Go 1.24 or newer and has no dependencies outside the standard library. Its API reference is on [pkg.go.dev](https://pkg.go.dev/go.entire.com/entire-sdk-go/plugin). ```bash theme={null} go get go.entire.com/entire-sdk-go ``` ## Create the app and handle installs This server sends customers to Entire and accepts their receipts: ```go theme={null} package main import ( "log" "net/http" "os" "go.entire.com/entire-sdk-go/plugin" ) func main() { pemBytes, err := os.ReadFile("plugin-key.pem") if err != nil { log.Fatal(err) } key, err := plugin.ParsePrivateKey(pemBytes) if err != nil { log.Fatal(err) } app, err := plugin.New(plugin.Config{ Slug: "acme-ci", Issuer: "urn:entire:plugin:acme-ci", Signer: key, Permissions: plugin.Permissions{Contents: plugin.Read, Checks: plugin.Write}, Audience: "urn:entire:plugin:acme-ci", }) if err != nil { log.Fatal(err) } http.HandleFunc("GET /install", func(w http.ResponseWriter, r *http.Request) { state := plugin.NewState() saveState(w, state) // for example, in a signed, HttpOnly cookie link, err := app.InstallURL("https://ci.acme.example/callback", state) if err != nil { http.Error(w, "install link failed", http.StatusInternalServerError) return } http.Redirect(w, r, link, http.StatusFound) }) http.HandleFunc("GET /callback", func(w http.ResponseWriter, r *http.Request) { receipt, err := app.AcceptReceipt(r.Context(), r.URL.Query(), loadState(r)) if err != nil { http.Error(w, "install failed", http.StatusBadRequest) return } saveInstallation(receipt.InstallationID, receipt.CoreURL, receipt.ProjectID) w.Write([]byte("Installed.")) }) log.Fatal(http.ListenAndServe(":8080", nil)) } ``` `saveState`, `loadState` and `saveInstallation` are your own functions. `AcceptReceipt` checks the state, the receipt's signature, issuer, audience, plugin, expiry and single use, and returns `plugin.ErrAccessDenied` when the customer canceled. Store `receipt.CoreURL` with the installation ID; it is a convenient Core to call later. Set `Config.Permissions` to the permissions your service requests, including `Trails` if needed. `inst.Token` sends that set without a repository ID: a broad token must request every effective permission currently accepted by the installation. A subset can return `400 repository_required`, while a newly registered permission awaiting customer acceptance returns `403 permission_not_accepted`. The [installations-only and create-only scopes](/guides/api/authentication#access-tokens) are separate unscoped exceptions. Calls such as `inst.Checks` and `inst.Deployments` request only the permission they need for one repository, which must also be accepted. Two defaults matter for production. With `Config.Cores` empty, the SDK trusts the validated production jurisdiction-origin pattern under `auth.entire.io` and `auth.entire.com`, including new jurisdictions; it is not a fixed host list. Set `Config.Cores` for an explicit allowlist. Receipt replay protection defaults to memory, so use a durable shared `Config.ReplayStore` across processes and restarts. ## Read the customer's repositories `RepositoryClient` returns an ordinary SDK client whose token reaches one repository, with the permissions you pass. It routes repository API calls to the discovered region and renews the token as it nears expiry. Core methods still use Core routing. If the repository moves, call `inst.Repositories(ctx)` to refresh cached placement data, then obtain a new repository client: ```go theme={null} func readRepos(ctx context.Context, app *plugin.App, installationID, coreURL string) error { inst, err := app.Installation(installationID, coreURL) if err != nil { return err } repos, err := inst.Repositories(ctx) if err != nil { return err } for _, repo := range repos { client, repoID, err := inst.RepositoryClient(ctx, repo.ID, plugin.Permissions{Contents: plugin.Read}) if err != nil { return err } readme, err := client.Git.ReadFile(ctx, repoID, "HEAD", "README.md") if err != nil { return err } log.Printf("%s: %d bytes of README", repo.FullName, len(readme)) } return nil } ``` For ordinary token lifetimes, the SDK refreshes five minutes before expiry; for lifetimes shorter than ten minutes, it refreshes halfway through. Concurrent callers share a mint for the same request scope on the same `Installation` instance. If you need the raw token, call `inst.RepositoryToken` or, for the whole installation, `inst.Token`. The same client [comments on trails](/guides/api/plugins/trail-comments#with-the-go-sdk) when you add `Discussions: plugin.Write` to the permissions you pass. ## Clone with Git Clone through `git-remote-entire`, the Git helper that ships with the [Entire CLI](/installation). A repository's `EntireCloneURL` names it, and `RemoteHelperEnv` returns environment variables that hand the helper the installation's token in `ENTIRE_TOKEN`: ```go theme={null} env, err := inst.RemoteHelperEnv(ctx, repo) if err != nil { return err } cmd := exec.CommandContext(ctx, "git", "clone", repo.EntireCloneURL, dir) cmd.Env = append(os.Environ(), env...) ``` `RemoteHelperEnv` uses the installation's token, which reaches every repository in the installation, so run Git only where you trust it as much as your plugin. The token lasts about 45 minutes; call `RemoteHelperEnv` again for later fetches. Use the returned `EntireCloneURL` and `RemoteHelperEnv` together for the helper-based workflow above. Code that speaks the Git protocol itself, such as a proxy, calls `GitAuthorization` instead. It returns an `Authorization` header value with a token narrowed to one repository and the permissions you pass, cached and renewed like `RepositoryToken`'s, so call it for every request: ```go theme={null} auth, err := inst.GitAuthorization(ctx, repo, plugin.Permissions{Contents: plugin.Read}) if err != nil { return err } req.Header.Set("Authorization", auth) ``` If a Git request redirects to a repository node, forward the header only when `Config.HostPolicy` approves its host: it carries a credential. ## Create a repository Plugins registered with `repositories:create` create repositories in the installation's project. Add `Repositories: plugin.Create` to `Config.Permissions`, and `Contents: plugin.Write` if you push to them. `CreateRepository` mints the create token, creates the repository, then polls the installation list for a primary with an API URL. Save any returned ID before handling the error: ```go theme={null} repo, err := inst.CreateRepository(ctx, "api", nil) if repo.ID != "" { saveRepository(installationID, repo.ID) // durably retain the ID, even on an error below } if err != nil { return err } ``` After a nil error, use the saved ID with `RepositoryClient` or `RepositoryToken` to obtain credentials for your next operation. The helper has discovered routing metadata; token minting and repository operations still report their own readiness and permission errors. Follow the [provisioning steps](/guides/api/plugins/act-for-an-installation#wait-for-provisioning) for recovery. `saveRepository` is your own durable persistence function; recover a failed save before retrying this workflow. Pass `&plugin.CreateRepositoryOptions{ObjectFormat: "sha256"}` for a SHA-256 repository. An existing name returns `plugin.ErrRepositoryExists`, and the create limit returns `plugin.ErrCreateLimit`; inspect the wrapped `*entire.HTTPError` for details. If the post-create polling fails, the SDK can return a nonempty repository ID with `plugin.ErrRepositoryNotReady` or the last repository-list error. Creation has already succeeded in that case: retain the ID and never issue another create merely because waiting or minting failed. See [Create a repository](/guides/api/plugins/act-for-an-installation#create-a-repository) for recovery, the default limit and ownership. ## Report check runs Plugins registered with `checks:write` write check runs on a commit in any repository the installation covers. A write is idempotent, so retry it freely. `ExternalUpdatedAt` is when the state changed on your side, and Entire applies writes to a run in that order: ```go theme={null} func reportLint(ctx context.Context, inst *plugin.Installation, repoID, sha, attemptID string, finishedAt time.Time) error { _, err := inst.Checks.Upsert(ctx, repoID, sha, plugin.UpsertRequest{ Branch: "main", Suite: plugin.Suite{Key: "ci", Name: "Acme CI", ExternalID: attemptID}, Runs: []plugin.Run{{ Key: "lint", Name: "lint", ExternalID: attemptID + "/lint", Status: plugin.Completed, Conclusion: plugin.Success, ExternalUpdatedAt: finishedAt, }}, }) return err } ``` The SDK validates common request fields locally, sends the write to the repository's region with a token carrying only `checks:write`, and follows a repository that moved. Server validation and live authorization remain authoritative. See [Report checks](/guides/api/plugins/report-checks) for suite state, attempt IDs, cancellation and readback. ### Your plugin's gate Each plugin that can write checks gets its own [gate](/guides/trails/gates) on every repository it covers, keyed by its slug. Entire creates the gate the first time it evaluates a repository's gates after the install. The gate is enabled and blocking, so your reports can stop a trail from merging: * **No required names.** The gate doesn't apply until you report on the trail's head commit. After that, every suite on the head commit must pass. * **Required names.** The customer lists names, as [Review and require checks](/guides/ci/checks) describes, under the repository's **Settings** then **Gates**. A name is a suite key, such as `ci`, or a suite key and a run key, such as `ci / lint`. A listed name with no report on the head commit waits, unless the commit was pushed before the plugin was connected. Checks that aren't listed never block. The `success`, `neutral`, `skipped` and `action_required` conclusions don't fail a run. Keep your suite and run keys stable, because customers name them in their gate settings. Deployments never count toward this gate. To show the resources you deployed and links to them on the Change, [report deployments](/guides/api/plugins/deployments#with-the-go-sdk) with `inst.Deployments`. ## Receive events `App.WebhookHandler` verifies each delivery's signature, checks its delivery store for already handled IDs, and calls your function. Make queue insertion idempotent using the delivery ID, answer within seconds, and process slow work from durable storage. Webhooks are experimental, and field names may change: ```go theme={null} func webhooks(app *plugin.App) { http.Handle("POST /webhook", app.WebhookHandler(func(ctx context.Context, d *plugin.Delivery) error { switch d.Event.Type { case "ref.created", "ref.updated": // This build handler ignores deletions and unrelated events. default: return nil } change, err := d.Event.RefChange() if err != nil { return err } return enqueueBuild(d.InstallationID, change.Repository.ID, change.After) })) } ``` Set `Config.DeliveryJWKSURL` to the delivery JWKS URL Entire gives you when it registers your webhook. `enqueueBuild` is your application code: persist work before acknowledging the delivery and propagate queue failures. See [Receive webhooks](/guides/api/plugins/webhooks#with-the-go-sdk) for durable handling and response codes. The SDK exposes `Receipt.ProjectID` and `InstallationState.ProjectID`, but not the [project display fields](/guides/api/plugins/install-flow#project-identity). Don't display `Receipt.Project`: it can be an internal mirror name. `InstallationChange.Installation.ManageURL` is empty on `installation.deleted`. To read the webhook's `project` object, use `Event.Decode` with your own struct after the handler verifies the delivery. Entire delivers fifteen events: | Event | Reference | | :- | :- | | `installation.created` | [Installation created](/api-reference/webhooks/installation/installation-created) | | `installation.updated` | [Installation updated](/api-reference/webhooks/installation/installation-updated) | | `installation.repositories_added` | [Installation repositories added](/api-reference/webhooks/installation/installation-repositories-added) | | `installation.repositories_removed` | [Installation repositories removed](/api-reference/webhooks/installation/installation-repositories-removed) | | `installation.suspended` | Not in the reference yet. Decode it with `InstallationChange`; `suspended_by` is `plugin` or `customer`, and only that side can resume it. | | `installation.resumed` | Not in the reference yet. Decode it with `InstallationChange`. | | `installation.deleted` | [Installation deleted](/api-reference/webhooks/installation/installation-deleted) | | `ref.created` | [Ref created](/api-reference/webhooks/ref/ref-created) | | `ref.updated` | [Ref updated](/api-reference/webhooks/ref/ref-updated) | | `ref.deleted` | [Ref deleted](/api-reference/webhooks/ref/ref-deleted) | | `trail.opened` | [Trail opened](/api-reference/webhooks/trail/trail-opened) | | `trail.updated` | [Trail updated](/api-reference/webhooks/trail/trail-updated) | | `trail.closed` | [Trail closed](/api-reference/webhooks/trail/trail-closed) | | `trail.reopened` | [Trail reopened](/api-reference/webhooks/trail/trail-reopened) | | `trail.merged` | [Trail merged](/api-reference/webhooks/trail/trail-merged) | Both ref and trail events need live `contents:read` or `contents:write` on the covered repository; installation lifecycle events do not. See [Receive webhooks](/guides/api/plugins/webhooks) for delivery verification, installation revisions, ref events and trail events. ## Try it on your machine The SDK's `examples/plugin-reader` example runs the whole flow without a public server. It serves the post-install callback on `https://localhost:8443/callback`, prints an install link for you to open, verifies the receipt, then reads each repository with a client scoped to it. Run the following commands from a checkout of the Go SDK source at release `v0.3.1`. Installing the module with `go get` in your own application does not create its `examples` directory. 1. Generate a private key with `openssl genpkey -algorithm ed25519 -out plugin-key.pem`, then print its public half with `go run ./examples/plugin-reader -key plugin-key.pem pubkey`. The `pubkey` command reads an existing key. 2. Ask Entire to register a test plugin with that key, `contents:read` and `https://localhost:8443/callback` as a post-install URL. 3. Make a certificate your browser trusts, for example with `mkcert localhost`. 4. Run the install, and choose a test project and repository on the install page. ```bash theme={null} go run ./examples/plugin-reader -slug your-test-slug -key plugin-key.pem \ -tls-cert localhost.pem -tls-key localhost-key.pem install ``` Later runs read the saved installation with `run`. # Install flow Source: https://docs.entire.com/guides/api/plugins/install-flow How a customer installs your plugin, and how to verify the install receipt. The customer starts on your site, approves on Entire, and returns to you. 1. **You send the customer to Entire.** Make an unguessable state value, tie it to the customer's browser session (for example in a signed, HttpOnly cookie), and redirect to: ```text theme={null} https://entire.com/plugins/{slug}/install?redirect_uri={post-install URL}&state={state} ``` 2. **The customer approves.** They sign in to Entire, choose a project they manage, and choose all of its repositories or a list. The page shows the permissions you registered. For `repositories:create` it shows "Create repositories in this project". Only people who manage the project can install plugins. 3. **Entire sends the customer back.** On approval, the browser returns to your `redirect_uri` with two query parameters, `receipt` and `state`. If the customer cancels, it returns with `error=access_denied` and the state instead. 4. **You verify the receipt.** Check every item in the list below before you trust it. 5. **You store the installation ID.** It is the only key you need. Show the customer a confirmation page. ## Verifying an install receipt The receipt is a compact JWT signed with EdDSA. The SDK's `App.AcceptReceipt` does all of this: * The `state` query parameter equals the state you stored for this browser session. Compare in constant time. Reject a mismatch as an invalid callback; it can also mean the browser session or stored state was lost. * The header `typ` is `entire-install-receipt+jwt`, and `alg` is `EdDSA`. * The `iss` claim is one of Entire's [Cores](/guides/api/regions-and-routing#cores). Check this before you fetch keys, because the issuer decides where the keys come from. * The signature verifies against the key named by `kid` in the issuer's JWKS at `{iss}/.well-known/jwks.json`. * `aud` includes your registered receipt audience (normally `urn:entire:plugin:{slug}`), configured as `Config.Audience` in the SDK, and `plugin_id` is your slug. * The receipt passes expiry validation. Receipts last five minutes; the SDK allows one minute of clock leeway. Verify them as soon as they arrive. * The `state` claim inside the receipt equals your stored state. * You have not accepted this `jti` before. The verified receipt carries `installation_id` and `project_id`. It proves issuance at consent time, not continuing access: later API calls still check the installation's live authority. ## Project identity Store `project_id` when you need to identify the project. For display, use `project_name` and `forge`: ```json theme={null} { "project": "gh:mirrors:", "project_id": "", "project_name": "acme", "forge": "github" } ``` `project_name` is the native project's name or the mirror owner's account or organization login. `forge` is `entire` or `github`. Names can change, and an Entire project and a mirror can have the same name, so keep the name and forge together and use the ID as your key. The receipt's older `project` string stays unchanged for compatibility. For a mirror it can be an internal name such as `gh:mirrors:...`. Don't use it for display. [Installation webhooks](/guides/api/plugins/webhooks#installation-events) put the same information in a `project` object. On a webhook it is under `event.payload.installation`: ```json theme={null} { "project_id": "", "project": {"id": "", "name": "acme", "forge": "github"} } ``` Use `project.id` as the identifier and `project.name` with `project.forge` for display. The existing `project_id` stays and equals `project.id`. The display fields are optional. Older receipts and events lack them, and Entire omits them when it cannot look up the public project name. Keep processing the installation using its IDs; missing display metadata doesn't revoke access. The receipt and installation events also include `manage_url` when available. Link to it from your settings so the customer can manage the installation. Store it before uninstall: `installation.deleted` doesn't include it. Don't parse it to find the project's name or forge. ## Key installations on their ID alone Installations are global. Any Core serves any installation, and the receipt's issuer only tells you which Core handled the consent. Do not key your records on the issuer, and do not assume the installation belongs to one region. Call the nearest trusted Core and sign your plugin JWT for that Core's authentication audience. Mint an installation token on the Core where you will use it for Core operations; do not assume every Core accepts a token issued elsewhere. # Building a Plugin Source: https://docs.entire.com/guides/api/plugins/overview How customers install your plugin, and how your service acts on their repositories. An Entire plugin is your service, acting on the repositories a customer chose to share with it. A customer installs your plugin on one of their Entire projects and picks the repositories it may reach. Entire then sends the customer back to you with a signed install receipt. Keep the installation ID as your durable identifier. Background work needs no customer password or long-lived installation bearer: sign a short JWT with your own key and exchange it for an access token that lasts about 45 minutes. The optional [user OAuth flow](/guides/api/plugins/user-oauth-flow) has its own refresh tokens. A plugin registered for it can also create repositories in the customer's project. Each new repository joins the installation; [provisioning and grant reconciliation](/guides/api/plugins/act-for-an-installation#wait-for-provisioning) may still need to finish before you can use it. Build using our [Go SDK](/guides/api/plugins/go-sdk) or call the APIs directly. These guides explain the requests and responses for either approach. > [!NOTE] > > Plugins are currently available to selected partners only. If you want to build one, talk to your Entire contact first. > > The plugin system and the SDK package are in early access. Check each endpoint's version and Experimental notice for contract guidance. Field names in this guide are stable unless marked otherwise. ## Find the right guide These guides are for building an Entire service integration. To connect an existing CI integration, see [Continuous Integration](/guides/ci/overview). For executable extensions to the local CLI, see [`entire plugin`](/cli-reference/plugin). Use the shared [API Reference](/guides/api/getting-started) for endpoint schemas, [Authentication](/guides/api/authentication) for accepted credentials, and [Regions and routing](/guides/api/regions-and-routing) for hosts. The API Reference groups each endpoint once by resource. For example, [trail comments](/guides/api/plugins/trail-comments) links to the canonical [create discussion endpoint](/api-reference/trails/trail-discussions/start-a-new-discussion-repo_id-addressing), with plugin permissions and ownership restrictions explained in the guide. ## Who can use each API? Each endpoint has its own audience. The [Plugin APIs](/guides/api/plugins/apis) page lists endpoints explicitly tagged for plugin use as service annotations become available, including APIs shared with account callers. Building a plugin also involves account management calls: | Audience | Who calls it | Example | | :- | :- | :- | | Users | Your own account, including supported service accounts. | [List your projects](/api-reference/control-plane/projects/list-projects-accessible-to-the-caller-or-one-by-name) before managing a customer installation. | | Plugins | Your registered plugin, using the credential accepted by that operation. | [Mint an installation token](/guides/api/plugins/act-for-an-installation#mint-an-access-token) with a plugin JWT for background work. | An endpoint that supports both contexts shows both badges. For example, [create a repository](/api-reference/control-plane/repos/create-repository) under your own account or through the [plugin create flow](/guides/api/plugins/act-for-an-installation#create-a-repository), with the permissions and scope required for that context. Read the endpoint's **Accepted credentials** details to choose a User token, Plugin JWT, Plugin installation token or Plugin OAuth user token. An audience label does not grant access: permissions, customer acceptance, installation scope and ownership checks still apply. See the [authentication legend](/guides/api/authentication#read-endpoint-labels) for the credential distinctions. ## Steps 1. [Register your plugin](/guides/api/plugins/register) with Entire. 2. [Send customers through the install flow](/guides/api/plugins/install-flow) and verify the receipt. 3. [Access repositories](/guides/api/plugins/act-for-an-installation): list an installation's repositories, mint access tokens, clone or read files and, if you need to, create repositories. 4. [Receive webhooks](/guides/api/plugins/webhooks) when installations, refs or trails change. 5. [Report checks](/guides/api/plugins/report-checks), [comment on trails](/guides/api/plugins/trail-comments), [report findings](/guides/api/plugins/trail-findings) or [report deployments](/guides/api/plugins/deployments), depending on what your plugin does. If your plugin also needs to know which installations and repositories a user can access, add [user sign-in with OAuth](/guides/api/plugins/user-oauth-flow). Background work doesn't need it. ## Concepts | Term | Meaning | | :- | :- | | Plugin | Your service, registered with Entire under a **slug** such as `acme-ci`. | | Installation | One customer project that installed your plugin, with the repositories the customer selected: all of the project's repositories, or a list. Identified by an ID such as `ins_01M4...`. | | Install receipt | A JWT that Entire signs and returns to your post-install URL. It identifies the installation at the time the receipt was issued; it does not prove ongoing access. | | Plugin JWT | A short JWT your service signs with its Ed25519 key. You send it to Entire to list repositories and to mint access tokens. | | Access token | A bearer token Entire mints for an installation. It carries the permissions you ask for, out of those registered and accepted by the customer for that installation, such as reading repositories or commenting on trails. It lasts about 45 minutes. | | Core | Entire's control plane. One runs in each jurisdiction, such as `https://us.auth.entire.io`. Any Core serves any installation. | | Region | Where a repository's data lives. Repository calls go to the API host of the repository's processing primary region. | ## Security checklist * Keep the private key in a secret store or KMS, never in source control or images. * Tie every install state to the browser session that started it, and verify every receipt fully before you store anything. * Request the narrowest token that does the job: one repository, fewest permissions. * Never log tokens, JWTs or receipts. * Treat a 404 for an installation or repository as revoked access, and stop. * Keep tokens out of URLs, command lines and files a build can read. # Register your plugin Source: https://docs.entire.com/guides/api/plugins/register What to send Entire to register a plugin, and how to make and rotate its key. Entire registers each plugin for you. Send your Entire contact the values below. You choose all of them except the slug, which Entire confirms, and the issuer and receipt audience, which follow from the slug for new registrations. If you have a legacy registration, use its assigned issuer and audience. | Field | What to send | Example | | :- | :- | :- | | Owning project | The name of the Entire project that owns your plugin. Project managers can inspect its registration and delivery settings; registration changes go through your Entire contact. | `acme` | | Slug | Lowercase letters, digits and single hyphens, at most 40 characters. It can't change later. | `acme-ci` | | Name, description | How your plugin appears to customers in Entire. | Acme CI, "Runs your tests on every push." | | Logo | A URL to an SVG or PNG of your mark with no wordmark. Use a transparent background and ideally a square shape. A PNG must be at least 256×256. | `https://ci.acme.example/logo.svg` | | Issuer | The `iss` claim of your plugin JWTs. For new registrations, `urn:entire:plugin:{slug}`, so you don't need to send it. | `urn:entire:plugin:acme-ci` | | Receipt audience | The `aud` claim Entire puts in your install receipts. For new registrations, `urn:entire:plugin:{slug}`, so you don't need to send it. | `urn:entire:plugin:acme-ci` | | Permissions | `contents:read` to read repository contents, `contents:write` to read and push to them, `checks:write` to [report checks](/guides/api/plugins/report-checks), `discussions:write` to [comment on trails](/guides/api/plugins/trail-comments), `findings:write` to [report findings on trails](/guides/api/plugins/trail-findings), `trails:read` or `trails:write` to read or change trails, `deployments:write` to [report deployments](/guides/api/plugins/deployments) such as preview sites, `repositories:create` to [create repositories](/guides/api/plugins/act-for-an-installation#create-a-repository) in the customer's project. [Ref and trail events](/guides/api/plugins/webhooks#what-you-need) also need live `contents:read` or `contents:write` on the covered repository. Request only what you use. Only the `contents` permissions reach a repository's Git data. The others, `repositories:create` included, grant no repository read or write, so a plugin that pushes to the repositories it creates also needs `contents:write`. | `contents:read` | | Public keys | Either Ed25519 public keys in PEM form (up to 10, for rotation), or the URL of a JWKS you serve. Never send the private key. | PEM block | | Install URL | Optional. HTTPS URL where Entire sends customers who start an install from Entire. It should begin your [install flow](/guides/api/plugins/install-flow). | `https://ci.acme.example/install` | | Post-install URLs | URLs that receive the customer after consent, up to 10. Use HTTPS; HTTP loopback URLs are also accepted for local development. Entire compares them character for character. | `https://ci.acme.example/callback` | | Webhook URL | Optional. HTTPS URL for event deliveries. Entire doesn't follow redirects. | `https://ci.acme.example/webhook` | | OAuth redirect URIs | Optional. HTTPS URLs that receive the user after [OAuth sign-in](/guides/api/plugins/user-oauth-flow), up to 10. Entire compares them character for character. | `https://ci.acme.example/oauth/callback` | To change your registered permissions later, ask your Entire contact. New installations accept the current set during consent. For an existing installation, a customer who manages the project must accept the updated permissions through the install consent flow. Registration alone does not grant them: a mint requesting an unaccepted permission returns `403 permission_not_accepted`. A separate `409 coverage_changed` means repository coverage or grants changed during the mint. ## Make a key Make a key with OpenSSL, and send the public half: ```bash theme={null} openssl genpkey -algorithm ed25519 -out plugin-key.pem openssl pkey -in plugin-key.pem -pubout ``` > [!WARNING] > > Keep `plugin-key.pem` in your secret store. Anyone who holds it can act as your plugin within its active installations and granted permissions. To rotate, send the new public key, deploy the new private key, then ask Entire to remove the old public key. PEM keys are simplest. A JWKS URL suits you if you rotate keys often or keep keys in a KMS: your JWTs must then carry a `kid` header that names the key, and the SDK serves the JWKS for you with `App.JWKSHandler` when you configure `Config.KeyID`. # Report checks Source: https://docs.entire.com/guides/api/plugins/report-checks Write check results on a commit, update them as work progresses, and read them back. A plugin with `checks:write` can report results on a commit in a repository the installation covers. Use checks for tests, security scans, code review or any other work whose result a customer may require before merging. ## What you need * Register your plugin with `checks:write` and have the customer accept it. Writing checks alone does not need contents access, but add `contents:read` (or `contents:write`) if your service reads code or receives ref or trail webhooks. * [Mint an access token](/guides/api/plugins/act-for-an-installation#mint-an-access-token) scoped to the repository, with `{"checks": "write"}`. * Take the repository's `id` and processing-primary `api_base_url` from the [repository list](/guides/api/plugins/act-for-an-installation#list-repositories). Use the full commit SHA, 40 or 64 characters. ## Report a result A **suite** groups one kind of work, such as a security scan. You can report its result alone, or include individual **runs** for its parts. Send one suite per request: ```http theme={null} POST {api_base_url}/api/v1/repos/{repo_id}/commits/{sha}/check-runs Authorization: Bearer {access token} Content-Type: application/json { "branch": "main", "check_suite": { "key": "security", "name": "Security scan", "external_id": "scan-1842", "details_url": "https://scanner.example/scans/1842", "status": "completed", "conclusion": "success", "external_updated_at": "2026-10-27T00:03:51.004Z" }, "check_runs": [] } ``` `branch` is the branch name without `refs/heads/`. Keep `key` stable and readable: customers see it on the trail and use it when they [require checks](/guides/ci/checks). The suite's `name` is stored metadata, not its current display label. Give `external_id` a new value for each attempt, including a rerun on the same commit. It can be up to 255 bytes. `details_url` is optional. It must use HTTPS and contain no credentials. Link to the result in your service, where the customer can read logs or take action. A write applies in full or not at all. Retrying the same request is safe. A `200` response identifies the suite and returns an outcome for each run: `created`, `updated`, `unchanged` or `ignored_stale`. It does not return the suite's state; [read it back](#read-your-results) to confirm that. ## Keep it current Report `queued` when you accept work, `in_progress` when it starts, and `completed` when it ends. Use these values for both suites and runs: | State | `status` | `conclusion` | | :- | :- | :- | | Waiting to start | `queued` | Omit | | Running or cancelling | `in_progress` | Omit | | Passed | `completed` | `success` | | Failed | `completed` | `failure` | | Allowed to fail | `completed` | `neutral` | | Cancelled | `completed` | `cancelled` | | Skipped | `completed` | `skipped` | | Timed out | `completed` | `timed_out` | | Needs a person's attention, without blocking merge | `completed` | `action_required` | `action_required` counts as passing. If an approval must block a merge, keep the suite pending instead. When you send suite state, include both `status` and `external_updated_at`, plus `conclusion` when completed. Set the timestamp to when the state changed in your service, not when you sent the request. Timestamps must be RFC 3339 with a zero UTC offset; nonzero offsets are refused with `400`. Entire stores millisecond precision. Suites and runs can also carry `started_at` and `completed_at`. The same rules apply to them, and `completed_at` can't be before `started_at`. Older state updates are ignored. An identical retry leaves the result unchanged. An update with the same timestamp can change values, but reopening completed work as `queued` or `in_progress` needs a newer timestamp. A timestamp more than 60 seconds in the future is refused. Within an attempt, cancellation cannot replace a passing result. Across suite attempts, a cancelled attempt does not replace the newest non-cancelled attempt if that attempt passes. Keep the same `external_id` when updating an attempt; use a new one when you start the work again. ## Include individual runs You don't need a run for every internal step. When separate results help the customer, add them to `check_runs`: ```json theme={null} { "key": "dependencies", "name": "Dependency scan", "external_id": "scan-1842/dependencies", "status": "completed", "conclusion": "failure", "external_updated_at": "2026-10-27T00:03:51.004Z", "details_url": "https://scanner.example/scans/1842/dependencies", "output": { "title": "Vulnerable dependency found", "summary": "See the scan for affected packages and upgrade instructions." } } ``` Each run has its own stable `key` and attempt `external_id`. Two runs in one request can't share both. A request can include up to 5,000 runs. An output title can be up to 255 characters and its Markdown summary up to 65,535 bytes. Keep reports small and link to full logs. The suite's reported state decides its result, even when runs have different results. Keep it pending while more work can start, and report its final result when the work ends. This also lets you report a failure before any run starts. To update runs without changing suite state, omit all suite state fields. Runs omitted from a request keep their stored results. A suite that has never reported its own state takes its result from its current runs; it must have at least one run. Don't create a run with the suite's key just to represent the suite's result. ### Deadlines A run can include `deadline_at`, in UTC and at most 24 hours ahead. After that time, the expiry sweep completes an `in_progress` run as `timed_out`. Queued runs and runs without a deadline don't time out automatically. Omitting a deadline from a later nonterminal update preserves it; completing the run clears it. Suites have no deadline. A run timing out doesn't change a suite that reports its own state, so report the suite's final result yourself. ## Read your results ```http theme={null} GET {api_base_url}/api/v1/repos/{repo_id}/commits/{sha}/check-suites Authorization: Bearer {access token} ``` ```http theme={null} GET {api_base_url}/api/v1/repos/{repo_id}/commits/{sha}/check-runs?suite_key=security Authorization: Bearer {access token} ``` Use the same `checks:write` token. These endpoints return your plugin's current results on the commit, without earlier attempts, in one page. Omit `suite_key` to read runs from all your suites. Run attempts are ordered by their update time; a suite attempt's ordering also accounts for updates to its runs. Each check-writing plugin has its own gate. See [the plugin gate rules](/guides/api/plugins/go-sdk#your-plugins-gate) for how your reports affect merging, and [Review and require checks](/guides/ci/checks) for the customer's settings. If the gate has no required names, it doesn't wait for a suite that hasn't reported yet. Send `queued` promptly if your work should block merging while it runs. Mirrored repositories use the same API. Entire shows your results on its trails; it does not create a separate upstream check for each suite. ## Errors | Status and code | What to do | | :- | :- | | `400 invalid_request` | Fix the value described in `detail`, such as a missing `key`, `name` or `external_id`, incomplete suite state, a timestamp not in UTC or too far ahead, or a duplicate run. | | `422 validation_error` | Fix the JSON: field types or timestamp syntax. | | `403 forbidden` | Check that the token has `checks:write` for this repository. | | `409 wrong_cell` | Refresh the repository list and retry at its processing-primary `api_base_url`. | | `409 conflict` | Check that the installation still covers the repository. After a reinstall, use new attempt IDs; another installation cannot overwrite an existing attempt. | | `503` | Retry with backoff. The write may have succeeded even if Entire couldn't confirm it. | For token errors, see [Access repositories](/guides/api/plugins/act-for-an-installation#errors). For a Go implementation, see [Report check runs with the SDK](/guides/api/plugins/go-sdk#report-check-runs). # Comment on trails Source: https://docs.entire.com/guides/api/plugins/trail-comments Post a comment on a trail and keep it current as your work progresses. A plugin registered with `discussions:write` can start a discussion on a trail, reply to one, and edit or delete its own messages. The usual pattern is one summary comment per trail that your plugin keeps current. For example, a deploy-preview plugin posts a table of preview URLs when a [trail opens](/guides/api/plugins/webhooks#trail-events), and edits the same comment as each deployment finishes. > [!NOTE] > > Trail comments are experimental. Field names may change before the contract is final. ## What you need * **`discussions:write`**, to post and edit without granting repository read or push access. Register it and have the customer accept it. `contents:write` also grants posting authority, but is broader. * **`contents:read`**, to list a trail's discussions or receive ref and trail webhooks. You need it to find your comment again if you don't store its IDs; `contents:write` also satisfies this requirement. * **An access token scoped to the repository**, with both permissions. [Mint it](/guides/api/plugins/act-for-an-installation#mint-an-access-token) with this body: ```json theme={null} {"repository_id": "repo_01M3...", "permissions": {"contents": "read", "discussions": "write"}} ``` Send every call below to the repository's [`api_base_url`](/guides/api/regions-and-routing), under `/api/v1`, with the access token as bearer token. The [Go SDK](#with-the-go-sdk) does the minting and routing for you. ## Post the comment [Start a discussion](/api-reference/trails/trail-discussions/start-a-new-discussion-repo_id-addressing) on the trail: ```http theme={null} POST /api/v1/repos/{repo_id}/trails/{number}/discussions Content-Type: application/json {"title": "Deploy previews", "body": "| App | Status |\n| :-- | :-- |\n| web | Building |"} ``` The title is optional, up to 512 characters. The body is required, up to 65,536 characters, and stores your Markdown text. A `201` returns the new discussion and its first message: ```json theme={null} {"discussion": {"id": "...", "title": "Deploy previews", ...}, "message": {"id": "...", "body": "...", ...}} ``` Store `discussion.id` and `message.id` with the trail. You need both to edit the comment. ## Keep it current [Edit the message](/api-reference/trails/trail-discussions/edit-a-message-repo_id-addressing) whenever your state changes. The new body replaces the old one, so send all of it: ```http theme={null} PATCH /api/v1/repos/{repo_id}/trails/{number}/discussions/{discussion_id}/messages/{message_id} Content-Type: application/json {"body": "| App | Status |\n| :-- | :-- |\n| web | [Ready](https://preview.acme.example) |"} ``` Edit the comment you already posted rather than posting a new one for each update. You can also [reply in the discussion](/api-reference/trails/trail-discussions/add-a-message-to-a-discussion-repo_id-addressing), and [delete a message](/api-reference/trails/trail-discussions/delete-a-message-repo_id-addressing) that no longer applies. ## Find your comment again If you lost the IDs, [list the trail's discussions](/api-reference/trails/trail-discussions/list-a-trails-discussions-repo_id-addressing) with `GET /api/v1/repos/{repo_id}/trails/{number}/discussions`. While the response has a `next_cursor`, pass it back as `?cursor=` for the next page. Yours is the one whose `created_by_identity` names your installation: ```json theme={null} "created_by_identity": { "kind": "automation", "account_id": null, "automation": {"plugin": "acme-ci", "installation_id": "ins_01M4..."} } ``` Then [get the discussion](/api-reference/trails/trail-discussions/get-a-discussion-and-its-messages-repo_id-addressing) for its messages. Each message's `identity` has the same shape. Match on `installation_id`, not on `author`: for a plugin, `author` is an empty string and `created_by` is null. ## Who can change your comment A message belongs to the installation that posted it, not to the token. A later token for the same installation can edit or delete an existing message only while the installation retains live repository coverage and posting authority (`discussions:write` or `contents:write`). The message edit and delete APIs reject a different author with `404`, including another installation of your plugin or a person. Your plugin cannot change anyone else's messages. Match the message identity’s `automation.installation_id` to your saved installation ID to find your own messages. ## Find your comment Where a discussion is rendered, the author label is your plugin slug with words capitalized, followed by **(plugin)**: `deploy-previews` appears as **Deploy Previews (plugin)**. Use the installation identity and saved IDs for programmatic lookup. Use the repository ID and repository Change number from the trail event to list that Change's discussions. Find the discussion ID returned when you posted, then get its messages and match the saved message ID. A project Trail can contain Changes from several repositories; its project-level discussions use a separate API. ## What discussions:write doesn't cover * Resolving, reopening or retitling an ordinary discussion. These require an account principal; adding `contents:write` does not enable them for a plugin installation. A discussion linked to a code-review comment has a separate path that allows automation to change resolution with `contents:write`, but its title is read-only. * Starting a review, which needs `contents:write`. * Review comments and approvals. * Discussions on a project trail. Only trails on a repository accept plugin comments. * Reading discussions, which needs `contents:read`. ## Errors These are specific to discussions. For errors when minting the token, see [Access repositories](/guides/api/plugins/act-for-an-installation#errors). | Status and detail | Meaning | | :- | :- | | `403 no discussion write access to repo` | The caller lacks effective posting authority (`discussions:write` or `contents:write`) for this repository. Entire gives the same answer for a repository that doesn't exist. | | `403 no read access to repo` | You listed or read discussions without `contents:read`. | | `403 no write access to repo` | The operation needs repository write authority. Passing this gate still does not permit a plugin to change ordinary discussion metadata. | | `403 automation principals cannot perform this action` | The operation requires an account principal, including project Trail discussions and ordinary repository discussion resolve/reopen/retitle. | | `404 Message not found` | The message is gone, or another installation or a person posted it. | | `400` | A supplied title or required body is blank or too long. The title may be omitted. The `detail` names the constraint. | ## With the Go SDK Add `Discussions: plugin.Write` to `Config.Permissions`, matching your registration. `inst.RepositoryClient` then returns a client whose `Trails` methods post and edit comments. This updates a stored summary comment from a [trail event](/guides/api/plugins/webhooks#with-the-go-sdk). Serialize calls for each installation, repository and trail, and persist the IDs durably. Creation has no idempotency key: concurrent first calls or a crash after creation but before saving can create duplicates. Recover an uncertain create by finding the existing comment before creating again: ```go theme={null} func updateSummary(ctx context.Context, inst *plugin.Installation, change *plugin.TrailChange, summary string) error { client, repoID, err := inst.RepositoryClient(ctx, change.Repository.ID, plugin.Permissions{Contents: plugin.Read, Discussions: plugin.Write}) if err != nil { return err } trail := int64(change.Trail.Number) comment, ok := loadComment(change.Trail.ID) if !ok { created, err := client.Trails.CreateDiscussion(ctx, repoID, trail, entire.DiscussionCreateRequest{Title: "Deploy previews", Body: summary}) if err != nil { return err } return saveComment(change.Trail.ID, created.Data.ID, created.Data.Messages[0].ID) } _, err = client.Trails.UpdateMessage(ctx, repoID, trail, comment.DiscussionID, comment.MessageID, entire.MessageRequest{Body: summary}) return err } ``` `loadComment` and `saveComment` are your own functions. Scope them to the installation and repository, and key the comment by the trail's stable ID. To find a comment you didn't store, range over `client.Trails.ListDiscussionsAll` and match `CreatedByIdentity.Automation.InstallationID` against `inst.ID()`. # Report findings on trails Source: https://docs.entire.com/guides/api/plugins/trail-findings Publish review findings on a trail's code, and resolve them as they're fixed. A plugin registered with `findings:write` can publish findings on a trail: comments tied to a line, a range, a file or the whole change, each with an optional severity and confidence. For example, a security scanner starts a review when a [trail opens or updates](/guides/api/plugins/webhooks#trail-events), publishes what it found, and resolves each finding once a later push fixes it. Findings appear on the trail's diff next to the code they're about. > [!NOTE] > > Trail findings are experimental. Field names may change before the contract is final. ## What you need * **`findings:write`**, on your plugin's installation token. Ask Entire to add it when you [register your plugin](/guides/api/plugins/register). It also lets you read findings, but grants no repository read or push access. * **`contents:read`**, to read the code you're reviewing and receive [trail events](/guides/api/plugins/webhooks#what-you-need). The token you write findings with doesn't need it. * **An access token scoped to the repository** for writing findings. [Mint it](/guides/api/plugins/act-for-an-installation#mint-an-access-token) with this body: ```json theme={null} {"repository_id": "repo_01M3...", "permissions": {"findings": "write"}} ``` Send every call below to the repository's [`api_base_url`](/guides/api/regions-and-routing), under `/api/v1`, with the access token as bearer token. Trails must be enabled on the repository. ## Start a review Findings belong to a review. [Start one](/api-reference/trails/trail-reviews/start-a-code-review-repo_id-addressing) for the commit you analyzed: ```http theme={null} POST /api/v1/repos/{repo_id}/trails/{number}/reviews Content-Type: application/json Idempotency-Key: scan-4f2a9c1e {"head_sha": "4f2a9c1e..."} ``` Every body field is optional. `head_sha` and `base_sha` are full 40-character SHAs; the trail's current head and base fill whichever you omit. Pass the `head_sha` you analyzed so your findings attach to that code, even if someone pushes while you work. A `201` returns the review: ```json theme={null} {"review_id": "01K...", "trail_id": "...", "repo_id": "repo_01M3...", "code_version_id": "...", "base_sha": "...", "head_sha": "4f2a9c1e...", "limits": {"max_comments_per_batch": 100}, ...} ``` Store `review_id`. Only your installation can publish to that review or change its findings. ## Publish findings [Publish your findings](/api-reference/trails/trail-reviews/atomically-publish-review-comments-and-summary-repo_id-addressing) on the review, with an optional summary: ```http theme={null} POST /api/v1/repos/{repo_id}/trails/{number}/reviews/{review_id}/comments Content-Type: application/json Idempotency-Key: scan-4f2a9c1e-publish { "summary": "1 high-severity issue in 12 files scanned.", "comments": [{ "client_id": "sql-injection:api/users.go:42", "body": "User input reaches this query unescaped. Use a parameterized query.", "severity": "high", "confidence": 0.9, "location": { "granularity": "line", "file_path": "api/users.go", "start_line": 42, "selected_text": "db.Query(\"SELECT * FROM users WHERE id = \" + id)" } }] } ``` The whole request applies or none of it does. It also marks the review complete, so publish everything you found for that commit in one request. To report no findings, send an empty `comments` array, with a summary if you like. | Field | Required | Notes | | :- | :- | :- | | `comments` | No | Up to 100 findings. | | `summary` | No | Your review's overall summary, in Markdown. `null` clears it. | | `client_id` | Yes | Your stable ID for the finding, unique in the request, up to 255 characters. | | `body` | No | The finding, in Markdown, up to 65,536 characters. | | `severity` | No | `high`, `medium` or `low`. | | `confidence` | No | A number from 0 to 1. | | `status` | No | `open` (the default), `resolved` or `dismissed`. | | `status_reason` | No | Why the finding was resolved or dismissed, up to 4,096 characters. | | `location` | Yes | Where the finding applies. See below. | | `suggested_change` | No | A proposed fix. `change_type` is `unified_diff`, `file_replacement`, `json_patch` or `manual_instruction`. | `location.granularity` decides what else `location` needs: | `granularity` | Also requires | | :- | :- | | `line` | `file_path`, `start_line` (from 1) and `selected_text`, the text on that line. | | `range` | The same, plus `end_line`, no less than `start_line`. | | `file` | `file_path`. | | `whole_change` | Nothing. | `start_column`, `end_column`, `nearby_text` and `language` are optional. `selected_text` and `nearby_text` help keep a finding attached to its code as the trail changes. The response has the completed review and one result per finding, in request order: ```json theme={null} {"review": {"id": "01K...", "summary": "...", "completed_at": "2026-11-09T10:04:00Z", ...}, "results": [{"client_id": "sql-injection:api/users.go:42", "status": "created", "comment": {"id": "01K...", "status": "open", ...}}]} ``` Store each `comment.id` with its `client_id`. You need the ID to resolve the finding later. ## Retry safely Send an `Idempotency-Key` header with both requests. Retrying with the same key and body returns the first response rather than starting a second review or publishing twice. `client_id` protects each finding as well. Publishing a `client_id` the review already has, with the same payload, returns it with `status` `existing` instead of creating a duplicate. The same `client_id` with a different payload fails the request. ## Keep findings current [Update a finding](/api-reference/trails/trail-reviews/update-a-review-comment-repo_id-addressing) when its state changes, such as when a later push fixes it: ```http theme={null} PATCH /api/v1/repos/{repo_id}/trails/{number}/reviews/{review_id}/comments/{comment_id} Content-Type: application/json {"status": "resolved", "status_reason": "Fixed in 9b7d3e0: the query is now parameterized."} ``` Send only the fields you're changing: `body`, `severity`, `confidence`, `status` or `status_reason`. Moving a finding to `resolved` or `dismissed` requires a non-empty `status_reason`. Set `status` back to `open` to reopen it. When someone pushes new code, start a new review for the new head rather than adding to an earlier one. A finding tied to code that has since changed can become stale. It keeps its status, but lists of current findings leave it out. ## Read findings [List the trail's findings](/api-reference/trails/trail-reviews/list-all-review-comments-for-a-trail-repo_id-addressing) with `GET /api/v1/repos/{repo_id}/trails/{number}/reviews/comments`. The list includes other reviewers' findings, so match on your stored `review_id` to find yours. By default it returns current findings that aren't dismissed. Filter with `?status=`, `?severity=` and `?stale=current|stale|any`. While the response has a `next_cursor`, pass it back as `?cursor=` for the next page. ## Findings and merge gates Findings your plugin publishes don't count toward a trail's [Agent review gate](/guides/trails/gates#agent-review), whatever their severity, and never block a merge. To block a merge on your results, also [report checks](/guides/api/plugins/report-checks), which needs `checks:write`. Your plugin's check gate blocks merging by default; see [the plugin gate rules](/guides/api/plugins/go-sdk#your-plugins-gate) and [Review and require checks](/guides/ci/checks). ## What findings:write doesn't cover * Changing findings on a review another installation or a person started. Those return `404`. * Approving a trail, or posting [trail comments](/guides/api/plugins/trail-comments), which need other permissions. ## Errors Errors are `application/problem+json`. For errors when minting the token, see [Access repositories](/guides/api/plugins/act-for-an-installation#errors). | Status and detail | Meaning | | :- | :- | | `403 no publish access to repo` | Starting a review or publishing findings without `findings:write` on this repository. The same answer covers a repository that doesn't exist. | | `403 no findings write access to repo` | Updating a finding without `findings:write`. | | `404 repository not found` | Trails aren't enabled on the repository. | | `404 Review not found` | The review doesn't belong to this trail, or another installation or a person started it. | | `404 Review comment not found` | The finding doesn't exist on this review, or it's on a review you didn't start. | | `409 review comments batch failed atomically` | A finding couldn't be stored, such as a reused `client_id` with a different payload. Nothing in the request was saved. | | `409 Idempotency-Key already used with a different request body` | Use a new key for a different request. | | `409 request in flight, retry shortly` | A request with the same `Idempotency-Key` is still running. Retry it unchanged. | | `409 Change comparison moved while starting the review; retry` | Someone pushed while you started the review. Retry. | | `400` | A field is invalid or a `location` is missing a required field. The `detail` names which. | # User OAuth flow Source: https://docs.entire.com/guides/api/plugins/user-oauth-flow Sign a user in with OAuth and list the installations and repositories they can use. A plugin can sign a user in with OAuth 2.0, then list which of its installations and repositories that user can use. Your plugin is its own OAuth client: it authenticates with the keys it already registered, and needs no client secret. The **Plugin OAuth user token** is the access token returned by this sign-in flow. It is distinct from a **User token**, the own-account bearer described in [Authentication](/guides/api/authentication). It tells your plugin who the user is and which of its installations and repositories they can access; it does not authorize repository work. To read code or report checks, you still [mint a Plugin installation token](/guides/api/plugins/act-for-an-installation#mint-an-access-token) with your plugin JWT. | A Plugin OAuth user token gives you | It doesn't give you | | :- | :- | | The user's account ID and, when available, handle. | Email or other personal data. | | Your installations in projects the user can read. | Any other `/api/v1` route, including repository contents. | | The repositories in an installation the user can pull. | A way to mint Plugin installation tokens. | ## What you need * **OAuth redirect URIs.** Ask your Entire contact to add up to 10 HTTPS OAuth redirect URIs when you [register your plugin](/guides/api/plugins/register), or later. Entire compares them character for character. Without them, your plugin isn't an OAuth client. * **Your client ID**, which Entire gives you when it adds the OAuth redirect URIs. It looks like `plugin_01M5...`. It never changes, isn't a secret, and doesn't depend on your slug. * **Your plugin's key**, the same one you sign plugin JWTs with. ## Sign the user in Sign-in is the authorization code flow, with PKCE required. Send the user to `auth.entire.io`, which forwards them to the Core that holds their account: ```http theme={null} GET https://auth.entire.io/authorize?response_type=code &client_id=plugin_01M5... &redirect_uri=https://ci.acme.example/oauth/callback &scope=openid &state={state} &code_challenge={challenge} &code_challenge_method=S256 ``` The first time, the user approves your plugin on a consent page that shows your name and logo. Later sign-ins skip the page until the user revokes it. Core then redirects to your `redirect_uri` with `code`, `state` and `iss` ([RFC 9207](https://www.rfc-editor.org/rfc/rfc9207)). `iss` names the Core that issued the code, such as `https://eu.auth.entire.io`. Check that it's one of [Entire's Cores](/guides/api/regions-and-routing). * Core refuses a request without a PKCE challenge, and a request with a nonempty `resource` parameter. * `scope` must be present, but Core ignores its value. Every plugin gets `openid offline_access`. * Tie `state` to the browser session that started the sign-in, and check it on the redirect. ## Redeem the code Redeem the code at the Core named by `iss`. `auth.entire.io` has no token endpoint. Authenticate with a client assertion ([RFC 7523](https://www.rfc-editor.org/rfc/rfc7523)) in place of a client secret: ```http theme={null} POST {iss}/oauth/token Content-Type: application/x-www-form-urlencoded grant_type=authorization_code &code={code} &redirect_uri=https://ci.acme.example/oauth/callback &code_verifier={verifier} &client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer &client_assertion={assertion} ``` The assertion is a JWT signed with your plugin's key: | Claim | Value | | :- | :- | | `iss`, `sub` | Your client ID. | | `aud` | The `iss` from the redirect, exactly. | | `iat`, `exp` | At most 10 minutes apart. | The response carries `access_token` (the Plugin OAuth user token), `id_token` and `refresh_token`. To refresh, send `grant_type=refresh_token` and the refresh token to the same Core, with a new assertion. Refresh tokens rotate: each refresh returns a new one, so store the latest. Only the token endpoint accepts the assertion. Basic auth and a missing assertion answer `401 invalid_client`. ## What the tokens contain | Token | Lifetime | Claims | | :- | :- | :- | | Plugin OAuth user token | 4 hours | `sub` (account ID), `client_id`, `scope`, `provider`, `provider_user_id`; `handle` when available | | ID token | 15 minutes | `sub`, `azp` (your client ID); `preferred_username` and `handle` when available | | Refresh token | 30 days, rotating | Opaque. Refresh keeps scopes, revalidates the account binding and issues new token times and IDs. | The Plugin OAuth user token's audience is `entire:plugin-api`, so it works only on the user routes below. Every other `/api/v1` route refuses it. `/userinfo` returns `sub` and, when available, `preferred_username` and `handle`. Treat `provider` and `provider_user_id` as opaque. ## List what the user can use Two routes accept the Plugin OAuth user token as a bearer credential on its issuing Core or a configured trusted sibling Core. See [When access ends](#when-access-ends) for differences in revocation checks. First, your active installations in projects the user can read: ```http theme={null} GET https://{core}/api/v1/plugins/{slug}/user/installations Authorization: Bearer {Plugin OAuth user token} ``` ```json theme={null} { "installations": [{ "id": "ins_01M4...", "project_id": "...", "project_name": "acme", "repository_selection": "selected", "created_at": "2026-10-13T20:37:23Z" }], "next_cursor": "..." } ``` `repository_selection` is `all` or `selected`. Then the installation's repositories that the user can pull: ```http theme={null} GET https://{core}/api/v1/plugins/{slug}/user/installations/{installation_id}/repositories Authorization: Bearer {Plugin OAuth user token} ``` ```json theme={null} {"repositories": [{"id": "repo_01M3...", "full_name": "acme/api"}], "next_cursor": "..."} ``` Both take `per_page`, from 1 to 100, default 30. While the response has a `next_cursor`, pass it back as `?cursor=` for the next page. The last page has no `next_cursor`. A repositories page can be short, or empty, while `next_cursor` is still set, because Entire filters each page for the user. Keep paging until there's no cursor. If the installation changes during a repository-page walk, you get `409 conflict`: restart that repository walk from the first page. The installations list does not use this revision-bound pagination. The list leaves out installations the user reaches only through grants on single repositories, without read access to the project. ## Act for the user 1. Sign the user in, and list the installations and repositories they can use. 2. Let the user pick a repository from that list. 3. [Mint a Plugin installation token](/guides/api/plugins/act-for-an-installation#mint-an-access-token) for that installation with your plugin JWT, scoped to the repository. 4. Before each later action you take for the user, check their access through the user routes again. ## When access ends Revoking the plugin ends the user's refresh-token family and makes the next sign-in show consent again. The issuing Core checks that family when accepting access tokens, with a five-second cache. A trusted sibling Core does not perform that live family check, so do not rely on immediate access-token revocation across all Cores. Removing all OAuth redirect URIs blocks new sign-ins and refresh grants; it does not by itself immediately invalidate already issued access tokens. Account suspension or removal can also cause access checks or refreshes to fail. A `401` with detail "the account is not active" means the user lost access. Don't retry it; ask the user to sign in again. ## Which Core to call Start every sign-in at `auth.entire.io`, not at a specific Core such as `https://eu.auth.entire.io`: it forwards the user to the Core that holds their account. Redeem and refresh at the Core named by `iss`, and set the assertion's `aud` to it. Your registration is shared across Cores, but accepting a sibling-issued Plugin OAuth user token requires configured trust. Prefer the issuing Core when you need its live refresh-family revocation check. ## Errors These are for the user routes. Error bodies are RFC 9457 problem documents, with a machine-readable `code` member. | Status and code | Meaning | What to do | | :- | :- | :- | | `400 bad_request` | The `cursor` or `per_page` is invalid. | Fix the query. | | `401 unauthorized` | The token is missing or invalid, or the user lost access. | Refresh, or ask the user to sign in again. | | `403 forbidden` | The token belongs to another plugin than `{slug}`. | Use the slug of the plugin that signed the user in. | | `404 not_found` | The plugin is unknown, or the installation is gone, isn't yours, or is in a project the user can't read. | List the installations again. | | `409 conflict` | The installation changed while you paged its repositories. | Restart the repository walk from the first page. | | `503 unavailable` | A dependency is down. | Retry with backoff. | # Receive webhooks Source: https://docs.entire.com/guides/api/plugins/webhooks Verify deliveries and handle changes to installations, refs and trails. Entire sends installation, ref and trail events to the webhook URL you register. Use installation events to keep track of your access, ref events to react to pushes, and trail events for work such as deploy previews. They use the same delivery format and signature checks. > [!NOTE] > > Webhooks are experimental. Field names and event types may change before the contract is final. ## What you need * **A webhook URL.** Entire registers it with your plugin, see [Register your plugin](/guides/api/plugins/register). It must answer directly: Entire doesn't follow redirects. * **An active installation.** Ref and trail events cover the repositories the customer selected. They stop when the installation is suspended or deleted. Installation events tell you about those changes. * **Live `contents:read` or `contents:write` on each covered repository for ref and trail events.** Register the permission and have the customer accept it. Installation lifecycle events do not require repository contents permission. ## Delivery format Every request identifies the installation at the top level. The event's body is under `event.payload`: ```json theme={null} { "delivery_id": "dlv_...", "plugin_id": "acme-ci", "installation_id": "ins_...", "core_url": "https://us.auth.entire.io", "api_url": "https://aws-us-east-2.api.entire.io", "event": { "id": "evt_...", "type": "installation.updated", "time": "2026-10-27T00:00:00Z", "payload": { "installation": { "project_id": "", "revision": 3, "repository_selection": "selected", "repository_count": 1, "repository_ids": ["repo_..."] } } } } ``` `installation_id` is your installation key. There is no `event.payload.installation.id`. The [project object and management link](/guides/api/plugins/install-flow#project-identity) may also be present in the installation payload. `core_url` can differ from the issuer of the install receipt. Check it against the [Cores you trust](/guides/api/regions-and-routing#cores), but don't include either host in your installation key. For repository API calls, refresh the repository's placement through the [repository list](/guides/api/plugins/act-for-an-installation#list-repositories); hosts can change. ## Events ### Installation events * `installation.created` and `installation.updated`: an installation was created or its settings changed. * `installation.repositories_added` and `installation.repositories_removed`: repositories joined or left the installation. * `installation.suspended`: access stopped. * `installation.resumed`: access resumed. * `installation.deleted`: the installation was removed. Installation fields are under `event.payload.installation`. Keep the highest `revision` you have applied and ignore an event at or below it. If revisions skip, read the repository list again rather than applying a repository delta to an incomplete list. On created and updated events, replace your stored selection with the event's selection. `repository_selection` is `all` or `selected`. When no repositories match, `repository_count` and `repository_ids` are absent: treat them as zero and an empty list. When `repositories_omitted` is `true`, the list was too long to include; fetch the repository list instead of clearing your stored selection. For repository additions and removals, apply `added_repository_ids` or `removed_repository_ids`. Stop work on removed repositories. On suspension, stop work and discard cached access tokens. `suspended_by` is `plugin` or `customer`; only that side can resume the installation. On resumption, refresh the repository list and mint new tokens. On deletion, discard credentials and remove the installation from your active records. Don't wait for a webhook to handle revoked access. If an API call says the installation or repository is no longer available, stop acting on it. ### Ref events Ref events describe changes to branches and tags. Use them to start work when a customer pushes to a repository. | Event | Sent when | | :- | :- | | [`ref.created`](/api-reference/webhooks/ref/ref-created) | A branch or tag was created. `before` is all zeros. | | [`ref.updated`](/api-reference/webhooks/ref/ref-updated) | A branch or tag was updated. `before` and `after` identify the old and new objects. | | [`ref.deleted`](/api-reference/webhooks/ref/ref-deleted) | A branch or tag was deleted. `after` is all zeros. | Every ref event carries `repository`, `ref`, `before`, `after` and `forced`. Use `repository.id` as the repository key and the returned `repository.entire_clone_url` for [checkout](/guides/api/plugins/act-for-an-installation#clone-a-repository). `ref` includes `refs/heads/` for a branch or `refs/tags/` for a tag. Don't try to read or check out a zero object ID. If you only handle branches, ignore tag events and answer 2xx. For work triggered by a push, use the event's `after` SHA rather than the branch's current head, which may have changed by the time you start. Your service decides whether a deletion or force push cancels earlier work; report any cancellation through the [checks API](/guides/api/plugins/report-checks). ### Trail events A trail can open on a branch that already exists, without a push. Use trail events when you need to see that, and [comment on the trail](/guides/api/plugins/trail-comments) to report results. In these events, `trail` is one repository's change: its branch, base and head commit, numbered within that repository. A change can be a draft, so its `state` is `draft`, `open`, `closed` or `merged`, while the project trail it belongs to is only open or closed. | Event | Sent when | | :- | :- | | [`trail.opened`](/api-reference/webhooks/trail/trail-opened) | A trail opened, as a draft or ready for review. | | [`trail.updated`](/api-reference/webhooks/trail/trail-updated) | A draft or open trail changed its draft state, title, branch, base or head commit. `changes` names each field that changed. | | [`trail.closed`](/api-reference/webhooks/trail/trail-closed) | A trail closed without a merge. | | [`trail.reopened`](/api-reference/webhooks/trail/trail-reopened) | A closed trail opened again. | | [`trail.merged`](/api-reference/webhooks/trail/trail-merged) | A trail merged into its base branch. | Every event except `trail.opened` carries `changes`: an object keyed by `state`, `title`, `branch`, `base` or `head_sha`, each with `from` and `to`. `trail.closed`, `trail.reopened` and `trail.merged` always carry `changes.state`. Entire sends nothing for: * A deleted trail. * Comments, discussions, reviews or approvals. * A description edit. * Ordinary edits to a closed or merged trail. Reopening is an explicit exception. Existing trails are not backfilled with `trail.opened` when delivery is enabled. Their next qualifying change can produce an event. ## Handle duplicates and order * **Deduplicate on `delivery_id`.** It stays the same across retries, so the same delivery can arrive more than once. Answer a repeat with 2xx. * **Expect a commit twice.** A push to a trail's branch sends `trail.updated` with `changes.head_sha` and also `ref.updated`. If both trigger the same work, deduplicate it by installation, repository, commit and the kind of work you run. Allow an explicit rerun to start a new attempt. * **`head_sha` can be null.** `trail.opened` can arrive before Entire records a commit. Read the branch yourself, or wait for the `trail.updated` that sets `head_sha`. * **Order isn't guaranteed.** A retry can arrive after a later event for the same trail. `trail` is the state at `trail.updated_at`: ignore an event older than the state you hold. * **`actor` and `trail.author` can be null** when Entire doesn't know who acted, such as for a push or a change on the forge. * **Answer 2xx to event types you don't handle.** Entire may add event types to the same URL. ## Verify a delivery The [Go SDK](#with-the-go-sdk) does this for you. Without it, verify each request before you trust its body. Each delivery carries `Authorization: Bearer `, an EdDSA JWT: 1. Keep the exact bytes of the request body. 2. Check that the token header's `alg` is `EdDSA`. 3. Check `iss` against the delivery issuers you trust. Configured production issuers are listed below. Don't accept a host just because it ends in `entire.io`. 4. Verify the signature with the key the header's `kid` names. Use the delivery JWKS URL Entire gave you at registration, or the trusted issuer's `/.well-known/jwks.json`. Cache the keys, and fetch them again for an unknown `kid`. Never fetch keys from an unchecked `iss`, and don't use a Core's receipt-signing keys for deliveries. 5. Check that `aud` is your plugin slug. 6. Check `iat` and `exp`. A token is valid for 5 minutes. 7. Compare the `body_sha256` claim with the unpadded base64url SHA-256 of the raw body. Do this before you parse the JSON. 8. Reject a `jti` you've already seen. Each attempt, including a retry, carries a new token and `jti`. Configured production delivery issuers are: ```text theme={null} https://us-east-2.entire-ci-webhooks.entire.io https://eu-central-1.entire-ci-webhooks.entire.io https://eu-west-2.entire-ci-webhooks.entire.io https://ap-south-1.entire-ci-webhooks.entire.io https://ap-southeast-1.entire-ci-webhooks.entire.io https://ap-southeast-2.entire-ci-webhooks.entire.io https://sa-east-1.entire-ci-webhooks.entire.io ``` These are different from the [plugin JWT issuer and receipt audience](/guides/api/authentication#plugin-jwts). A delivery's audience is still your slug, not `urn:entire:plugin:{slug}`. Answer a request that fails verification with 401, which Entire doesn't retry. If you can't fetch the key set, answer 503 so that Entire retries later. ## Respond Answer 2xx within 10 seconds, as soon as the delivery is verified and stored, and do slow work from a queue. Entire retries a 429, a 5xx, a timeout or a network error up to 7 times over about 15 minutes, with the same `delivery_id`. Any other status, including a redirect, fails the delivery for good. You can return `Retry-After` in seconds. Entire caps it at its longest retry interval and ignores the HTTP-date form. ## With the Go SDK `App.WebhookHandler` verifies each delivery and checks its delivery store for handled IDs. It returns `401` for authentication failures, `400` for malformed bodies or plugin mismatches, `405` for a wrong method, `413` for an oversized body, `503` when keys are unavailable, and `500` when your callback fails. It always fetches keys from `Config.DeliveryJWKSURL`, not from the token's issuer. Its default issuer policy is looser than the list above: it accepts any HTTPS origin under `entire.io` or `entire.com`, plus the legacy issuers `https://entire.io` and `https://entire.com`. This is safe only because the SDK never takes keys from `iss`. If you verify deliveries yourself, check `iss` against the list above. Set `Config.DeliveryIssuer` to pin one issuer. Decode a trail event with `Event.TrailChange` and pass it to your own storage function: ```go theme={null} func webhooks(app *plugin.App, saveAndQueue func(context.Context, string, *plugin.TrailChange) error) { http.Handle("POST /webhook", app.WebhookHandler(func(ctx context.Context, d *plugin.Delivery) error { switch d.Event.Type { case "trail.opened", "trail.updated", "trail.closed", "trail.reopened", "trail.merged": default: return nil } change, err := d.Event.TrailChange() if err != nil { return err } return saveAndQueue(ctx, d.InstallationID, change) })) } ``` `saveAndQueue` is application code, not an SDK method. In one database transaction, lock the stored trail, compare `change.Trail.UpdatedAt` with the stored timestamp, and ignore older snapshots. Store an accepted snapshot and queue work before committing. Key the record by installation, repository and trail ID. Return storage failures so Entire retries the delivery. Workers must also serialize work for each trail and check its latest stored state before acting. For a preview service, a closed or merged trail means teardown; an open trail with a head SHA can create or update a preview. This prevents a delayed update or queued job from recreating a preview after closure. Delivery deduplication alone doesn't enforce that order. The SDK turns a null `branch`, `head_sha`, `from` or `to` into an empty string. The SDK's default stores keep handled deliveries and seen tokens in memory. Use durable shared `Config.DeliveryStore` and `Config.ReplayStore` implementations across instances and restarts. The handled check, callback and handled marker are separate operations; a marker-write failure is logged but still answers `200`. Use `delivery_id` as a unique queue key to prevent duplicate jobs, and make worker actions idempotent before retrying them. # Regions and routing Source: https://docs.entire.com/guides/api/regions-and-routing Find the Core or repository API host for your own account or a plugin installation. Entire has two kinds of services. A **Core** is the control plane for accounts, organizations, projects, repository discovery and plugin installations. A **region API** holds repository data. Choose the host for the operation, then use a credential listed in its **Accepted credentials** details. | Host in these examples | Purpose | | :- | :- | | `https://us.console.entire.io` | US Core API requests with your own account, such as listing repositories. | | `https://us.auth.entire.io` | US Core origin used by the plugin authentication and installation guides. | | `https://aws-us-east-2.api.entire.io` | Example region API host; discover the actual host from the repository's placement. | ## Cores Entire's Cores are `https://us.auth.entire.io`, `https://eu.auth.entire.io`, `https://au.auth.entire.io`, `https://in.auth.entire.io`, `https://uk.auth.entire.io`, `https://sg.auth.entire.io` and `https://br.auth.entire.io`. Any Core serves any installation. Call the Core nearest your service. Entire adds Cores as it opens jurisdictions, so don't hardcode the list. Every Core is named `https://{jurisdiction}.auth.entire.io`, and nothing else lives under `auth.entire.io`. Accept install receipts from any issuer of that form: `https`, no port, and a single label before `.auth.entire.io`. The Go SDK does this from v0.3.0. It also accepts the same form under `auth.entire.com`, ready for Entire's move from `entire.io` to `entire.com`. To discover a Core's configured federation peer authentication hosts, read its `/.well-known/entire-federation`. This is configuration, not a live health inventory; the list excludes the responding Core and may be empty: ```http theme={null} GET https://us.auth.entire.io/.well-known/entire-federation {"peer_auth_hosts": ["https://eu.auth.entire.io", "https://au.auth.entire.io", ...]} ``` The US console and authentication hosts above route to the same US Core service. Their roles in authentication still matter: the US plugin JWT audience is `https://us.auth.entire.io/api/authz/sts`, even when another hostname reaches that service. Do not substitute a console or region hostname into a JWT audience or OAuth issuer. For [plugin OAuth](/guides/api/plugins/user-oauth-flow), begin at `auth.entire.io` and redeem the code at the issuer returned in `iss`. Verify [install receipts](/guides/api/plugins/install-flow) against a trusted Core issuer using the rule above. A hostname alone does not tell you which credential an endpoint accepts. Core has operations for User tokens, plugin JWTs, Plugin installation tokens and Plugin OAuth user tokens; each has its own accepted credentials and permissions. See [Authentication](/guides/api/authentication). ## Repository calls go to the region Discover the repository's processing placement before making repository API calls. The account directory and plugin installation list have different response shapes. ### With a User token Call the Core [repository directory](/api-reference/control-plane/repos/list-the-callers-readable-repositories-placement-index) with your own-account bearer: ```bash theme={null} curl -H "Authorization: Bearer $(entire auth token)" \ "https://us.console.entire.io/api/v1/repos" ``` The response uses `repos`, with `placements` and `primaries` on each repository. Relevant fields from an example response are shown here; other fields are omitted: ```json theme={null} { "repos": [{ "full_name": "acme/api", "placements": [{ "id": "01M3QSHT...", "clusterSlug": "aws-us-east-2", "apiBaseUrl": "https://aws-us-east-2.api.entire.io", "status": "ready" }], "primaries": {"processing": "01M3QSHT..."} }], "nextPageToken": "" } ``` Match `repos[].primaries.processing` to an entry's `placements[].id`, then use that placement's `apiBaseUrl`. The primary can have `status: "ready"`; selecting a placement by `status: "processing"` is not equivalent. If there is no processing primary, no matching placement or no `apiBaseUrl`, do not guess another host; refresh the directory before retrying. For an endpoint that accepts a placement ID, such as `GET /api/v1/repos/{repo_id}`, use that matching placement's `id` with your User token at its region API host. Follow each operation's repository-ID requirements. When `nextPageToken` is nonempty, pass it as the next request's `pageToken`; `pageSize` controls the requested page size. The account directory mixes casings: `full_name` is snake\_case, while `apiBaseUrl`, `clusterSlug` and `nextPageToken` are camelCase. Copy field names exactly, and don't confuse them with the plugin list's snake\_case fields below. ### With a plugin installation Each repository in the [installation repository list](/guides/api/plugins/act-for-an-installation#list-repositories) has an `id` and `placements`. Select the placement with `role: "processing_primary"` and use its `api_base_url`. This response uses `repositories` and `next_cursor`, not the account directory's `repos` and `nextPageToken`. Send repository calls under `/api/v1` with a Plugin installation token that has the required permissions: ```http theme={null} GET {api_base_url}/api/v1/repos/{repo_id} Authorization: Bearer {Plugin installation token} ``` Here `{repo_id}` is the repository's public `id` from the installation list, such as `repo_01M3...`. You do not need to replace it with a local ID returned by this request. Use the ID form required by each endpoint; the [access guide](/guides/api/plugins/act-for-an-installation) shows repository contents calls using this public ID. [Creating a repository](/guides/api/plugins/act-for-an-installation#create-a-repository) is a Core operation. Do not infer credential acceptance from the host or assume all other Core operations reject installation tokens; read the operation's accepted credentials. Names and hosts can change, so refresh the appropriate repository list rather than caching placements for long. **Cloning:** for a plugin, clone through `git-remote-entire` with the Plugin installation token in `ENTIRE_TOKEN`. See [Clone a repository](/guides/api/plugins/act-for-an-installation#clone-a-repository). ## Allowed hosts Use the Core origins documented for your flow and the region API URL returned by Entire's repository discovery. Keep OAuth issuer and plugin JWT audience validation separate from API routing. Before sending a credential, check the endpoint's [accepted credentials and permissions](/guides/api/authentication#read-endpoint-labels); a shared hostname or an `entire.io` suffix does not make credentials interchangeable. # SDKs Source: https://docs.entire.com/guides/api/sdks Official client libraries for the Entire API. ## Go One client for repositories and Git, trails and code review, the agent sessions and checkpoints behind commits, search, and the organizations and projects around them. Standard library only, Go 1.24 or newer. The API reference is on [pkg.go.dev](https://pkg.go.dev/go.entire.com/entire-sdk-go). ```bash theme={null} go get go.entire.com/entire-sdk-go export ENTIRE_TOKEN="$(entire auth token)" ``` ```go theme={null} client, err := entire.NewClientFromEnv() // reads ENTIRE_TOKEN if err != nil { log.Fatal(err) } repoID, err := client.ResolveRepoID(ctx, "gh/acme/widget") if err != nil { log.Fatal(err) } resp, err := client.Git.ListCommits(ctx, repoID, "HEAD", &entire.CommitListOptions{ ListOptions: entire.ListOptions{PageSize: 10}, }) ``` Every request goes where its data lives: repository requests to the region that stores the repository, and account, organization and project requests to Core. You never choose a host. From v0.3.1, the Go SDK can run as a service account instead of as you: set `ENTIRE_TOKEN` to a [service account secret](/guides/api/authentication#run-as-a-service-account). The client exchanges it at the Core of the secret's jurisdiction for service account tokens that live at most 10 minutes, and renews them; the secret itself never reaches the API. | Service | Covers | | :- | :- | | `Trails` | A repository's trails, their events, approvals, gates and merges, code reviews and discussions | | `Git` | Branches, tags and refs, commits, comparisons, trees, files and diffs, and live ref changes | | `Checkpoints`, `Sessions` | The agent sessions behind commits, and their transcripts | | `Search` | Code search, and semantic search over repositories, checkpoints, commits, pull requests and sessions | | `Repos` | The repository directory, and the agents that worked on a repository's code | | `Me`, `Orgs`, `Projects` | Your account and your trails and sessions across repositories; organizations and their members; projects and their repositories | Endpoints the SDK does not cover are a few lines away: `client.NewRequest` and `entire.Call` send any request with the client's authentication, routing, retries and error handling. ### Building a plugin The `plugin` package implements the plugin protocol for partners: install receipts, plugin JWTs and installation tokens, the repository list, check runs and webhooks. See [Build it with the Go SDK](/guides/api/plugins/go-sdk). Until 1.0, minor versions may change the API. # Overview Source: https://docs.entire.com/guides/brain/overview Give your coding agents shared memory of your project, past decisions, and lessons learned. ## About entire-brain entire-brain is a memory layer for your Git repository. It brings together saved agent sessions, checkpoints, project memories, documentation, and code context from [entire-graph](/guides/graph/overview). entire-graph maps how your code connects while entire-brain adds the context behind it: why a decision was made, what was tried before, and what your team learned. That memory belongs to the project and different coding agents can use it. For example, you can move from Claude Code to Codex and give the next agent context from earlier work. [Entire Brain: Give Your Repository a Shared Memory](https://www.youtube.com/embed/c3ZCSBMD9wM) ## Context for Your Next Task Brain gives a new agent session access to your project's recorded decisions, rules, and lessons. Use that context when you return to a task or switch agents. For example, ask Brain for earlier decisions about retries before changing how failed requests are retried. Your agent can check those decisions before editing the code. ## Use Brain in Your Project * Understand a project to get an overview of its structure and how it works. * Prepare for a task and find relevant decisions, code locations, and possible tests. * Find earlier work by searching through saved memories, history, and documentation, including PDF, Word, Excel, and PowerPoint files under `docs/`. * Record a project rule or decision for future sessions, or a global memory that applies in every repository. * Browse what entire-brain knows in a local UI. * Sync memories with your hosted Entire repository when you choose to connect it. ## Before You Start Use a local Git repository with at least one commit. Install the [Entire CLI](/installation) and Git 2.36 or later. To give entire-brain access to future agent sessions, [enable Entire in your repository](/quickstart). entire-brain can also work from code, docs, and Git history when no saved sessions are available. Make sure to commit your intended changes before setup. ### Install entire-brain Install the released plugin: ```bash theme={null} entire plugin install brain entire brain version ``` The CLI verifies the release checksum and offers to install missing dependencies, including [entire-graph](/guides/graph/overview). Use `--yes` for an unattended installation. Use `--no-deps` only when you manage dependencies separately. See the [plugin reference](/cli-reference/plugin#install-a-plugin) for installation options. On macOS and Linux, you can also install the Brain binary with the script: ```bash theme={null} curl -fsSL https://raw.githubusercontent.com/entireio/entire-brain/main/scripts/get-brain.sh | bash ``` The script verifies the download and registers Brain with the installed Entire CLI. It does not install Graph. If Graph is missing, install it separately: ```bash theme={null} entire plugin install graph ``` Brain v0.5.1 works with Graph v0.5.0 and v0.6.0. Graph v0.4.0 does not support the interface Brain needs to read its code index. Without Graph, sessions, docs, and memory searches still work, but setup reports the code index as unavailable. > [!NOTE] > > Read [Upgrade and Recover](/guides/brain/upgrade) before updating an existing > installation. Local migration is one-way. v0.5.1 removes verified > legacy copies automatically; no migration or cleanup command is required. Use Entire CLI 0.11.6 or later for hosted connection support. For Claude capture, use [Claude Code 2.1.78 or later](/agents/claude-code#version-and-capture-verification) and verify capture after installing the hooks. ### Set Up Your Repository Open the project repository where you want to use entire-brain. If you installed entire-brain from source, switch from the `entire-brain` source directory to your project first. From your project's root, run: ```bash theme={null} entire brain setup entire brain status ``` Setup builds the repository's memory, installs a background watcher to keep it current, and adds the instructions that tell your coding agent how to use entire-brain. Status shows what is ready and what needs attention. Setup prints a short summary. Add `--verbose` to see the full report for each phase. > [!NOTE] > > Setup asks before it extracts memories from past sessions, and the default answer is no. Memory extraction uses an available coding agent, can send session content to its model provider, and can add token charges. When setup runs without a terminal, for example in a script, it skips extraction unless you pass `--yes`. > > Setup remembers what you decline, so rerunning it does not ask again. To turn a declined step back on, pass `--backfill` for memory extraction, `--daemon` for the background watcher, or `--agent-hooks` for Claude Code hooks. > > To skip memory extraction and the background watcher entirely, use `entire brain setup --no-backfill --no-daemon`. #### Agent Instructions Setup regenerates `.entire/agent-guide.md` completely. Manual edits to that file are lost. In `AGENTS.md` and `CLAUDE.md`, setup updates the managed reference blocks and preserves your surrounding text. | Flag | What it does | | - | - | | `--strict` | Saves strict guidance that makes using entire-brain's tools mandatory for your agent. | | `--normal` | Resets the guide to normal guidance. | | `--no-agent-hooks` | Writes the guide but does not add the entire-brain hook to Claude Code's settings. | | `--agent-hooks` | Adds the Claude Code hook, even if an earlier run declined it. | To preview the instructions without changing any files, run `entire brain agent-guide`. Review and commit the generated files to share the instructions with your team. Restart your agent or reload its repository instructions so it picks up the guide. The guide includes instructions for each product you have set up. The default setup includes both products, so also run `entire graph setup` to add the entire-graph instructions. You can run the two setups in either order. #### Use Brain from Your Agent Agents use the CLI commands in `.entire/agent-guide.md`. Restart the agent after setup so it loads the updated instructions. For a new task, start with a brief: ```bash theme={null} entire brain brief "update the retry policy" --json ``` Use `entire brain recall` for recorded decisions and `entire graph` to inspect current code. Brain v0.5.1 does not provide the `entire brain mcp` command or its previously documented HTTP listener. Use the CLI integration for this release. ## How to Use entire-brain Use entire-brain from the CLI or UI after setup, or use the agent prompt to have your agent set it up for you. A coding agent using entire-brain memories while it works. > [tab] CLI > > Run these commands from your repository. > > Get a project overview: > > ```bash theme={null} > entire brain overview > ``` > > Get context for a task: > > ```bash theme={null} > entire brain brief "update the retry policy" > ``` > > Search earlier decisions: > > ```bash theme={null} > entire brain recall "why did we choose this retry policy" > ``` > > Save a memory, then find it again. Replace the example with a rule that is true for your project: > > ```bash theme={null} > entire brain remember "Retry failed requests at most three times." --path constraints.retry.policy > entire brain recall "retry policy" > ``` > > Check whether memory is current: > > ```bash theme={null} > entire brain status > ``` > > If something needs attention, `entire brain doctor` reports the problem and the command that fixes it. > > See the [command reference](https://github.com/entireio/entire-brain/blob/main/docs/reference.md) for more options. To list every command, including developer commands hidden from the default help, run `entire brain --help-all`. > [tab] UI > > Open entire-brain's local browser view from your repository: > > ```bash theme={null} > entire brain viz > ``` > > Explore the graph to see code relationships, saved memories, sessions, history, and docs. This view runs on your machine and is read-only. > > [Explore entire-brain in the UI](https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/988f4fb499040d1c5b3cc2417046e720/iframe) > > If you prefer to stay in your terminal, open the dashboard: > > ```bash theme={null} > entire brain dash > ``` > > ![entire-brain terminal dashboard showing memory sources, session counts, saved memories, and working tree status.](https://mintcdn.com/entire/C8ICUvcRVo-DnEOP/images/brain-terminal-dashboard.png?fit=max\&auto=format\&n=C8ICUvcRVo-DnEOP\&q=85\&s=2c6b1fb2747bc2b01c577e7de66ac168) > > Use it to browse status, memories, sessions, history, and code records. Both views let you explore existing memory without making model calls. > [tab] Agent Prompt > > To have your agent set up entire-brain for you, open it in your repository and send this prompt: > > ```text theme={null} > Set up entire-brain in this repository and start using it for our work. > > Check that the Entire CLI, Git 2.36 or later, and entire-graph are > installed. Install any missing tools using the official instructions > at https://github.com/entireio/entire-brain#install. > > Make sure this is a Git repository with at least one commit. If there > are uncommitted changes that block setup, tell me what needs attention. > > Run `entire brain setup --no-backfill` to build the project's memory > and add the agent instructions. Preserve my existing instructions > outside the managed blocks in AGENTS.md and CLAUDE.md. > Ask me before running a memory backfill, because it uses a coding > agent and can incur token charges. > > Run `entire brain status --verbose` and explain anything missing or > out of date. Read `.entire/agent-guide.md`, then run > `entire brain overview` and summarize what entire-brain knows about this project. > > For my next task, use `entire brain brief` to gather relevant context > before making changes. Check the supporting sources and use > entire-graph to find and inspect the code. > ``` ## Pause Background Work The background watcher and the session-end hook keep memory current and can call a coding agent to extract memories. To pause all background entire-brain work on your machine, run: ```bash theme={null} entire brain stop ``` Work already in progress finishes first. Captured sessions are not lost; entire-brain picks them up when you resume: ```bash theme={null} entire brain start ``` To remove the watcher instead, run `entire brain setup --uninstall-daemon`. ## Sync Memories with Entire Memories shown on a Trail in entire.com. Memories stay on your machine by default. A repository starts syncing only when you connect it to its hosted Entire repository: ```bash theme={null} entire brain connect ``` `connect` records the hosted repository and attempts a sync immediately. After connection, Brain can sync when memory extraction finishes, when you commit or push, and during background maintenance. You do not need to run a sync command after each change. To stop syncing, run: ```bash theme={null} entire brain disconnect ``` You can also sync on demand with `entire brain memories sync`. Without a connection, a plain sync fails and tells you to run `connect`. Scripts can also provide an explicit hosted target. See [Storage and Sync](/guides/brain/storage-and-sync) for memory scope, explicit targets, network controls, and background writer behavior. # Getting started with Brain Source: https://docs.entire.com/guides/brain/quickstart Learn what you can do with Brain and find the right command for each task. You can use Brain to find earlier decisions, save lessons, and give your agent context before it starts work. Below are some ways to use Brain in your project. [Install Brain and set up your repository](/guides/brain/overview#before-you-start) first. Run these commands from the repository, and replace the example questions and rules with your own. ## Get to Know a Project If you are joining a project or returning after a break, you can ask Brain for an overview of its structure, tools, and conventions. ```bash theme={null} entire brain overview ``` ## Get Context Before Starting a Task Describe what you want to build or change. Brain gathers relevant memories, earlier work, code locations, and possible tests into a brief. ```bash theme={null} entire brain brief "add rate limiting to the upload endpoint" ``` You can now use the brief to plan your work or give your coding agent a starting point. Code locations in the brief come from entire-graph. ## Find Out Why a Decision Was Made Search earlier work before reopening a decision or trying an approach your team has already explored. ```bash theme={null} entire brain recall "why did we remove the queue abstraction" ``` Use `recall` for recorded decisions. Check their supporting sources before applying them to current work. Use `query` for a broader search across history and docs. ## Search for a Topic Search for a topic by the words you expect to appear in saved memories, history, or docs: ```bash theme={null} entire brain query "rate limiter" ``` `query` ranks results by keyword relevance using BM25, so results match the words in your query rather than their meaning. If a search returns nothing useful, try the terms your team would have used when the decision was recorded. The `--semantic` flag is deprecated and has no effect. It is still accepted as an alias so existing scripts keep working, but it returns the same keyword-ranked results. To narrow the search to one kind of source, use `--source` with `fact`, `history`, or `doc`: ```bash theme={null} entire brain query "rate limiter" --source fact ``` To rank recent results higher, add `--recency`. You can change how quickly older results lose weight with `--recency-half-life`, which defaults to `2160h` (90 days): ```bash theme={null} entire brain query "rate limiter" --recency --recency-half-life 720h ``` ## Save a Rule for Future Work You can also record a decision or lesson as a memory so another session can find it. Only save rules that are true for your project. ```bash theme={null} entire brain remember "Retry failed requests at most three times." --path constraints.retry.policy ``` The `--path` flag sets the memory's category without an agent call. If you omit it, Brain can ask an agent to choose a category and incur token charges. ## Save a Rule for Every Repository Some memories, such as a personal preference or a team convention, apply to every repository you work in. Record them globally: ```bash theme={null} entire brain remember "The staging cluster is in eu-west-1." --global --path project.infrastructure.region ``` Brain recalls global memories from every repository and labels them `(global)` in results. To list them: ```bash theme={null} entire brain memories global ``` To leave global memories out of a search, add `--no-global` to `query` or `recall`. See [Storage and Sync](/guides/brain/storage-and-sync) for repository and global scope. ## Look Up Saved Rules Before changing behavior, you can check what your project has already recorded about it. ```bash theme={null} entire brain recall "retry policy" ``` Use `recall` for saved memories and `query` for a broader search across memories, history, and docs. ## Review Memories as Markdown Files Write your memories out as one Markdown file per memory, so you can read, search, and diff them with your usual tools: ```bash theme={null} entire brain memories files --dir brain-memories ``` The files are a copy. Brain rewrites the directory on each run and does not read the files back, so use `remember` and `memories retract` to change memories. ## Import Memories from Another Tool If you have memories in mem0, import its export file. Preview the import first: ```bash theme={null} entire brain memories import --file mem0-export.json --dry-run entire brain memories import --file mem0-export.json ``` Imported memories are filed under `project.imported` by default. Change this with `--path-prefix`. ## Search Documents That Are Not Code Brain reads PDF, Word, Excel, and PowerPoint files under `docs/` along with Markdown, so they come back from `query` and `brief`. Extraction runs locally, with no model or network calls. To check what Brain reads from a file: ```bash theme={null} entire brain docs extract docs/spec.pdf ``` Scanned PDFs have no text layer, so Brain reports them instead of indexing an empty document. ## Check What a Code Change Could Affect With entire-graph installed, inspect the impact of changing a function or type. Replace `ValidateToken` with a symbol from your code. ```bash theme={null} entire brain inspect impact ValidateToken ``` You can also inspect changes since the last index: ```bash theme={null} entire brain inspect changes ``` ## Notify Another Service When Memory Changes Brain can send a JSON event to an HTTP endpoint when a memory is recorded or retracted, or when memory is refreshed. This lets a CI job, chat channel, or index react without polling. ```bash theme={null} export ENTIRE_BRAIN_WEBHOOK_URL=https://hooks.example.com/entire export ENTIRE_BRAIN_WEBHOOK_SECRET=a-long-random-string entire brain webhook test ``` | Variable | What it does | | - | - | | `ENTIRE_BRAIN_WEBHOOK_URL` | Endpoint to send events to. Webhooks are off when it is unset. | | `ENTIRE_BRAIN_WEBHOOK_SECRET` | Signs each request with HMAC-SHA256 in the `X-Entire-Signature-256` header. | | `ENTIRE_BRAIN_WEBHOOK_INCLUDE_TEXT` | Set to `1` to include memory text in events. Text is left out by default. | | `ENTIRE_BRAIN_NO_EGRESS` | Blocks webhooks and other Brain-controlled network operations. | Run `entire brain webhook events` to list the events Brain sends. See [Network Controls](/guides/brain/storage-and-sync#network-controls) before enabling egress. ## Check Whether Memory Is Current You can see which sources are available, missing, or out of date, using: ```bash theme={null} entire brain status --verbose ``` If something needs attention, `doctor` prints the command that fixes it: ```bash theme={null} entire brain doctor ``` Check whether saved memories still point to matching sources: ```bash theme={null} entire brain verify ``` A memory entered by hand can show `unverifiable-here` because it has no source reference. Verification checks references, not whether a memory is correct. # Storage and Sync Source: https://docs.entire.com/guides/brain/storage-and-sync Understand repository and global memories, hosted sync, network controls, and concurrent writes. ## One Store per Repository Brain stores repository memories in one local store. Searches include memories recorded on different branches by default. Each memory keeps references to the branch, session, and sources it came from. An explicit branch filter selects memories with matching branch references. It does not create a separate store. Migration combines records with the same memory ID and keeps their source references and status. Memories with different IDs remain separate, even when their text is similar. For backup, migration, and automatic cleanup, see [Upgrade and Recover](/guides/brain/upgrade). ## Global Memories Global memories use a separate local store and are available from any repository. Repository hosted sync does not upload this store. See [Save a Rule for Every Repository](/guides/brain/quickstart#save-a-rule-for-every-repository) for commands to save, list, and search global memories. ## Connect a Repository Connect the local repository to its hosted Entire repository: ```bash theme={null} entire brain connect ``` Connecting requires Entire CLI 0.11.6 or later. It records the target and attempts a sync immediately. After connection, Brain can sync when memory extraction finishes, when you commit or push, and during background maintenance. Memory sync sends repository memory records across branches and receives the team's shared memories. It does not upload the complete local Brain directory or the separate global store. [Session and checkpoint storage](/guides/checkpoints/checkpoint-storage) have their own configuration. To request an immediate sync: ```bash theme={null} entire brain memories sync ``` To disable automatic hosted sync for this repository: ```bash theme={null} entire brain disconnect ``` A plain `memories sync` fails when the repository is not connected. Memories remain local unless you connect or supply an explicit manual target. ### Use an Explicit Target Scripts can provide `--repo-id`, `--api-url`, and `--token` to `entire brain memories sync`. Use `--memories-backend=http` for an unconnected repository. For a manual sync, explicit flags take precedence over the matching environment values and the recorded connection. Background sync uses the recorded connection; these overrides do not redirect it. See the [security policy](https://github.com/entireio/entire-brain/blob/main/SECURITY.md#egress-controls) for the full target and credential rules. ## Network Controls Set `ENTIRE_BRAIN_NO_EGRESS=1` to block Brain-controlled network operations: ```bash theme={null} export ENTIRE_BRAIN_NO_EGRESS=1 ``` This blocks hosted memory sync, webhooks, non-local model calls, and repository cloning through Brain. It takes precedence over connection state and target flags. Selecting `--agent none` or a local model alone does not disable hosted memory sync. A custom `--agent command` runner executes a local program. No-egress mode does not restrict that program's own network calls. Memory extraction and automatic category selection can send context to a model provider and incur token charges. Webhooks stay off until you configure them. See the [webhook guide](/guides/brain/quickstart#notify-another-service-when-memory-changes). ## Concurrent Writes and Background Work Your commands take priority over queued background writes. Brain finishes the current write before starting the next one. A large migration can still make another command wait. `entire brain stop` pauses background work. Other agents can still run commands that write memories. Finish active writes and stop other writers before making a backup. Resume paused background work with `entire brain start`. ## Mixed Client Versions Brain v0.5.1 can exchange hosted memories with stable v0.2.0, v0.3.0, v0.4.0, and v0.5.0 clients. Each client must use a separate local store. Brain v0.2.0 to v0.4.0 cannot read a migrated local store. Do not share the upgraded directory with those clients. # Upgrade and Recover Source: https://docs.entire.com/guides/brain/upgrade Upgrade Brain safely, verify automatic migration and cleanup, and recover interrupted work. Brain v0.5.0 introduced one repository memory store. v0.5.1 adds automatic removal of verified legacy copies, including copies retained by v0.5.0. You can upgrade from stable v0.2.0, v0.3.0, v0.4.0, or v0.5.0. See the [v0.5.1 release notes](https://github.com/entireio/entire-brain/releases/tag/v0.5.1) for the full change list. > [!WARNING] > > Local migration is one-way. Brain v0.2.0 to v0.4.0 cannot reopen a migrated store. > Back up the complete data before upgrading. A memory export alone is not a > complete backup. ## Upgrade an Existing Installation **1. Record the current environment** Run these commands from your project repository: ```bash theme={null} entire brain version entire brain path entire brain status --json ``` Keep the output for comparison after the upgrade. **2. Pause writers and make a backup** Pause background Brain work: ```bash theme={null} entire brain stop ``` Wait for active work to finish. Stop other writers that share this local store. Other agents can still run commands that write to this store. Back up the complete Brain data directory and the repository's [checkpoint refs](/guides/checkpoints/checkpoint-storage). Include the global store if you use it. Keep the backup separate from the active data directory. Confirm that you can read the backup before continuing. **3. Update Graph and Brain** Check how each plugin was installed: ```bash theme={null} entire plugin info graph entire plugin info brain ``` Update Graph before Brain. For each plugin installed from the index or a repository URL, run its upgrade command: ```bash theme={null} entire plugin upgrade graph entire plugin upgrade brain ``` `plugin upgrade` cannot update a plugin installed from a local executable path. This includes Brain installations made with `get-brain.sh`. For a local installation, rerun its installer or rebuild its source checkout. To replace it with a released plugin, run the corresponding install command: ```bash theme={null} entire plugin install graph --force entire plugin install brain --force ``` This replaces that plugin's registered local executable with a release installation. Plugin upgrades preserve version pins. If a pinned version is too old, choose a compatible version before continuing. Reinstalling without `--pin` removes the existing pin. See [Upgrade Plugins](/cli-reference/plugin#upgrade-plugins) for pin and installation behavior. Check the installed versions: ```bash theme={null} entire graph version entire brain version ``` Automatic cleanup requires Brain v0.5.1 or later. See [installation options](/guides/brain/overview#install-entire-brain) for compatible Graph versions. Check the [release notes](https://github.com/entireio/entire-brain/releases) for additional upgrade steps in a newer version. **4. Refresh the agent instructions** Before setup, read [Agent Instructions](/guides/brain/overview#agent-instructions) to check which files are replaced or preserved. Run setup in each repository that uses Graph and Brain: ```bash theme={null} entire graph setup --repo . entire brain setup --no-backfill ``` Graph setup also adds a Claude Code SubagentStart hook to the per-user, untracked `.claude/settings.local.json`. It merges the hook into existing settings. Add `--no-claude-hook` to the Graph command to skip this hook. See [Set Up Graph](/guides/graph/set-up-graph) for details. Brain's `--no-backfill` flag skips extraction from past sessions. Review and commit the updated instruction files. Keep `.claude/settings.local.json` untracked. Restart your coding agent or reload its repository instructions before continuing work. **5. Resume normal activity** Resume background work if you paused it: ```bash theme={null} entire brain start ``` Brain migrates storage and removes verified legacy copies during normal writes, refreshes, and background work. No migration or cleanup command is required. Large stores can need several passes before cleanup finishes. **6. Verify the result** Check repository storage and overall status: ```bash theme={null} entire brain memories storage status --json entire brain status --json ``` If you use global memories, also check their store: ```bash theme={null} entire brain memories storage status --global --json ``` After migration, the format is `repository`, with schema version `3`. Confirm that expected memories remain available. Migration combines copies with the same memory ID and keeps their source references. The number of stored copies can decrease while the number of unique memories stays the same. Keep the backup until you have checked your memories and storage status. ## What Cleanup Removes Brain verifies each legacy record, including its source references and whether it was retracted, before removing the copy. Files that Brain cannot verify remain available for recovery. The active store, retained sessions, and checkpoint history still use disk space. Disk savings depend on how many redundant copies your store contains. Cleanup can finish over several passes. Do not delete the active store, checkpoint refs, or unverified recovery files to reclaim space. If retained recovery data needs attention, keep the files and ask for help in [Discord](https://discord.gg/jZJs3Tue4S). Have the storage status output available. ## Recover an Interrupted Migration If the process stops during migration or cleanup, resume normal Brain activity. Brain uses its saved progress to continue. Do not restore old branch copies over the active store or remove recovery files to force another attempt. If Brain reports corruption, preserve the data directory and your backup. Stop other writers and ask for help in [Discord](https://discord.gg/jZJs3Tue4S) before changing those files. ## Use an Older Version Brain v0.2.0 to v0.4.0 cannot read the migrated local store. There is no supported in-place storage rollback command. To use an older version, restore a complete pre-migration backup into a separate environment. That backup does not contain writes made after the backup. Do not point an older client at the upgraded directory. Older and newer clients can exchange hosted memories through **separate local stores**. See [Storage and Sync](/guides/brain/storage-and-sync). ## Command Changes * `memories storage rollback` is removed. * The old `facts promote` and `facts review` workflows are removed. Memories no longer need promotion between branch stores. * `facts` remains an alias for supported `memories` commands. The alias does not restore removed subcommands. * `entire brain setup` replaces the removed `init-agents` command for generated agent instructions. * Brain v0.5.1 does not provide the previously documented `mcp` command. Use the [CLI agent integration](/guides/brain/overview#use-brain-from-your-agent). # Capture Sessions and Their Checkpoints Source: https://docs.entire.com/guides/checkpoints/capture-checkpoints Learn how Entire captures agent sessions and turns them into committed checkpoints. Entire captures session context while you work, then creates a committed checkpoint when that context is linked to a Git commit. ## How Capture Works Checkpoint capture has two parts: 1. [Agent hooks](/agents/overview) collect session context, including prompts, transcript, tool activity, changed files, and token usage when available. 2. Git hooks link that captured context to a commit by adding an [`Entire-Checkpoint` trailer](/glossary#entire-checkpoint). After the commit, Entire stores checkpoint metadata in your repository, in [its own Git ref or on the checkpoints branch](/security#where-your-data-lives) depending on the [storage backend](/guides/checkpoints/checkpoint-storage). Your working branch stays clean. ## Set Up Capture for an Agent For a new repository, enable Entire with the agent you use: ```bash theme={null} entire enable --agent AGENT ``` For a repository where Entire is already enabled, add another agent: ```bash theme={null} entire agent add AGENT ``` You can see the supported built-in agents in [Agents](/agents/overview), or run: ```bash theme={null} entire agent list ``` ## Commit After Agent Work To capture agent-assisted work in a checkpoint: 1. Start your agent from an Entire-enabled repository. 2. Ask the agent to make a change. 3. Stage and commit the change with Git. ```bash theme={null} git add . git commit -m "Describe the change" ``` If Entire detects recent agent work, it may ask whether to link the commit to the session context. Choose `yes` to create the checkpoint. Choose `always` if you want Entire to remember that preference for future matching commits. ```text theme={null} Entire: Active Codex session detected Last prompt: Add a user settings page... Link this commit to session context? [Y]es / [n]o / [a]lways (remember my choice): ``` ## Link Future Commits Automatically When the "Link this commit to session context?" prompt appears during `git commit`, choosing `yes` or `no` only applies to that one commit. To link future matching commits in this repository without being prompted during `git commit`, set `commit_linking` to `always`. Set `commit_linking` in one of these files: * `.entire/settings.local.json` if this preference should only apply to you * `.entire/settings.json` if this should be the team setting for the repository ```json theme={null} { "commit_linking": "always" } ``` ## Let the Agent Commit Your agent can also create commits for you. For example, you might ask it to make a focused change and commit when it is done. Entire still uses the Git hooks to link the commit to the captured session context. If the agent makes several commits in one session, each commit gets its own checkpoint. ## Capture Multiple Commits from One Session A single agent session can produce multiple checkpoints. This happens when a long session creates several commits, or when you split the agent's work into smaller commits yourself. Each commit gets its own checkpoint ID. The checkpoints can share the same session context so you can still inspect the prompts, transcript, and work that led to each commit. ## Capture One Checkpoint from Multiple Sessions One checkpoint can also include more than one session. This happens when several agent sessions contribute to the work before you make a single commit. In entire.com, those sessions appear together inside the checkpoint's Sessions tab. The checkpoint diff shows the combined change, while [session details](/guides/sessions/sessions-in-entire-com) show the context behind each contribution. ## What Does Not Create a Checkpoint Entire needs captured session context and a Git commit to create a normal committed checkpoint. A checkpoint may not appear when: * Entire has not been enabled in the repository * agent hooks were not installed for the agent you used * the agent did not change files in the repository * no commit was created * a GUI Git client could not find the `entire` command from its Git hooks If a checkpoint is missing or did not link where you expected, see [Troubleshooting](/guides/sessions/troubleshooting). # Choose Where Checkpoints Are Uploaded Source: https://docs.entire.com/guides/checkpoints/checkpoint-destination Control which remote receives checkpoint data when a repository has several. Entire uploads checkpoints to one place, the checkpoint destination. It is either: * **One of your existing remotes**, chosen automatically or pinned with `--checkpoint-push-remote `. Checkpoints are uploaded when you run `git push` to that remote. * **A separate checkpoint repository**, set with `--checkpoint-remote`. See [Store Checkpoints in Another Repository](/guides/checkpoints/store-checkpoints-in-another-repo). The two flags differ by one word but mean different things: `--checkpoint-push-remote` picks which of your remotes receives checkpoints, while `--checkpoint-remote` sends them to a different repository altogether. `entire status` shows the current destination, where it came from, and how many checkpoints are unpushed. With the default `git-refs` [storage backend](/guides/checkpoints/checkpoint-storage), `entire checkpoint list --outgoing` lists them. Every `entire enable` run ends by naming the destination. ## Which Remote Receives Checkpoints If you push code to several remotes, checkpoints go to exactly one of them. Entire picks it in this order: 1. `strategy_options.checkpoint_push_remote`, if set. If it names a remote that isn't configured, checkpoints don't sync. 2. The remote of your first push whose target matches the branch's configured push destination. Entire announces the choice and keeps it. 3. `origin` 4. The sole remote, if the repository has exactly one 5. The first remote in `.git/config` order A push to any other remote carries no checkpoint data, unless every push URL of both remotes names the same GitHub repository. For example, `git@github.com:acme/widgets.git` and its Entire mirror `entire:///gh/acme/widgets` reach the same repository, so a push to either carries the checkpoints. ## Choose the Remote When a repository has several remotes that could receive checkpoints, the first interactive `entire enable` asks which one to use, after agent selection and before any hooks or settings are written. Running `entire enable` again in an enabled repository does not ask again. Choosing a remote saves `strategy_options.checkpoint_push_remote` in `.entire/settings.local.json`, so teammates do not inherit a remote name specific to your clone. Keeping the current destination writes nothing. To select a remote without the picker: ```bash theme={null} entire enable --yes --checkpoint-push-remote fork ``` The remote must already exist. Use the same command to change the destination later, or to repair a saved selection that names a missing remote. An explicit flag pins the named remote, even if it is currently selected automatically. `--yes` alone does not change the destination. Selecting a destination does not re-enable disabled checkpoint pushing, upload existing checkpoints immediately, or move or delete checkpoint history on other remotes. ## Edge Cases * An SSH host alias from `~/.ssh/config`, such as `git@github-work:acme/widgets.git`, counts as GitHub when Git runs plain `ssh`. With a custom `GIT_SSH_COMMAND` or `core.sshCommand`, the alias cannot be resolved, so it does not match. * `entire enable` always says where checkpoints will be uploaded. When you chose the destination, it also says how. If a saved destination is unusable, it reports the problem instead of showing the privacy notice, unless checkpoints still upload to a dedicated checkpoint repository. # Session Storage Source: https://docs.entire.com/guides/checkpoints/checkpoint-storage Where Entire stores your session and the checkpoints that are linked with your commits. Entire stores checkpoints inside your own Git repository, separate from your source branches. Your code stays on your source branches, while prompts, transcripts, session context, and checkpoint metadata live in checkpoint storage. Most of this happens behind the scenes, so your workflow stays the same: you create, search, explain, and resume checkpoints with the same Entire commands regardless of how they are stored. > [!NOTE] > > We verified this page against **Entire CLI 0.10.2**. Run `entire version` to check what you have installed. ## Store Checkpoints with Your Code This is the default and needs no configuration. Entire stores checkpoint data in the same Git repository as your code and pushes it when you push, which keeps the commit, the checkpoint, and the agent context together while leaving your normal Git history clean. In a repository with several remotes, Entire elects one checkpoint sync remote rather than copying checkpoints everywhere you push. `entire status` names the destination and counts checkpoints that have not reached it. This can be changed if you want your checkpoint and session storage history to reside elsewhere: * [**Push checkpoints to a separate repository**](/guides/checkpoints/store-checkpoints-in-another-repo) * [**Keep checkpoints local on your machine**](/guides/checkpoints/keep-checkpoints-local) ## The Two Storage Backends The backend controls how Git organizes checkpoint data. It is a separate question from which repository receives that data. ### Ref-Based Storage Ref-based storage (`git-refs`) is the default. It gives each new checkpoint its own Git ref, a named pointer inside your repository that Entire creates and manages for you. Each ref lives at `refs/entire/checkpoints//`, and Entire saves and retrieves each checkpoint independently. **The benefit:** With ref-based storage, pushes and reads stay fast even as your repository accumulates more agent history. Multiple agents can also save their work at the same time without competing to update a shared branch. Ref-based checkpoints use 26-character, time-sortable ULIDs, such as `01KVBJCWYA4YW6J5M9GP655HZN`. Ref-based storage first shipped as an opt-in option in Entire CLI 0.8.42 and became the default in 0.10.0, where `entire enable` writes it during a first-time setup and no longer asks you to choose. ### Branch-Based Storage Branch-based storage (`git-branch`) keeps every checkpoint on a shared Git branch called [`entire/checkpoints/v1`](/glossary#checkpoints-branch). Each checkpoint sits at `//` in the branch tree. **The benefit:** All checkpoint history lives on one branch you can check out, browse, or clone like any other branch. Branch-based checkpoints use 12-character hexadecimal IDs, such as `a3b2c4d5e6f7`. A repository you enabled before Entire CLI 0.10.0 uses branch-based storage and stays on it until you [switch backends](#switch-backends). ## Find Which Backend a Repository Uses The backend is named by `checkpoints.primary.type` in `.entire/settings.json`, or in `.entire/settings.local.json` when someone set it for their clone alone. An absent `checkpoints` block resolves to `git-branch`, which is why a pre-0.10.0 repository keeps branch storage without any setting naming it. Checkpoint storage is ordinary Git, so Git reads it without Entire installed. List the per-checkpoint refs: ```bash theme={null} git for-each-ref refs/entire/checkpoints/ ``` Each line names one checkpoint, where `` is the last two characters of the ID and `` is always the leaf. Check for branch-backed checkpoints too: ```bash theme={null} git show-ref entire/checkpoints/v1 ``` Output from both means the repository holds checkpoints in both formats, which is the expected state after a backend switch. To confirm what reached the remote, run `git ls-remote origin 'refs/entire/checkpoints/*'`. ## Both Backends Stay Readable Every reader routes by ID format, so one repository can hold both formats at once. This holds for the CLI, entire.com, and the Entire API. | Checkpoint ID | Where the read goes | | - | - | | ULID | Refs only. ULIDs are minted only under ref-based storage | | Hex, branch-based backend | The `entire/checkpoints/v1` branch | | Hex, ref-based backend | Refs first, then the branch, since a hex checkpoint may still sit on the pre-switch branch | `entire checkpoint list` merges both backends and de-duplicates by ID. A new checkpoint goes to the configured backend, while a backfill that adds a transcript, summary, or attribution to an existing checkpoint lands in whichever backend already holds it. ## Switch Backends To enable ref-based storage in a new repository, run: ```bash theme={null} entire enable --checkpoint-backend refs ``` To enable it in an existing Entire-enabled repository, run: ```bash theme={null} entire configure --checkpoint-backend refs ``` Both commands accept `refs` and `branch`, plus the canonical `git-refs` and `git-branch` that settings store. Add `--local` when the choice should apply only to your clone. A switch applies to new checkpoints. Checkpoints written before the switch stay exactly where they are and keep resolving through the routing above, so `entire checkpoint list`, `entire checkpoint explain`, attribution, and entire.com continue to serve them. Entire deletes nothing during a switch, and your commands and commit workflow do not change. Two things do change after a switch to ref-based storage. New checkpoint IDs become ULIDs instead of hex, and the pre-push hook starts pushing queued per-checkpoint refs instead of the `entire/checkpoints/v1` branch. Leave that branch on the remote: it is where readers find every checkpoint captured before the switch. ## Migrate Existing Checkpoints into Refs Migration is optional, since the routing above already resolves branch-backed checkpoints under a ref-based backend. Migrate when you want the whole history in one format, or when you want to stop carrying the v1 branch. > [!WARNING] > > Run the migration **before** you switch the backend to refs. The command refuses to run once ref-based storage is primary, because the refs are authoritative at that point and re-importing branch snapshots could only move them backwards. ```bash theme={null} entire doctor migrate-checkpoints --dry-run entire doctor migrate-checkpoints ``` The command wraps each checkpoint's current tree in a fresh commit and points its ref at it, keeping the hex ID as the ref name. It does not rewrite the branch commits, and it does not delete the branch. It skips checkpoints it has already converted, so you can re-run it after more branch activity. | Flag | Description | | - | - | | `--dry-run` | Report what would be migrated without writing refs | | `--remote NAME` | Push migrated refs to this remote instead of the checkpoint sync remote | Migrated refs are queued for push. Run interactively, the command asks whether to push them now. Run without a terminal, it leaves them queued, and they flush on the next `git push` once ref-based storage is primary. Then switch and push: ```bash theme={null} entire configure --checkpoint-backend refs git push ``` ## Auto-Generate Checkpoint Summaries Checkpoint metadata can carry a summary generated at commit time. Enable it with `strategy_options.summarize.enabled`: ```json .entire/settings.json theme={null} { "strategy_options": { "summarize": { "enabled": true } } } ``` Then choose the provider and model: ```bash theme={null} entire configure --summarize-provider PROVIDER entire configure --summarize-model MODEL ``` Without a configured provider, commit-time summaries use Claude Code (`claude` on your `PATH`, model `sonnet`). `entire checkpoint explain --generate` instead picks an installed agent that can write summaries, asks when there are several, and saves your choice. Factory AI Droid cannot generate summaries. ## Where Storage Settings Are Saved `entire configure` writes to `.entire/settings.json` by default, so the repository shares the setting. Add `--local` to write `.entire/settings.local.json` instead, which applies only to your clone and takes precedence over project settings. The `checkpoints` block is a selection, not a merged document: a `checkpoints` block in `.entire/settings.local.json` replaces the one in `.entire/settings.json` outright. `strategy_options` merges only its top-level keys, so a nested object such as `summarize` or `checkpoint_remote` in the local file replaces the project one. See [Local and Project Settings](/guides/configuration/settings-layers) for the full table. ## Continue With > [card] [Store Checkpoints in Another Repository](/guides/checkpoints/store-checkpoints-in-another-repo) > > Push checkpoint history to a repository separate from your code. > [card] [Keep Checkpoints Local](/guides/checkpoints/keep-checkpoints-local) > > Capture checkpoints without pushing them anywhere. > [card] [Security and Privacy](/security#where-your-data-lives) > > See every location Entire writes to and what redaction covers. > [card] [Checkpoint Troubleshooting](/guides/sessions/troubleshooting) > > Fix checkpoints that did not sync or landed in the wrong place. # Inspect Checkpoints Source: https://docs.entire.com/guides/checkpoints/inspect-checkpoints Choose how to inspect checkpoint context in entire.com or the Entire CLI. Use this page when you want to see what happened behind a checkpoint: the commit, prompt, transcript, sessions, files, token usage, and attribution. > [!NOTE] > > Inspecting a checkpoint reads history that Entire already captured. [`entire review`](/cli-reference/review) is a different command: it runs a multi-agent review against your current branch. ## Choose a Surface | Use this | When you want to | | - | - | | [**entire.com**](/guides/checkpoints/inspect-in-entire-com) | Browse checkpoints by repository and branch, inspect sessions visually, read file diffs, or share context with a team. | | [**Entire CLI**](/guides/checkpoints/inspect-in-cli) | Work from a terminal, explain a checkpoint or commit, read transcript output, compare token usage, or export JSON. | ## What to Look For When you open a checkpoint, check: * the original prompt or task * the transcript and tool calls * files changed by the agent * file diffs and line attribution * token usage and session metadata * whether the checkpoint is linked to the commit you expected ## Continue With > [card] [Inspect in entire.com](/guides/checkpoints/inspect-in-entire-com) > > Open checkpoint details, sessions, and file diffs visually. > [card] [Inspect in the CLI](/guides/checkpoints/inspect-in-cli) > > List, explain, and measure checkpoints locally. > [card] [Sessions in entire.com](/guides/sessions/sessions-in-entire-com) > > See the transcript and tool calls behind a checkpoint. > [card] [Search Past Work and Code](/learn/search-past-agent-work) > > Find previous checkpoints, sessions, and commits by meaning. # Inspect Checkpoints in CLI Source: https://docs.entire.com/guides/checkpoints/inspect-in-cli List, explain, and measure checkpoints from a terminal. Use the Entire CLI when you want to work from a terminal, explain a checkpoint or commit, read transcript output, compare token usage, or export checkpoint data as JSON. ## Find a Checkpoint List checkpoints on the current branch: ```bash theme={null} entire checkpoint list ``` Add `--json` for a machine-readable listing, or `--session ID` to narrow the list to one session. When you do not know which checkpoint you want, search by phrase, meaning, or context: ```bash theme={null} entire checkpoint search "what changed" ``` ## Explain a Checkpoint or Commit Explain a checkpoint by ID, or by an unambiguous prefix of one: ```bash theme={null} entire checkpoint explain CHECKPOINT_ID ``` A commit-ish works too, and resolves through the commit's `Entire-Checkpoint` trailer: ```bash theme={null} entire checkpoint explain HEAD~3 ``` Add `--full` for the whole parsed transcript, `--raw-transcript` for the JSONL file, or `--short` for the summary alone. ## Generate a Summary Generate an AI summary for the checkpoint: ```bash theme={null} entire checkpoint explain CHECKPOINT_ID --generate ``` The `--generate` flag requires the configured provider CLI to be installed and authenticated. ## Measure Token Usage Report token usage and optimization recommendations for a checkpoint: ```bash theme={null} entire checkpoint tokens CHECKPOINT_ID ``` The report names the checkpoint, the sessions and agents behind it, the models they used, and the branch, followed by the usage breakdown and the recommendations drawn from it. It reads committed checkpoint metadata through the same resolution path as `entire checkpoint explain`, so an ID prefix or a commit-ish works here as well, and metadata missing locally is fetched from the checkpoint remote. Compare a checkpoint against an earlier one to see how usage moved: ```bash theme={null} entire checkpoint tokens CHECKPOINT_ID --compare BASELINE_ID ``` The comparison reports total tokens, input, cache and context replay, cache write, output, and API calls as a delta against the baseline, and qualifies whether the change counts as an observed reduction or increase. | Flag | Description | | - | - | | `--json` | Output the full report as JSON | | `--compare ID` | Compare against a baseline checkpoint | | `--agent-brief` | Print compact next-step guidance for an agent | `--json` and `--agent-brief` are mutually exclusive. ## Continue With > [card] [Inspect in entire.com](/guides/checkpoints/inspect-in-entire-com) > > Open checkpoint details, sessions, and file diffs visually. > [card] [checkpoint](/cli-reference/checkpoint) > > See the full checkpoint command reference. # Inspect Checkpoints in entire.com Source: https://docs.entire.com/guides/checkpoints/inspect-in-entire-com Open checkpoint details, sessions, and file diffs in entire.com. Use entire.com when you want to browse checkpoints visually, inspect sessions, read diffs, or share checkpoint context with a team. Open [entire.com](https://entire.com), then open the repository that contains the checkpoint. Opening a commit's checkpoint from the Commits page. ## Open a Checkpoint 1. Choose the branch you want to inspect. 2. Find the commit with the checkpoint. 3. Open the checkpoint detail view. 4. Use **Sessions** to inspect the prompt, transcript, tool activity, and session metadata. 5. Use **Changes** to read the files and diff connected to the checkpoint. ## Branch View Open a repository to see its branch list. Each branch shows recent commits grouped by day, with checkpoints captured on each commit. Each checkpoint row shows: * commit SHA * commit message * agent * code changes * checkpoint count, when more than one checkpoint is attached * author ## Checkpoint Detail Open a checkpoint to inspect the detail view. ![Checkpoint detail view in entire.com](https://mintcdn.com/entire/fgG56b7zcMZgFdOf/images/checkpoint-detail-dark.png?fit=max\&auto=format\&n=fgG56b7zcMZgFdOf\&q=85\&s=f8cc696d48c8623b660e60a61be165d1) The header shows the commit SHA, branch, author, agent, file count, AI percentage, and token usage when available. The detail view has two main tabs: * **Sessions**: prompts, transcript, tool activity, session metadata, and any sessions that contributed to the checkpoint * **Changes**: modified files, with a file tree and diff view Use **Alt + Left Arrow** and **Alt + Right Arrow** to move to the previous or next checkpoint on the same branch. ## Open from a Commit You can open a checkpoint from a commit URL: ```text theme={null} https://entire.com/gh///commit/ https://entire.com/et///commit/ ``` When a commit has an `Entire-Checkpoint` trailer, the checkpoint ID also appears in the commit message: ```text theme={null} fix: handle empty repos in dispatch generation Entire-Checkpoint: 01KVBJCWYA4YW6J5M9GP655HZN ``` You can also open a checkpoint from a session when that session produced or contributed to the checkpoint. ## Continue With > [card] [Inspect in the CLI](/guides/checkpoints/inspect-in-cli) > > List, explain, and measure checkpoints locally. > [card] [Sessions in entire.com](/guides/sessions/sessions-in-entire-com) > > See the transcript and tool calls behind a checkpoint. # Keep Checkpoints Local Source: https://docs.entire.com/guides/checkpoints/keep-checkpoints-local Capture checkpoint history without pushing it to a remote repository. When checkpoint history should stay on the machine that captured it, turn off automatic checkpoint pushes. Entire keeps capturing checkpoint data and stops sending it to GitHub or another remote. Use this for local experiments, or for repositories where you do not need checkpoint history available from another device. The tradeoff is that teammates cannot open a local-only checkpoint, and neither can you from another machine. ## Just Your Clone Write the setting to local settings: ```bash theme={null} entire configure --local --skip-push-sessions ``` This writes `push_sessions: false` to `.entire/settings.local.json`: ```json .entire/settings.local.json theme={null} { "strategy_options": { "push_sessions": false } } ``` `.entire/settings.local.json` is gitignored and takes precedence over project settings, so nobody else in the repository is affected. ## The Whole Repository To disable checkpoint pushes for everyone working in the repository, use project settings instead: ```bash theme={null} entire configure --project --skip-push-sessions ``` This writes the same setting to `.entire/settings.json`. Commit that file when the behavior should apply to the whole project. See [Local and Project Settings](/guides/configuration/settings-layers) for how the layers resolve. ## Turn Pushing Back On `--skip-push-sessions` only sets the flag; there is no flag that clears it. Set `push_sessions` back to `true` in the settings file you wrote it to, or delete the key to fall back to the default: ```json .entire/settings.local.json theme={null} { "strategy_options": { "push_sessions": true } } ``` `entire status` then names the checkpoint sync destination and counts the checkpoints waiting to reach it. # Store Checkpoints in Another Repository Source: https://docs.entire.com/guides/checkpoints/store-checkpoints-in-another-repo Push checkpoint history to a repository separate from your source code. Configure a [checkpoint remote](/glossary#checkpoint-remote) when checkpoint history should follow a different sharing boundary than your source code, such as keeping agent transcripts private for a public project. Your code continues to live in the main repository, and Entire pushes checkpoint data to the separate one. ## Configure the Checkpoint Remote Create a separate, empty repository for checkpoint data, then run this from your project: ```bash theme={null} entire configure --checkpoint-remote github:owner/repo ``` The value uses the format `provider:owner/repo`, where the provider is `github` or `gitlab`. This writes: ```json .entire/settings.json theme={null} { "strategy_options": { "checkpoint_remote": { "provider": "github", "repo": "owner/repo" } } } ``` Commit and push `.entire/settings.json` when the checkpoint remote should apply to the whole project. That setting is what entire.com reads to locate checkpoint data. > [!NOTE] > > If you mirror your code repository from GitHub, mirror the checkpoint repository too, in the same region. entire.com reads checkpoint data through that mirror, so without it the project shows no checkpoints even though your pushes succeed. ## Keep Checkpoints under the Same Owner Use a checkpoint repository with the same owner or organization as your code repository. Code at `github.com/acme/app` pairs with `github:acme/app-checkpoints`, because `acme` owns both. A committed `checkpoint_remote` is inherited by everyone who clones or forks the project. To keep a contributor's session data out of the upstream project's checkpoint repository, Entire ignores the setting when it looks inherited, and uploads checkpoints to the remote you push to instead, following the rules in [Choose Where Checkpoints Are Uploaded](/guides/checkpoints/checkpoint-destination). `entire status` shows when and why the setting is ignored. Entire treats the setting as yours when either of these is true: * It is in the gitignored `.entire/settings.local.json`. * Your `origin` and every push URL of the remote you push to are owned by the same account or organization as the checkpoint repository. Requiring the push remote as well covers contributors who cloned the upstream repository and added their own fork, where `origin` belongs to the upstream project. If your checkpoint repository is owned by a different account or organization than your code, configure it in `.entire/settings.local.json` so it is always used: ```bash theme={null} entire configure --local --checkpoint-remote github:owner/repo ``` ## Push Behavior When you push code, Entire pushes checkpoint data to the checkpoint repository separately, using the same protocol, SSH or HTTPS, as your Git remote. The checkpoint repository is used regardless of which of your remotes would otherwise receive checkpoints. If the checkpoint repository cannot be reached, your main Git push still succeeds. Entire keeps the checkpoint data locally and warns that it could not sync. With the legacy branch storage backend, Entire also fetches existing checkpoint data from the checkpoint repository once, if it has data you don't. The default `git-refs` backend fetches checkpoints on demand instead. ## Use a Separate Token Set `ENTIRE_CHECKPOINT_TOKEN` to authenticate checkpoint fetches and pushes with a dedicated token, without changing the credentials for your code repository. When it is set, Entire: * Adds the token to the HTTPS Git operations it runs for checkpoints. * Rewrites SSH remotes, including `origin`, to the equivalent HTTPS URL for checkpoint operations, so the token can authenticate. If a URL cannot be rewritten, the operation runs over SSH without the token and Entire prints a warning. * Without a `checkpoint_remote`, applies the token to the remote chosen as described in [Choose Where Checkpoints Are Uploaded](/guides/checkpoints/checkpoint-destination). ```bash theme={null} ENTIRE_CHECKPOINT_TOKEN= git push ``` # Review and Require Checks Source: https://docs.entire.com/guides/ci/checks Review CI results in plugin gates and choose which builds must pass before merging. To see the CI results for a change, open its Trail. Each vendor reports a **check suite** for a workflow or build. Depot also reports **check runs** for individual jobs; Buildkite does not report step details yet. For repositories that use a CI plugin, results appear in the plugin's own line under **Gates**. This applies to both repositories hosted on Entire and repositories mirrored from GitHub. The separate **Checks** gate is available only on GitHub mirrors. The suite reports the overall outcome. It can remain pending after some jobs pass because the vendor still has work to finish. Open the vendor's build details, when available, to read logs and investigate failures. ## Require Checks Before Merging For CI plugin gates, any failed build blocks merging by default when **Required checks** is empty. A build that has not reported any results does not block merging in this configuration. Populate the field only if you want to block on specific build types: 1. Open the repository in entire.com and go to **Settings** then **Gates**. 2. Find the gate for your CI plugin. 3. To block only on specific build types, set **Required checks** using the names described below. [Configure the Checks gate and required checks](https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/02219a4c9f9e53e95ea9a71000ab4d48/iframe) ### Buildkite Name the pipeline in `org/pipeline` format. For example, to require the `tests` pipeline in the `acme` organization, enter `acme/tests`. ### Depot Copy the full check name shown on the Trail for the workflow or individual job you want to require. For example, the job in the screenshot below is reported as `push:ci.yml / ci.yml:checks`. Enter that full name in **Required checks**; entering only `checks` will not match. ![Depot CI plugin gate on an Entire-hosted repository's Trail showing one of one checks passed](https://mintcdn.com/entire/mLuNv5SexCtqUE8w/images/ci-depot-plugin-trail.png?fit=max\&auto=format\&n=mLuNv5SexCtqUE8w\&q=85\&s=1a8159375c1418af17e09283b45aae03) Depot plugin on Trails, showing the Depot CI gate with its reported job passed. Names must match the builds your plugin reports. If you rename a pipeline, workflow, or job, update its required name in the plugin's gate too. ### RWX RWX reports one check for the whole run by default. Its default label starts with `RWX:` and includes the run definition file and trigger type. Custom status-check settings can change the name or group tasks into separate checks. 1. Push a change that triggers the RWX run, then open its Trail. 2. Expand **RWX** under **Gates** and copy the full reported check name. 3. In the repository's **Settings → Gates → RWX**, enter that exact name in **Required checks**. Use the name reported in Entire rather than just the run filename or a task key such as `verify-checkout`. If you rename the run definition or change its status-check names, review the reported names and update **Required checks** to match. Keep status checks enabled in the RWX integration so results can reach the gate. ### GitHub Mirrors A GitHub mirror can also use the **Checks** gate to require checks reported through GitHub. This gate is separate from the gates for installed CI plugins and is not available on repositories hosted directly on Entire. ![Expanded Checks gate on a GitHub mirror Trail showing nine passed GitHub checks](https://mintcdn.com/entire/mLuNv5SexCtqUE8w/images/ci-github-mirror-checks.png?fit=max\&auto=format\&n=mLuNv5SexCtqUE8w\&q=85\&s=a1ff5e0d6f61e302e8540606ef1be26c) GitHub checks on a GitHub mirror Trail, with all nine checks passed. The Checks gate reads checks from GitHub but doesn't use GitHub's branch protection rules. Name the checks you need in that gate. A named check that hasn't been reported fails once all other checks have finished, or earlier if another reported check fails while others are still running. If you leave the list empty, every reported GitHub check must pass instead. ## Understand the Result Review the plugin's gate on the Trail to see whether its required builds have completed. Individual jobs can finish while the overall workflow or build is still running. The Depot CI gate on a Trail, from running to passed. Entire evaluates requirements against the latest commit. A passing result from an earlier commit does not satisfy the requirement for a newer change. When a plugin has names configured in **Required checks**, missing checks normally block merging. The exception is when Entire knows that the commit was pushed before the plugin was connected, those checks appear as **Not reported** and do not block merging. If a required result is missing or pending, compare the Trail's latest commit with the vendor's build and confirm that the configured name matches the pipeline, workflow, or job that reports it. All blocking gates must pass before you can merge, unless someone with bypass permission bypasses them. # Connect a CI Vendor Source: https://docs.entire.com/guides/ci/connect-ci Install a CI plugin on an Entire project and choose which repositories it can access. Start in Entire to connect your CI vendor. You need permission to manage the Entire project where you want to install the plugin. ## Install the Plugin 1. Go to **Projects**, select the project in which you want to enable plugins, then click on **Plugins**. 2. Choose the **Depot**, **Buildkite**, **Dagger**, or **RWX** plugin and click **Install**. Follow the connection steps on the provider's site. 3. Then you will need to select the project and under that the repositories the plugin can access. Click **Install** to complete the plugin installation. [Select a project and repositories to install the CI plugin](https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/0e5ef2ba98d40228cc7043d6be4783b7/iframe) After installation, configure your pipeline using the provider's tab below. Installing the plugin grants access, but you still need a pipeline and matching triggers to start builds. ## Configure Your Pipeline Select your provider to see what it runs and how to finish setup. > [tab] Depot > > ### Depot > > Depot CI runs builds and tests for changes on your Trails and reports the results to Gates. > > 1. Select the Depot organization to connect to your plugin installation. You need ownership of that organization. Open [**Settings → Depot CI → General**](https://depot.dev/orgs/_/settings/ci/general) and confirm that the Entire project appears in **Connections**. > > 2. Create `.depot/workflows/ci.yml` in your repository: > > ```yaml .depot/workflows/ci.yml theme={null} > name: CI > > on: > push: > branches: ['**'] > > permissions: > contents: read > > jobs: > checkout: > runs-on: depot-ubuntu-latest > steps: > - uses: actions/checkout@v4 > - name: Verify checkout > run: git rev-parse HEAD > ``` > > 3. Commit the file and push your branch to Entire. Open [**Depot CI**](https://depot.dev/orgs/_/workflows) to inspect the run and its logs, then check the result on the Trail in Entire. > > 4. Replace the verification step with your dependency installation, build, and test commands. Commit and push again to validate your code. > > Use `push` triggers for branch changes; Depot does not support Entire `pull_request` triggers. Keep `contents: read` on jobs that check out code. > [tab] Buildkite > > ### Buildkite > > Buildkite runs pipelines made up of command steps on agents. > > 1. Open [**Settings → Repository Providers**](https://buildkite.com/organizations/~/repository-providers) and confirm the Entire connection. Connecting a project requires Buildkite organization administrator access. > > 2. Select **Pipelines → New Pipeline**. Choose your Entire connection under **Git scope**, then pick the repository from **Repository**. Select it from the connection rather than entering its URL manually. > > 3. Set the default branch. In the **YAML Steps** editor, add a command step to verify checkout: > > ```yaml theme={null} > steps: > - label: "Verify checkout" > command: "git rev-parse HEAD" > ``` > > 4. Use a Buildkite-hosted Linux agent queue on amd64 or arm64. In the Entire connection's settings, keep **Add the Entire plugin to every job** enabled. The plugin installs the Git remote helper, and hosted jobs receive repository-scoped checkout credentials automatically. > > 5. Select **Create pipeline**. Under the pipeline's **Settings → Entire**, enable **Build branches**, check the branch filters, and save. > > 6. Push a change and open the build in Buildkite. Once checkout succeeds, replace the verification command with your build and test commands. > > You do not need to add a webhook manually. Tag builds are optional and must be enabled separately under **Build tags**. > [tab] Dagger > > ### Dagger > > Dagger runs the same checks locally and in Dagger Cloud, with shared caching. > > You need the Dagger CLI installed. The workspace commands below use Dagger 1.0. > > 1. From your repository root, initialize a workspace: > > ```bash theme={null} > dagger init > ``` > > Select modules that match your project's tools and choose **Install selected**. Dagger records the workspace configuration in `dagger.toml`. If your repository already has checks, keep its existing configuration. > > 2. List and run your checks locally: > > ```bash theme={null} > dagger check -l > dagger check > ``` > > Confirm that at least one check runs. If none apply, install a module for a tool your project uses. For example, for a project configured with ESLint: > > ```bash theme={null} > dagger module install dagger.io/js/eslint > dagger check > ``` > > 3. Enable the Dagger plugin for the Entire repository or GitHub mirror you want to build. Open [Dagger Cloud](https://dagger.cloud/), select your organization, then open **Sources**. Find the Entire source and enable **Head** and **Trails** checks. > > 4. Commit `dagger.toml`, `dagger.lock`, and any other configuration changes, then push the branch to Entire. Pushing to a Trail or merging into the default branch triggers the cloud checks. > > 5. Review the result under **Gates** on the Trail. To reproduce a failure before pushing a fix, run `dagger check` locally again. > [tab] RWX > > ### RWX > > RWX runs YAML task graphs with automatic caching and parallel execution. > > 1. Open your RWX organization's [**VCS integrations**](https://cloud.rwx.com/org/deep_link/manage/mint/vcs_integrations) and confirm the Entire connection. If a repository is missing, grant access in Entire, then select **Refresh repositories** in RWX. Keep status checks enabled. > > 2. Copy the repository's `entire://` clone URL from Entire. > > 3. Create `.rwx/push.yml`. Replace the example clone URL with yours, including its region host and repository path. Replace `YOUR_PROJECT/YOUR_REPO` in the token expression with your connected project and repository: > > ```yaml .rwx/push.yml theme={null} > on: > entire: > push: > init: > commit-sha: ${{ event.git.sha }} > > base: > image: ubuntu:26.04 > config: rwx/base 1.2.0 > > tasks: > - key: entire-cli > call: entire/install 1.0.0 > > - key: code > use: entire-cli > call: git/clone 2.3.0 > with: > repository: entire://aws-us-east-2.entire.io/et/YOUR_PROJECT/YOUR_REPO > ref: ${{ init.commit-sha }} > entire-token: ${{ entire['YOUR_PROJECT/YOUR_REPO'].token }} > > - key: verify-checkout > use: code > run: ls -la > ``` > > 4. Commit and push the file. Open the run in [RWX Cloud](https://cloud.rwx.com/) to confirm checkout succeeds, then replace `ls -la` with your build and test commands. > > The `entire/install` task supplies the Git remote helper. The token is read-only and scoped to the connected repository. > > To run on Trail events instead of pushes, replace the `on` block with: > > ```yaml theme={null} > on: > entire: > trail: > init: > commit-sha: ${{ event.git.sha }} > ``` > > This runs when a Trail opens, reopens, or its head commit changes. Choose the trigger that matches the changes you want to check. > > To require an RWX result before merging, configure the RWX gate using the [reported check name](/guides/ci/checks#rwx). ## Verify the Connection Push a change that matches your pipeline's triggers, then open its Trail. Find the provider's line under **Gates** and confirm that the build reports a result for the latest commit. Open the build link to inspect its logs in the provider's product. Plugin gates are available on both repositories hosted on Entire and GitHub mirrors. To choose which builds must pass before merging, see [Review and Require Checks](/guides/ci/checks). If no build starts or results are missing, see [Troubleshoot CI](/guides/ci/troubleshooting). ## Remove Access You can remove a repository from the plugin installation in Entire or uninstall the plugin from the project. Removing a repository revokes the plugin's access to that repository while uninstalling revokes access for the whole installation. Review the plugin's gate under **Settings** and then **Gates** when you remove an installation. Update or remove requirements for builds that can no longer report results. # Push from GitHub Actions Source: https://docs.entire.com/guides/ci/github-actions Let a GitHub Actions workflow push to Entire as a service account, without storing a secret. A GitHub Actions workflow can push to Entire without a stored token. The workflow does it with the help of GitHub's OIDC token and Entire trades that token for a short-lived service-account token. You set this up once per workflow: 1. Create a service account in your Entire project. 2. Give the service account access to a repository. 3. Bind the service account to the GitHub repository that runs the workflow. 4. Add the `entireio/setup-entire` action to the workflow. You can also do the first three steps in entire.com. See [Service Accounts in entire.com](/guides/configuration/service-accounts#create-a-service-account-in-entire-com). > [!NOTE] > > You need permission to manage the Entire project. ## Create a Service Account ```bash theme={null} entire sa create my-project ci ``` The command prints the service account's `svc_` ID. This is needed for the workflow. By default, each project owner can have up to 5 service accounts, across all its projects. You can use one service account for each purpose. ## Grant Access to a Repository To give the service account a role on a repository in the same project, use the command: ```bash theme={null} entire sa grant my-project/ci --repo my-repo --role writer ``` You need to use `reader` for a workflow that only fetches and `writer` for a workflow that pushes. A service account can only get access inside its own project. ## Bind a GitHub Repository To bind the service account to the GitHub repository whose workflows act as it, use the command: ```bash theme={null} entire sa bind my-project/ci --provider github-actions --pin repository=my-gh-org/my-gh-repo ``` The `repository` pin names one exact `owner/repo`. A service account has one GitHub binding. To limit which workflows can sign in, such as one workflow file on `main`, add more pins. See [GitHub Actions](/guides/configuration/oidc#github-actions) for every pin and which to use. ## Add the Workflow Add `entireio/setup-entire` before the steps that use Entire. The job needs `id-token: write`: ```yaml theme={null} name: push-to-entire on: push: branches: [main] permissions: id-token: write contents: read jobs: push: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 with: fetch-depth: 0 - uses: entireio/setup-entire@v1 with: service-account: svc_01M6JDV1WP4PTGV5WBVAQDX3K5 - run: git push entire://aws-us-east-2.entire.io/et/my-project/my-repo HEAD:main ``` Use your repository's `entire://` URL in the last step. The action installs `entire` and `git-remote-entire`. It then exports the service-account token as `ENTIRE_TOKEN`, so later `git` and `entire` commands use it. The token lives 45 minutes. A job that runs longer must run the action again. See the [action's README](https://github.com/entireio/setup-entire) for all inputs and outputs. ## Troubleshooting * **No OIDC token**: the workflow or job lacks `permissions: id-token: write`, or the run is a pull request from a fork. GitHub gives fork runs no OIDC token. * **Token exchange failed (HTTP 400)**: the service account has no binding, or the binding does not match the workflow. Check the `repository` pin and any other pins. * **Repository not found** when you push: the service account has no role on that repository. * **Anything else**: see [Service Account Troubleshooting](/guides/configuration/service-accounts-troubleshooting). ## Remove Access Remove the binding to stop the workflow from acting as the service account: ```bash theme={null} entire sa bindings my-project/ci entire sa unbind my-project/ci ``` Delete the service account to remove its access and bindings together: ```bash theme={null} entire sa delete my-project/ci ``` # Overview Source: https://docs.entire.com/guides/ci/overview Run builds and tests with Depot, Buildkite, Dagger, and RWX. Review results, and require checks before merging on Entire. ## What Is Entire CI Integrations? Entire CI Integrations connects your Git repository to CI providers like Depot, Buildkite, Dagger, and RWX so you can run builds and tests whenever you push a change. You connect a provider through a plugin and use your configured pipelines to check your code. Entire collects the results so you can see which checks passed or failed and require them to pass before merging. Entire CI Integrations is currently available in public preview with Depot, Buildkite (hosted agents), Dagger, and RWX. Your build commands and pipeline configurations stay with your CI provider. [CI on Entire: Connect Depot and Buildkite to Your Trails](https://www.youtube.com/embed/n6FOObeyQpk) ## How Does It Help? Entire CI Integrations helps you catch issues before merging changes. You can check whether your code builds successfully, see which tests passed or failed, and make sure important checks are completed before a change is merged. For example, if you update an authentication flow, your CI provider can run the tests configured for that repository. Entire shows the results on the Trail alongside your changes. If a test fails, you can open the build details in your CI provider to investigate. You can also configure **Required checks** to prevent changes from merging until the selected checks pass. ## How Does It Work? Once you connect a CI provider to Entire, the process works as follows: 1. You push a change to a connected repository. 2. Entire notifies your CI provider about the change. 3. The provider fetches your code and runs the configured builds and tests. 4. The provider sends the results back to Entire, where you can review them on Entire Trails. ## Choose a CI Provider Choose the provider that fits how your team defines and runs its pipelines. Each integration reports results to Gates on your Trails. | Provider | Pipeline model | Useful when you want to… | | - | - | - | | [Depot](https://depot.dev/docs/ci/integrations/entire) | YAML workflows using GitHub Actions syntax, run on Depot compute. | Adapt existing GitHub Actions workflows to repositories on Entire. | | [Buildkite](https://buildkite.com/docs/pipelines/source-control/entire) | Pipelines with command steps executed by agents. | Connect Entire repositories to your Buildkite pipelines. | | [Dagger](https://dagger.io/blog/dagger-for-entire/) | The same pipelines run locally and in Dagger Cloud, with shared caching. | Run checks before pushing and repeat them in CI. | | [RWX](https://www.rwx.com/docs/getting-started/entire) | YAML task graphs with automatic content-based caching. | Reuse task outputs and run independent tasks in parallel. | ## Connect a CI Provider You can connect Depot, Buildkite, Dagger, or RWX to Entire by installing the provider's plugin. Start the setup from your project's **Plugins** page in entire.com. Click **Install** to go to the vendor's site, complete the vendor's connection steps, then return to Entire to grant consent and select repositories. You can give the plugin access to all repositories in a project or only specific ones. Finish the vendor's pipeline or workflow setup so pushes can trigger builds. ![Project Plugins page in entire.io showing Buildkite and Depot CI plugins, with Plugins highlighted in the sidebar](https://mintcdn.com/entire/0-1LEbalzQ0bymcb/images/ci-plugins.png?fit=max\&auto=format\&n=0-1LEbalzQ0bymcb\&q=85\&s=a2d61e74750ff6a146e6a6b81ade79b7) The plugin allows Entire to notify the provider about new changes and also allows the provider to fetch code and report build results. See [Connect a CI Vendor](/guides/ci/connect-ci) to get started. ## Review Results and Require Checks Once your CI provider runs a pipeline, Entire displays the results in the plugin's line under **Gates** on the Trail. Plugin gates are available on both repositories hosted on Entire and GitHub mirrors. The separate **Checks** gate is available only on GitHub mirrors. You can see whether each check passed, failed, or is still running. If a check fails, you can open the build in your CI provider to find out what went wrong. You can also set up **Required checks** for each plugin under the repository's **Settings** then **Gates**. For Buildkite, name the pipeline in `org/pipeline` format. For Depot, copy the full check name shown on the Trail, such as `push:ci.yml / ci.yml:checks`; entering only `checks` will not match. Required builds normally block merging until they pass, with an exception for [commits pushed before the plugin was connected](/guides/ci/checks#understand-the-result). Entire evaluates the required checks against the latest commit. This means a passing result from an earlier commit cannot be used to merge a newer change. See [Review and Require Checks](/guides/ci/checks) to learn more. ## Continue With > [card] [Connect a CI Vendor](/guides/ci/connect-ci) > > Install a plugin and choose its repositories. > [card] [Review and Require Checks](/guides/ci/checks) > > Review build results and configure merge requirements. > [card] [Troubleshooting](/guides/ci/troubleshooting) > > Investigate missing checks and blocked merges. # Troubleshoot CI Source: https://docs.entire.com/guides/ci/troubleshooting Find out why a build has not started, checks are missing, or a Trail cannot merge. ## The Build Does Not Start If the build does not start, first confirm that the plugin is installed in the repository. Then check that you finished the vendor's pipeline setup and that the push matches its build triggers. Start the connection from the project's **Plugins** page in Entire if you have not installed the vendor's plugin yet. See [Connect a CI Vendor](/guides/ci/connect-ci). ## Buildkite Checkout Fails If checkout fails with `'remote-entire' is not a git command`, check if **Add the Entire plugin to every job** is off on the Entire connection in Buildkite. Open that connection and turn the setting back on. It is on by default. ## The Build Finishes, but Checks Stay Pending Compare the build's commit with the Trail's latest commit. A result from an earlier commit does not satisfy the current requirement. Check the overall workflow status in the vendor's product. Individual jobs can finish while the suite remains pending. If the build has finished but the suite has not updated, you will need to report the mismatch to the vendor with the repository, commit, and build link. ## The Plugin Gates Do Not Block Merges Open **Settings** then **Gates** and find the gate for your CI plugin. For CI plugin gates, any failed build blocks merging when **Required checks** is empty. A build that has not reported any results does not block merging in this configuration. Populate the field only to [block on specific build types](/guides/ci/checks#require-checks-before-merging). When names are configured in **Required checks**, missing checks normally block merging. If Entire knows that the commit was pushed before the plugin was connected, those checks appear as **Not reported** and do not block merging. Plugin gates are available on both repositories hosted on Entire and GitHub mirrors. The separate **Checks** gate is available only on GitHub mirrors and controls checks reported through GitHub. ## A Required Check Never Reports Check the required name in the plugin's gate against the build your vendor reports: * For Buildkite, use the pipeline name in `org/pipeline` format, such as `acme/tests`. * For Depot, copy the full check name shown on the Trail, such as `push:ci.yml / ci.yml:checks`. Entering only the job name, `checks`, will not match. * For RWX, expand the RWX gate on the Trail and copy the full reported check name. The name depends on the run definition, trigger, and any custom status-check settings; entering only a task key or filename may not match. See [Require RWX checks](/guides/ci/checks#rwx). If you rename a pipeline, workflow, or job, update the required name too. If you removed or reinstalled the plugin, review its gate configuration under **Settings → Gates**. Remove requirements for builds you no longer run, or update the plugin's **Required checks** to match the builds you need. # Entire-Generated Files Source: https://docs.entire.com/guides/configuration/entire-files Decide which Entire-generated files belong in Git and which should stay on your machine. Entire creates a small set of repository files for configuration, redaction rules, diagnostics, and local runtime state. Commit files that define shared project behavior. Keep personal overrides, logs, temporary files, and machine-local state out of Git. ## Commit or Keep Local | Path | Commit? | Use for | | - | - | - | | `.entire/settings.json` | Yes, when Entire is part of the project | Shared project settings, such as checkpoint storage, team redaction rules, and default repository behavior | | `.entire/.gitignore` | Yes | Keeping local Entire files out of normal commits | | `.entire/redactors/` | Yes, for shared rule packs | Team redaction rules that should apply to everyone working in the repository | | `.entire/settings.local.json` | No | Personal overrides, debug logging, private rules, and machine-specific settings | | `.entire/redactors/local/` | No | Personal redaction rule packs | | `.entire/logs/` | No | Local diagnostic logs | | `.entire/tmp/` | No | Temporary runtime files | | `.entire/metadata/` | No | Local metadata generated while Entire runs | | `.entire/runners/` | Yes | Trail runner configs for this repository. See [`entire runner`](/cli-reference/runner) | | `.entire/agent-guide.md` | Yes | Agent workflow guide written by Graph setup. See [Set Up Graph](/guides/graph/set-up-graph) | | `.entire/worktrees/` | No | Worktrees created by `entire trail checkout --worktree`. Entire adds this path to your repository's root `.gitignore` when there is one | | `.entire/investigate.local.json` | No | Settings for the `entire investigate` plugin | | `.git/entire-sessions/` | No | Local session state. Lives in the Git directory, outside the working tree | If you are trying Entire locally before adopting it for the project, keep `.entire/settings.json` local until the team decides to share Entire configuration. ## Files Stored Elsewhere Checkpoint data is not committed from your working tree. Entire stores checkpoint metadata in Git refs under `refs/entire/checkpoints/`, or on the `entire/checkpoints/v1` branch for repositories on the branch backend, in your code repository or in a configured checkpoint remote. See [Where your data lives](/security#where-your-data-lives). Entire has no global settings file. Clone preferences saved by `entire review` setup live at `.git/entire/preferences.json`. Agent hook files live in agent-specific folders, such as `.agents/`, `.claude/`, `.codex/`, and `.cursor/`. # Git Hooks Source: https://docs.entire.com/guides/configuration/git-hooks Configure the Git hooks Entire uses to capture and sync checkpoint data. Use this page when `git commit` or `git push` is not creating, linking, or syncing checkpoint data. Entire uses Git hooks to run during normal Git commands: * `git commit` links captured agent work to the commit and creates an `Entire-Checkpoint` trailer. * `git push` syncs checkpoint data after your code push. If those behaviors do not happen, Git may not be running Entire's hooks, or the hook may not be able to find the `entire` command. ## Start Here If * a commit did not create a checkpoint * a commit is missing an `Entire-Checkpoint` trailer * checkpoint data is not syncing after `git push` * commits work from Terminal, but not from a GUI Git client * Git says it cannot find the `entire` command * hooks were removed, overwritten, or need to be reinstalled * the `entire` binary moved on your machine * setup needs to run without prompts * the repository already has Git hooks, or uses a hook manager such as lefthook or pre-commit > [!NOTE] > > Git hooks are different from [agent hooks](/agents/setup). > Agent hooks capture the AI session while you work; Git hooks connect that > captured session to commits and pushes. ## Install Git Hooks For a new repository, run `entire enable` to install the Git hooks Entire needs for commit and push behavior: ```bash theme={null} entire enable ``` ## Reinstall Git Hooks If hooks were removed, overwritten, or stopped running, reinstall them with: ```bash theme={null} entire configure --force ``` ## Keep Your Existing Git Hooks If the repository already has Git hooks, such as your own scripts or hooks from git-lfs, lefthook, or pre-commit, `entire enable` keeps them. Each one is moved to `.pre-entire` in the hooks directory, and Entire's hook runs first, then yours. * If a hook manager reinstalls its hooks later, Entire's hooks come back on the next agent turn or `entire enable`, chained to the hook manager's version. If the hook already had a `.pre-entire` copy, the hook manager's version takes its place and runs after Entire's; the older copy is kept as `.pre-entire.` and no longer runs, with a warning naming the file. * `entire disable --uninstall` removes Entire's hooks and puts yours back. Older `.pre-entire.` copies are left in place and listed. ## GUI Git Clients Terminal commits can work while GUI commits fail because apps like Xcode, Tower, GitKraken, and Sourcetree may not load your shell `$PATH`. Configure hooks with the full `entire` binary path: ```bash theme={null} entire configure --local --absolute-git-hook-path ``` During initial setup, use the same option with `entire enable`: ```bash theme={null} entire enable --local --absolute-git-hook-path ``` This embeds the full path to the `entire` binary directly in the Git hooks: ```sh theme={null} # Default entire hooks git post-commit # With --absolute-git-hook-path '/Users/you/go/bin/entire' hooks git post-commit ``` The setting is written to `.entire/settings.local.json` when you pass `--local`: ```json .entire/settings.local.json theme={null} { "absolute_git_hook_path": true } ``` Absolute Git hook paths are machine-specific. If you move the `entire` binary, rerun: ```bash theme={null} entire configure --local --absolute-git-hook-path ``` ## Use Non-Interactive Setup For scripts, CI, or bootstrap flows, run setup in non-interactive mode: ```bash theme={null} entire enable --yes ``` To select an agent without prompts: ```bash theme={null} entire enable --yes --agent claude-code ``` ## Verify Git Hooks After changing hook setup, check the repository status and test the Git client you actually use: ```bash theme={null} entire status --detailed ``` Then make a test commit and push. If no checkpoint appears, run [checkpoint troubleshooting](/guides/sessions/troubleshooting). # Logging and Diagnostics Source: https://docs.entire.com/guides/configuration/logging-and-diagnostics Configure log verbosity, inspect active settings, and collect diagnostics. Use this page when you need more detail about what Entire is doing locally or need to confirm which settings are active. Most diagnostic output is local to your machine. Turn on debug logging temporarily unless the whole team needs the same verbosity. ## Start Here If Use this page to: * turn on debug logging while investigating an issue * confirm which settings Entire is using * run a repository health check * view logs or create a diagnostic bundle ## Log Level `log_level` controls how much detail Entire writes to operational logs. The default is `info`; use `debug` while investigating. > [tab] Temporary Override > > Use `ENTIRE_LOG_LEVEL` when you need debug output for one command or one shell session. > > ```bash theme={null} > ENTIRE_LOG_LEVEL=debug entire status > ``` > > `ENTIRE_LOG_LEVEL` takes precedence over settings files. > [tab] Local Settings > > Use local settings for temporary debug logging or machine-specific troubleshooting. > > ```json .entire/settings.local.json theme={null} > { > "log_level": "debug" > } > ``` > [tab] Project Settings > > Use project settings only when the whole repository should use the same log level. > > ```json .entire/settings.json theme={null} > { > "log_level": "debug" > } > ``` Supported values are `debug`, `info`, `warn`, and `error`. Case does not matter, and `warning` also works. ## Inspect Active Settings Run: ```bash theme={null} entire status --detailed ``` Use this after editing settings to confirm Entire is reading the value you changed and to see which settings file supplied it. ## Check Repository Health Run: ```bash theme={null} entire doctor ``` Use `entire doctor` when sessions look stuck, Git hooks are not firing, checkpoint data is not syncing, or `entire status` shows warnings. It checks repository setup, hook state, checkpoint metadata, and common session problems. ## View or Share Diagnostics Entire writes local diagnostic logs under `.entire/logs/`. Keep logs local unless someone asks for a specific file or bundle while troubleshooting. > [tab] View Logs > > Show recent operational logs with: > > ```bash theme={null} > entire doctor logs > ``` > > To stream new log lines while you reproduce an issue, run: > > ```bash theme={null} > entire doctor logs --follow > ``` > [tab] Create Bundle > > Create a diagnostic bundle for an issue report with: > > ```bash theme={null} > entire doctor bundle > ``` > > Diagnostic bundles are redacted by default. Use `--raw` only when support has asked for an unredacted bundle. For other local runtime files under `.entire/`, see [Entire-Generated Files](/guides/configuration/entire-files). ## Trace Slow Hooks Hooks that take 1.5 seconds or longer trace themselves by default, at WARN level, so a slow hook records its own breakdown with no configuration. Reproduce the slow Git command, then run: ```bash theme={null} entire doctor trace ``` Use this when `git commit` or `git push` works but feels slower than expected. Set `ENTIRE_PERF_SLOW_MS=0` to turn automatic tracing off. A [log level](#log-level) above WARN also hides these traces. To trace every hook, including fast ones, set the log level to `debug`. See [`entire doctor trace`](/cli-reference/doctor#doctor-trace) for `--summary`, `--slow`, and the other flags. ## Verify Logging Changes After changing logging settings, rerun the command you were investigating and check the logs: ```bash theme={null} entire doctor logs ``` # OpenID Connect (OIDC) Source: https://docs.entire.com/guides/configuration/oidc Sign in to Entire from a platform that issues OIDC tokens to its jobs, functions, or agents. Platforms such as GitHub Actions and Cursor give each job or agent a short-lived, signed token that names its repository or project. This standard is called OpenID Connect (OIDC). Your jobs and agents can exchange this token to sign in as a [service account](/guides/configuration/service-accounts), with no secret to store. The job can then clone and push repositories, open Trails, and read review results. ## How It Works Every platform follows the steps below, but differs in which pins it uses and how a job gets its token. ### Bind the Platform **1. Create the service account** Create a service account and grant it access to the repositories your jobs need, [in entire.com or with the CLI](/guides/configuration/service-accounts#set-up-a-service-account). **2. Find the platform's pins** `entire service-account providers` lists the platforms. `entire service-account providers ` lists a platform's pins, which ones are required, and the format of each value. **3. Bind the platform to the service account** Each `--pin name=value` adds a condition that the token must match: ```bash theme={null} entire service-account bind acme/deploy --provider github-actions \ --pin repository=acme/web \ --pin workflow_ref=acme/web/.github/workflows/deploy.yml@refs/heads/main ``` The command prints three values you'll need later: | Value | Use | | - | - | | `audience` | The audience you ask your platform to put in its token, such as `https://us.auth.entire.io/api/authz/sts`. | | `endpoint` | Where you send the token. | | `resource` | The service account ID. | If you bound the platform in entire.com, `resource` is the service account's ID. `audience` and `endpoint` are its Auth URL followed by `/api/authz/sts` and `/oauth/token`. A service account holds one binding per platform. `entire service-account bindings acme/deploy` lists its bindings with their `eib_` IDs, and `entire service-account unbind acme/deploy ` removes one. Tokens already issued keep working for up to 45 minutes after you remove a binding. To cut access sooner, revoke the service account's grants. ### Choose Pins Any job whose token matches the pins can sign in as the service account. You should pin as narrowly as the job allows: * Pin the branch, environment, or workflow, along with the repository or organization. * Pin values that only the job you trust can get a token for. * Pins match by name. Remove a binding before you rename or delete a pinned repository or pipeline. Otherwise a new one with the old name could sign in. * Pins marked `EXACT` in `entire service-account providers ` take one value. The others also take a glob, such as `deploy-*`. ### Exchange the Token Exchange your platform's token for a service account token that the `entire` CLI and `git` can use: ```bash theme={null} ENTIRE_AUTH_URL=https://us.auth.entire.io export ENTIRE_TOKEN=$(curl -sS -X POST "$ENTIRE_AUTH_URL/oauth/token" -u entire-cli: \ --data-urlencode grant_type=urn:ietf:params:oauth:grant-type:token-exchange \ --data-urlencode subject_token_type=urn:ietf:params:oauth:token-type:jwt \ --data-urlencode subject_token=$OIDC_TOKEN \ --data-urlencode audience=$ENTIRE_AUTH_URL \ --data-urlencode resource=svc_01ABC... | jq -r '.access_token // error(.error_description)') ``` Most platform tokens expire within minutes, so make sure to exchange the token right after you get it. The service account token lasts around 45 minutes. If your job runs longer, get a new platform token and exchange it again before the next Entire command, or after a `401`. ### Use the Token [Install the CLI](/installation) where the job runs. With `ENTIRE_TOKEN` set, the `entire` CLI and `git-remote-entire` use it in place of a login: ```bash theme={null} entire repo clone /et/acme/web web ``` The clone's `origin` remote points at Entire, so `git fetch` and `git push` in that clone run as the service account too. For the API, send the token as a bearer token. See [Authentication](/guides/api/authentication) for more details. ## Platforms > [tab] Amp > > Each Amp orb can request a token for the project it runs in. Bind the Amp project to a service account to let its orbs sign in. > > **1. Find the project ID** > > Find the project's ID with `amp projects list`. > > **2. Bind the Amp project to the service account** > > ```bash theme={null} > entire service-account bind acme/orbs --provider amp \ > --pin project=b6201409-e9f5-4a14-82a3-7ea1aac91f37 > ``` > > The pins you can set: > > | Pin | Required | Matches | > | - | - | - | > | `project` | Yes | The Amp project ID, in lower case. | > | `workspace` | No | The Amp workspace ID. | > | `user` | No | The Amp user whose thread it is, such as `user_01ABC...`. | > | `thread` | No | The thread ID, such as `T-01ABC...`. | > | `subject` | No | The token's `sub` claim. Its shape varies, so pin the IDs above instead. | > > Any orb in the project can sign in, whoever started it. To limit it to one person's orbs, add `--pin user=...`. > > #### Use It in an Orb > > Amp tokens last 10 minutes. Get one inside the orb: > > ```bash theme={null} > ENTIRE_AUTH_URL=https://us.auth.entire.io > OIDC_TOKEN=$(amp orb id-token --audience $ENTIRE_AUTH_URL/api/authz/sts) > ``` > > Then [exchange](#exchange-the-token) and [use](#use-the-token) the token. > > > [!NOTE] > > > > Only a thread that runs in an orb and belongs to an Amp project can sign in. Run `amp orb id-token` inside the orb. > > If sign-in fails, refer to [Service Account Troubleshooting](/guides/configuration/service-accounts-troubleshooting). > [tab] Buildkite > > > [!TIP] > > > > To use Buildkite for CI on your Entire repositories, use our [Buildkite plugin](/guides/ci/connect-ci). > > Each Buildkite job can request an OIDC token for its pipeline. Bind your pipeline to a service account, and the job can sign in with that token. > > Pin your organization slug and the pipeline slug: > > ```bash theme={null} > entire service-account bind acme/deploy --provider buildkite \ > --pin organization=acme \ > --pin pipeline=deploy > ``` > > The pins you can set: > > | Pin | Required | Matches | > | - | - | - | > | `organization` | Yes | Your Buildkite organization slug. | > | `pipeline` | Yes | The pipeline slug. A glob such as `deploy-*` matches several pipelines. | > | `branch` | No | The build branch, such as `main`. | > | `commit` | No | The build commit SHA. | > | `step` | No | The step key. | > | `job` | No | The job ID. | > | `agent` | No | The agent ID. | > | `subject` | No | The token's `sub` claim, `organization::pipeline::ref:refs/heads/:commit::step:`. | > > A `pipeline` glob also matches pipelines created later. Use one only if you control who can create pipelines in the organization. > > Any build of the pipeline can sign in, on any branch and in any step. To limit it, add `--pin branch=main` or `--pin step=deploy`. Anyone who can start a build chooses its branch and commit. Pin a pipeline whose builds only trusted people can start. > > #### Use It in a Pipeline > > Buildkite tokens last 5 minutes. Get the token, exchange it, and export the result as `ENTIRE_TOKEN` in the same step. Every command after that runs as the service account: > > ```yaml .buildkite/pipeline.yml theme={null} > steps: > - label: "Clone from Entire" > command: | > ENTIRE_AUTH_URL=https://us.auth.entire.io > OIDC_TOKEN=$$(buildkite-agent oidc request-token --audience $$ENTIRE_AUTH_URL/api/authz/sts) > export ENTIRE_TOKEN=$$(curl -sS -X POST $$ENTIRE_AUTH_URL/oauth/token -u entire-cli: \ > --data-urlencode grant_type=urn:ietf:params:oauth:grant-type:token-exchange \ > --data-urlencode subject_token_type=urn:ietf:params:oauth:token-type:jwt \ > --data-urlencode subject_token=$$OIDC_TOKEN \ > --data-urlencode audience=$$ENTIRE_AUTH_URL \ > --data-urlencode resource=svc_01ABC... | jq -r '.access_token // error(.error_description)') > entire repo clone /et/acme/web web > ``` > > `$$` stops `buildkite-agent pipeline upload` from expanding the variable at upload time. > > If sign-in fails, see [Service Account Troubleshooting](/guides/configuration/service-accounts-troubleshooting). > [tab] Cursor > > A Cursor Cloud Agent can request a token for the repository it works on. Bind the repository and your team to a service account to let your agents sign in. > > **1. Find your team ID** > > Your team ID is a number. Find it in the Cursor dashboard. On a personal account, use your user ID instead. > > **2. Bind the repository and team to the service account** > > ```bash theme={null} > entire service-account bind acme/agents --provider cursor \ > --pin repo_url=github.com/acme/web \ > --pin team=19262307 > ``` > > The pins you can set: > > | Pin | Required | Matches | > | - | - | - | > | `repo_url` | Yes | The agent's primary repository as `host/path`, such as `github.com/acme/web` or `origin.cursor.com/git/acme/web`. | > | `team` | One of these | The Cursor team ID. | > | `user` | One of these | The Cursor user ID of the agent's owner. | > | `service_account` | One of these | The Cursor service account ID of the agent's owner. | > | `environment` | No | The Cursor environment ID. | > | `branch` | No | The branch the agent works on. | > | `runtime` | No | `managed` on Cursor's machines, `self_hosted` on a Self-Hosted Machines worker. | > | `source` | No | How the agent started: `WEBSITE`, `API`, `SLACK`, or `AUTOMATIONS`. | > | `automation` | No | The automation ID, when `source` is `AUTOMATIONS`. | > | `agent` | No | The Cloud Agent ID. | > | `subject` | No | The token's `sub` claim. Its shape varies, so pin the IDs above instead. | > > A binding needs the repository plus one of `team`, `user`, or `service_account`. Anyone can open a public repository in a Cloud Agent. Pinning the repository alone doesn't limit sign-in to your agents. On an agent with several repositories, the token names only the primary one. > > > [!WARNING] > > > > Pin `runtime=managed` unless you trust every process on your Self-Hosted Machines workers. Any of them can request a token. > > #### Use It in a Cloud Agent > > Cursor tokens last 5 minutes. The agent requests one from Cursor's local socket. Put this in a setup step, a script in the repository, or the prompt: > > ```bash theme={null} > ENTIRE_AUTH_URL=https://us.auth.entire.io > OIDC_TOKEN=$(curl -sS --unix-socket "$CURSOR_AGENT_SOCKET" -H 'Content-Type: application/json' \ > -d "{\"aud\":\"$ENTIRE_AUTH_URL/api/authz/sts\"}" http://cursor-agent/v1/tokens/oidc | jq -r .token) > ``` > > Then [exchange](#exchange-the-token) and [use](#use-the-token) the token. > > If sign-in fails, see [Service Account Troubleshooting](/guides/configuration/service-accounts-troubleshooting). > [tab] Devin > > Devin gives each session a token for your organization. Bind the organization to a service account to let sessions sign in. > > Pin your Devin organization ID. You can find it in the `sub` value that `devin-oidc token` prints, or ask your Devin administrator: > > ```bash theme={null} > entire service-account bind acme/devin --provider devin \ > --pin organization=org-b5148187ac634e3ea4371c95e4f05edf > ``` > > The pins you can set: > > | Pin | Required | Matches | > | - | - | - | > | `organization` | Yes | The Devin organization ID, `org-` and 32 hex characters. | > | `user` | No | The Devin user who started the session, `user-...`. | > | `trigger` | No | How the session started: `webapp`, `slack`, or `api`. | > | `service_user` | No | The service user, for sessions started through the API. | > | `automation` | No | The automation ID, for sessions an automation started. | > | `environment` | No | The Devin environment ID. | > | `account` | No | The Devin account ID, `account-...`. | > | `session` | No | The Devin session ID, `devin-...`. | > | `subject` | No | The token's `sub` claim. Its shape varies, so pin the IDs above instead. | > > Any session in the organization can sign in. To limit it to one person's sessions, add `--pin user=...`. To allow only sessions started through the API, add `--pin trigger=api`. > > #### Use It in a Session > > Devin tokens are short-lived. Add Devin's `setup-devin-oidc` action to your environment blueprint to get the `devin-oidc` CLI, then get a token: > > ```bash theme={null} > ENTIRE_AUTH_URL=https://us.auth.entire.io > OIDC_TOKEN=$(devin-oidc token --audience $ENTIRE_AUTH_URL/api/authz/sts) > ``` > > Then [exchange](#exchange-the-token) and [use](#use-the-token) the token. > > If sign-in fails, see [Service Account Troubleshooting](/guides/configuration/service-accounts-troubleshooting). > [tab] GitHub Actions > > > [!TIP] > > > > For a full walkthrough, see [Push from GitHub Actions](/guides/ci/github-actions). > > Every GitHub Actions job can get a token for the repository it runs in. Bind the repository to a service account, and the `entireio/setup-entire` action signs the job in. > > Pin the GitHub repository that runs the workflow, as `owner/name`: > > ```bash theme={null} > entire service-account bind acme/deploy --provider github-actions \ > --pin repository=acme/web \ > --pin workflow_ref=acme/web/.github/workflows/deploy.yml@refs/heads/main > ``` > > The command prints a ready-made `entireio/setup-entire` step with the `service-account` and `auth-url` values filled in. Copy it into your workflow. > > The pins you can set: > > | Pin | Required | Matches | > | - | - | - | > | `repository` | Yes | One GitHub repository, as `owner/name`, such as `acme/web`. No wildcards. | > | `ref` | No | The ref that started the run, such as `refs/heads/main`. | > | `workflow_ref` | No | The top-level workflow file and ref, such as `acme/web/.github/workflows/deploy.yml@refs/heads/main`. | > | `job_workflow_ref` | No | The workflow file the job runs. Pins a reusable workflow. | > | `event_name` | No | The event that started the run, such as `push`. | > | `actor` | No | The GitHub login that started the run. | > | `subject` | No | The token's `sub` claim. | > > Any workflow in the repository can sign in, on any branch. To limit it, add `--pin ref=...` for one branch or `--pin workflow_ref=...` for one workflow file. Each service account serves one GitHub repository, because `repository` takes no wildcard. > > > [!WARNING] > > > > `ref` alone doesn't stop `pull_request_target`, `issue_comment`, or `workflow_run` runs, which run on the default branch and can be started from a fork. Pin `workflow_ref` to the workflow file that should sign in. > > #### Use It in a Workflow > > The [`entireio/setup-entire`](https://github.com/entireio/setup-entire) action installs the CLI, gets the job's OIDC token with the Entire audience, exchanges it, and exports the result as `ENTIRE_TOKEN`. Every later step runs as the service account: > > ```yaml .github/workflows/clone-from-entire.yml theme={null} > name: Clone from Entire > > on: > push: > branches: [main] > > permissions: > id-token: write > > jobs: > build: > runs-on: ubuntu-latest > steps: > - uses: entireio/setup-entire@v1 > with: > service-account: svc_01ABC... > - run: entire repo clone /et/acme/web web > ``` > > The job needs `permissions: id-token: write`, or GitHub issues no OIDC token. > > | Input | Default | Description | > | - | - | - | > | `service-account` | | The `svc_` ID, from the `create` or `bind` output. Omit it to install the CLI only. | > | `auth-url` | `https://us.auth.entire.io` | The auth URL for your region, from the `bind` output. | > | `version` | The release pinned in the action | The `entire` CLI release to install. | > | `install` | `true` | Put `entire` and `git-remote-entire` on `PATH`. | > | `export-env` | `true` | Export the token as `ENTIRE_TOKEN` for later steps. | > > The action sets two outputs. `token` holds the token, masked in logs, for a step that doesn't read `ENTIRE_TOKEN`. `expires-in` is the token's lifetime in seconds. If a job runs longer than 45 minutes, run the action again before the next step that needs Entire. To keep the token away from steps that don't need it, set `export-env: false` and pass the `token` output only to the steps that use Entire. > > If the action can't run, such as under a policy that blocks third-party actions or on a Windows runner, [exchange the token yourself](#exchange-the-token). > > If sign-in fails, refer to [Service Account Troubleshooting](/guides/configuration/service-accounts-troubleshooting). > [tab] Google Cloud > > Code on Google Cloud runs as a Google service account, and it can ask Google for an ID token for that account. Bind the Google service account to an Entire service account to let your code sign in. > > Pin the email of the Google service account your code runs as: > > ```bash theme={null} > entire service-account bind acme/deploy --provider google-cloud \ > --pin service_account=deploy@my-project.iam.gserviceaccount.com > ``` > > The pins you can set: > > | Pin | Required | Matches | > | - | - | - | > | `service_account` | Yes | The Google service account email, in lower case. | > | `subject` | No | The service account's unique ID, from `gcloud iam service-accounts describe --format='value(uniqueId)'`. | > > The unique ID changes when a Google service account is deleted and recreated under the same email. To refuse a recreated account, add `--pin subject=...`. > > #### Use It on Google Cloud > > A Google ID token lasts one hour. Request it with the `audience` value from `bind`. On Compute Engine, Cloud Run, Cloud Functions, and GKE, ask the [metadata server](https://cloud.google.com/docs/authentication/get-id-token#metadata-server): > > ```bash theme={null} > ENTIRE_AUTH_URL=https://us.auth.entire.io > OIDC_TOKEN=$(curl -sS -H "Metadata-Flavor: Google" \ > "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=$ENTIRE_AUTH_URL/api/authz/sts") > ``` > > Client libraries take the same audience, such as `idtoken.NewTokenSource` in Go or `id_token.fetch_id_token` in Python. For a test from your own machine, run: > > ```bash theme={null} > ENTIRE_AUTH_URL=https://us.auth.entire.io > OIDC_TOKEN=$(gcloud auth print-identity-token \ > --impersonate-service-account=deploy@my-project.iam.gserviceaccount.com \ > --audiences=$ENTIRE_AUTH_URL/api/authz/sts \ > --include-email) > ``` > > The token must carry the `email` claim. Tokens from the metadata server include it. `gcloud` and the `generateIdToken` API include it only with `--include-email` or `includeEmail: true`. > > Then [exchange](#exchange-the-token) and [use](#use-the-token) the token. > [tab] Vercel > > Vercel Functions can request a token for your team and environment. Bind your Vercel team to a service account to let your Functions sign in. A [Vercel Sandbox](https://vercel.com/docs/vercel-sandbox) can run the `entire` CLI with the service account token kept out of the sandbox. > > **1. Use the Team issuer** > > In your Vercel project, open **Settings → Security → Secure backend access** and set the OIDC **Issuer Mode** to **Team**. > > **2. Find your team ID** > > In Vercel, open your team's **Settings → General** and copy the **Team ID**. It starts with `team_`. Use the ID, which stays the same when the team is renamed. > > **3. Bind Vercel to the service account** > > ```bash theme={null} > entire service-account bind acme/deploy --provider vercel \ > --pin team_id=team_abc123 \ > --pin environment=production > ``` > > The pins you can set: > > | Pin | Required | Matches | > | - | - | - | > | `team_id` | Yes | The Vercel team ID, such as `team_abc123`. | > | `environment` | Yes | `production`, `preview`, `development`, or a custom environment. | > | `project_id` | No | One Vercel project ID, such as `prj_abc123`. | > | `subject` | No | The full token subject, `owner::project::environment:`. | > > Any Vercel project in the team can sign in in the pinned environment. To allow only one project, add `--pin project_id=...`. > > > [!WARNING] > > > > Bind `development` only if every member of your Vercel team may sign in as the service account. Any team member can get a development token with `vercel env pull`. > > #### Use It from a Function > > Install the Vercel OIDC package: > > ```bash theme={null} > npm install @vercel/oidc > ``` > > Add a helper that gets a Vercel token with the Entire audience and exchanges it. Here's how you can set the values from the `bind` output: > > ```ts lib/entire.ts theme={null} > import { getVercelOidcToken } from "@vercel/oidc"; > > const ENTIRE_AUTH_URL = "https://us.auth.entire.io"; > const SERVICE_ACCOUNT = "svc_01ABC..."; > > let cached: { token: string; expiresAt: number } | undefined; > > export async function getEntireToken(): Promise { > if (cached && cached.expiresAt - Date.now() > 60_000) { > return cached.token; > } > const subjectToken = await getVercelOidcToken({ > audience: `${ENTIRE_AUTH_URL}/api/authz/sts`, > }); > const res = await fetch(`${ENTIRE_AUTH_URL}/oauth/token`, { > method: "POST", > headers: { > "content-type": "application/x-www-form-urlencoded", > authorization: "Basic " + btoa("entire-cli:"), > }, > body: new URLSearchParams({ > grant_type: "urn:ietf:params:oauth:grant-type:token-exchange", > subject_token_type: "urn:ietf:params:oauth:token-type:jwt", > subject_token: subjectToken, > audience: ENTIRE_AUTH_URL, > resource: SERVICE_ACCOUNT, > }), > }); > if (!res.ok) { > throw new Error(`Couldn't exchange the Vercel token: ${res.status} ${await res.text()}`); > } > const body = await res.json(); > cached = { token: body.access_token, expiresAt: Date.now() + body.expires_in * 1000 }; > return cached.token; > } > ``` > > Then use the token. For example, call the API: > > ```ts theme={null} > import { getEntireToken } from "@/lib/entire"; > > const res = await fetch("https://us.console.entire.io/api/v1/me", { > headers: { authorization: `Bearer ${await getEntireToken()}` }, > }); > ``` > > To run the `entire` CLI, use a [Vercel Sandbox](#use-it-in-a-vercel-sandbox). > > #### Use It in a Vercel Sandbox > > The code that creates the sandbox exchanges the token. The sandbox gets only a placeholder `ENTIRE_TOKEN`, and its firewall adds the real token to requests to Entire. `ENTIRE_TELEMETRY_OPTOUT` and `ENTIRE_NO_AUTO_UPDATE` stop the CLI from calling other hosts, which the firewall blocks. > > ```ts theme={null} > import { Sandbox } from "@vercel/sandbox"; > import { getEntireToken } from "@/lib/entire"; > > const ENTIRE_AUTH_URL = "https://us.auth.entire.io"; > > // A JWT whose only claim is the auth URL. The CLI reads the URL from it. > const placeholder = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9." > + Buffer.from(JSON.stringify({ aud: ENTIRE_AUTH_URL })).toString("base64url") > + ".placeholder"; > > const entirePolicy = (token: string) => ({ > allow: { "*.entire.io": [{ transform: [{ headers: { authorization: `Bearer ${token}` } }] }] }, > }); > > const sandbox = await Sandbox.create({ > env: { > ENTIRE_TOKEN: placeholder, > ENTIRE_TELEMETRY_OPTOUT: "1", > ENTIRE_NO_AUTO_UPDATE: "1", > }, > }); > > // Install the CLI before you restrict the network. > await sandbox.runCommand("bash", ["-c", "curl -fsSL https://entire.com/install.sh | bash"]); > > await sandbox.update({ networkPolicy: entirePolicy(await getEntireToken()) }); > > await sandbox.runCommand("bash", ["-lc", "entire repo clone /et/acme/web web"]); > ``` > > Call `sandbox.update` again before the token expires. `getEntireToken` returns a fresh token when the cached one has less than a minute left. > > > [!NOTE] > > > > To let the sandbox reach other hosts, such as a package registry, add each one to `allow`. Only the Entire hosts need the `transform`. > > If sign-in fails, see [Service Account Troubleshooting](/guides/configuration/service-accounts-troubleshooting). ## Continue With > [card] [Service Accounts](/guides/configuration/service-accounts) > > Learn what a service account can access and how it signs in. > [card] [Troubleshooting](/guides/configuration/service-accounts-troubleshooting) > > Fix access, sign-in, and secret errors. # Configuration Source: https://docs.entire.com/guides/configuration/overview Find the right place to configure Entire. This section covers how to change how Entire behaves in a repository, on your machine, or during Git and agent workflows. ## What Are You Configuring? | If you want to configure... | Go to | | - | - | | Repository namespaces, regions, and member access | [Projects](/guides/configuration/projects) | | Accounts that CI jobs, cloud functions, and agents sign in as | [Service Accounts](/guides/configuration/service-accounts) | | Local or project settings files | [Local and Project Settings](/guides/configuration/settings-layers) | | Which Entire-generated files should be committed or kept local | [Entire-Generated Files](/guides/configuration/entire-files) | | Where checkpoint data is stored or pushed | [Session Storage](/guides/checkpoints/checkpoint-storage) | | Git commit and push hooks, including GUI Git clients | [Git Hooks](/guides/configuration/git-hooks) | | Antigravity CLI, Claude Code, Codex, Copilot CLI, Cursor, Factory, OpenCode, Pi, or custom agent integration hooks | [Set Up an Agent](/agents/setup) | | Redaction rules, PII, telemetry, or checkpoint commit signing | [Privacy and Redaction](/guides/configuration/privacy-and-redaction) | | Debug logs, diagnostics, or effective settings | [Logging and Diagnostics](/guides/configuration/logging-and-diagnostics) | | Saved review profiles for `entire review` | [Review Profiles](/guides/configuration/review-profiles) | ## How Configuration Is Layered Entire merges settings from multiple places. More specific settings win: 1. Local settings: `.entire/settings.local.json` 2. Clone preferences: `.git/entire/preferences.json` (review profile choices saved by `entire review` setup) 3. Project settings: `.entire/settings.json` 4. Defaults Entire has no global settings file. Use project settings for behavior the whole team should share. Use local settings for personal preferences, machine-specific setup, debug logging, or private redaction rules. ## Common Paths > [card] [Local and Project Settings](/guides/configuration/settings-layers) > > Choose local or project settings for a configuration change. > [card] [Entire-Generated Files](/guides/configuration/entire-files) > > Decide which Entire-generated files belong in Git and which should stay local. > [card] [Session Storage](/guides/checkpoints/checkpoint-storage) > > See which storage backend a repository uses, switch backends, and migrate. > [card] [Fix GUI Git Commits](/guides/configuration/git-hooks) > > Use absolute Git hook paths when GUI clients cannot find the Entire binary. > [card] [Control Privacy Settings](/guides/configuration/privacy-and-redaction) > > Configure redaction, telemetry, and checkpoint commit signing. # Privacy and Redaction Source: https://docs.entire.com/guides/configuration/privacy-and-redaction Configure redaction layers, image externalization, telemetry, and checkpoint commit signing. Use this page to configure privacy-related behavior for a repository or for your local machine. By default, Entire redacts API keys, access tokens, credentialed URLs, database connection strings, and private keys before it writes checkpoint metadata. Secret scanning remains active, but you can choose which pattern scanner Entire uses. For the threat model, the full list of redaction layers, and what each layer does and does not cover, see [Security & Privacy](/security). ## Start Here If Use this page to: * choose secret scanner engines * add PII or custom redaction rules * turn on the OpenAI Privacy Filter * move inline images out of transcripts * opt in or out of anonymous CLI analytics * change checkpoint commit signing ## Settings Reference Every key below lives under `.entire/settings.json` (shared with the team) or `.entire/settings.local.json` (yours alone), except where noted. | Setting path | Type | Default | Effect | | - | - | - | - | | `redaction.betterleaks.enabled` | boolean | `true` | Run Betterleaks for secret pattern matching. **Project settings only** | | `redaction.goredact.enabled` | boolean | `false` | Run goredact for secret pattern matching. **Project settings only** | | `redaction.pii.enabled` | boolean | `false` | Turn on [PII redaction](#pii-redaction) | | `redaction.pii.email` | boolean | `true` when PII is on | Redact email addresses | | `redaction.pii.phone` | boolean | `true` when PII is on | Redact phone numbers | | `redaction.pii.address` | boolean | `false` | Redact US street addresses | | `redaction.pii.custom_patterns` | object | `{}` | Label-to-regex map producing `[REDACTED_