From d24e20d8a96a88854b5d9435cfa3b8a8d284ea76 Mon Sep 17 00:00:00 2001 From: Joe McKenney Date: Sat, 31 Jan 2026 10:18:39 -0800 Subject: [PATCH] feat: add minimal claude.md --- CLAUDE.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..dca9bc6 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,31 @@ +# Wake + +Terminal session recorder for AI-assisted development. + +## Architecture + +- **wake-core** - Database, config, manifest, protocol types +- **wake-llm** - Local LLM summarization (Qwen3-0.6B via llama.cpp) +- **wake-cli** - CLI binary (`wake`) +- **wake-mcp** - MCP server binary (`wake-mcp`) + +## Development + +- `cargo build --release` - Build binaries +- `cargo test --all` - Run all tests +- `cargo clippy --all-targets -- -D warnings` - Lint (CI enforces this) +- `cargo fmt --all` - Format code + +## Adding a CLI Command + +1. Create `crates/wake-cli/src/commands/.rs` +2. Add `pub mod ;` to `commands/mod.rs` +3. Add variant to `Commands` enum in `main.rs` +4. Add match arm in `main()` to call the command + +## Conventions + +- Use `anyhow::Result` for CLI commands +- Use `thiserror` for library error types +- Model files go in `~/.wake/models/`, config in `~/.wake/config.toml` +- Workspace dependencies defined in root `Cargo.toml`