Lewati ke konten

Perintah

Halaman ini hanya berisi perintah yang dijalankan langsung oleh pengguna. Untuk penyiapan pertama, mulai dari Instalasi.

  • Penyiapan pertama: agent-note init
  • Menghapus Agent Note dari repository: agent-note deinit
  • Memeriksa status: agent-note status
  • Melihat aktivitas terbaru: agent-note log
  • Menampilkan data commit: agent-note show
  • Memahami mengapa satu baris berubah: agent-note why

Menyiapkan Agent Note di repository.

Terminal window
npx agent-note init --agent claude
FlagDeskripsi
--agent <name...>Pilih satu atau beberapa adapter agent: claude, codex, cursor or gemini
--dashboardJuga buat workflow Dashboard bersama
--no-hooksLewati konfigurasi hooks agent
--no-git-hooksLewati instalasi Git Hooks
--no-actionLewati pembuatan workflow
--no-notesLewati konfigurasi notes auto-fetch
--hooksHanya instal hooks agent
--actionHanya buat workflow

Menghapus hooks dan config Agent Note untuk satu atau beberapa agent.

Terminal window
npx agent-note deinit --agent claude
FlagDeskripsi
--agent <name...>claude, codex, cursor or gemini
--remove-workflowJuga menghapus workflow PR Report dan Dashboard
--keep-notesMempertahankan konfigurasi notes auto-fetch

Menampilkan status pelacakan.

Terminal window
npx agent-note status
agent-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 hooks
session: a1b2c3d4…
agent: cursor
linked: 3/20 recent commits

Menampilkan commit terbaru dengan AI Ratio.

Terminal window
npx agent-note log
npx agent-note log 20
ce941f7 feat: add auth [a1b2c3d4… | 🤖60% | 2p]
326a568 test: add tests [a1b2c3d4… | 🤖100% | 1p]
ba091be fix: update deps

Menampilkan AI Session untuk commit.

Terminal window
npx agent-note show
npx agent-note show abc1234
commit: ce941f7 feat: add JWT auth middleware
session: a1b2c3d4-5678-4abc-8def-111122223333
ai: 60% (45/75 lines) [█████░░░]
model: claude-sonnet-4-20250514
agent: claude
files: 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 signature

Menampilkan konteks Agent Note di balik baris yang berubah.

Terminal window
npx agent-note why src/middleware/auth.ts:42
npx agent-note why src/middleware/auth.ts:42-55
npx agent-note why src/middleware/auth.ts:42:7
npx agent-note why src/middleware/auth.ts#L42
npx agent-note why src/middleware/auth.ts#L42-L55
npx agent-note why src/middleware/auth.ts#L42C7
npx agent-note why @src/middleware/auth.ts#L42
npx agent-note why https://github.com/owner/repo/blob/main/src/middleware/auth.ts#L42
npx agent-note why file:///workspace/repo/src/middleware/auth.ts#L42
npx agent-note why vscode://file/workspace/repo/src/middleware/auth.ts:42:7

Pasang Agent Note Skill untuk meminta tugas ini dengan bahasa natural.

Terminal window
gh skill install wasabeef/AgentNote agent-note --agent codex --scope user

Untuk gh skill install, pilih identifier agent yang sesuai: codex, claude-code, cursor or gemini-cli.