cli README

项目的 README,来自 github.com/entireio/cli。合并为一个 markdown 文件:README.md。

Entire CLI

Entire CLI

Entire is a Git forge built for agent–human collaboration. This CLI is how you and your agents use Entire from the terminal — anything you do on entire.com, you can do here:

Works with Claude Code, Codex, Cursor, Copilot CLI, OpenCode, Antigravity, Factory AI Droid, Pi, and more, and extends through plugins. Pushes through a GitHub mirror still trigger your GitHub Actions, and Trails can also show CI results from Buildkite and Depot.

Open source under the MIT license. Docs: docs.entire.com.

Contents

Install

brew install --cask entireio/tap/entire          # macOS and Linux
curl -fsSL https://entire.com/install.sh | bash  # macOS and Linux, without Homebrew
irm https://entire.com/install.ps1 | iex         # Windows PowerShell 5.1+

For the nightly channel (prerelease builds with the latest changes):

brew install --cask entireio/tap/entire@nightly
curl -fsSL https://entire.com/install.sh | bash -s -- --channel nightly
iex "& {$(irm https://entire.com/install.ps1)} -Channel nightly"

Requires Git on macOS, Linux, or Windows. Scoop, go install, and installing during a GitHub outage are covered in Installation.

Quick Start

1. Capture agent sessions — works in any Git repository, no account needed:

cd your-project
entire enable                    # pick your agents; installs their hooks and Entire's git hooks
entire status                    # current sessions and where checkpoints are uploaded

2. Put a repository on Entire — sign in, then mirror a GitHub repository into one or more clusters, or create an Entire-native one. Mirroring needs the Entire GitHub App installed for that repository.

entire login

entire repo mirror add                          # wizard: pick repos and clusters
entire repo clone /gh/<owner>/<repo> --nearest

entire project create                           # wizard: owner, name, region
entire repo create <name> --project <project>
entire repo clone /et/<project>/<name>

Then cd into the clone and run entire enable there to capture sessions in it.

3. Open a Trail — in a repository on Entire, on the branch you're working on:

git switch -c add-rate-limiting
entire trail create --title "Add rate limiting"
entire trail show

Repositories & Git Hosting

Entire hosts Git repositories on clusters in several regions, so agents can clone, fetch, and push against a copy near where they run.

Repository references name their forge: /et/<project>/<repo> for an Entire-native repository, /gh/<owner>/<repo> for a GitHub mirror, or a full entire://<cluster>/… clone URL.

entire repo create web --project acme                   # Entire-native, private by default
entire repo mirror add /gh/acme/web --cluster aws-us-east-2.entire.io,aws-eu-central-1.entire.io
entire repo clone /gh/acme/web --nearest                # time each cluster and use the fastest
entire repo remote add entire                           # add Entire to an existing checkout, beside origin

A GitHub mirror keeps GitHub as the source of truth: clones and fetches come from Entire, and pushes are forwarded to GitHub, where your GitHub permissions, branch protection, and required checks still apply. Clones use entire:// URLs through the git-remote-entire helper that ships with the packaged installs; after that, it is plain Git.

See Repositories and Mirrors in the CLI for regions, mirroring, unmirrored branches, moving a mirror off GitHub, branch protection, and access.

Trails

A Trail follows a change from intent to merge. Instead of reviewing a diff, you get a heads-up display for it — the Trail's page on entire.com, or entire trail show and entire trail watch here — with findings from evals that agents score on every push. Each Trail has a number in its project, such as #42.

entire trail create --title "Add rate limiting" --type feature   # publishes the current branch
entire trail list --project et/acme --status open
entire trail show                       # the Trail for the current branch
entire trail watch                      # stream reviews, findings, and agent run events live

entire trail finding                    # findings and each review agent's latest reading for this branch
entire trail finding apply <id>         # apply a finding's suggested fix
entire trail finding resolve <id> -m "fixed in abc123"
entire trail finding reply <id> -m "intentional: the cache is per process"

entire trail comment add -m "Should this cover the admin API too?"
entire trail ready                      # mark this branch's change ready for review (--undo: back to draft)
entire trail retarget --base release/2  # change the base branch it merges into
entire trail attachment add shot.png    # upload an image; prints the line that shows it in the description
entire trail approve
entire trail rerun-review               # review the current head again (--agent <id> for one agent)
entire trail update-branch              # merge the base into the branch on the server (Entire-native repos)
entire trail merge                      # merge this branch's change into its base
entire trail resume 42                  # continue Trail #42: restore its branch's sessions in your agent

Trail commands use the current repository's project (gh/<owner> or et/<project>); pass --project or --repo to work on another one without a checkout. entire trail list always takes --project. Other subcommands are checkout, link, unlink, update, and approvals.

Project agents are those evals: review agents such as risk, confidence, drift, security, and review, configured per project in Entire, which score each push to a Trail and raise its findings. entire project agent lists them and adds Entire's presets to your repository with add; entire project agent run lists, inspects, cancels, and retries their runs. Preset agents run on free credit; a custom agent runs once the project's billing is set up.

Agent Sessions

entire enable connects your agents and installs Entire's git hooks, keeping any hooks you already have. Use your agent and commit as usual: each commit that includes agent work gets a checkpoint — the prompts, transcript, and files touched — linked to the commit by an Entire-Checkpoint trailer. Entire never adds commits to your branch; by default, checkpoints are stored as their own Git refs (refs/entire/checkpoints/…) and pushed alongside your code.

entire checkpoint list                # checkpoints on this branch
entire checkpoint explain <id>        # the prompt, transcript, and files behind a checkpoint
entire session resume <branch>        # restore a branch's sessions and continue in your agent
entire agent add <name>               # add an agent later; entire configure for other settings
entire disable                        # turn capture off (--uninstall removes Entire from the repo)

See Sessions and Checkpoint Storage for how capture works and migrating from legacy branch storage, Settings and Git Hooks for configuration, and Checkpoint Destination for choosing the remote or a separate checkpoint repository.

Checkpoints are also the raw material for continuous memory: entire-brain, installed separately, combines them with entire-graph's code map into project memory your agents can query. From the CLI, entire search and entire checkpoint explain are the way in.

Search, Activity & the API

entire api /api/v1/clusters
entire api --to cell "/api/v1/me/recap?repo={repo_id}"
entire api /api/v1/me

Plugins

Any executable named entire-<name> on $PATH runs as entire <name>. Install plugins from the plugin index or any Git host:

entire plugin search
entire plugin install <name>
entire plugin list

Installs from a Git host are verified against the release's checksums.txt. See entire plugin.

Security & Privacy

Session transcripts are pushed to your Git remote — as checkpoint refs, not commits on your branch. If that repository is public, anyone can read them. Entire redacts detected secrets before writing a checkpoint, but redaction is best effort; entire checkpoint list --outgoing shows what your next push will upload, and entire checkpoint explain <id> shows a checkpoint's contents.

To keep transcripts out of a public repository, upload them to a separate private repository (entire configure --local --checkpoint-remote github:<owner>/<repo>) or stop uploading them (entire configure --local --skip-push-sessions). entire enable names the checkpoint destination every time it runs. See Security for redaction, scanners, deleting checkpoints, and cleaning up data from older versions.

Troubleshooting

Issue Solution
"Not a git repository" Navigate to a Git repository first
"Entire is disabled" Run entire enable
Agent hooks outdated after a CLI upgrade Run entire agent add <name>; add --force if that does not fix them
A session stuck ACTIVE, or leftover session state Run entire doctor, then entire clean --force if it persists
Anything else Run entire doctor; entire doctor bundle produces a redacted diagnostic bundle for a bug report

Set ENTIRE_LOG_LEVEL=debug for debug logs, and ACCESSIBLE=1 for screen-reader-friendly prompts. Headless servers and CI: see entire login.

Documentation

License

MIT License — see LICENSE.

cli (entireio/cli)

正在搜索数据库…

5.3K ·GitHub
这是什么?Entire 是一个命令行工具,它挂接到你的 Git 工作流中,记录 AI 编码代理的会话(提示词、回复、涉及的文件),并将这些内容与你的提交一同建立索引,形成一份可搜索的记录,展示代码是如何编写的。
这是图形界面应用,还是在后台静默运行?它是一个命令行工具,会在你的仓库中安装 Git 钩子。你使用 AI 代理时它在后台运行,你只需通过 entire session 或 entire search 等命令直接与它交互。
我该怎样安装,并在项目上开始使用?在 macOS 或 Linux 上,可通过 Homebrew(brew install --cask entire)或安装脚本安装;在 Windows 上使用 PowerShell 安装程序(可用时会使用 Scoop)。然后在你的仓库中运行 entire enable,以安装 Git 钩子,并选择要添加的代理集成。
使用它之前需要准备什么?支持哪些代理?你需要安装并完成身份验证的 Git 和受支持的 AI 代理,文中提到的有 Claude Code、Codex、Gemini、Cursor、Pi 和 OpenCode。若要使用 go install 从源码构建,还需要 Go 1.26+。
Entire 会改动我的提交历史吗?CI 或无头机器上怎么办?不会——Entire 从不在你当前的分支上创建提交;检查点存储为独立的 Git 引用,位于分支历史之外。在没有可用浏览器或操作系统密钥环的无头机器上(如 CI、容器、精简虚拟机),你需要使用设备代码登录流程,或基于文件或令牌的登录方式,而不能使用默认的密钥环。
我的会话数据和登录令牌究竟存放在哪里?会话记录和检查点以独立引用的形式存储在你自己仓库的 Git 对象库中,从不写入分支历史;登录令牌默认存放在操作系统密钥环中(macOS 钥匙串、Linux Secret Service、Windows 凭据管理器),在无头环境中则存放在本地的 tokens.json 文件里。
会话和检查点有什么区别?会话是你与 AI 代理从开始到结束的完整交互,记录所有提示词、回复和涉及的文件;检查点则是你或代理每次执行 git commit 时所做的快照,并通过 Entire-Checkpoint 尾注与该提交关联。
如何恢复之前的 AI 会话?运行 entire session resume(可交互式操作,也可按分支指定)。Entire 会切换到对应分支,恢复最新的检查点会话元数据,并输出继续命令,让你从上次中断的地方接着进行。
它能否与 git worktree 以及多个并发的代理会话一起使用?可以——每个工作树都有独立的会话跟踪;如果多个 AI 会话在同一个提交上运行,Entire 会分别跟踪它们,并保留各自的所有检查点。
有哪些发布渠道?Entire 提供 “stable” 渠道,这是 Homebrew、Scoop 和 install.sh 的默认渠道;另外还有更新更频繁的 “nightly” 渠道,供希望更早获得最新改动的用户使用。
作者
entireio
大小
745 MB
星标
5.3K
时长
10个月
提交 · 90 天