← Back to Dashboard
Module 01

Master the Mirror — Building AGI with Context Windows

Mastering In-Context Learning and the "workspace of reason."

The Core Idea: As pioneered in Microsoft/OpenAI's seminal paper "Sparks of Artificial General Intelligence" (found in the References/ folder), the "intelligence" of an agent is often a direct reflection of its Context Window. The context window isn't just a memory buffer; it is the workspace of reason.


💾 Context RAM Simulator

Watch how new data "pushes out" old memories when the window is full.

Context Window Capacity: 5 Slots


🔬 The Theory

In the Sparks of AGI paper, researchers demonstrated that GPT-4 could solve complex, multi-domain problems not just because of its weights, but because its large context window allowed it to maintain a coherent "chain of thought."

⚠️ The "Lost in the Middle" Curve

LLMs are like humans: they remember the start of the meeting and the end, but zone out in the middle.

Prompt Start The "Dead Zone" Prompt End

Key Concepts for Students:

  1. The In-Context Learning Phenomenon: Models can "learn" new tasks without weight updates simply by being shown examples in the context window.
  2. Context Window as "RAM": If the weights are the Hard Drive (long-term knowledge), the Context Window is the RAM (active processing).
  3. The "Lost in the Middle" Problem: Understanding that models often pay more attention to the beginning and end of a context window than the middle.

🛠️ The Lesson Plan (Day 1 Afternoon)

Part 1: Context Awareness (30 min)

Exercise: "The Amnesiac Agent."

Part 2: The "Sparks" Simulation (60 min)

Part 3: Architecting the Memory (agents.md)