Skip to content
@context4ai

context4ai

An AI-native platform that extracts and serves codebase architecture knowledge to AI agents for intelligent code understanding and knowledge consumption.

Context for AI: building software engineering context for AI agents

Website · Documentation · 4-minute intro · Demo knowledge site · 中文

About us

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, the core project

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.

Sources flow into Context, which runs on Agent Graph and reads code through Source Graph, and is delivered as knowledge packages, documentation sites and llms.txt for agents

  • 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

Projects

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.

In the enterprise

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.

Company knowledge enters the community Context core through internal Indexers and reaches team chat bots and coding agents through a managed agent platform, on top of code search, a package platform and usage metrics; company names are masked

  • 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.

Benchmarks

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.

Get involved

Start with the Quick Start, ask in GitHub Discussions, and read CONTRIBUTING.md before opening a pull request. All projects are MIT-licensed.

Popular repositories Loading

  1. agent-graph agent-graph Public

    Graph Engineering for Agent Skills: a specification and toolchain for dynamically discovering context and building observable, testable, and recoverable agent workflows.

    TypeScript 18 2

  2. context context Public

    A knowledge workflow for engineering teams and their AI agents: turn code, documents and notes into reviewed, versioned knowledge with traceable evidence.

    TypeScript 10 1

  3. workflow workflow Public

    A Claude Code plugin for knowledge-graph-driven development (KGDD). PRD and Plan as structured Node/Edge/Fact graphs, enabling AI Agents to work with full spec traceability — from user stories to s…

    HTML 4

  4. sourcegraph sourcegraph Public

    Millisecond code search and reading at pinned Git revisions for people, scripts and AI agents, over web, HTTP, MCP and CLI.

    Go 2

  5. nebula-client nebula-client Public

    TypeScript

  6. portal portal Public

    Community portal and knowledge website for Context for AI.

    JavaScript

Repositories

Showing 8 of 8 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…