Navigate Select ESC Close

Context Engineering for Agents

2025-07-02 Science & Technology
189.5k
4.9k
63
LangChain
LangChain
194.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Agents need context (e.g., instructions, external knowledge, tool feedback) to perform tasks. Context engineering is the art and science of filling the context window with just the right information at each step of an agent’s trajectory. In this video, we break down some common strategies — write, select, compress, and isolate — for context engineering by reviewing various popular agents and papers. We then explain how LangGraph is designed to support them! Blog: https://blog.langchain.com/context-engineering-for-agents/ Video notes: https://mirror-feeling-d80.notion.site/Context-Engineering-for-Agents-21f808527b17802db4b1c84a068a0976?source=copy_link Learn how to build with LangGraph on LangChain Academy: https://academy.langchain.com/collections/quickstart/?utm_medium=social&utm_source=youtube&utm_campaign=q4-2025_youtube-academy-links_aw

Top Comments (10)

@gusseppebravo8334 2025-07-02

I call it feature engineering for agents (arxiv), similar to what people used to do in classical ML to improve the input representation. Once you have a good representation of your data (by selecting, merging, mapping, etc.), even a light model can surpass a complex models (e.g, Logistic->xgboost). For agents, these features are the context. So, it is not only the goal (pilot using big LLM), it is the system (components besides the LLM). The idea is to develop an agent/workflow/app with the smallest feasible LLM so that you are forced to improve the system (cognitive architecture) first. Of course, LM can be replaced by any other engine.

121 4 replies
@guillermo1874 2025-07-06

This is such an amazing resource!! I appreciate you compiling so many great supplementary content

8
@CharlotteLopez-n3i 2025-07-02

Nailed it, LangChain! Context engineering strategies are top-notch. Can't wait to see LangGraph in action.

7
@babusivaprakasam9846 2025-07-06

Great Refresher Video On Context Engineering, Perfect for Sunday Morning!

5
@UlissesCastroSecurity 2025-07-02

Thanks for sharing the knowledge, enlightening.

4
@yadeesht 2025-12-13

really amazed how context management plays a vital role in building a good agent rather than using a LLM with large params

3
@RohanKumar-vx5sb 2025-07-02

really cool stuff harrison! we use state object to manage state so super simple and intuitive to pass along only the required stuff to child graphs even fir example.

2
@FluxTheoryMusic 2025-08-07

this is super interesting. the concept of trying to achieve a procedure with as small of an LLM as feasible by optimizing context window is certainly a very useful one. just yesterday an open source opanAI llm model came out that works locally on my 9070xt and i've been copying and pasting small contexts (it can only hold a very small context window before being overly saturated) and then iterating to try to identify how (at least one small) model interprets context. i think having this stuff available on youtube is huge because we need to be transparent about work and development in this cutting edge stuff to optimize use. one thing i've realized from my limited experience is that a hallucination of an llm can be leveraged using recursion to enhance a model's performance. I'm still in my infancy of my development and learning python before i get into more advanced things like RAG and proper context (prompt) engineering (on coursera) but this was a beautiful glimpse!

2
@danielransome 2025-09-19

Another great video! Thanks for taking the time to make these

1
@RadThings 2025-07-08

Amazing video on organizing context engineering assembling such great context content in this video. Thx!

0

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot