Skip to Content

Tools

The tools the model can call, and which of them are available in pi mode and in full mode.

Run /tools in a session to see which tools are loaded right now. Pi mode and full mode explains the two modes. MCP tools you configure are available in both.

ToolModeWhat it does
read_filebothReads a text file. In pi mode output stops at 2,000 lines or 50 KB, and you continue with offset. In full mode, files up to 400 lines come back whole, and symbol reads a single function or class
write_filebothCreates a file or overwrites one. Parent folders are created. An existing file must be read first
editbothReplaces exact text. edits takes several changes in one call, and replace_all renames across a file. The file must have been read first
grepbothSearches file contents. Respects .gitignore, finds dotfiles, never reads secrets. files_only returns just the file names
globbothFinds files by name pattern such as src/**/*.ts. Never lists secrets
list_dirbothLists a directory
searchfullRanks files by relevance to a plain-words query. Use it when you don't know where something lives
outlinefullLists the functions, classes and types of a file with line ranges, so you can then read one with read_file(path, symbol='name')
graphbothCode connections computed live from the working tree: find a symbol, trace callers or callees, impact, importers and tests. path, community, neighbors and stats need a graphify snapshot. See Code graph
gitfullRead-only history: status, diff, log, show, blame, find_change, plus scope and patch. Needs no approval. To commit or push, the model uses shell

Running things

ToolModeWhat it does
shellbothRuns a shell command. Every call starts fresh in the workspace root (or cwd), so cd does not carry over. Background commands show up in /jobs
parallel_tasksfullRuns two or more independent coding tasks at once, each in its own git worktree (a separate checkout of the repo). It then merges them in dependency order and runs the project checks. Conflicts are reported, never resolved silently. Only works inside a git repo

Web

ToolModeWhat it does
web_fetchfullFetches a URL and returns the body as text. Cannot reach pages behind a login
web_searchfullReturns titles, URLs and snippets

Planning and memory

ToolModeWhat it does
todosbothA live checklist for long work. Each step is pending, in_progress or done
ask_userbothAsks you to pick from 2 to 4 options when something unknown changes the result and the repo can't answer it
advisorbothAsks a stronger reviewer model for advice. It takes no parameters, forwards the conversation, and refuses small tasks
memoryfullStores and retrieves persistent notes for this workspace
notesfullA durable notebook for a long task that survives compaction, /resume and new sessions
use_skillfullLoads a project playbook, or one section of it. See Skills and agents
recall_resultfullFetches the exact text of an earlier tool result that was cleared or cut short, by its id such as r7. Use offset and limit for long ones

Sub-agents

The read-only codebase_investigator sub-agent is available in both modes. Use it for questions that span many files. It returns file and line evidence. /agents lists the built-in sub-agents (codebase_investigator, planner, code_reviewer, general) and any agent files of yours. See Skills and agents.

Related pages: Safety for which calls need approval, Permissions for allow and deny rules.

On this page