{"repo":"odysa/mini-claw-code","free":true,"listed":false,"github":"https://github.com/odysa/mini-claw-code","clone":"git clone https://github.com/odysa/mini-claw-code.git","description":"Build your own mini coding agent in Rust.","language":"Rust","stars":27,"topics":["agent","ai","ai-agents","rust","claude-code"],"license":"MIT","category":"ai-agents","readme_excerpt":"Mini Claw Code Build a coding agent from scratch in Rust — guided by Claude Code's architecture. Read the Book (EN) &middot; 中文版 (Book) &middot; 中文 README &middot; Quick Start &middot; Chapters --- You use coding agents every day. Ever wonder how they actually work? It's simpler than you think. Strip away the UI, the streaming, the model routing — and every coding agent is just this loop: The LLM never touches your filesystem. It asks your code to run tools — read a file, execute a command, edit code — and your code does . That loop is the entire idea. This book builds that loop from scratch and then grows it into the full architecture of a real coding agent: streaming, permissions, hooks, plan mode, configuration, and more. 18 chapters. Test-driven. No magic. What you'll build A working coding agent that can: - Run shell commands — ls , grep , git , anything - Read, write, and edit files — full filesystem access with surgical find-and-replace - Talk to real LLMs — via OpenRouter (free tier available, no credit card) - Stream responses — SSE parsing, token-by-token output - Search a codebase — glob for files, grep for content - Enforce safety — permission rules, command filters, protected paths - Run user hooks — shell commands before/after tools - Plan before acting — two-phase plan/execute with approval gating - Load project instructions — CLAUDE.md discovery, layered config All test-driven. No API key needed until Chapter 5 — and even then, the default model is free. The c","default_branch":null,"files":null,"tree":[],"storefront":"/r/odysa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/odysa/mini-claw-code/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}