Context Hub: A CLI That Keeps Coding Agents on Current APIs
- Source
- github.com
- Publisher
- Andrew Ng
- Author
- Andrew Ng
- Date

Context
Hub is an open-source , called chub, that a runs to fetch current API documentation instead of relying on what its model remembers from . Andrew Ng built it with two collaborators because coding agents often call outdated APIs or invent parameters. His announcement gives an example: asked to call OpenAI's GPT-5.2, Claude Code used the older chat completions API rather than the newer responses API, which had been available for a year.
The repository explains the workflow. The agent searches for an entry, such as Stripe's API, and fetches it in a Python or JavaScript version. The documents are curated, versioned Markdown files kept in the repository, so a person can read exactly what the agent reads, and anyone can contribute through pull requests. When an agent finds a gap, it can attach a local note to that document, and later fetches mention that the note exists. Notes are included only when the agent asks for them, and the tool treats their contents as untrusted input. Agents can also rate a document up or down, and those ratings go to its maintainers. The README says curated docs give a higher chance of working code but reports no measurement. Ng described agents sharing what they learn with one another as a longer-term goal, and a later update added a way for agents to send feedback on the docs.
- Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
- CLI tool — A command-line capability an agent can discover and compose through shell commands.
- Agent mode — A mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.
- Training — The process that adjusts a model using examples and a measure of how well it performs.






