RAPTORCODE Docs

Reference

Agent tools

The ten tools an agent can call, what each one does, its limits, and how the tool policy treats it.

Agents work through ten tools. Every call is checked by the tool policy before it runs, and any other tool name is denied.

ToolWhat it doesPolicy
read_fileReads a file; with offset and limit, returns numbered line ranges of large filesAllowed (reads are not limited to the workspace)
edit_fileReplaces an exact, unique string, or every occurrence, so edits never rewrite whole filesWrite boundary
write_fileCreates a file or replaces its whole contentWrite boundary
search_filesRegex search across the project, honouring .gitignore and skipping binariesAllowed
find_filesFinds files by glob, such as *.rs or src/**/*.tsAllowed
update_planKeeps a checklist that the REPL and the swarm dashboard show as progressAllowed
list_directoryLists a directoryAllowed
create_directoryCreates a directoryWrite boundary
change_directoryChanges the agent’s working directoryAllowed
run_commandRuns build, test, lint and git commandsShell policy

#run_command

  • Runs the command through sh -c (cmd /C on Windows) after the shell policy has read it.
  • Closes stdin, so a command that prompts fails at once instead of waiting.
  • Stops a command after 120 seconds by default. A call may ask for up to 900 with timeout_secs. On timeout, it stops the whole process group (Unix) or process tree (Windows) and returns the output so far.
  • Returns at most 30 KB of output, keeping the start and the end, and ends the output of a failed command with [exit code N].
  • Returns 2 seconds after the shell exits even when a background process keeps its output open, with a note saying so.

#read_file

Reads regular UTF-8 files only and returns at most about 200 KB per call. Use offset and limit to page through larger files.

#Working the way a developer would

The agent is prompted to verify its work: build, run the tests, read the exit code, fix and run again before it reports. It reads the first of RAPTOR.md, AGENTS.md or CLAUDE.md in the repository as project instructions, which is the best place to tell it how to build and test your project.

The agent’s tools are the same in the REPL, in every swarm agent and in raptor run. What differs is who answers confirmations: you, the dashboard, or --yes.