Navigate Select ESC Close

Context Engineering is All You NEED!

2025-07-04 Science & Technology
38.7k
1.1k
84
Prompt Engineering
Prompt Engineering
241.0k subscribers

Unlock all features

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

Description

I unpack context engineering—why everyone’s talking about it, how it differs from classic prompt engineering, and where it actually matters for long-context LLMs. We’ll cover the big failure modes (context poisoning, distraction, confusion, clash) and the simple fixes—RAG, pruning, summarizing, and quarantining—that keep your AI agents on track. Perfect if you’re building RAG pipelines or multi-tool agents and want cleaner prompts, fewer tokens, and better answers. LINKS: https://www.philschmid.de/context-engineering https://blog.langchain.com/the-rise-of-context-engineering/ https://x.com/tobi/status/1935533422589399127?ref=blog.langchain.com https://x.com/ankrgyl/status/1913766591910842619 https://x.com/karpathy/status/1937902205765607626 https://cognition.ai/blog/dont-build-multi-agents#applying-the-principles https://www.dbreunig.com/2025/06/22/how-contexts-fail-and-how-to-fix-them.html https://www.dbreunig.com/2025/06/26/how-to-fix-your-context.html https://github.com/humanlayer/12-factor-agents?ref=blog.langchain.com Website: https://engineerprompt.ai/ RAG Beyond Basics Course: https://prompt-s-site.thinkific.com/courses/rag Let's Connect: 🦾 Discord: https://discord.com/invite/t4eYQRUcXB ☕ Buy me a Coffee: https://ko-fi.com/promptengineering |🔴 Patreon: https://www.patreon.com/PromptEngineering 💼Consulting: https://calendly.com/engineerprompt/consulting-call 📧 Business Contact: [email protected] Become Member: http://tinyurl.com/y5h28s6h 💻 Pre-configured localGPT VM: https://bit.ly/localGPT (use Code: PromptEngineering for 50% off). Signup for Newsletter, localgpt: https://tally.so/r/3y9bb0 TIMESTAMP: 00:00 Introduction to Context Engineering 00:41 Defining Context Engineering 03:21 Context Engineering vs. Prompt Engineering 04:23 Common Issues in Context Engineering 11:03 Solutions for Effective Context Management 14:50 Some Final Thoughts

Top Comments (10)

@sozno4222 2025-07-04

I believe what is more important than context engineering is understanding how to properly break a problem down into sub systems or sub tasks.

33 5 replies
@weemustang 2025-07-04

then your name is context engineering

26 3 replies
@rhokstar_ai 2025-07-04

I watched the LangChain video regarding this and comparing to your assessment. I like that you've added the common issues in context engineering. When I'm using Perplexity, for example, I manually manage context to produce better results as the chat history grows alongside iterative prompting or rewriting/regenerating responses. But also, I'm deleting specific parts of the chat history which also helps in generating quality responses and preventing reaching context limit fast. I apply "manual context engineering" in both coding and non-coding use cases for tasks that require high accuracy results. When I take this practice of "manual context engineering" into agentic coding to produce the best results and/or fixing problems, this helps to alleviate the amount of debugging I have to do and reducing context poisoning which can metastasize if not kept in check. When I'm creating in-house MCP tools for my app and for my agentic coding tool, I'm applying the lessons learned from "manual context engineering" and applying into my tools and my app. Its a bit daunting and sometimes have to put aside these ideas to get work done!😆

10 2 replies
@StraussBR 2025-07-05

Context engineering makes sense to me because prompt assumes we are doing a single prompt whereas context is a wider term that can involve multiple round trips plus additional contextual information from external sources, available tools, etc.

3
@engineerprompt 2025-07-07

RAG Beyond Basics Course: https://prompt-s-site.thinkific.com/courses/rag

2
@lawrencium_Lr103 2025-07-04

I think more in terms of context cultivation and context harvesting. Some system messages explain context cultivation and include a line that says "if I ask you to harvest, it means we have built sufficient context, review chat history to date and save a copy of of your understanding to desktop". I think the harvesting component is essential. A large portion of the context window is used engineering context, taking the engagement closer to degeneration. Harvesting and restarting with the AI's debloated interpretation means there's interpretation visibility, which can be edited if slightly misaligned and densified for greater per token potency. Doing this sets the utility benefit point (UBP) early, where latent space is more open, less contaminated, and tuned more precisely to the specific need.

2
@walidboumdel 2025-10-09

pretty cool approach, thanks for sharing

0 1 replies
@chandrachoodR 2025-07-06

This was really good session

0
@raydin1v1000 2025-10-09

Been diving into context engineering lately. AgentVoice’s way of keeping track of customer interactions makes so much sense now.

0
@russruss-f3i 2025-07-24

Intelligent and gracefully explained

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