Source

GitHub · context-hub

Open the source

The source presents Context Hub as a way to help coding agents avoid API hallucinations and retain useful lessons across sessions by supplying curated, versioned documentation. It teaches a simple search-fetch-use workflow, supplemented by persistent local annotations and feedback to documentation authors.

- Context Hub provides coding agents with curated, versioned, language-specific documentation maintained as inspectable markdown. - The basic workflow is to search for relevant documentation, fetch it, and have the agent use it to write code. - Agents can record gaps and workarounds as local annotations that persist across sessions. - Annotations are excluded by default and treated as untrusted input when included. - Upvotes and downvotes flow to documentation authors so shared content can improve over time. - Incremental fetching lets agents retrieve only necessary reference files and avoid wasting tokens.

Based on Andrew Ng's public content. Not affiliated with or endorsed by Andrew Ng.

Supports these rules

Quotes from this video

“**Most of the time, it's simple search, fetch, use:**”

“Agent reads the doc, writes correct code. Done.”

“**When the agent discovers a gap**, it can annotate locally for next time:”

“**Annotations** are local notes that agents attach to docs. They persist across sessions and can be included on future fetches with `--with-annotations` so agents can learn from past experience while treating prior notes as untrusted input.”

“annotations are treated as untrusted input by default.”

“they persist across sessions and can be re-injected on future fetches with `--with-annotations` (off by default; the contents are treated as untrusted input).”

“**Feedback flows back to authors** `chub feedback stripe/api up` or `down` vote the docs up or down so they can get better for everyone over time.”

“The docs get better for everyone not just your local annotations.”

“Fetch only what you need no wasted tokens.”

“Use `--file` to grab specific references, or `--full` for everything.”

“All content is open and maintained as markdown in this repo you can inspect exactly what your agent reads, and contribute back.”

Topics