Website · Documentation · 4-minute intro · Demo knowledge site · 中文
AI agents can read code, run commands and write changes, yet every task starts cold. They search raw repositories again, guess at conventions, and cannot tell whether a document is still current. The knowledge that would help them already exists, spread across code, design documents, chat threads and the memories of the engineers who built the system.
Context for AI builds open-source tools that turn that knowledge into something agents can rely on: knowledge that is written for agents, grounded in its sources, reviewed by the team and kept current as the code moves. We treat knowledge the way engineering teams treat code — sourced, reviewed, versioned, tested and delivered.
Context is a knowledge workflow for engineering teams and their AI agents. It turns code repositories, documents, notes and past agent sessions into reviewed, versioned knowledge in which every claim leads back to its source. Agents read the knowledge first and follow its evidence chain to the original only when they need exact detail.
- Knowledge as an index. Indexer Skills extract what matters from each source into a compact knowledge base, about 1/100 of the source size.
- Evidence you can follow. Every section records its file, line range and revision.
- A workflow, not a summarizer. Planning, review gates, versions and changelogs, so a team can maintain the same knowledge for months.
- Runs in the agents you already use. Claude Code, Codex, Cursor or a team chat bot, through a plugin and a CLI.
npm install -g @c4a/context-cli@latest
context plugin install| Project | What it does |
|---|---|
| context | A knowledge workflow for engineering teams and their AI agents: turn code, documents and notes into reviewed, versioned knowledge with traceable evidence. |
| agent-graph | Graph Engineering for Agent Skills: a specification and toolchain for dynamically discovering context and building observable, testable and recoverable agent workflows. Context's workflow runs on it. |
| sourcegraph | Millisecond code search and reading at pinned Git revisions for people, scripts and AI agents, over web, HTTP, MCP and CLI. Context reads code evidence through it. |
| portal | The community portal and knowledge website, context4ai.org, itself built with Context. |
| benchmark-context-vs-anthropic-wiki | Context vs the knowledge-wiki quickstart from Anthropic's Managed Agents: same corpus, same questions; build and answer cost, time and accuracy. |
Context is in use by R&D teams at several large enterprises. Each runs an internal edition built on the community release: the workflow, knowledge format, review gates and Skills stay the same, and each company connects its own infrastructure on top.
- Agent services. A managed agent platform runs knowledge bots, scheduled updates and run reports.
- IM entry. Engineers ask in team chat and get answers as cards, with links to the evidence.
- Internal Indexers. Extensions for company frameworks, internal documents and data definitions, built on the same Indexer contract as the community Indexers.
- Internal infrastructure. Code search, a knowledge package platform and usage metrics.
Internal editions are converted from each community release, so improvements land in the open first, and company-specific content never enters the community repositories.
| Benchmark | Result |
|---|---|
| Context vs Anthropic Wiki | On the quickstart's 10 published questions, accuracy is level; answering with Claude Haiku, Context is 31% cheaper and about 8.5 s faster per answer. |
| Knowledge Evaluation vs LLM-Wiki | On 24 real developer questions about a production monorepo, more questions fully solved in less than half the time, at about a ninth of the cost. |
Start with the Quick Start, ask in GitHub Discussions, and read CONTRIBUTING.md before opening a pull request. All projects are MIT-licensed.


