A hands-on series on LangChain's DeepAgents in TypeScript: context engineering, subagents, memory, skills, and human-in-the-loop.
A tour of how DeepAgents assembles, compresses, and isolates context, with the TypeScript config for each layer. The framework does a lot automatically; this is what is happening and where you steer it.
Subagents are the main lever for stopping a long task from drowning in its own context. Here is how DeepAgents implements them in TypeScript, and the mistakes that make them useless.
DeepAgents treats long-term memory as files the agent reads and writes, with backends deciding where they live. Here is how scoping, episodic memory, and consolidation actually work.
Skills give an agent deep, reusable capability without paying for it on every turn. Here is how DeepAgents loads them in layers, and how to write ones that get picked.
Autonomy is great until the agent deletes the wrong file or emails the wrong list. Here is how DeepAgents pauses on sensitive tool calls and waits for a human, in TypeScript.