Quad Harness
0.2.0Download

Docs The agent

Tools

The agent's built-in tools by pack, how they load on demand so they cost few tokens, how long output is handled, and notable tools such as tool_output.

5 min read

Tools are how the agent acts. Quad Harness ships well over a hundred built-in tools, grouped into packs, and you can add more with MCP servers, plugins and script tools.

To see every tool the agent has right now, open Settings → Tools and connections → Tools. The list is grouped and shows a count.

Tools load on demand

Sending the full description of a hundred tools with every request would fill the context window before you say a word. So:

  • A core set of everyday tools is sent in full with every request.
  • Every other tool is listed by name and one line in the agent’s instructions.
  • When the agent needs one, it calls tool_search (search by what it wants to do) or tool_describe (by name). The matching tools are loaded, and from then on they keep their full description in that session.

The core set: read_file, read_files, write_file, edit_file, apply_patch, list_dir, glob, grep, bash, job_output, job_input, job_kill, job_list, web_fetch, web_search, git, run_tests, plan, propose_plan, todo_write, plan_update, skill, subagent, handoff, workflow, list_agents, wait_agent, cancel_agent, send_message, memory_read, memory_write, memory_search, mcp_resources, mcp_read_resource, usage_report, tool_output, compact_context, tool_search and tool_describe.

The packs

Each pack belongs to a feature in Settings → Features. A pack whose feature is off is not offered at all. See Feature switches.

Pack Feature Tools
Files Core read_files, write_many, append_file, apply_patch, delete_path, move_path, copy_path, make_dir, stat_path, chmod_path, symlink, find_files, checksum, archive, extract_archive, diff_files, watch_path, reveal_path
Shell Core package_manager (brew, npm, pnpm, bun, pip, uv, cargo, go, gem), container, ssh, rsync, tmux
Developer tools Developer tools git, gh (the GitHub CLI), run_tests, run_build, run_lint, run_format
Code intelligence Code intelligence repo_map, ast_search, ast_replace, lsp_definition, lsp_references, lsp_hover, lsp_symbols, lsp_diagnostics, lsp_rename
Network Network requests http_request, graphql, download_file, upload_file, dns, web_crawl
Browser Browser browser, browser_navigate, browser_snapshot, browser_act, browser_eval, browser_pdf, browser_network, browser_screenshot
Data Data and databases sqlite, sql_client, json_query, yaml, csv, xml, table
Documents Documents office_doc (Word, Excel, PowerPoint), pdf
Media Images, media and charts image, media, chart
Mac apps Mac apps and services applescript, shortcuts_run, open_target, app_control, clipboard, notification, screen_capture, ocr, ui_automation, window_control, keychain, defaults, spotlight, quicklook, finder_tags, simctl, xcode, codesign_notarize, speech, vision, docs_integrations
Machine System tools process_list, process_kill, env, ports, system_info, disk_usage, launchd, scheduled_task, power
Phones Phones and simulators ios_simulator, android_emulator
Computer Computer use computer
Memory and skills Memory, Skills memory_write, memory_read, memory_search, skill_list, skill_load, skill_create
Script tools Your own tools tool_create, tool_reload

Alongside the packs are the engine’s own tools:

Tools What they do
read_file, write_file, edit_file, list_dir, glob, grep Everyday file work
bash, job_output, job_input, job_kill, job_list Shell commands, including long-running background jobs you can read from and type into
web_search, web_fetch Search the web and read a page as text
plan, todo_write, plan_update, propose_plan Keep the plan the Plan window shows, and put a plan to you in Plan mode
subagent, workflow, handoff, list_agents, wait_agent, cancel_agent, send_message Subagents, parallel work and sub-sessions. See Subagents and sessions.
skill Load a skill. See Skills.
artifact Build and edit live pages. See Artifacts.
dev_server Start, check and stop the dev servers in .quad/launch.json
schedule Create automations. See Memory and automations.
mcp_list, mcp_call, mcp_resources, mcp_read_resource Work with MCP servers
checkpoint_restore List and restore checkpoints
compact_context Summarise the earlier part of the conversation
usage_report How many tokens the session has used
system_resources How the Mac is doing
tool_output Show an earlier result in full
tool_search, tool_describe Find and load tools that are not loaded yet

Notable tools

tool_output

To save tokens, old tool results are shortened in what the model is sent, and repeated results become a pointer to the first one. Nothing is lost: the session log keeps every byte. When the agent needs a shortened result again, it calls tool_output with the call’s id (the note in its place names it). It can page through the output by line (400 lines at a time by default, up to 2,000) and filter lines with grep. See Saving tokens.

system_resources

A read-only tool that reports how the Mac is doing: memory and pressure, swap, processor, disk, heat and battery, the level (calm, strained or critical), what the app has adjusted because of it, its own heaviest processes, and a line of advice. The agent uses it before heavy work, for example to build with fewer jobs at once or to skip starting an emulator. See Running on a small Mac.

bash and background jobs

bash runs a command in the workspace. A long-running command (a dev server, a watcher, a long build) can run as a background job: the agent reads its output with job_output, types into it with job_input, and stops it with job_kill. Jobs show in the Agents and Background runs windows.

How tool calls are handled

Every built-in pack tool gets the same treatment:

  • A time limit. Two minutes unless the tool says otherwise. A call that runs out is answered with an error.
  • Long output is kept whole. Output over 120,000 characters is saved to a file in the data folder (spill/), and the model gets the start, the end and the path, instead of losing the middle.
  • Checkpoints first. Files a tool says it will change are saved before it runs, so you can rewind.
  • Permissions. A tool that changes something follows the session’s permission mode like any other. See Permissions.
  • Hooks. Your pre_tool and post_tool hooks run around every call, including subagents’ calls. See Hooks.

Script tools

A folder with a tool.json and an executable becomes a tool, with no restart:

<workspace>/.quad/tools/<name>/tool.json     tools for this project
<app data>/tools/<name>/tool.json            tools for every project
{
  "name": "test_parser",
  "description": "Run the parser test suite and report failures.",
  "parameters": { "type": "object", "properties": {} },
  "command": "run",
  "mutating": false,
  "timeout": 60
}

The model sees the tool as script__<name>. The executable (here a file called run in the same folder) gets the arguments as JSON on standard input, runs in the workspace, and answers on standard output with plain text or {"output": "...", "is_error": false}. The folders are read again for every request, so a tool you create or edit while the app runs is available at once.

mutating defaults to true: a tool that changes nothing has to say false to skip the approval prompt in Standard mode.

The agent can write script tools itself with tool_create. This is the Your own tools feature.