Grants LLM the ability to glob, grep, and view files within a directory.
Install this plugin in the same environment as LLM.
llm install llm-tools-readonly-fsTo use this with the LLM command-line tool:
llm --tool ReadonlyFsTools "What test cases are missing?" --tools-debugWith the LLM Python API:
import llm
from llm_tools_readonly_fs import ReadonlyFsTools
model = llm.get_model("gpt-4.1-mini")
result = model.chain(
"What are the main classes this repository defines?",
tools=[ReadonlyFsTools()],
).text()To set up this plugin locally, first checkout the code. Then install the dependencies and development dependencies:
cd llm-tools-readonly-fs
uv sync --devTo add the plugin to your local LLM installation, in editable mode, run:
llm install -e .To run the tests:
uv run pytest -vTo run linting and formatting:
uv run ruff check --fix
uv run ruff formatMIT License - see LICENSE for details.