跳轉到

Aider

Aider 跑在 ait 管理的隔離 Git worktree 內, 每個 session 都記成可審核的 attempt。

為什麼用 ait 包 Aider

  • Aider commits 進隔離 worktree — 在 promote 之前主分支保持乾淨。
  • 每次 session 變成一筆 attempt,含 prompt、變更檔案、Aider 產生的 commits。
  • Repo-local memory 把過去 Aider session 留下可查。

設定

ait init                  # 偵測 PATH 上的 `aider`,自動裝 wrapper
ait adapter doctor aider  # 可選的 sanity check

ait initaider$PATH 上時自動裝 repo-local 的 aider wrapper。Aider 沒有外部 hook 要 merge——它的 chat history 是 attempt worktree 跑完後從 .aider.chat.history.md 讀回來。

在 ait 下跑 Aider

ait run --adapter aider --intent "修 auth expiry" -- aider src/auth.py

或設定完後直接在 repo 內呼叫 aider

審核與 promote

ait attempt list
ait attempt show <attempt-id>
ait attempt promote <attempt-id> --to main

相關