Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -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/<name>.rs`
2. Add `pub mod <name>;` 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`