claude-code-rust  by lorryjovens-hub

AI development toolchain optimized for speed and size

Created 1 week ago

New!

1,282 stars

Top 30.7% on SourcePulse

GitHubView on GitHub
Project Summary

Summary This project offers a high-performance, lightweight implementation of the Claude Code toolchain, completely rewritten in Rust. It addresses the performance and size limitations of the original TypeScript version, delivering substantial gains in speed, binary size, and memory efficiency. It targets developers and power users seeking a robust, native AI development toolchain with minimal dependencies and enhanced reliability.

How It Works The core approach involves a complete rewrite in Rust, leveraging native compilation for superior performance (2.5x faster startup, up to 25x faster command execution) and Rust's memory safety guarantees to eliminate runtime errors and GC pauses. The architecture is designed for zero runtime dependencies, drastically reducing the deployment footprint to a ~5MB single binary and ~20MB Docker image, compared to the original's ~164MB.

Quick Start & Requirements

  • Requirements: Rust 1.75+ and Git.
  • Installation: Recommended via platform-specific scripts (scripts/install-windows.ps1, scripts/install-linux.sh) or manual compilation (cargo build --release).
  • Configuration: API keys and base URLs are configurable via command line, environment variables, or .env file. Installation details are in INSTALL.md.

Highlighted Details

  • Performance: Achieves 2.5x faster average startup (63ms vs 158ms) and up to 25x faster command execution, with sub-millisecond REPL response times.
  • Size Reduction: Single executable binary is ~5MB (97% reduction from ~164MB original); Docker images are ~20MB (96% reduction).
  • Memory Efficiency: Base memory usage is ~10MB, peak ~25MB, with zero GC pauses.
  • Feature Parity: Maintains 100% functional compatibility with the original toolchain, including CLI, REPL, MCP server, plugin system, and advanced features.

Maintenance & Community The project is actively maintained, with ongoing development for features like API streaming optimization and planned additions such as a GUI version. Contribution guidelines are provided, with community interaction encouraged via GitHub Issues and Discussions.

Licensing & Compatibility Distributed under the permissive MIT License, allowing for commercial use and integration into closed-source projects without significant restrictions.

Limitations & Caveats While aiming for full compatibility, some advanced features like API streaming optimization are still in progress. Planned features include WebAssembly support and a GUI version, indicating areas for future development. The project is not explicitly marked as alpha or beta.

Health Check
Last Commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
5
Issues (30d)
19
Star History
1,321 stars in the last 11 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems") and Elvis Saravia Elvis Saravia(Founder of DAIR.AI).

DeepCode by HKUDS

0.6%
15k
AI agents transform ideas into production-ready code
Created 11 months ago
Updated 1 month ago
Feedback? Help us improve.