Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A lightweight, high-performance AI/RAG workspace and autonomous agent framework implemented in Go. Inspired by the Leann RAG backend architecture
Fetched from the repository for this visit.
High-performance local AI workspace, codebase intelligence, and persistent cross-session memory for AI coding agents and terminal power users.
Single Go binary (~34MB). Zero Python virtual environments, zero Docker required. Everything runs locally on your machine.

# Go install (Recommended)
go install github.com/tevfik/gleann/cmd/gleann@latest
# Or One-Liner (Linux & macOS) — installs the lite build
curl -sSfL https://raw.githubusercontent.com/tevfik/gleann/main/scripts/install.sh | sh
# With bitllm.c local embeddings, FAISS and the tree-sitter parsers
curl -sSfL https://raw.githubusercontent.com/tevfik/gleann/main/scripts/install.sh | GLEANN_VARIANT=full sh
GLEANN_VARIANT | Includes | Platforms |
|---|---|---|
lite (default) | pure Go, with the code graph (Go calls; declarations for other languages); no bitllm.c, FAISS or tree-sitter | all |
eif | + bitllm.c local embeddings (EIF runtime) | linux-amd64, linux-arm64, darwin-arm64 |
full | + bitllm.c, FAISS, tree-sitter parsers (call graph of non-Go languages) | linux-amd64, linux-arm64, darwin-arm64 |
Later, update gleann and its plugins from the latest GitHub release:
gleann update --check # is a newer release available?
gleann update # replace this binary (checksum-verified when the release has SHA256SUMS)
gleann plugin update # update installed plugins (e.g. docs) the same way
# Index a codebase with AST call-graph intelligence
gleann index build my-code --docs ./src --graph
# Index documents, PDFs, or Markdown notes
gleann index build my-docs --docs ./documents
# Auto-configure all detected AI tools (Cursor, Claude Code, Windsurf, Zed, etc.)
gleann install
Now ask questions, search semantically, or let your AI editor use Gleann over MCP:
# Semantic search
gleann search my-code "auth middleware rate limiting"
# RAG Q&A directly in your terminal
gleann ask my-code "How are database migrations handled?"
Choose your workflow to see how Gleann accelerates your engineering:
Connect Gleann directly to Claude Code, Cursor, Windsurf, Cline, Zed, JetBrains, or Neovim.
gleann install to automatically register the Model Context Protocol (MCP) server across 17+ AI platforms.gleann_gain reports the tokens saved by gleann_shell and gleann_read since the MCP server started.Vector search alone misses function calls, callers, and dependencies. Gleann combines vector search with an AST code graph stored in the index's own SQLite database (every build, including the pure-Go one).
gleann graph callers <symbol>.gleann graph explain <symbol>.Extract complex multi-page documents, PDFs, and spreadsheets without losing table structure.
Give your AI coding assistant institutional memory that survives terminal restarts.
gleann memory remember "Database migrations must always use snake_case" --tag convention
gleann memory search "architecture"
gleann memory context
Work directly from your shell without leaving the keyboard.
gleann chat my-code). /index picks which indexes and tags to search, @symbol attaches a definition from the code graph. --classic selects the old interface.git diff | gleann ask my-code "Review changes").gleann ask docs,code "How does auth work?").Running gleann install auto-detects and installs configuration for:
| Platform | Integration Type | Supported Features |
|---|---|---|
| Claude Code | SessionStart Hook + CLAUDE.md | MCP Tools + Auto Memory Injection |
| Cursor | .cursor/rules + MCP Config | Semantic Code Search + Full Documents |
| Windsurf | .windsurf/rules + MCP Config | Graph Traversal + Impact Analysis |
| Cline / Roo Code | .clinerules + MCP Config | File Maps + AST Breadcrumbs |
| Zed | settings.json MCP | Fast Codebase Retrieval |
| Neovim | Avante / CodeCompanion MCP | In-editor RAG & Context |
| JetBrains | .junie/guidelines.md + MCP | Multi-Index Knowledge Retrieval |
| Gemini CLI / Codex | Agent Hooks + Config | Shell Compression + Token Gain |
| Aider / OpenClaw | Skills + System Prompt | Long-Term Memory Recall |
gleann index build my-code --docs ./src --graph # Index source code with call graph
gleann index build my-docs --docs ./docs # Index technical documentation
gleann index list # List all indexes, status, and tags
gleann index migrate my-docs # Convert an index built by gleann v1.9 or earlier (see docs/releases/v1.20.0.md)
gleann index watch my-code --docs ./src --graph # Auto-sync index on file changes
gleann search my-code "connection pool timeout" # Fast semantic search
gleann search my-code "connection pool timeout" --rerank # Search with cross-encoder reranking
gleann ask my-code "Explain how auth tokens are verified" # RAG Q&A with local/cloud LLM
gleann ask docs,code "How to configure SSL?" # Multi-index federated query
gleann graph callers "HandleRequest" --index my-code # Find all callers of a symbol
gleann graph deps "HandleRequest" --index my-code # Downstream dependencies
gleann graph explain "HandleRequest" --index my-code # Full blast radius context
gleann memory remember "JWT secrets are rotated every 90 days"
gleann memory search "rotation"
gleann install # Auto-configure AI editors
gleann token create ci --scope query # API token for the REST server (gleann serve prints the admin token path)
gleann index storage # Show / switch vector storage (store | recompute)
gleann mcp # Launch stdio MCP server
gleann completion bash # Generate shell completion (bash, zsh, fish)
gleann tokens ./src # Estimate token consumption across read modes
gleann covers a lot of ground. This table says what is measured in CI on every change and what is still young.
| Area | Status | Notes |
|---|---|---|
| Index build and sync, hybrid search (HNSW, DiskANN, FTS5), metadata filters | Core | Recall gate (bench/vectordb/gate) and retrieval quality gate (internal/quality) run in CI |
Code graph (Go AST; other languages with -tags treesitter) | Core | Stored in the index's SQLite database |
| MCP server, CLI, REST API | Core | |
| Long-term memory (blocks, tiers, failure memory) | Core | Retrieval floor and duplicate merge measured on a small evaluation set |
| A2A protocol | Experimental | Single-turn tasks only, no streaming; multi-turn is RFC 007 |
| Multimodal (images, audio, video) | Experimental | Needs an external multimodal model or plugin; not covered by the quality gates |
Web UI (gleann serve) | Experimental | Settings, chat and graph views; the CLI and TUI are the main interfaces |
FAISS backend (-tags faiss), Rust core (-tags native) | Optional builds | Not in the release binaries' default path |
Experimental features work, but their interfaces may change between minor versions.
Contributions are welcome! Please check CONTRIBUTING.md for development setup.
Licensed under the MIT License.
GitHub checked 40h ago - refresh overdue. Recently viewed repositories target hourly refresh.