mufeedvh /
code2prompt
A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
94/100 healthLoading repository data…
Yalemu12 / repository
A command-line AI coding assistant built in Rust. It connects to an LLM via OpenRouter, sends user prompts, and autonomously executes tools (read files, write files, run shell commands) in an agent loop until the task is complete.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Built Your Own AI Coding Assistant
A command-line AI coding assistant built in Rust.
It connects to an LLM via OpenRouter, sends user prompts, and autonomously executes tools (read files, write files, run shell commands) in an agent loop until the task is complete.
User prompt
│
▼
┌──────────────────────────────────┐
│ Agent Loop │
│ │
│ 1. Send messages to LLM │
│ 2. LLM responds with either: │
│ • Tool calls → execute them, │
│ append results, loop back │
│ • Text → print and exit │
└──────────────────────────────────┘
The program maintains a conversation history (messages array) that accumulates
user prompts, assistant responses, and tool results. Each loop iteration sends
the full history to the LLM so it retains context across multiple steps.
The assistant exposes three tools to the LLM via the OpenAI-compatible function-calling API:
| Tool | Description | Parameters |
|---|---|---|
| Read | Read and return the contents of a file | file_path (string) |
| Write | Write content to a file (creates or overwrites) | file_path (string), content (string) |
| Bash | Execute a shell command and return stdout + stderr | command (string) |
When the LLM includes tool_calls in its response, the program executes each
one, appends the result as a "role": "tool" message, and loops back to let
the LLM decide what to do next.
Clone the repository:
git clone <your-repo-url>
cd codecrafters-claude-code-rust
Set your API key:
export OPENROUTER_API_KEY="your-key-here"
Optionally override the base URL (defaults to https://openrouter.ai/api/v1):
export OPENROUTER_BASE_URL="https://your-custom-endpoint.com/v1"
Run the assistant with the -p (or --prompt) flag:
./your_program.sh -p "Your prompt here"
The first run compiles the project (may take a minute). Subsequent runs are fast.
# Ask a question (no tools needed)
./your_program.sh -p "Explain what a borrow checker is"
# Read a file
./your_program.sh -p "Read README.md and summarize it"
# Write a file
./your_program.sh -p "Create a file called hello.txt containing 'Hello, World!'"
# Run a shell command
./your_program.sh -p "List all Rust source files in this project"
# Multi-step task (agent loop with multiple tool calls)
./your_program.sh -p "Read Cargo.toml, then create a summary.txt listing all dependencies"
codecrafters-claude-code-rust/
├── src/
│ └── main.rs # Application entry point and agent loop
├── Cargo.toml # Dependencies and project metadata
├── Cargo.lock # Locked dependency versions
├── your_program.sh # Local build-and-run script
├── codecrafters.yml # CodeCrafters config (Rust version, debug flag)
├── .codecrafters/
│ ├── compile.sh # Remote compilation script
│ └── run.sh # Remote execution script
└── README.md
| Crate | Purpose |
|---|---|
| tokio | Async runtime for non-blocking I/O |
| async-openai | OpenAI-compatible API client (with byot for raw JSON requests) |
| clap | CLI argument parsing via derive macros |
| serde_json | JSON serialization and deserialization |
clap)The program accepts a single required argument --prompt / -p parsed into an
Args struct using clap's derive API.
async-openai)An OpenAIConfig is configured with the OpenRouter base URL and API key, then
used to create a Client. The create_byot method sends raw JSON payloads,
allowing full control over the request body including tool definitions.
The core loop in main():
messages array to the LLMmessagestool_calls in the response:
"role": "tool" messages, continues the loopTools are dispatched by name. Each tool:
codecrafters submit
Test output will stream to your terminal.
| Variable | Required | Default | Description |
|---|---|---|---|
OPENROUTER_API_KEY | Yes | — | Your OpenRouter API key |
OPENROUTER_BASE_URL | No | https://openrouter.ai/api/v1 | API base URL |
Selected from shared topics, language and repository description—not editorial ratings.
mufeedvh /
A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
94/100 healthguywaldman /
Command line utility to make you a magician in the terminal
80/100 healthmihaigalos /
🎯 A command line download/upload tool with resume.
srothgan /
A native Rust terminal interface for Claude Code
86/100 healthmajidmanzarpour /
workspace-cli is a Rust-based command-line tool designed to provide programmatic access to Google Workspace APIs with structured JSON output optimized for AI agent consumption. Built for speed, efficiency, and deterministic execution.
65/100 healthwildcard /
caro: fast Rust CLI that turns natural‑language tasks into a safe POSIX command. Built for macOS (MLX/Metal) with a built‑in model; supports vLLM/Ollama/LM Studio. JSON‑only output, safety checks, confirmation, multi‑step goals, devcontainer included.
70/100 health