Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Tools Overview

Tools are the actions that the agent can perform on your behalf. The LLM decides which tools to call based on your instructions.

Available Tools

ToolPermissionDescription
read_fileReadRead file contents
edit_fileWriteMake string replacements in a file
write_fileWriteCreate or overwrite a file
find_filesReadFind files by glob pattern
search_contentsReadSearch file contents with regex
fetch_urlReadFetch a web page as markdown
web_searchReadSearch the web
execute_commandWriteRun a shell command

Permission Requirements

Tools are grouped by the minimum permission level required:

Read permission (available in read and write modes):

  • read_file, find_files, search_contents, fetch_url, web_search

Write permission (only available in write mode):

  • edit_file, write_file, execute_command

In none mode, no tools are available. The agent can only respond with text.

How Tool Calls Work

  1. The agent receives your instruction and decides which tools to call
  2. For each tool call, agsh checks the current permission level
  3. If permitted, the tool executes and its output is fed back to the agent
  4. The agent may make additional tool calls or respond with text
  5. This loop continues until the agent has no more tool calls to make

Tool calls and their results are displayed in the terminal so you can see what the agent is doing.