Grants LLM the ability to glob, grep, and view files within a directory
Project description
llm-tools-readonly-fs
Grants LLM the ability to glob, grep, and view files within a directory.
Installation
Install this plugin in the same environment as LLM.
llm install llm-tools-readonly-fs
Usage
To use this with the LLM command-line tool:
llm --tool ReadonlyFsTools "What test cases are missing?" --tools-debug
With 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()
Development
To set up this plugin locally, first checkout the code. Then install the dependencies and development dependencies:
cd llm-tools-readonly-fs
uv sync --dev
To add the plugin to your local LLM installation, in editable mode, run:
llm install -e .
To run the tests:
uv run pytest -v
To run linting and formatting:
uv run ruff check --fix
uv run ruff format
License
MIT License - see LICENSE for details.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_tools_readonly_fs-0.1.0.tar.gz.
File metadata
- Download URL: llm_tools_readonly_fs-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61a223edfa394336a46c2057598fb66578b551ceade65a98e74e9e7aa53d838e
|
|
| MD5 |
d39786c92851b25b0ca52246f6623806
|
|
| BLAKE2b-256 |
2752c76716164d7ffebf1f5ce74625c79d9909619fee4313b9a8fdf0569c55fd
|
File details
Details for the file llm_tools_readonly_fs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llm_tools_readonly_fs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a6335ddffe386716c5b7b7e1fc73f1ef6cb0c4d6a7941ee9504f111bcdb78cf
|
|
| MD5 |
aac9ba19d51e20971bf7debdbb813111
|
|
| BLAKE2b-256 |
9bd54bf13bea983347e45c9a3ffbf35e0b59c628b432e5f325d95402f117629f
|