Context Graph

•

Preserve architectural intent, rules, and decisions in git while enforcing contextual understanding for AI coding agents before every edit.

Context Graph is an engineering context management plugin and MCP server for AI coding tools like Claude Code and Codex. It bridges the gap between local code edits and overarching architectural intent by maintaining a lightweight knowledge graph of modules, constraints, and decisions directly in git. Context Graph monitors the context an agent acquires, refuses edits if essential dependencies or file cards haven't been sufficiently read, and requires agents to document rationale for their modifications. By closing the context loop around every code change, it prevents architectural drift and eliminates the need for successive AI sessions to rediscover institutional knowledge.

Características Principales

01Injects relevant architectural rules, concepts, and decision history before file edits
02Tracks agent context acquisition, including full reads, grep views, and uninspected callers
03Enforces contextual prerequisites by blocking edits on unread or uncarded files
04Maintains version-controlled file cards and architecture decision records in git
05Integrates seamlessly with Claude Code, Codex, and CI pipelines for automated policy gating
060 GitHub stars

Casos de Uso

01Preventing coding agents from breaking unwritten domain rules, money rounding logic, or module boundaries
02Auditing and verifying that automated code edits were informed by necessary dependencies rather than blind guesses
03Onboarding multi-agent or sequential AI sessions with shared, persistent architectural rationale