ArchonCLI is an autonomous AI-powered code architect assistant designed to help developers master complex codebases through deep semantic analysis and a modern terminal interface.
Traditional code assistants often struggle with large-scale projects due to fragmented context. ArchonCLI solves this by combining Semantic Syntax-Aware Indexing with the reasoning power of Google Gemini 3.
- 🧠 Syntax-Aware RAG: Uses Tree-Sitter to understand code structure (functions, classes, types) instead of just raw text.
- 💻 Dual Interface: Choose between a visually rich Interactive TUI (Bubble Tea) or a scriptable CLI (Cobra).
- ⚡ Smart Optimization: Leverage Context Caching to reduce latency and API costs by up to 90%.
- 🛠️ Developer Power Tools:
review: Automated AI code review for staged changes.commit: Generate Conventional Commit messages from your diffs.test: Instant unit test generation for any file.diagram: Generate Mermaid/PlantUML diagrams of your architecture.refactor: Get AI-driven refactoring suggestions or apply them directly.
ArchonCLI provides a beautiful TUI (Terminal User Interface) built with the Charm ecosystem.
ArchonCLI - AI Architect Assistant
──────────────────────────────────
Welcome, Architect. What would you like to do?
> Chat Mode
Index Codebase
AI Code Review
Smart Commit
System Status
...
** Install Automated (Recommended):** You can use the provided installation scripts:
- Linux/macOS:
curl -sSL https://raw.githubusercontent.com/rexreus/archon/main/scripts/install.sh | bash - Windows (PowerShell):
irm https://raw.githubusercontent.com/rexreus/archon/main/scripts/install.ps1 | iexUninstall Automated (Recommended):
- Linux/macOS:
curl -sSL https://raw.githubusercontent.com/rexreus/archon/main/scripts/uninstall.sh | bash - Windows (PowerShell):
irm https://raw.githubusercontent.com/rexreus/archon/main/scripts/uninstall.ps1 | iexManual Build:
go build -o archon ./cmd/archon/main.goRun these commands in your project's root directory:
# Create config file
archon init
# Set your Gemini API Key
archon auth --key "YOUR_API_KEY"Index your codebase to enable semantic search, then start asking:
# Build the vector index
archon index
# Ask away!
archon ask "How is the data flow handled in this project?"Or just run archon to enter the Interactive TUI Mode.
| Command | Description |
|---|---|
index |
Scan and index the codebase (with --watch support). |
ask |
Ask general questions about your project. |
review |
Review staged changes for bugs and best practices. |
commit |
Generate and apply smart commit messages. |
test |
Generate unit tests for specific files. |
refactor |
Analyze and suggest improvements for code. |
explain |
Deep explanation of files or symbols. |
diagram |
Generate architecture diagram code. |
status |
View system health and token usage stats. |
uninstall |
Uninstall ArchonCLI and remove its data. |
- Core: Go (Golang)
- AI Backend: Google Gemini 3
- Vector DB: chromem-go (Pure Go Vector DB)
- Parser: Tree-Sitter (Syntax-aware indexing)
- TUI Framework: Bubble Tea & Lip Gloss
- CLI Framework: Cobra & Viper
Detailed information is available in the docs/ directory:
- 📘 Introduction - Project summary.
- 🌟 Features - Deep dive into functionality.
- 📖 Usage Guide - Command reference and setup.
- ⚙️ Configuration - API Key and settings.
- 🏗️ Architecture - Technical implementation details.
ArchonCLI respects your privacy. The Vector Database is stored locally on your machine. Data sent to Google Gemini is governed by Google's API terms, and we recommend using Vertex AI Endpoints for enterprise-grade security.
ArchonCLI - Empowering Architects with AI Intelligence.