An AI agent CLI built from scratch while learning the underlying concepts.
An educational project that builds a Claude-powered coding agent step-by-step, covering:
- Agent loops and REPL patterns
- LLM API integration (HTTP, streaming, tool use)
- Context management and conversation history
- Tool implementation (file ops, bash, search)
src/
main.rs # CLI and agent loop
api/ # Claude API client
docs/ # Topic writeups for review
export ANTHROPIC_API_KEY=your-key
cargo run # Interactive REPL
cargo run -- "your prompt" # Single commandRun /teach in Claude Code to enter Socratic teaching mode. See TOPICS.md for progress and LEARNING_PLAN.md for curriculum.