# Tech Stack ## Core Technologies - **Language:** Rust (Edition 2024, v1.91+) - **Architecture:** Modular Workspace with specialized crates for UI, Core Agent, LLM Providers, Platform Services, and Tools. - **Dependency Management:** Cargo (Rust's package manager). ## Crates & Components - **Frontends:** - `crates/app/cli`: Command-line interface. - `crates/app/ui`: Terminal User Interface (TUI). - **Core Agent:** - `crates/core/agent`: The primary orchestration engine for the AI agent. - **LLM Providers:** - `crates/llm/anthropic`: Integration with Anthropic's Claude models. - `crates/llm/openai`: Integration with OpenAI's models. - `crates/llm/ollama`: Integration with local models via Ollama. - **Platform Services:** - `crates/platform/auth`: Authentication logic. - `crates/platform/config`: Configuration management. - `crates/platform/credentials`: Secure credential storage and retrieval. - `crates/platform/hooks`: Plugin hook system. - `crates/platform/permissions`: Permission and safety system. - `crates/platform/plugins`: Plugin management. - **Functional Tools:** - Specialized tools in `crates/tools/` for `bash` execution, `fs` (filesystem) operations, `web` search/fetch, `notebook` interaction, `plan` management, and more. - **Integration:** - `crates/integration/mcp-client`: Client for the Model Context Protocol (MCP).