Product Knowledge Graph for AI Agents
Give GitHub Copilot and any AI coding agent deep, structured understanding of your product — specs, services, decisions and workflows — in a queryable graph.
npx @cortex-context/cli@latest init
Every piece of product knowledge maps to one of four universal concepts, giving AI agents a structured map of your entire codebase.
A TypeScript CLI that wires your workspace to the knowledge graph in three phases: local Docker stack, MCP server config, and a git hook for automatic sync on every commit.
git diff HEAD~1,
auto-extracts
spec_ref from the
branch name, and ingests the diff into the graph. Called
automatically by the hook.
sync
reads the branch name, extracts the spec ID from the
feature/NNN-slug
convention, and writes a
(:Commit)-[:IMPLEMENTS]->(:Spec)
edge automatically.
ingested_at
and
valid_from
— know when the data was added and when the spec was
written.
Product-agnostic and open. Plug it into the tools your team already uses.
Three commands to a working knowledge graph.
Stop pasting context into chat. Build a live knowledge graph your AI agents can actually query.