All videos
0:00 / 0:00
ai

What is an agent skill? How to protect your agent's context window.

LangChain8 October 2026Watch on YouTube

Part of series

Ep. 9 · Deep Agents: open source harness

Conceptuele uitleg over het open source Deep Agents-harnas van LangChain, inclusief contextbeheer en architectuur.

View the series

What you'll learn

  • An agent skill is a folder with instructions, scripts, references and assets for one task.
  • At startup only the name and description of a skill are loaded, not its full content.
  • The agent pulls in a skill only when the task calls for it.
  • Skills keep the system prompt from turning into a wall of formatting rules, tone guidelines and one-off instructions.
  • Context disappears again once a task is completed.

Frequently asked questions

What is an agent skill according to the video?
A skill is a folder with instructions, scripts, references and assets for one task. Of that folder, only the name and description are loaded at startup.
How do skills protect an agent's context window?
Because only the name and description are loaded at startup and the agent fetches the rest only when a task requires it. This prevents all information from being crammed into the context window at once.
When does the agent pull in the content of a skill?
The agent picks the right skill and pulls it in only when the task calls for it. After the task is completed, the context disappears again.
Which problem in the system prompt do skills solve?
Skills keep the system prompt from becoming a wall of formatting rules, tone guidelines and one-off instructions. This is how LangChain's Deep Agents addresses it.

Topics

In this video

Read next

Description from the channel

What’s the difference between a long-running agent that can seamlessly execute complex tasks, and one that constantly get stuck? The context. A bad agent is usually the outcome of high volume of information being crammed into a context window all at once. Skills are how LangChain's Deep Agents harness fixes that. A Skill is a folder with instructions, scripts, references, and assets for one task, but only its name and description load at startup. It’s like reading the back of a book instead of the whole thing. In this Short, learn how: Skills keep an agent's system prompt from turning into a wall of formatting rules, tone guidelines, and one-off instructions The agent picks the right skill and pulls it in only when the task calls for it Context disappears once a task is completed. Go deeper for free — Foundation: Introduction to Deep Agents on LangChain Academy: → Course: https://academy.langchain.com/courses/foundation-introduction-to-deepagents → Deep Agents on GitHub (MIT licensed): https://github.com/langchain-ai/deepagents → LangGraph: https://www.langchain.com/langgraph #AIAgents #LangChain #DeepAgents