Tuesday, March 10, 2026

Andrew Ng’s Workforce Releases Context Hub: An Open Supply Software that Offers Your Coding Agent the Up-to-Date API Documentation It Wants


Within the fast-moving world of agentic workflows, probably the most highly effective AI mannequin continues to be solely nearly as good as its documentation. At this time, Andrew Ng and his crew at DeepLearning.AI formally launched Context Hub, an open-source device designed to bridge the hole between an agent’s static coaching information and the quickly evolving actuality of contemporary APIs.

You ask an agent like Claude Code to construct a function, but it surely hallucinates a parameter that was deprecated six months in the past or fails to make the most of a extra environment friendly, newer endpoint. Context Hub gives a easy CLI-based answer to make sure your coding agent at all times has the ‘floor reality’ it must carry out.

The Drawback: When LLMs Dwell within the Previous

Massive Language Fashions (LLMs) are frozen in time the second their coaching ends. Whereas Retrieval-Augmented Era (RAG) has helped floor fashions in personal information, the ‘public’ documentation they depend on is commonly a multitude of outdated weblog posts, legacy SDK examples, and deprecated StackOverflow threads.

The result’s what builders are calling ‘Agent Drift.’ Take into account a hypothetical however extremely believable situation: a dev asks an agent to name OpenAI’s GPT-5.2. Even when the newer responses API has been the trade commonplace for a yr, the agent—counting on its core coaching—would possibly stubbornly follow the older chat completions API. This results in damaged code, wasted tokens, and hours of handbook debugging.

Coding brokers typically use outdated APIs and hallucinate parameters. Context Hub is designed to intervene on the precise second an agent begins guessing.

chub: The CLI for Agent Context

At its core, Context Hub is constructed round a light-weight CLI device referred to as chub. It features as a curated registry of up-to-date, versioned documentation, served in a format optimized for LLM consumption.

As a substitute of an agent scraping the online and getting misplaced in noisy HTML, it makes use of chub to fetch exact markdown docs. The workflow is easy: you put in the device after which immediate your agent to make use of it.

The usual chub toolset contains:

  • chub search: Permits the agent to seek out the precise API or ability it wants.
  • chub get: Fetches the curated documentation, typically supporting particular language variants (e.g., --lang py or --lang js) to attenuate token waste.
  • chub annotate: That is the place the device begins to distinguish itself from an ordinary search engine.

The Self-Bettering Agent: Annotations and Workarounds

One of the vital compelling options is the flexibility for brokers to ‘keep in mind’ technical hurdles. Traditionally, if an agent found a particular workaround for a bug in a beta library, that information would vanish the second the session ended.

With Context Hub, an agent can use the chub annotate command to save lots of a word to the native documentation registry. For instance, if an agent realizes {that a} particular webhook verification requires a uncooked physique moderately than a parsed JSON object, it might run:

chub annotate stripe/api "Wants uncooked physique for webhook verification"

Within the subsequent session, when the agent (or any agent on that machine) runs chub get stripe/api, that word is routinely appended to the documentation. This successfully provides coding brokers a “long-term reminiscence” for technical nuances, stopping them from rediscovering the identical wheel each morning.

Crowdsourcing the ‘Floor Reality

Whereas annotations stay native to the developer’s machine, Context Hub additionally introduces a suggestions loop designed to profit the whole group. By way of the chub suggestions command, brokers can price documentation with up or down votes and apply particular labels like correct, outdated, or wrong-examples.

This suggestions flows again to the maintainers of the Context Hub registry. Over time, probably the most dependable documentation surfaces to the highest, whereas outdated entries are flagged and up to date by the group. It’s a decentralized strategy to sustaining documentation that evolves as quick because the code it describes.

Key Takeaways

  • Solves ‘Agent Drift’: Context Hub addresses the essential situation the place AI brokers depend on their static coaching information, inflicting them to make use of outdated APIs or hallucinate parameters that now not exist.
  • CLI-Pushed Floor Reality: By way of the chub CLI, brokers can immediately fetch curated, LLM-optimized markdown documentation for particular APIs, making certain they construct with probably the most trendy requirements (e.g., utilizing the newer OpenAI Responses API as a substitute of Chat Completions).
  • Persistent Agent Reminiscence: The chub annotate function permits brokers to save lots of particular technical workarounds or notes to a neighborhood registry. This prevents the agent from having to ‘rediscover’ the identical answer in future classes.
  • Collaborative Intelligence: By utilizing chub suggestions, brokers can vote on the accuracy of documentation. This creates a crowdsourced ‘floor reality’ the place probably the most dependable and up-to-date assets floor for the whole developer group.
  • Language-Particular Precision: The device minimizes ‘token waste’ by permitting brokers to request documentation particularly tailor-made to their present stack (utilizing flags like --lang py or --lang js), making the context each dense and extremely related.

Try GitHub RepoAdditionally, be happy to comply with us on Twitter and don’t neglect to hitch our 120k+ ML SubReddit and Subscribe to our E-newsletter. Wait! are you on telegram? now you’ll be able to be part of us on telegram as properly.


Related Articles

Latest Articles