SuperAPIAI Directory

muninn

github.com · AI coding

Muninn is a code search and repository knowledge tool for AI coding agents, providing a searchable code index to compatible clients such as Codex and Claude Code via MCP. It supports hybrid search combining semantic retrieval and full-text retrieval, structured relationship search based on name candidates, and storage and querying of repository notes. Muninn can group related Git worktrees into the same repository family, sharing unchanged file versions and embeddings while retaining an independently searchable view for each checkout. Before use, PostgreSQL with the pgvector, Apache AGE, and pgcrypto extensions must be prepared, and the index watcher and MCP connection must be configured; the embedding backend can be either local or a hosted service.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose

Muninn provides code search and repository knowledge capabilities for AI coding agents, connected to Codex, Claude Code, and other compatible clients via MCP (Model Context Protocol). Agents can query where a certain behavior is implemented, obtain relevant source code ranges, and inspect the code before modifying it.

Main capabilities

  • Hybrid search: combines semantic retrieval with full-text retrieval.
  • Structured search: finds along recorded structural relationships and verifies against source code; structural edges are name-based candidates.
  • Git worktree shared index: groups related worktrees into a repository family, sharing unchanged file versions and embeddings while publishing each checkout's own searchable view; searches are performed against the checkout specified by repo or cwd.
  • Repository notes: stores and searches manually curated repository notes.
  • MCP tools: provides search_hybrid, search_fulltext, search_semantic, search_structural, as well as record_knowledge, search_knowledge, list_knowledge, delete_knowledge.

Usage

PostgreSQL with the pgvector, Apache AGE, and pgcrypto extensions is required; run the index watcher and establish an MCP connection. The embedding backend supports local and hosted options; hosted Voyage/OpenAI embeddings send selected source code chunks and query text to the provider. The CLI, watcher, and MCP server can be built with Nix, e.g. nix profile add github:kamysh/muninn#muninn installs only the binaries and does not create a database or service; then configure the database, embeddings, watcher, and MCP client according to Getting started. For installation agents, refer to AGENTS.md. Repository registration is an explicit operation; a low-cost inventory can be done first to select important files; enabled repository families automatically discover related worktrees and share configuration, and non-Git standalone directories can also be registered.

Applicable scenarios

Suitable for AI coding workflows that repeatedly look up implementations in large codebases, understand behaviors and relationships, and reuse repository decision knowledge, as well as multi-branch worktree scenarios to avoid duplicating the full chunk/vectorindex for each branch.

Limitations

Search results are evidence that needs to be inspected, not compiler-verified answers; full-text search is tokenized. During merges, rebases, or when unresolved conflicts exist, Muninn retains the last completed index and does not index temporary conflict content. The database and processes can run locally; a remote PostgreSQL stores the index outside the machine; MCP returns source code excerpts to the selected agent client, whose model and data settings apply. A local index by itself cannot make a cloud agent session offline. Installation or upgrades should use three matching binaries. status, pause, resume, and remove use the registered locator shown by status; remove deletes the code index of the entire registered repository family. New repositories snapshot the global family settings at creation time, and later global changes do not follow. Muninn and Mimir can run independently or share the same compatible PostgreSQL instance (using separate roles and databases). Version 1.4.1, licensed under the Apache License 2.0.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools