Context Engineering Exercises

Test your understanding of context windows, failure modes, and the WSCI strategies.

Warm-Up

1. Order Context Components by Size

Interactive exercise — requires JavaScript to display

2. Match Failure Mode to Scenario

Interactive quiz — requires JavaScript to display

Core

3. Complete the WSCI Strategies

Interactive exercise — requires JavaScript to display

4. Token Budget Challenge

Interactive parameter tuner — requires JavaScript to display

5. Visual Context Trimmer

Drag the token budget slider to see how a sliding window trimmer works. The system message is always pinned. Oldest non-system messages get trimmed first.

Interactive parameter tuner — requires JavaScript to display

Stretch

6. Diagnose the Failure Mode

Interactive quiz — requires JavaScript to display

7. Visual Tool Router

Type a user query and click Route to see which tools get selected and why. Keywords in the query light up and connect to matching tools. Unmatched tools stay dim, saving context window space.

Interactive exercise — requires JavaScript to display