Speaker Notes

Context engineering

Choosing what goes into the model's context window, and when.

16talks
189answers
0mainly about it
16new
DecJanFebMarAprMayJunJulAugSepOctNov

What your library answers 189

How do legacy prompt boosters affect frontier models?

Legacy techniques like step-by-step instructions and verification rituals are unnecessary for frontier models because they already reason effectively. Using these outdated boosters actually increases token costs and can degrade model performance. Therefore, developers should audit their prompts to remove these anti-patterns.

Thumbnail: Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic ▶ 1:43 Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic

Why do newer models fail to show major leaps in everyday tasks?

Users find that newer models provide mostly marginal gains and progressive enhancements rather than massive step changes for small-scope tasks. They are often optimized for multi-agent loops and token-heavy orchestrations rather than single-developer workflows.

Thumbnail: State of Agentic Coding #8 with Mario, Armin, and Ben ▶ 7:22 State of Agentic Coding #8 with Mario, Armin, and Ben

Why do LLMs get dumber as a conversation progresses?

As tokens are continuously added to a single context window, the attention relationships scale quadratically and strain the system. This pushes the model past its smart zone into the dumb zone around 100K tokens. Developers should keep tasks small to avoid this performance degradation.

Thumbnail: Full Walkthrough: Workflow for AI Coding — Matt Pocock ▶ 3:40 Full Walkthrough: Workflow for AI Coding — Matt Pocock

Why does Alan Pope prefer technical specifications over design documents when working with LLMs?

Technical specifications bridge the gap by giving LLMs clear instructions on the chosen stack, dependencies, and database architectures rather than just vague design goals. This helps developers identify best practices and ensures the model can accurately turn human intent into runnable code.

Thumbnail: Claude, TypingMind, AMP & MCP Servers: The Future Dev ▶ 5:13 Claude, TypingMind, AMP & MCP Servers: The Future Dev

What systems make up agent memory?

Agent memory is built on a combination of embedding models, databases, and large language models. The embedding models handle semantic search representation, databases store and retrieve information, and LLMs provide static parametric memory.

Thumbnail: Why your Agent needs Memory, not just context ▶ 4:32 Why your Agent needs Memory, not just context

What is Phoenix architecture and how does it treat code?

Phoenix architecture views code as an implementation detail or disposable build artifact rather than the primary asset of a system. The goal is to constantly replace pieces of the system using AI-generated code that humans never review. This makes frequent change the default behavior of the architecture.

Thumbnail: Stop Maintaining Your Code. Start Replacing It ▶ 13:30 Stop Maintaining Your Code. Start Replacing It

How do I set up my agent with the right tools?

You should provide your agent with an accurate environment including emulators, profilers, and access to backend services. The Android CLI helps interface with various Android tools, manage SDKs, and connect to crash reporting.

Thumbnail: Agentic engineering with Claude Code and Android CLI ▶ 4:01 Agentic engineering with Claude Code and Android CLI

How do I structure prompts to get better and more complete code from Claude?

Instruct the model to generate an ASCII diagram detailing data flows, state machines, and dependencies before writing code. This forces the agent to load comprehensive context into latent space and prevents incomplete implementations. Garry Tan discovered this practice prevents agents from writing buggy or superficial code.

Thumbnail: Tokenmaxxing: How Top Builders Use AI To Do The Work Of 400 Engineers ▶ 10:37 Tokenmaxxing: How Top Builders Use AI To Do The Work Of 400 Engineers

How should I use an AI agent to vet new product features?

You can feed an agent relevant context and external posts, letting it gather information, synthesize options, and propose features. However, you must use your product judgment to filter its recommendations because it may suggest unfeasible or unsustainable directions.

Thumbnail: Use AI to Make Product Decisions ▶ 2:32 Use AI to Make Product Decisions

How do LLM providers curate and filter raw web data for pre-training?

Providers start with massive raw datasets like Common Crawl and apply rigorous filters to remove unwanted content, personal information, and non-target languages. This process results in a clean, high-quality corpus like Fine Web.

Thumbnail: Deep Dive into LLMs like ChatGPT ▶ 1:50 Deep Dive into LLMs like ChatGPT

How do coding agents differ from basic chat bots?

Coding agents evolved from traditional chatbots by incorporating tool calling capabilities that let models execute shell commands and file edits. Instead of a strict human-model conversational turn, the model autonomously chains multiple tool calls to accomplish complex objectives. This transforms a simple prompt-response system into an autonomous execution loop.

Thumbnail: Anthropic's Secret to Better AI Coding Agents ▶ 4:01 Anthropic's Secret to Better AI Coding Agents

Why is prompt caching critical for multi-turn agent applications?

Multi-turn agents repeat a significant amount of context across turns, making prompt caching essential for controlling costs. Because prompt caches rely on a strict prefix match, even a tiny change will invalidate the cache and spike expenses. Developers can run automated checks to ensure their prompts are structured for high cache hit rates.

Thumbnail: Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic ▶ 5:47 Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic

How does context window size affect tool calling reliability?

While large context windows work well for collaborative system design and markdown drafting, models tend to lose reliability during complex tool calling once they reach higher token ranges. Developers often need to manually compact contexts to maintain predictable performance.

Thumbnail: State of Agentic Coding #8 with Mario, Armin, and Ben ▶ 14:31 State of Agentic Coding #8 with Mario, Armin, and Ben

Why are traditional stateless LLMs problematic for building long-running agents?

Transformers are inherently stateless machines, meaning that when you close an interaction loop, the model has no built-in way to update its state or learn over time. Relying purely on appending messages to a list held in process memory leads to severe failures when trying to build reliable long-horizon agents.

Thumbnail: Stateful Agents — Full Workshop with Charles Packer of Letta and MemGPT ▶ 2:43 Stateful Agents — Full Workshop with Charles Packer of Letta and MemGPT

Should I compact context or clear it entirely?

Matt prefers clearing the context entirely to return the AI to a base state, comparing it to the character from Memento who continually forgets. Compacting squeezes previous conversation into a written history record, but resetting ensures the system prompt and starting state remain consistently fresh.

Thumbnail: Full Walkthrough: Workflow for AI Coding — Matt Pocock ▶ 8:42 Full Walkthrough: Workflow for AI Coding — Matt Pocock

What are the main advantages of TypingMind over standard chat interfaces?

TypingMind offers a configurable web UI where developers are not locked into a single model provider, allowing them to switch between Gemini, ChatGPT, or Claude mid-conversation. It also supports custom knowledge bases and direct access to local folders or GitHub repositories via tools.

Thumbnail: Claude, TypingMind, AMP & MCP Servers: The Future Dev ▶ 11:39 Claude, TypingMind, AMP & MCP Servers: The Future Dev

How does memory engineering differ from context engineering?

While context engineering focuses on curating information for limited context windows, memory engineering optimizes retrieval pipelines and latency. It combines disciplines like database engineering, search optimization, and AI engineering to manage agent recall.

Thumbnail: Why your Agent needs Memory, not just context ▶ 6:33 Why your Agent needs Memory, not just context

How did immutable infrastructure inspire disposable software?

The speaker realized that like servers, software systems become corrupted and die under their own weight if they are never changed. By practicing intentional and constant replacement of infrastructure, teams learn that they truly understand their systems. Applying this to software means writing small, bounded units of code that can be easily thrown away and replaced.

Thumbnail: Stop Maintaining Your Code. Start Replacing It ▶ 5:41 Stop Maintaining Your Code. Start Replacing It

How do I manage context window limits effectively?

Keep your conversations around 150,000 tokens to get the full power of the model without context rot. You should also watch out for verbose logs like Gradle output by running them in quiet mode or letting harnesses truncate them.

Thumbnail: Agentic engineering with Claude Code and Android CLI ▶ 9:12 Agentic engineering with Claude Code and Android CLI

When should I use Codex instead of Claude Code?

Use Codex when you encounter complex architectural problems that require a higher intelligence model to audit your codebase. Claude Code is ideal for fast iteration, but Codex acts as a 200 IQ reviewer to catch hidden bugs. You can invoke it via a skill command to analyze your repository and report issues back to your main agent.

Thumbnail: Tokenmaxxing: How Top Builders Use AI To Do The Work Of 400 Engineers ▶ 17:37 Tokenmaxxing: How Top Builders Use AI To Do The Work Of 400 Engineers

How do I protect my system from feature creep when using an agent?

You need to be extremely protective about bringing new abstractions into your system because removing primitives later is difficult due to user reliance and intertwined features. Ask the agent whether an existing primitive can handle the requirement before adding something new.

Thumbnail: Use AI to Make Product Decisions ▶ 6:24 Use AI to Make Product Decisions