Lightweight, heavily optimized coding tool implementations for LLM-powered development agents.
Suitable for server use (<3 MiB), or as building blocks for your own TUI coding agent.
This workspace contains multiple Rust crates for integrating coding tools with LLM agents:
- llm-coding-tools-core: Framework-agnostic core operations and utilities
- llm-coding-tools-agents: OpenCode agent markdown loader and typed catalogue
- llm-coding-tools-serdesai: serdesAI framework-specific Tool implementations
- llm-coding-tools-models-dev: models.dev catalog sync with cached fallback and ETag refresh
- File Operations: Read, write, edit files with line-numbered output
- Search: Glob pattern matching and regex content search
- Shell: Cross-platform command execution with timeout
- Web: URL fetching with HTML-to-markdown conversion
- Path Security: Choose between unrestricted or sandboxed file access
- Context Strings: Embedded LLM guidance for tool usage
- Agent Loading: Parse OpenCode-compatible agent markdown into typed configs
- Model Catalog Sync: Download and cache the models.dev catalog for provider/model lookups
tokio(default): Async mode with tokio runtimeblocking: Sync/blocking mode, mutually exclusive withasync
Pick the crate that matches your use case:
[dependencies]
llm-coding-tools-core = "0.2" # Framework-agnostic tool implementations
llm-coding-tools-agents = "0.1" # OpenCode agent markdown loader
llm-coding-tools-models-dev = "0.1" # models.dev catalog sync and cache
llm-coding-tools-serdesai = "0.2" # serdesAI integrationFor a runnable agent setup, start with llm-coding-tools-serdesai and the
examples below.
# serdesAI framework - Basic agent setup
cargo run --example serdesai-basic -p llm-coding-tools-serdesai
# serdesAI framework - Sandboxed file access
cargo run --example serdesai-sandboxed -p llm-coding-tools-serdesai
# serdesAI framework - Agent catalog loading
cargo run --example serdesai-agents -p llm-coding-tools-serdesai
# serdesAI framework - Task delegation
cargo run --example serdesai-task -p llm-coding-tools-serdesai- llm-coding-tools-core README
- llm-coding-tools-agents README
- llm-coding-tools-serdesai README
- llm-coding-tools-models-dev README
- Developer Guidelines
Contributions are welcome! Please ensure all tests pass and the code follows our guidelines.
Rig framework support (llm-coding-tools-rig) has been removed
(commit 17158db) due to library bugs that prevented examples from running
reliably.
You're welcome to submit a PR re-adding rig support if you're willing to
maintain it. Since I don't use rig personally, I'm not able to actively
maintain that integration. Alternatively, you can create your own crate
building on llm-coding-tools-core directly.
Licensed under Apache 2.0.