Sponsored by Deepsite.site

Aegis

Created By
fuwasegua month ago
A deterministic context compiler for AI coding agents. Aegis replaces RAG with a Directed Acyclic Graph (DAG) to strictly enforce software architecture and reduce token consumption by up to 12x.
Overview

Aegis: The Deterministic Context Compiler for AI Agents

As codebases grow, AI coding agents (like Cursor, Claude Code, and Codex) struggle to find the right architectural guidelines. Traditional RAG (Retrieval-Augmented Generation) suffers from a "semantic gap"—searching for feature keywords often fails to retrieve abstract architectural rules or domain models. This leads to poor code quality, hallucinated architectures, and massive token waste as agents endlessly grep through repositories.

Aegis solves this by shifting the paradigm from "probabilistic search" to **"deterministic compilation." **Instead of relying on vector embeddings, Aegis uses a Directed Acyclic Graph (DAG) backed by SQLite to map file paths and layers directly to your Markdown documentation. When an agent plans to edit a specific file, Aegis deterministically traverses the dependency graph and compiles the exact architectural context required for that specific task.

# 🛡️ Key Features

  • Deterministic Context Routing: Say goodbye to AI hallucinations. Aegis maps file paths (e.g., app/UseCases/**) to specific guidelines. Same input, same context. 100% reproducible.

  • Transitive Dependency Resolution: If usecase_guidelines.md depends on entity_guidelines.md, Aegis automatically resolves the edges and fetches both. It feeds the AI exactly what it needs, nothing more.

  • Dual Surface Architecture (Agent vs. Admin): Strict separation of concerns. The agent surface provides read-only context and allows agents to report missing rules. The admin surface is reserved for humans to review and approve knowledge base updates.

  • Human-in-the-Loop Knowledge Evolution: Agents can self-review and trigger aegis_observe if they lack context. Aegis proposes DAG updates based on these observations, but canonical knowledge is only updated upon human approval.

  • Massive Token Efficiency: By directly injecting the correct context, Aegis eliminates the hidden costs of agent exploration. In real-world benchmarks, it reduced token consumption by 12x and improved response times by 3.5x.

  • Optional Local SLM Expansion: Opt-in to the built-in node-llama-cpp engine (Qwen) to extract intent tags from the agent's plan, providing semantic context expansion without compromising the deterministic core.

Stop searching. Start compiling. Aegis acts as your automated Tech Lead, aggressively shielding your codebase's integrity by forcing AI agents to read the rules before they write the code.

Server Config

{
  "mcpServers": {
    "aegis": {
      "command": "npx",
      "args": [
        "-y",
        "@fuwasegu/aegis",
        "--surface",
        "agent"
      ]
    },
    "aegis-admin": {
      "command": "npx",
      "args": [
        "-y",
        "@fuwasegu/aegis",
        "--surface",
        "admin"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
WindsurfThe new purpose-built IDE to harness magic
CursorThe AI Code Editor
ChatWiseThe second fastest AI chatbot™
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Playwright McpPlaywright MCP server
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Tavily Mcp
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
Amap Maps高德地图官方 MCP Server