entireio/cli
📜 Entire CLI hooks into your Git workflow to capture AI agent sessions as you work. Sessions are indexed alongside commits, creating a searchable record of how code was written in your repo.
What it solves
Entire 提供了一种在 Git 工作流程中追踪和索引 AI agent 会话的方法。它解决了 AI agent 进行代码更改时会丢失更改背后的上下文(context)的问题,允许开发者通过对话记录与提示词来理解「why」代码更改了,而不是仅仅通过 diff 了解「what」代码更改了。
How it works
Entire 会挂钩(hooks)到 Git 工作流程,并与各种 AI agent(例如 Claude Code、Cursor 和 Gemini)集成。它会捕获会话元数据(metadata)——包括提示词、响应、涉及的文件以及工具调用——并将这些数据存储在一个独立的、专用的 Git 分支(entire/checkpoints/v1)中。这确保了主项目历史记录保持干净,同时维持了一个与特定提交(commits)关联的、具有版本控制且可搜索的 AI 交互记录。
Who it’s for
它是为使用 AI 编码 agent 并需要可追溯性、审计合规性,或需要通过回溯到特定的 agent checkpoint 时能恢复工作的开发者设计的。
Highlights
- Git-native integration: 与现有的 Git 工作流程集成,且不会污染活跃分支的历史记录。
- Agent agnostic: 支持广泛的 agent,包括 Claude Code、Codex、Gemini、Cursor 和 Copilot CLI。
- Session recovery: 允许用户恢复之前的会话或回溯到已知良好的 checkpoint。
- Traceability: 提供实验性工具如
entire blame和entire why,来将特定的代码行链接回原始的 AI prompt。