Context engineering and agent memory
He teaches supplying current documentation and context to agents, for example through Context Hub, and letting agents record what they learn across sessions.
Based on Andrew Ng's public content. Not affiliated with or endorsed by Andrew Ng.
Rules
Covered in
Full AI Prompting Course with Andrew Ng
Andrew Ng teaches that effective prompting depends on supplying relevant context, assigning genuinely difficult tasks, steering research toward reliable sources, and iterating rather than expecting a perfect result from one short prompt. He presents AI as a thought partner that can brainstorm, reason, research, write, critique, work across modalities, build simple applications, and write and execute code for data analysis—while emphasizing neutral framing, verification, and careful permission controls.
AI Is Part of Your Online Audience: Some webpages are written not for humans but for large language models to read. Developers can benefit by keeping the LLM audience in mind.
Andrew Ng observes an emerging trend of people writing online text intended for LLMs rather than humans. He contrasts misaligned incentives (publishers, prompt injection, spam) with aligned ones, such as a startup wanting LLMs to use its new software library, and argues that because LLMs and humans ingest text differently, authors should write differently for each, drawing a parallel to SEO.
Let’s Help Agents Share Their Work: AI Social Networks Can Be More than Fun and Games
Andrew Ng argues that AI coding agents should have a practical, Stack Overflow-like way to share learnings with each other, starting with feedback on API documentation in his Context Hub (chub) tool. He contrasts entertaining agent social networks like Moltbook with a more useful kind focused on improving documentation, while stressing privacy and security safeguards.
GitHub · context-hub
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 for Coding Agents: Agentic coding systems often make mistakes because they’re not aware of tools, API calls, and the like that came out after they were trained. Context Hub gives them the documentation they need to write correct code.
Andrew Ng announces Context Hub (chub), an open tool that gives coding agents current API documentation so they stop using outdated APIs, hallucinating parameters, or missing newer tools. He explains why coding agents fail because of their training cutoffs, shows how to install chub and get agents to use it, and describes plans for agents to save notes and share discoveries over time.
GitHub · context-hub-skill: Agent skill to use Context Hub (chub)
Andrew Ng’s repository teaches coding agents to use Context Hub as the source of truth when work depends on current third-party documentation rather than relying on model memory. It also shows how to install the shared skill across compatible agents and describes a low-friction workflow that checks installation, reads current CLI guidance, retrieves documentation, and records feedback.