Ruchat
Ruchat is a powerful command-line AI chat and agent orchestration tool built on Ollama and ChromaDB. It supports interactive chats, RAG-augmented queries, structured tool calling, multi-agent orchestration (Architect → Worker → Critic → Validator), and direct Chroma vector database operations.
Features
- Single-shot & piped prompts (
ask,pipe) - Interactive TUI chat with full editing, history, undo/redo (
chat) - Multi-agent orchestration with configurable Architect/Worker/Validator/Critic/Librarian teams (including RAG via Chroma)
- Tool calling (calculator, web search, browserless, weather, disk space, custom functions)
- Structured JSON output via
func-struct - Full ChromaDB CLI:
embed,query,search,get,ls,create,modify,fork,delete
- Embedding & retrieval with automatic ID generation and upsert support
- Git integration – AI can commit changes to feature branches
- Configurable model options, streaming, and advanced generation parameters
Installation
-
Prerequisites
- Rust (latest stable)
- Ollama running (
OLLAMA_HOST=localhost:11434 ollama serve) - Optional: ChromaDB (via Docker)
-
Build
-
Run ChromaDB (optional, for RAG/embedding)
Basic Usage
# Simple question
# Pipe input
|
# Interactive TUI chat
# List models
# Multi-agent orchestration (recommended)
Agentic Mode Examples
# Quick team with one model
# Full custom config (JSON)
Chroma Commands
See ruchat --help and subcommand help for all options.
Configuration
- Model options via
--options <JSON|file> - Chroma connection via env vars (
CHROMA_SERVER,CHROMA_TOKEN) or CLI flags - Persistent team/manager state in
ruchat_manager.json - Collection definitions in
db_config.json - Logging:
RUST_LOGcontrols level (e.g.RUST_LOG=debug);RUCHAT_LOG_FORMAT=jsonswitches to newline-delimited JSON events for log aggregators, default is human-readable
Project Status
Version: 0.2.0
Actively developed with focus on:
- Robust error handling and logging
- Improved configuration merging
- Expanded agent orchestration and RAG capabilities
Contributing
Contributions welcome! Please fork the repository and submit a PR.
See TODO.md for planned improvements (error handling, testing, performance, security, etc.) and ROADMAP.md for the longer-term phased plan.
License
MIT License