Skip to content

Tools

Commander expose par défaut 18 tools intégrés au LLM (davantage de classes existent dans le monorepo). Conception production : cache, erreurs, rollback.

Filesystem

ToolNom interneRôle
readfile_readLecture (lignes/offset)
writefile_writeCréation / écrasement
editfile_editRemplacement exact
glob / file_searchfile_searchDécouverte par motif
grep / file_listfile_listRecherche / listage

Intelligence de code

ToolRôle
ast_grep_searchRecherche AST
patchesPatches structurés
refine / fixRaffinement / fix IA
lsp_*Diagnostics, symboles, refs, rename

Web & recherche

ToolRôle
websearch / webfetchSearch & fetch
browser_*Rendu navigateur
context7_*Docs de librairies

Exécution

ToolRôle
bash / shell_executeShell sandboxé
python / execute_scriptExécution isolée

Mémoire & persistance

ToolRôle
memory_store / memory_recall / memory_listMémoire persistante
knowledge_searchRecherche RAG (builtin-rag)

VCS · média

ToolRôle
gitstatus, diff, log, commit
look_at / vision_analyzeVision
pdf_extract / screenshotPDF / capture

Orchestration

ToolRôle
task / agentDélégation sous-agent
a2a_delegateDélégation A2A
skill / meta / verifySkills, meta, vérif
todowrite / questionSuivi / clarification
mcp / saga / checkpointMCP, saga, checkpoint

Fonctions production

  • Cache résultats SHA-256 (isolation tenant)
  • Compensation registry
  • Circuit breaker
  • Step error boundary
  • Tool call repair
  • DLP sur 6 motifs d’entrée

Tools custom

typescript
import { Tool, ToolContext } from '@commander/core';

class MyCustomTool implements Tool {
  name = 'my-tool';
  description = 'Does something useful';

  async execute(context: ToolContext, args: any) {
    return { success: true, data: {} };
  }
}

runtime.registerTool('my-tool', new MyCustomTool());

Workspace monorepo en premier.
CLI : npx tsx packages/core/src/cliEntry.ts

Voir aussi

MIT — Conçu pour l’orchestration multi-agents.