Salta ai contenuti

Comandi

Questa pagina mostra i comandi che gli utenti eseguono direttamente. Per il primo setup parti da Installazione.

  • Primo setup: agent-note init
  • Rimuovere Agent Note dal repository: agent-note deinit
  • Verificare lo stato: agent-note status
  • Controllare l’attività recente: agent-note log
  • Mostrare i dati di un commit: agent-note show
  • Capire perché una riga è cambiata: agent-note why

Configura Agent Note nel repository.

Terminal window
npx agent-note init --agent claude
FlagDescrizione
--agent <name...>Scegli uno o più adapter agent: claude, codex, cursor or gemini
--dashboardCrea anche il workflow della Dashboard condivisa
--no-hooksSalta la configurazione degli hook dell’agent
--no-git-hooksSalta l’installazione dei Git Hooks
--no-actionSalta la creazione dei workflow
--no-notesSalta la configurazione di notes auto-fetch
--hooksInstalla solo gli hook dell’agent
--actionCrea solo i workflow

Rimuove hook e configurazione di Agent Note per uno o più agent.

Terminal window
npx agent-note deinit --agent claude
FlagDescrizione
--agent <name...>claude, codex, cursor or gemini
--remove-workflowRimuove anche i workflow PR Report e Dashboard
--keep-notesMantiene la configurazione notes auto-fetch

Mostra lo stato del tracciamento.

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

Elenca commit recenti con 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

Mostra la sessione AI di un 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

Mostra il contesto Agent Note dietro una riga modificata.

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

Installa lo Skill Agent Note per chiedere queste attività in linguaggio naturale.

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

Per gh skill install, scegli l’identificatore agent corretto: codex, claude-code, cursor or gemini-cli.