Advanced Context Engineering: Systems, Evaluation & Research
This course runs for 19h 16m and is designed for intermediate learners. It is taught by Superposition AI, published by Udemy, and was released on September 2026. The course taught in English, includes exercise files, and uses Python 3.12, Codex CLI, Linux shell.
Course Overview
This course teaches how to build, measure, and test context systems for text, knowledge, and agents, enabling learners to verify context, manage long context, build memory with provenance, and evaluate systems systematically. It covers practical techniques including text extraction, retrieval methods comparison, context assembly, memory management, long task handling, and research paper evaluation.
Key Takeaways
Extract and assemble verifiable context from documents with traceable claims.
Compare and select retrieval methods such as BM25, embeddings, rank fusion, and reranking based on measured evidence.
Chain dependent searches and audit context graphs with permission checks.
Manage long context using budgeted selection, shortening, handoffs, and caching strategies.
Build and test memory systems with provenance, validity dates, and lifecycle rules.
Develop local MCP servers with typed inputs, pagination, and failure handling.
Run and resume long tasks with explicit state and checkpoints, comparing agent performance.
Detect hidden instructions, enforce permissions, and test for leaks and over-blocking in code.
Systematically evaluate systems using checkers, hand labels, regression detection, and ablation studies.
Read and test research papers against fair baselines and complete systems on new domains with sealed tests.
Prerequisites
The course builds on Context Engineering, Part I, and expects learners to write code or be ready to learn programming as they go. Setup requires a Linux shell, Python 3.12, Codex CLI with an account, and a paid embedding service for some lessons.
Target Learners
This course is designed for developers, researchers, and practitioners interested in advanced context engineering, AI agents, and system evaluation who have some programming experience or are willing to learn programming during the course.
Final Project
The course includes a final project involving a fictional warehouse handbook, culminating in a sealed test that is opened once, applying the skills learned to build a full context system.
Course Trailer3:09
Who This Course Is For and What You Need2:15
Check Your Understanding: Course Trailer
Check Your Understanding: Who This Course Is For and What You Need
Before You Begin...0:16
From One Task to a Context System11:02
Check Your Understanding: From One Task to a Context System
Prepare the Practice Folder14:05
Check Your Understanding: Prepare the Practice Folder
Read Small Code, Line by Line12:24
Check Your Understanding: Read Small Code, Line by Line
Turn Information into Records15:15
Check Your Understanding: Turn Information into Records
Build a Reusable Operation17:18
Check Your Understanding: Build a Reusable Operation
Save and Restore Versions18:30
Check Your Understanding: Save and Restore Versions
Define Success Before Improving20:45
Check Your Understanding: Define Success Before Improving
Explain Your First Baseline to a Skeptical Operations Lead
Check Source Authority and Access24:01
Check Your Understanding: Check Source Authority and Access
Extract Text You Can Trust22:48
Check Your Understanding: Extract Text You Can Trust
Split Documents Without Losing Meaning25:04
Check Your Understanding: Split Documents Without Losing Meaning
Assemble a Task Context Packet22:07
Check Your Understanding: Assemble a Task Context Packet
Whole Document or Focused Search?26:12
Check Your Understanding: Whole Document or Focused Search?
Trace Runs and Compare Results31:41
Check Your Understanding: Trace Runs and Compare Results
Review an Incident: Why Did the Assistant Not Answer?
Build a Word Search Index28:50
Check Your Understanding: Build a Word Search Index
Connect a Model Service Through an API26:26
Check Your Understanding: Connect a Model Service Through an API
Search by Meaning with Embeddings29:32
Check Your Understanding: Search by Meaning with Embeddings
Combine Word and Semantic Search27:25
Check Your Understanding: Combine Word and Semantic Search
Rerank the Candidates33:04
Check Your Understanding: Rerank the Candidates
Choose Retrieval for the Task34:05
Check Your Understanding: Choose Retrieval for the Task
Defend Your Retrieval Choice to a Skeptical Engineering Lead
Answer with a Chain of Searches34:13
Check Your Understanding: Answer with a Chain of Searches
Give Each Chunk Its Missing Context32:41
Check Your Understanding: Give Each Chunk Its Missing Context
Think in Connections with NetworkX32:43
Check Your Understanding: Think in Connections with NetworkX
When GraphRAG Earns Its Complexity42:12
Check Your Understanding: When GraphRAG Earns Its Complexity
Hand Over the Multi-Step Search and Graph Work to a New Teammate
Move the Evidence, Add the Noise21:36
Check Your Understanding: Move the Evidence, Add the Noise
Choose Evidence Under a Budget24:28
Check Your Understanding: Choose Evidence Under a Budget
Shorten Without Losing the Essentials22:02
Check Your Understanding: Shorten Without Losing the Essentials
Continue After Compaction or a New Conversation15:26
Check Your Understanding: Continue After Compaction or a New Conversation
Cache Without Returning the Wrong Information21:21
Check Your Understanding: Cache Without Returning the Wrong Information
Negotiate Cost Cuts With a Budget-Focused Product Owner
Choose What to Remember and What to Retrieve23:04
Check Your Understanding: Choose What to Remember and What to Retrieve
Move Reviewed Records into SQLite19:19
Check Your Understanding: Move Reviewed Records into SQLite
Remember a Fact That Changed23:37
Check Your Understanding: Remember a Fact That Changed
Correct, Merge, and Delete Memories23:16
Check Your Understanding: Correct, Merge, and Delete Memories
Test Memory Across Conversations29:03
Check Your Understanding: Test Memory Across Conversations
Handle a User's Request to Correct and Delete Memories
Choose Instructions, Skills, or Tools24:39
Check Your Understanding: Choose Instructions, Skills, or Tools
Connect a Tool Through MCP19:36
Check Your Understanding: Connect a Tool Through MCP
Design Clear Tool Inputs and Outputs18:20
Check Your Understanding: Design Clear Tool Inputs and Outputs
Expose Tools and Information Progressively11:55
Check Your Understanding: Expose Tools and Information Progressively
Handle Tool Failures Without Inventing Answers10:59
Check Your Understanding: Handle Tool Failures Without Inventing Answers
Explain Your Tool's Contract to a Partner Team That Wants Shortcuts
Represent Task State Explicitly12:04
Check Your Understanding: Represent Task State Explicitly
Resume Work After a Stop10:19
Check Your Understanding: Resume Work After a Stop
Hand Off Work and Merge Answers12:55
Check Your Understanding: Hand Off Work and Merge Answers
Check Whether Several Agents Help11:36
Check Your Understanding: Check Whether Several Agents Help
Walk an Auditor Through a Long Run Without Overstating It
Detect Instructions Hidden in Data12:36
Check Your Understanding: Detect Instructions Hidden in Data
Keep Sources Through Summary and Handoff12:14
Check Your Understanding: Keep Sources Through Summary and Handoff
Enforce Permissions in Code12:07
Check Your Understanding: Enforce Permissions in Code
Test Safety Without Breaking Normal Use10:38
Check Your Understanding: Test Safety Without Breaking Normal Use
Refuse an Access Request From a Manager Who Says They Are Covering for HR