Skip to content

Tools

Commander ships with 18 built-in tools (exposed to the LLM by default, out of 48 tool classes available in the codebase) across 8 categories, each designed for production use with caching, error handling, and rollback support.

Filesystem Operations

ToolInternal NamePurpose
readfile_readFile reading with line/offset support
writefile_writeFile creation and overwrite
editfile_editExact string replacement
glob / file_searchfile_searchPattern-based file discovery
grep / file_listfile_listContent search and directory listing

Code Intelligence

ToolInternal NamePurpose
ast_grep_searchcode_searchAST-aware code pattern search
patchesapply_patchApply structured patches to files
refinerefine_codeAI-powered code refinement
fixfix_codeAutomatic code fix suggestions
lsp_diagnosticsLanguage server diagnostics
lsp_symbolsDocument and workspace symbols
lsp_find_referencesReference search across workspace
lsp_renameSafe symbol renaming

Web & Research

ToolInternal NamePurpose
websearchweb_searchReal-time web search
webfetchweb_fetchURL content fetching
browser_searchbrowser_searchBrowser-based web search
browser_fetchbrowser_fetchBrowser-based page rendering
context7_query_docsLibrary documentation queries
context7_resolve_library_idLibrary ID resolution

Code Execution

ToolInternal NamePurpose
bash / shell_executeshell_executeShell execution with sandbox
pythonpython_executeIsolated Python execution
execute_scriptexecute_scriptRun scripts from files

Memory & Persistence

ToolInternal NamePurpose
memory_storememory_storeStore data in persistent memory
memory_recallmemory_recallRecall stored memories by query
memory_listmemory_listList all stored memories
knowledge_searchknowledge_searchRAG knowledge base search (builtin-rag plugin)

Version Control

ToolInternal NamePurpose
gitgitGit operations (status, diff, log, commit)

Media & Analysis

ToolInternal NamePurpose
look_at / vision_analyzevision_analyzeImage/vision analysis
pdf_extractpdf_extractPDF text extraction
screenshotscreenshot_captureScreen capture
lazyweb_*Screenshot similarity search

Orchestration

ToolInternal NamePurpose
task / agentagentSub-agent delegation (recursive)
a2a_delegatea2a_delegateAgent-to-Agent (A2A) delegation
skillskill_viewDomain expertise loading
metameta_toolMeta-tool for multi-step workflows
verifyverify_answerAnswer format and quality verification
todowriteMulti-step task tracking
questionUser clarification
mcpmcp_tool_adapterMCP server tool integration
sagasaga_toolSaga transaction operations
checkpointcheckpoint_toolCheckpoint management

Production Features

Every tool comes with:

  • SHA-256 result caching — per-tenant key isolation
  • Compensation registry — rollback failed mutation tools
  • Circuit breaker — protect downstream services
  • Step error boundary — skip/retry/abort per tool
  • Tool call repair — automatically fix malformed tool calls
  • Tool output management — structured output parsing and validation
  • DLP scanning — tool inputs scanned for 6 sensitive data patterns (API Key, private key, AWS Key, GitHub Token, JWT, password)

Custom Tools

Implement the Tool interface and register it:

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());

MIT Licensed — Built for multi-agent orchestration.