Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

The Context Course

If you like the course, don't hesitate to ⭐ star this repository. This helps us to make the course more visible.

The Context Course teaches you context engineering for code agents — the skill of giving agents the right knowledge, tools, and structure to do their best work. Whether you're using Claude Code, Codex, or open source agents, this course will help you get dramatically more out of them.

The course covers the full context engineering stack: skills, MCP, plugins, subagents, and even building your own agent from scratch.

Sign up here (it's free) 👉 Follow the Context Course org on Hugging Face

UnitTopicDescription
0Welcome & OnboardingSet up your tools, join the community, and get oriented.
1Skills: Portable KnowledgeLearn to write, use, and share agent skills — portable instructions that make agents expert at specific tasks.
2MCP: The Model Context ProtocolBuild MCP servers that give agents dynamic access to external tools and data.
3Plugins: Bundling for DistributionPackage skills and MCP servers into plugins that work across agent platforms.
4Subagents: Multi-Agent WorkflowsOrchestrate complex tasks by spawning specialized child agents.
5Hooks: Observing and Guarding the LifecycleUse hooks to log, block, or automate around every step the agent takes — then visualize it live in Gradio.
6Bonus: Nano HarnessBuild your own minimal agent from scratch to understand how it all works under the hood.

Prerequisites

  • Basic familiarity with Python and the command line
  • A Hugging Face account (hf.co/join)
  • Access to a code agent: Claude Code, Codex, or an open source alternative

Reference Agents

This edition keeps the examples consistent by following three reference agents end-to-end:

  • Claude Codeclaude in your terminal
  • Codexcodex CLI from OpenAI
  • OpenCodeopencode from opencode.ai

If you use Cursor or GitHub Copilot, the concepts in the course still transfer, but their MCP and extension workflows are not covered step-by-step in this edition.

Quick Start

# 1. Clone the course git clone https://github.com/huggingface/context-course.git cd context-course # 2. Install the HF CLI curl -LsSf https://hf.co/cli/install.sh | bash hf auth login # 3. Start with Unit 0 # Open units/en/unit0/introduction.mdx

Certification

CertificateRequirements
Context FundamentalsPass the Unit 1 and Unit 2 quizzes
Context EngineeringPass all quizzes + complete a hands-on project

Contributing

Contributions are welcome!

Citing the Course

@misc{context-course, author = {Burtenshaw, Ben}, title = {The Context Course: Context Engineering for Code Agents}, year = {2025}, howpublished = {\url{https://github.com/huggingface/context-course}}, note = {GitHub repository}, }

关于 About

A course on context engineering with code agents.

语言 Languages

Python44.4%
MDX37.3%
HTML18.1%
Shell0.3%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
43
Total Commits
峰值: 17次/周
Less
More

核心贡献者 Contributors