ExpertVagabond

Claude Agent Rs — Development skill for Claude Code

Development community

Rust-native Claude Code alternative — 5.4MB binary, $0 on Max, 8 tools, MCP client, semantic compaction, 19-event hooks.

How to install Claude Agent Rs

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ExpertVagabond/claude-agent-rs and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Agent Rs does

Rust-native Claude Code alternative — 5.4MB binary, $0 on Max, 8 tools, MCP client, semantic compaction, 19-event hooks. Built before the leak.

Alternatives in Development

  • Open Agent SDK TypeScript — Agent-SDK without CLI dependencies, as an alternative to claude-agent-sdk, completely open source 2.6k ★
  • Claude Code Rust — 🚀 Rust 全量重构的 Claude Code - 性能提升 2.5x,体积减少 97% High-performance Rust implementation of Claude Code with 2.5x f 1.4k ★
  • OpenSquirrel — For people who get distracted by agents 1.3k ★

README

claude-agent-rs

[![Crates.io](https://img.shields.io/crates/v/claude-agent-rs.svg)](https://crates.io/crates/claude-agent-rs) [![docs.rs](https://docs.rs/claude-agent-rs/badge.svg)](https://docs.rs/claude-agent-rs) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

A lightweight Rust binary that runs Claude as a full coding agent. Uses your Max subscription for $0 API costs, or pay-per-token via the API.

Install

cargo install claude-agent-rs

Or build from source:

git clone https://github.com/ExpertVagabond/claude-agent-rs.git
cd claude-agent-rs
cargo build --release
./target/release/claude-agent

Requirements

  • Rust 2021 edition (for building)
  • One of:
    • claude CLI installed + Claude Max subscription (CLI backend, $0)
    • ANTHROPIC_API_KEY + AGENT_BACKEND=api (API backend, pay-per-token)

Usage

Interactive REPL

$ claude-agent
  claude-agent v0.8.0 (Rust)
  claude-opus-4-6 · backend: cli (Claude Max)
  8 tools · no MCP servers

❯ write a fizzbuzz in Rust, compile it, run it
  ▸ write: /tmp/fizzbuzz.rs
  ✓ File written
  ▸ bash: rustc /tmp/fizzbuzz.rs -o /tmp/fizzbuzz && /tmp/fizzbuzz
  ✓ 1, 2, Fizz, 4, Buzz...

One-shot mode

claude-agent -p "list all TODO comments in this project"

CLI options

claude-agent                     Start interactive REPL
claude-agent -p "prompt"         One-shot mode (run and exit)
claude-agent [directory]         Start REPL in directory
claude-agent --resume        Resume a previous session
claude-agent --auto-route        Auto-select Opus vs Haiku by complexity
claude-agent --system-prompt "…" Override the system prompt
claude-agent --help              Show help
claude-agent --version           Show version

Built-in Tools

Tool Description
bash Execute shell commands with timeout
read Read files with line numbers
write Create or overwrite files
**ed