AI-powered CLI for understanding any codebase through conversation
pip install joomha==1.0.1 Copy PIP instructions
joomha lets you explore an unfamiliar Git repository by asking questions in natural language. It is built on a RAG (Retrieval-Augmented Generation) pipeline with two retrieval engines you can use alone or compare side by side: Vector Retrieval and Graph Retrieval.
Supported languages (parsed with Tree-sitter and Python's ast): Python, JavaScript (.js, .jsx, .mjs, .cjs) and TypeScript (.ts, .tsx).
pip install joomha Requires Python 3.10 or newer.
git clone https://github.com/joomha/Joomha-CLI_AI_Code.git cd Joomha-CLI_AI_Code pip install -e . Quick Start # 1. Save an API key (Gemini is the default provider) joomha config set gemini YOUR_API_KEY # 2. Run inside any Git repository cd /path/to/your/repo joomha On the first run joomha indexes the repository automatically:
The index is stored in a .joomha/ folder inside the repository and is git-ignored automatically.
export GEMINI_API_KEY=your-key-here Option 2: joomha config commands Settings are saved to ~/.joomha/config.json.
joomha config set openai sk-... joomha config use openai joomha config model openai gpt-4o joomha config base-url http://localhost:11434/v1 joomha config set hf_token hf_... # optional, for Hugging Face model downloads joomha config show Command Line Options Option Description joomha Start the interactive session in the current repository joomha --reindex Force a full re-index of the repository joomha -p, --provider Override the provider for this session joomha -m, --model Override the model for this session joomha -v, --version Print the version joomha --provider anthropic --model claude-sonnet-4-6 Interactive Commands Type a question to ask about the code, or use a slash command:
[graph|gemini] ❯ How does the authentication system work? ╭──── joomha [graph] ────╮ │ The authentication... │ ╰─ Mode: graph │ Context: 3 │ Latency: 1.23s ─╯ [graph|gemini] ❯ /mode compare ✓ Mode changed to: compare [compare|gemini] ❯ Explain the request handling flow Available Models The first model of each provider is its default. openrouter and custom accept any model ID.
Question ├── VectorRetriever ── LanceDB cosine search ── Top-5 chunks └── GraphRetriever ── SQLite (AST nodes, edges, co-changes) └── Falls back to VectorRetriever if empty │ ▼ PromptBuilder (identical structure for both modes) │ ▼ LLMClient (Gemini / OpenAI / Anthropic / DeepSeek / ...) │ ▼ Rich Markdown output Project structure joomha/ ├── joomha/ │ ├── cli.py # Entry point, config commands, REPL │ ├── config.py # API keys, providers, model registry │ ├── orchestrator.py # RAG pipeline coordinator │ ├── indexer/ │ │ ├── parsers/ # Language parsers (Python, JS, TS) │ │ ├── ast_parser.py # Parser dispatcher, writes to SQLite │ │ ├── git_analyzer.py # Git history, writes to SQLite │ │ └── vector_builder.py # Chunking and embeddings, writes to LanceDB │ ├── retriever/ │ │ ├── vector.py # Vector similarity retrieval │ │ └── graph.py # Graph retrieval │ ├── llm/ │ │ ├── client.py # Multi-provider LLM client │ │ └── prompt_builder.py │ └── ui/ │ ├── display.py # Rich panels and tables │ └── input_handler.py # prompt-toolkit session ├── joomhalab/ # Research and evaluation variant ├── pyproject.toml └── README.md Tech Stack Layer Library CLI typer, rich, prompt-toolkit Parsing tree-sitter (JS/TS), ast (Python) Git gitpython Embeddings sentence-transformers (all-MiniLM-L6-v2) Vector DB lancedb, pyarrow Graph DB sqlite3 LLM SDKs google-generativeai, openai, anthropic License MIT
ai cli code rag comprehension developer-tools
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




