Tools
What the agent can do. Names and fields are the ones other coding agents use (file_path, command, content…),
so rules, logs and habits carry over.
| Tool | What it does | Permission |
|---|---|---|
read |
Reads a file with line numbers; offset and limit for large files (2,000 lines by default). Reads png, jpg, gif and webp as images. |
Read |
write |
Writes a whole file, creating folders as needed. | Edit |
edit |
Replaces an exact string in a file. The string must be unique unless replace_all. edits applies several replacements in order, all or nothing. |
Edit |
bash |
Runs a shell command in the working directory. | Bash |
grep |
Searches file contents with a regular expression; modes files_with_matches, content, count. |
Read |
glob |
Finds files by name pattern, most recently modified first. | Read |
web_fetch |
Fetches a page and returns it as Markdown. | WebFetch |
web_search |
Searches the web. Present only when BRAVE_API_KEY or TAVILY_API_KEY is set. |
WebSearch |
todo |
Keeps the task list of the current work. | none |
task |
Hands a self-contained piece of work to a sub-agent with its own context. | Task |
ask_user |
Asks you a question with a few choices, when the decision is yours. | none |
skill |
Loads the instructions of a skill. Present when skills exist. | none |
exit_plan |
In plan mode: presents the plan for your approval. | none |
mcp__<server>__<tool> |
Tools of the MCP servers you connected. | by name |
Behaviors worth knowing
Parallel calls. When the model asks for several independent things in one response (reads, searches, fetches, sub-agents), they run at the same time. Edits and commands run one by one, in order.
Bounded outputs. A tool result is cut at 2,000 lines or 50 KB. Commands keep their end (where errors are), the
rest keeps its start. The full output is saved under ~/.maxxing-code/tmp/<session>/ and the model is told the
path, so it can read the part it needs.
Commands that last. bash has a timeout (120 s by default, 600 s at most). A command still running at the
timeout is not killed: it moves to the background, keeps running, and its output goes to a log file the agent
can read. run_in_background does this from the start, for servers and watchers. Interrupting the turn (Esc) does
stop a command that is in the foreground.
Edits that miss. If old_string is not found exactly, edit tries once more ignoring indentation and trailing
spaces, and applies the change only if that match is unique. Otherwise it changes nothing and says why.
Files changed behind its back. If a file was modified on disk after the agent read it, write and edit
refuse until it has read the file again.
Search. grep and glob use ripgrep when it is installed (faster,
and it respects .gitignore). Without it, a built-in search does the same job, skipping .git, node_modules
and the usual build folders.
Sub-agents. A sub-agent starts with an empty context and only its prompt; it cannot ask you anything, and only its last message comes back. It shares the permissions of the session (it asks you like the main agent does). Its tokens and cost are counted in the session. See Extending for agent types.
Maxxing Code