Aller au contenu

Commandes

Utilisez cette page pour les commandes que les utilisateurs exécutent directement. Pour le premier setup, commencez par Installation.

  • Premier setup: agent-note init
  • Retirer Agent Note du dépôt: agent-note deinit
  • Vérifier l’état: agent-note status
  • Parcourir l’activité récente: agent-note log
  • Afficher les données d’un commit: agent-note show
  • Comprendre pourquoi une ligne a changé: agent-note why

Configure Agent Note dans le dépôt.

Fenêtre de terminal
npx agent-note init --agent claude
FlagDescription
--agent <name...>Choisir un ou plusieurs adaptateurs d’agent: claude, codex, cursor or gemini
--dashboardCréer aussi le workflow du Dashboard partagé
--no-hooksIgnorer la configuration des hooks de l’agent
--no-git-hooksIgnorer l’installation des Git Hooks
--no-actionIgnorer la création des workflows
--no-notesIgnorer la configuration de l’auto-fetch des notes
--hooksInstaller uniquement les hooks de l’agent
--actionCréer uniquement les workflows

Supprime les hooks et la configuration Agent Note pour un ou plusieurs agents.

Fenêtre de terminal
npx agent-note deinit --agent claude
FlagDescription
--agent <name...>claude, codex, cursor or gemini
--remove-workflowSupprime aussi les workflows PR Report et Dashboard
--keep-notesConserve la configuration notes auto-fetch

Affiche l’état du suivi.

Fenêtre de terminal
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

Liste les commits récents avec AI Ratio.

Fenêtre de terminal
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

Affiche la Session IA d’un commit.

Fenêtre de terminal
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

Affiche le contexte Agent Note derrière la ligne modifiée.

Fenêtre de terminal
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

Installez le skill Agent Note pour demander ces tâches en langage naturel.

Fenêtre de terminal
gh skill install wasabeef/AgentNote agent-note --agent codex --scope user

Pour gh skill install, choisissez l’identifiant d’agent adapté: codex, claude-code, cursor or gemini-cli.