WhyCodes is a terminal-oriented coding agent written in Rust, positioned as a fast, provider-independent coding assistant. It can run in a full-screen TUI or in a machine-readable one-shot CLI mode, with core capabilities including reading, writing, and editing files, executing commands, searching the workspace, and driving large language models through multi-turn tool calls.
Key features:
- Fast startup: on Linux, whycodes --version returns in about 1.4 milliseconds.
- Low idle usage: the TUI draws only when content changes, with 0 frames per second for idle sessions; ten idle sessions share 41.9 MB of memory, about 3.1 MB per additional session; resuming a session with 3000 messages uses 34.7 MB.
- Single native binary: no additional installation required, and search runs in-process; on Windows, no WSL is needed, and commands are executed through Git for Windows or an embedded bash-compatible shell.
- Cross-platform: consistent workflows on Linux, macOS, and Windows.
- Any provider: supports Anthropic, OpenAI, Google, GitHub Copilot, Groq, xAI, DeepSeek, Ollama, OpenRouter, Mistral, Together, LM Studio, vLLM, llama.cpp, and other local servers, or any OpenAI-compatible endpoint, switchable per run or within a session.
- Project adaptation: loads project instructions from AGENTS.md and connects to existing MCP tools and language servers via LSP.
- Memory and resumption: persistent sessions can be branched and resumed, with support for cross-session memory (MEMORY.md, semantic recall) and optional code indexing.
Installation methods:
- Linux/macOS install script; Windows install script (adds %LOCALAPPDATA%\Programs\whycodes to the user PATH, no WSL required).
- Homebrew (macOS; Linuxbrew x86_64), requires a fully qualified install to trust the formula.
- Cargo (crates.io): builds the whycodes binary from source (Rust 1.91+) into ~/.cargo/bin; Linux and macOS link the system libsqlite3, can add --features bundled-sqlite for built-in SQLite. Update: use whycodes upgrade (script/cargo install) or brew upgrade whycodes (Homebrew). Interactive TUI sessions check GitHub for new versions and ask on the home page whether to install; use --no-auto-update to skip the check. The install script verifies the SHA256SUMS of release artifacts.
Configuration and sessions are stored in ~/.whycodes (on Windows, %USERPROFILE%.whycodes), or $WHYCODES_HOME. Version 0.6.5 moved configuration and sessions out of the old platform directory; on first launch, if the new directory is empty, config.toml, auth.json, and whycodes.db are copied over, and the old files are retained.
Models can be run locally without an API key. Since v3.8.53, OmniRoute includes whycodes as a built-in CLI agent. Subscription OAuth login (whycodes auth login <provider>) is only available after installing a local kind: "auth" plugin; WhyCodes does not ship third-party OAuth clients. For the full guide (CLI reference, TUI keybindings, slash commands, agents, tools, and configuration), see docs/guide.md.
Performance figures were measured on a Ryzen 7 3800X (Windows 11 native, Linux WSL2) and an Apple M2 MacBook Air; for the methodology and caveats, see docs/benchmarks.md. CI requires workspace line coverage of no less than 98.5%, and the production code line coverage of the twenty-four crates is 100%.
For contribution guidelines, see CONTRIBUTING.md; for coding agent rules, see AGENTS.md; for the code of conduct, see Code of Conduct; for help and bug reports, see SUPPORT.md; report vulnerabilities via SECURITY.md rather than a public issue. Website: why.codes. The project is developed independently and accepts funding through GitHub Sponsors.