Want to Understand LangChain Deep Agents? Start by Escaping This Room
To celebrate LangChain reaching 50 million downloads, Jess Weng made a short escape-room game that packs Deep Agents concepts—file system, context window, memory, sandbox, evaluation, and more—into rooms and props. The game is open source, with a playtest video and a complete design doc.
Jess Weng made a short escape-room game called Out of Context: Escape from Weng Manor. It teaches LangChain's open-source agent harness, Deep Agents. The project started for a very direct reason: to celebrate LangChain reaching 50 million downloads. Harrison Chase reposted her playtest video.
The game is open source. Open studio/workspace/game/index.html in the repo to play; instructions are in the game README. The repo also includes the Design Doc, as well as How Deep Agents was used in this project. Address: https://github.com/JessWeng18/out-of-context
Each room corresponds to a Deep Agents concept. It turns the documentation into concrete actions. File-system tools correspond to finding things: rooms are folders, objects are files. Polly uses ls to find hidden bricks, read_file to read photos, and grep to search the diary. The context window corresponds to that 412-page diary: reading too much fills it up, so you need summaries and search to stay clear. Scratch space and threads correspond to the blackboard, the fogged-up mirror, and the power outage: notes in the current thread; new threads start from a blank slate. Long-term memory corresponds to Polly's nest; letters are stored in /memories/ and remain after switching threads. Human-in-the-loop corresponds to the buzzing box; pause and ask before big decisions. Sandbox corresponds to the script in the attic; code runs inside a closed box and can only touch things inside. Evaluation corresponds to the bottles in the bathtub; each candidate is tested the same way, then you decide whom to trust. Tracing corresponds to the Watcher's footprints, leaving a record of every step the Agent takes. Skills correspond to the scrolls in the storage room: read the description first and load only the instructions you need; this item is optional.
This mapping is useful. Agent concepts are abstract to begin with; terms like context window, memory, and scratch space are easy to mix up when they sit in documentation. The game ties them to concrete actions: find, read, search, remember, ask, run, test, and look. Players won't necessarily become experts just by finishing, but at least they can first remember where the differences lie. For people without a development background, this is friendlier than memorizing terminology first. For developers, the game itself isn't complicated; the design doc and the Deep Agents usage notes in the repo are more worth reading.
Jess says in her tweet that the game hides even more teaching content. Her playtest video is just one path through it. If you want to try it yourself, you can open the repo directly. If you want to learn Deep Agents systematically, LangChain Academy has a course: https://academy.langchain.com
发布时间: 2026-11-26 12:27