Skip to content

Sewer56/llm-coding-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

351 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llm-coding-tools

Crates.io - llm-coding-tools-core Crates.io - llm-coding-tools-agents Crates.io - llm-coding-tools-serdesai Crates.io - llm-coding-tools-models-dev Docs.rs CI

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.

About This Workspace

This workspace contains multiple Rust crates for integrating coding tools with LLM agents:

Features

  • 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

Feature Flags (llm-coding-tools-core)

  • tokio (default): Async mode with tokio runtime
  • blocking: Sync/blocking mode, mutually exclusive with async

Quick Start

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 integration

For a runnable agent setup, start with llm-coding-tools-serdesai and the examples below.

Examples

# 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

Documentation

Contributing

Contributions are welcome! Please ensure all tests pass and the code follows our guidelines.

Deprecation Notice

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.

License

Licensed under Apache 2.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages