命令
這一頁只列出使用者直接執行的命令。首次設定請從 安裝 開始。
- 首次設定:
agent-note init - 從儲存庫移除 Agent Note:
agent-note deinit - 檢查狀態:
agent-note status - 查看最近活動:
agent-note log - 顯示 Commit 資訊:
agent-note show - 查看某一行為什麼改變:
agent-note why
agent-note init
Section titled “agent-note init”在儲存庫中設定 Agent Note。
npx agent-note init --agent claude| 參數 | 說明 |
|---|---|
--agent <name...> | 選擇一個或多個 Agent 介接器: claude, codex, cursor or gemini |
--dashboard | 同時建立共享 Dashboard Workflow |
--no-hooks | 跳過 Agent hooks 設定 |
--no-git-hooks | 跳過 Git Hooks 安裝 |
--no-action | 跳過 Workflow 建立 |
--no-notes | 跳過 notes auto-fetch 設定 |
--hooks | 只安裝 Agent hooks |
--action | 只建立 Workflow |
agent-note deinit
Section titled “agent-note deinit”移除一個或多個 Agent 的 hooks 和設定。
npx agent-note deinit --agent claude| 參數 | 說明 |
|---|---|
--agent <name...> | claude, codex, cursor or gemini |
--remove-workflow | 同時刪除 PR Report 和 Dashboard Workflow |
--keep-notes | 保留 notes auto-fetch 設定 |
agent-note status
Section titled “agent-note status”顯示追蹤狀態。
npx agent-note statusagent-note v1.x.x
agent: active (cursor)capture: cursor(prompt, response, edits, shell)git: active (prepare-commit-msg, post-commit, pre-push)commit: tracked via git hookssession: a1b2c3d4…agent: cursorlinked: 3/20 recent commitsagent-note log
Section titled “agent-note log”列出最近提交和 AI Ratio。
npx agent-note lognpx agent-note log 20ce941f7 feat: add auth [a1b2c3d4… | 🤖60% | 2p]326a568 test: add tests [a1b2c3d4… | 🤖100% | 1p]ba091be fix: update depsagent-note show
Section titled “agent-note show”顯示某個 commit 的 AI Session。
npx agent-note shownpx agent-note show abc1234commit: ce941f7 feat: add JWT auth middlewaresession: a1b2c3d4-5678-4abc-8def-111122223333
ai: 60% (45/75 lines) [█████░░░]model: claude-sonnet-4-20250514agent: claudefiles: 3 changed, 2 by AI
src/middleware/auth.ts 🤖 src/types/token.ts 🤖 CHANGELOG.md 👤
prompts: 2
1. Implement JWT auth middleware with refresh token rotation 2. Add tests for expired token and invalid signatureagent-note why
Section titled “agent-note why”顯示某一行背後的 Agent Note 脈絡。
npx agent-note why src/middleware/auth.ts:42npx agent-note why src/middleware/auth.ts:42-55npx agent-note why src/middleware/auth.ts:42:7npx agent-note why src/middleware/auth.ts#L42npx agent-note why src/middleware/auth.ts#L42-L55npx agent-note why src/middleware/auth.ts#L42C7npx agent-note why @src/middleware/auth.ts#L42npx agent-note why https://github.com/owner/repo/blob/main/src/middleware/auth.ts#L42npx agent-note why file:///workspace/repo/src/middleware/auth.ts#L42npx agent-note why vscode://file/workspace/repo/src/middleware/auth.ts:42:7AI Agent Skill
Section titled “AI Agent Skill”安裝 Agent Note Skill 後,可以用自然語言請求這些任務。
gh skill install wasabeef/AgentNote agent-note --agent codex --scope user對於 gh skill install,請依照 Agent 選擇對應的識別碼: codex, claude-code, cursor or gemini-cli。