AIT:把 AI Coding Run 變成可追蹤、可審查、可交接的 Attempt Ledger
AI Coding / Provenance / Local Workflow
AIT:把 AI Coding Run 變成可追蹤、可審查、可交接的 Attempt Ledger
Threads 貼文把 AIT 稱為「AI 寫程式的工作紀錄本」。官方 README 的定位更精確:ait is a local attempt ledger for AI coding agents。它包在 Claude Code、Codex、Aider、Gemini CLI、Cursor CLI 等既有 agent 外面,把每次 AI coding run 的 prompt、diff、review、decision 與狀態記錄在 repo-local 的
.ait/ 裡,讓下一個 agent 能 review、continue 或 recover。
核心判斷:AIT 解的不是「AI 會不會寫 code」,而是 AI coding 的工作流治理問題:誰改了什麼、為什麼改、改完有沒有 review、失敗 run 怎麼復原、另一個 agent 接手時能不能讀懂前情。
不是另一個 Agent
AIT 不取代 Claude Code、Codex、Aider、Cursor 或 Cline。它是這些 agent CLI 外面的 local workflow layer,負責 attempt boundary、provenance、review record、memory recall 與 explicit apply。
Attempt 模型
每次 agent run 都是一個 attempt:包含 prompt、intent、exit status、changed files、diff、commits、traces、review state。AI 的工作在採用前是 proposal,不直接污染主 working tree。
Repo-local Ledger
.ait/ 放在 repo 裡,和 .git/ 並列。官方 README 強調 local-first:沒有 SaaS、沒有 telemetry、沒有自動同步;除非使用者自己 copy、commit、export 或 upload,否則 metadata 不離開本機。
| 痛點 | AIT 做法 | 實務價值 |
|---|---|---|
| 下一個 agent 從零開始 | 記錄 previous attempts、accepted facts、notes、repo memory files。 | 跨 agent / 跨 session 接手成本下降。 |
| AI 自己寫、自己 review | 支援 adversarial review,用另一個 agent review attempt。 | 不保證正確,但多一層獨立審查與可追溯 finding。 |
| 失敗或中斷 run 弄亂 working tree | wrapped run 進 isolated workspace,需 ait apply 才進主 checkout。 | 降低 AI 修改直接破壞主專案的風險。 |
| 決策散在聊天紀錄 | 用 repo-local ledger 儲存 prompt、diff、review、decision。 | 之後可用 ait memory recall 或 query 找回舊決策。 |
官方 quickstart:
pipx install ait-vcsait demo:建立臨時 repo,跑 scripted multi-agent walkthrough。- 真實專案:
ait init - 照常跑
claude、codex、aider、gemini等 agent CLI。 ait status/ait attempt show <attempt-id>檢查結果。ait review attempt latest-reviewable --mode adversarial --review-adapter codex用另一個 agent 審查。ait apply latest才把 attempt 採用到主 working tree。
限制:AIT 目前是 alpha software,local-first、單機單 repo metadata;沒有 hosted dashboard、team sync、automatic merge,也不保證 AI reviewer 能抓出所有 bug。它最適合已經在真實 repo 使用 agent CLI、但需要 provenance、safe apply、cross-agent handoff 與 second-agent review 的工程師。
和 Git Worktree 的差異
Git worktree 提供隔離目錄;AIT 另外補上 prompt/trace capture、attempt metadata、review findings、memory handoff 與 apply/recover/resume 的日常命令。
和 Cursor/Cline 的差異
Cursor/Cline 是 IDE-native agent experience;AIT 是 CLI-first 的 attempt ledger,能跨多個 agent CLI 與非 IDE 場景運作。
來源:
Threads 原文:https://www.threads.com/@m24927605/post/DYxFQrCGYo9
GitHub:https://github.com/m24927605/ait
Docs:https://m24927605.github.io/ait/
Threads 原文:https://www.threads.com/@m24927605/post/DYxFQrCGYo9
GitHub:https://github.com/m24927605/ait
Docs:https://m24927605.github.io/ait/