← Back to research
·9 min read·opensource

Context Hub

Context Hub by Andrew Ng gives coding agents curated, versioned API docs via a CLI — solving the hallucinated-API problem. Now 622 doc entries and 13.5k stars three months post-launch, with annotations hardened as untrusted-by-default input.

Key takeaways

  • Andrew Ng's answer to agent API drift — a CLI (chub) that gives coding agents curated, versioned, language-specific documentation instead of relying on stale training data. Grew from 68 APIs at launch to 622 doc entries and 13.5k stars by June 2026.
  • The registry's content focus narrowed to API docs: the README now lists agent skills as a roadmap item rather than a shipped content type, though the SKILL.md-based agent integration still ships with the CLI.
  • The learning loop is the real innovation: agents annotate docs with local notes that persist across sessions, and up/down feedback flows back to doc authors. Annotations are now opt-in (--with-annotations) and treated as untrusted input — a prompt-injection hardening added after launch.
  • Positioned as a community-maintained package manager for agent knowledge — anyone contributes docs via PR, usage signals drive quality. Think npm for API documentation.

FAQ

What is Context Hub?

An open-source CLI tool (chub) from Andrew Ng / DeepLearning.AI that serves curated, LLM-optimized API documentation to coding agents. Instead of hallucinating APIs from training data, agents fetch current, correct docs on demand.

How does Context Hub differ from MCP or skills frameworks?

MCP provides tool execution capabilities. Skills frameworks provide behavioral instructions. Context Hub provides factual reference documentation — the API shapes, parameters, and examples that agents need to write correct code. As of June 2026 the registry itself is docs-only, with skills as content listed on the roadmap. They're complementary layers.

Does Context Hub work with my coding agent?

Yes — it's agent-agnostic. Any agent that can run CLI commands can use chub. It ships with a SKILL.md for Claude Code, and works with Cursor, Codex, or any agent that supports shell access.

How much does Context Hub cost?

Nothing. It's MIT-licensed open source — the chub CLI installs free from npm and the documentation registry is community-maintained on GitHub. There is no paid tier or hosted commercial offering as of June 2026.

Overview

Coding agents hallucinate APIs. They use deprecated endpoints, invent parameters, and mix up SDK versions — because their training data is months or years stale. Context Hub is Andrew Ng's open-source solution: a curated, versioned documentation registry, maintained on GitHub, that agents fetch via CLI instead of guessing from memory.

Released March 9, 2026 with 5,764 stars and 68 API docs in the first 4 days. As of June 11, 2026: 13,556 stars, 1,184 forks, and 622 documentation entries in the content registry — covering everything from OpenAI and Stripe to Airflow, Auth0, and ChromaDB. MIT licensed, published as @aisuite/chub on npm (latest v0.1.4, April 27, 2026; roughly 2,400 weekly downloads in late May). It remains entirely free — no paid tier, no hosted commercial offering.

What's Changed Since Launch (March–June 2026)

  • Scale: 68 → 622 doc entries; 5.7k → 13.5k stars.
  • Annotation hardening: annotations are no longer auto-injected on chub get. The CLI flags that annotations exist, and agents must pass --with-annotations to include them — contents are treated as untrusted input by default, closing a prompt-injection vector.
  • Incremental fetch: docs can carry multiple reference files; --file fetches a specific reference and --full grabs everything, so agents don't burn tokens on unneeded content.
  • Skills repositioned: the README now describes content types beyond API docs (such as agent skills) as roadmap items, not shipped registry content. The get-api-docs SKILL.md still ships as the agent integration mechanism.
  • Cadence: v0.1.4 (April 27) is the latest release; commits continued through May 31, 2026, with 127 open issues — active but slower than the launch-month pace.

How It Works

The Agent Workflow

Agent needs to call Stripe API
  ↓
chub search "stripe"        → finds stripe/api
  ↓
chub get stripe/api --lang js  → fetches current JS docs
  ↓
Agent reads docs, writes correct code
  ↓
chub annotate stripe/api "Webhook needs raw body"  → saves for next time
  ↓
chub feedback stripe/api up  → signals quality to authors

On later sessions, chub get notes that annotations exist; the agent passes --with-annotations to include them, and their contents are treated as untrusted input by default.

The agent runs chub as a CLI command. No special integration needed — any agent with shell access works. Context Hub ships with a SKILL.md that teaches agents when and how to use it.

Two Content Types

Context Hub launched with a clean distinction between docs and skills — though as of June 2026 the README frames skills-as-registry-content as a roadmap item, with the live registry focused on versioned, language-specific API docs:

DimensionDocsSkills
PurposeReference knowledge ("what to know")Behavioral instructions ("how to do it")
SizeLarge (10K-50K+ tokens)Small (under 500 lines)
LifecycleEphemeral, fetched per-taskPersistent, installed into agent
Language variantsYes (Python, JS, TS)No (typically language-agnostic)
Version variantsYes (v1, v2, etc.)No
Entry fileDOC.mdSKILL.md

Both live in the same registry, fetched with the same chub get command. The CLI auto-detects the type.

The Learning Loop

The most interesting part isn't the docs — it's how agents learn from using them:

  1. Annotations — Local notes agents attach to docs. "Webhook verification requires raw body — do not parse before verifying." Persists across sessions; future chub get calls flag that annotations exist, and --with-annotations includes them (treated as untrusted input by default). The agent doesn't have to rediscover workarounds.

  2. Feedback — Up/down ratings with labels (outdated, inaccurate, incomplete, well-structured, helpful). Flows back to doc authors. The docs improve based on real agent usage signals.

  3. Community contributions — Anyone can submit docs via PR. Content is plain markdown with YAML frontmatter. The repo IS the docs — you can inspect exactly what your agent reads.

This creates a virtuous cycle: agents use docs → annotate gaps → authors fix gaps → docs get better → agents get better.

Architecture

Content repo (markdown + frontmatter)
  ↓ chub build → registry.json + content tree
CDN (serves registry + files)
  ↓ CLI fetches from here
~/.chub/ (local cache + annotations)
  ↓ CLI reads from here
Agent (consumes docs via stdout)

Multiple sources are supported — remote CDN for community docs, local folders for private/internal docs. Everything merges at the CLI level. Trust is signaled via the source field: official, maintainer, or community.

CLI Commands

CommandPurpose
chub search [query]Search docs and skills (no query = list all)
chub get [id] --lang pyFetch docs or skills by ID
chub get [id] --file [ref] / --fullIncremental fetch — one reference file, or everything
chub annotate [id] [note]Attach a persistent note
chub annotate [id] --clearRemove annotations
chub annotate --listList all annotations
chub feedback [id] up/downRate a doc (sent to maintainers)

Category Fit

Context Hub sits at the intersection of three existing categories on this site:

  • Agentic Skills Frameworks — Uses the SKILL.md standard, serves skills alongside docs. But it's not a methodology framework — it's a content registry.
  • Agent Self-Improvement — The annotation/feedback loop is a lightweight form of agent learning. But it's not memory infrastructure like Mem0 or Letta — it's doc-scoped.
  • AI Coding Assistants — It's built for coding agents, but it's not a coding agent itself — it's infrastructure that makes them better.

Best fit: new sub-category within Agentic Skills Frameworks — "Agent Knowledge Registries." Tools that serve curated, versioned knowledge to agents on demand. Context Hub is the first major entrant, but the pattern (community-maintained, agent-optimized documentation) will likely spawn more.

Strengths and Limitations

Strengths:

  • Solves a real, painful problem (API hallucination)
  • Andrew Ng's backing gives it instant credibility and adoption
  • Agent-agnostic — works with any coding agent that has shell access
  • Clean docs/skills separation with thoughtful design decisions
  • The annotation loop is genuine agent learning without fine-tuning — now with sensible untrusted-input defaults
  • Community-driven content model scales well — 68 APIs at launch grew to 622 doc entries by June 2026
  • Free and MIT-licensed with no commercial strings attached

Limitations:

  • Requires agents to know to use chub (needs prompting or SKILL.md installation)
  • Only as good as the contributed docs — community quality varies, and 622 entries means a long tail of variable depth
  • No MCP server yet (CLI-only, so agents need shell access)
  • Annotations are local-only — no sharing across agents/machines
  • No private doc hosting (local folders only, no team/org registry)
  • Release cadence has slowed: one release (v0.1.4) between late April and June 11, 2026, with 127 open issues

What Developers Say

Independent practitioner commentary remains thin three months after launch. The most-cited public reaction is from the comments on AWS developer advocate Mike Chambers' DEV Community walkthrough, where developer Darryl Ruggles wrote: "Had not heard of this before but I bet that repo will be the standard before long."

Absence note: As of June 11, 2026, no Hacker News submission of Context Hub has drawn meaningful discussion (the largest reached 4 points with zero comments), and there are no substantive independent write-ups of production usage. Adoption signals are stars, forks, npm downloads, and doc contributions rather than testimonials.

Comparisons

ToolWhat it doesRelationship to Context Hub
MCP serversGive agents tools to executeComplementary — Context Hub gives knowledge, MCP gives capabilities
SKILL.mdBehavioral instructions for agentsContext Hub serves skills in SKILL.md format + adds docs
Agentic Context Engine (ACE)Agents learn from execution tracesACE learns from doing; Context Hub provides knowledge before doing
Web searchAgents search the open webContext Hub replaces noisy web search with curated, agent-optimized docs
RAGRetrieve from document storesContext Hub is specialized RAG for API docs with versioning and feedback

Bottom Line

Context Hub is infrastructure, not an agent. It makes every coding agent better by solving the API hallucination problem at the source — giving agents current, correct documentation instead of relying on stale training data.

The bigger play is the community model: if Context Hub becomes the npm of agent documentation, it creates a network effect where more contributions → better docs → more agent usage → more feedback → even better docs. Andrew Ng's credibility accelerates this flywheel.

The annotation/feedback loop is what separates it from "just a docs repo." Agents that use Context Hub get smarter over time — not through fine-tuning, but through accumulated local knowledge and community-driven quality improvement.

Recommended for anyone running coding agents against fast-moving APIs — it's free, agent-agnostic, takes one npm install plus a SKILL.md to adopt, and the content registry has grown 9x since launch. Not recommended as a team knowledge base: no private/org registry, annotations don't sync across machines, and there's no MCP server for shell-less agents. Outlook: solid but watch the cadence — 13.5k stars and 622 community-contributed docs in three months validate the model, but the slowing release tempo (one CLI release since late April) and absent practitioner discussion mean the network-effect flywheel is still a thesis, not a fact.

Watch for: MCP server integration, team/org private registries, cross-agent annotation sharing, skills shipping as first-class registry content, and whether API providers start maintaining their own Context Hub entries as a first-class distribution channel.


Research by Ry Walker Research • methodology