SingularRAG

•

Provides a Rust-powered code, ontology, and knowledge map to give coding agents compact context and humans a visual representation of agent interaction.

SingularRAG creates a comprehensive map of your codebase, indexing it with tree-sitter into SQLite and ranking symbols using personalized PageRank. It then serves a token-budgeted, relevant context map to coding agents like Claude Code, Codex, or Copilot via MCP. Every agent retrieval is meticulously recorded and visualized, allowing developers to see exactly what information the agent was provided, what it missed, and the rationale behind it, fostering transparency and improved collaboration.

Características Principales

01Retrieval Provenance UI: Provides an interactive web UI (`singularrag serve`) to visualize every agent retrieval, showing served, cut, or untouched symbols with reasons.
02Codebase Indexing & Mapping: Indexes code with tree-sitter into SQLite, generates a code/ontology/knowledge map, and ranks symbols with personalized PageRank.
03Local LLM Integration: Uses local Ollama models for semantic search and entity extraction from documents, enhancing the knowledge map's depth.
04Agent Context Provision: Serves a token-budgeted, relevant map context to coding agents (Claude Code, Codex, Copilot) over MCP.
05Agent-Developer Feedback Loop: Allows agents to leave notes on files/symbols and developers to pin/exclude elements, influencing future agent retrievals.
060 GitHub stars

Casos de Uso

01Improve the relevance and conciseness of context provided to AI coding agents, reducing token usage.
02Visualize and analyze an AI agent's understanding and interaction with a codebase for debugging or training.
03Navigate and comprehend complex codebases and associated documentation through interactive maps and symbol tracing.