HomeTutorials › Tools: File & Shell
Tools: File & Shell

Reading & Searching Files

#049 0:13 Part of the Rysh video series

Point the agent at your code -- ls, file_read, glob, and grep find anything, no approval required.

Reading & Searching Files — 0:13 walkthrough

What you'll see

  1. Launch rysh in a project; double-Esc to prompt mode.
  2. Prompt: "find all the TODO comments in this project."
  3. Agent uses grep (regex), glob (** patterns), ls, file_read, and tree -- all read-only.
  4. Results render in the pane with no approval prompt.

Commands shown

rysh
find all the TODO comments in this project and list the files

Keys used

EnterEscape

Transcript

0:00Point the agent at your code -- ls, file_read, glob, and grep find anything, no approval required.

0:03Start rysh in a project directory you want to explore.

0:08Double-press Escape to switch to prompt mode and talk to the agent.

0:14Ask it to find all the TODO comments. It reaches for grep with a regex, glob to walk the tree with double-star patterns, and file_read to peek inside. These are read-only tools, so they run without asking for approval.

0:30Behind that single request: ls for quick listings, glob for pattern matching, grep for content search, file_read for contents, and tree for structure -- the agent picks whichever fits, and shows you exactly what it found.

0:42Read and search the whole codebase, just by asking.

Key takeaway
The file-read toolset (ls, file_read, glob, grep, tree) lets the agent explore a whole codebase from a single natural-language request, with no approval needed.