TG

thuongh2/git-mimir

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

21 stars 品質 49 トレンド 10

Mimir is a Go-based code intelligence engine that indexes your repository into a knowledge graph and exposes it to AI agents via MCP, HTTP API, and an interactive web UI.

概要

Mimir is a that indexes your repository into a knowledge graph and exposes it to AI agents via MCP, HTTP API, and an interactive web UI. Mimir builds a searchable knowledge graph of your codebase that helps AI agents (and humans) understand it faster. Pure Go (zero CGO), 8-language support (TS, JS, Go, Python, Rust, Java, C, C++), incremental indexing via git-diff, Louvain community detection, embedded web UI. For detailed installation guide, see docs/installation.md. AI agents get access to 12 tools via MCP: 1. : Use query() for semantic search 2. : Use context() to understand a symbol 3. : Use find_referencing() for a lightweight 1-hop caller list 4. : Use get_symbols_overview() to see what's defined in a file 5. : Run symbol_coordinates() to get the exact location, then impact() for blast radius 6.

README

以下は原文 README の抜粋です。原文を見る。

Mimir — Code Intelligence for AI Agents

Mimir is a Go-based code intelligence engine that indexes your repository into a knowledge graph and exposes it to AI agents via MCP, HTTP API, and an interactive web UI.


What is Mimir?

Mimir builds a searchable knowledge graph of your codebase that helps AI agents (and humans) understand it faster.

Use Case How Mimir Helps
AI Agents (MCP) 7 tools for semantic search, impact analysis, and blast radius queries
Humans (Web UI) Interactive force-directed graph to explore code structure visually
Teams (Refactors) Impact analysis before editing — see what breaking changes affect

Why Mimir?

Metric GitNexus (Node.js) Mimir (Go)
Cold index (1,000 files) ~45s < 8s
Incremental re-index ~45s (full) < 2s
Hybrid search latency ~300ms < 80ms
Binary size 350 MB < 20 MB
RAM during index ~800 MB < 120 MB

Key improvements: Pure Go (zero CGO), 8-language support (TS, JS, Go, Python, Rust, Java, C, C++), incremental indexing via git-diff, Louvain community detection, embedded web UI.


Quick Start

Step 1: Install

# One-line (Linux/macOS)
curl -fsSL https://raw.githubusercontent.com/thuongh2/git-mimir/main/install.sh | sh

# Or via Go
go install github.com/thuongh2/git-mimir/cmd/mimir@latest

# Or download binary from GitHub Releases

Step 2: Index Your Code

# Full index with embeddings (requires ollama or OpenAI)
mimir analyze /path/to/your-project

# Faster — graph + BM25 only (no embeddings)
mimir analyze --skip-embeddings /path/to/your-project

# Skip auto-setup for manual control
mimir analyze --skip-daemon --skip-hooks --skip-skills /path/to/your-project

Step 3: Use It

Option A: Web UI (Humans)

mimir serve
# Open http://localhost:7842

Option B: MCP (AI Agents)

mimir daemon start    # Start background MCP server
mimir setup           # Auto-configure Claude Code, VS Code, Cursor, etc.

Installation

Method Command
One-line (Linux/macOS) `curl -fsSL https://raw.githubusercontent.com/thuongh2/git-mimir/main/install.sh
Go Install go install github.com/thuongh2/git-mimir/cmd/mimir@latest
Download Binary GitHub Releases
From Source git clone && cd git-mimir && make build

For detailed installation guide, see docs/installation.md.


CLI Reference

Command Description
mimir analyze Index repository with auto-setup
mimir serve Start HTTP server + Web UI (default: port 7842)
mimir mcp Start MCP stdio server
mimir daemon start/stop/status Manage background MCP daemon
mimir daemon logs [lines] View daemon logs (default: 30 lines)
mimir list List indexed repositories
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add thuongh2/git-mimir
MCP 初心者?mcpskill.org のガイドから始めましょう →