Module tools

Module tools 

Source
Expand description

2026-09-26: The six tools the agent loop offers (bash, read, write, edit, glob, grep) and their implementations.

Owner: bench, agentic. Invariants:

  • Every file path a tool call names goes through resolve.
  • A bash call’s time limit is at most AgentConfig::command_timeout.

Functions§

execute
2026-09-26: Run one model-issued tool call. Each bash command is appended to commands, which score::followed_directions reads.
glob_match
2026-09-26: * (within one path segment), ** (across segments), ?. A pattern with no / is matched against the basename.
tool_schema
2026-09-26: The tool definitions sent with every request.