cape.agent.skills.fileread: LLM-driven reading of repo files¶
This module defines the built-in agent skill "file-reader", which
teaches the CAPE agent how to read any text file in the repo in which
the agent is launched, subject to a file-size limit of about 2 MB
(MAX_READ_BYTES). Editing files is deliberately out of scope here;
it is restricted by the allow-list of the file-editor skill (see
cape.agent.skills.fileedit).
The skill provides one tool:
read_file(): read a file with line numbers, truncating large files to their first and last lines
This module also hosts the path-resolution helpers
get_rootdir() and resolve_fname(), which are shared with
cape.agent.skills.fileedit.
Every tool resolves any symlinks in the target file’s path and rejects files outside the repo root folder.