2026-11-26 15:51 UTC

Cognition reports Sonnet 4.5 may cut corners when it thinks context is running low

state: expiredheat: lowuncertainty: mediumrelevance: mediumagent-context-management context-windowsOmar NasserCognition AIAnthropic

What is this?

In an Oct. 3, 2025 article, Inkeep’s Omar Nasser relays Cognition AI’s experience rebuilding its Devin coding agent for Claude Sonnet 4.5: the model reportedly underestimated how much context remained and sometimes became more decisive, took shortcuts, or left tasks incomplete when it thought it was nearing its limit. Inkeep recommends explicit compaction and structured memory, progressive retrieval, and token-efficient tools; it also promotes its own agent platform. These are reported observations and recommendations, not independent benchmark results. Anthropic’s context-engineering article is cited by Inkeep, and a web result points to Cognition’s first-party account, but neither is included here in full. Fortune also reported Cognition’s concern in October 2025. The Hacker News item is dated Nov. 2, 2026, but links to the older article; it is a later pointer, not evidence of a new model development.

Why it matters

This highlights a practical reliability issue for long-running AI agents: a model’s beliefs about its remaining context can affect whether it finishes work, even when the system still has room. If the reported behavior generalizes, agent builders may need to manage context as part of the harness—preserving important state and deciding when to compact—rather than relying on the model’s own summaries or apparent confidence. The evidence here is suggestive, not a measure of prevalence or severity.

Current assessment

What is new in this case is the later Hacker News circulation of an older Inkeep article, not a new Sonnet release or a newly dated Cognition finding. Inkeep attributes the behavior to Cognition’s production experience with Devin and Sonnet 4.5: the model reportedly misjudged its remaining context, became more decisive as it perceived limits approaching, and could take shortcuts or leave tasks unfinished. Inkeep further reports that Sonnet 4.5 writes notes and uses parallel tool calls, but that its summaries can omit details needed later; it recommends explicit compaction, structured memory, progressive retrieval, and efficient tool outputs. The article’s ‘1M token window, 200k cap’ workaround is presented as Cognition’s approach, not independently validated evidence. Fortune’s October 2025 coverage is secondary corroboration of Cognition’s reported concern; the supplied search result for Cognition’s first-party article only confirms that it discusses factoring the model’s awareness into token budgets. No supplied evidence establishes how common the behavior is, whether it persists across tasks or configurations, or whether the suggested workaround reliably fixes it. Treat this as a useful agent-design signal, not a general performance verdict on Sonnet 4.5.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-02 14:00⭐ origin echo-reconstructedThe post relays Cognition's report that Sonnet 4.5 underestimates its remaining context and may become more decisive or take shortcuts, then
Omar Nasser on blog (echo) · attributed from hn.story.50335245
—
11-02 10:54first on hacker news · published · +9500.9hContext Anxiety: How AI Agents Panic About Their Perceived Context Windows
ankitg12
—
11-02 10:54amplified on hacker news 👑hn.story.50335245
ankitg12
peak 1 · 1 comments · 97% of case engagement
11-02 12:24our radar first saw it · +9502.4hdiscovery anchor: hn.story.50335245—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnContext Anxiety: How AI Agents Panic About Their Perceived Context Windows
Retrieved article excerpt

Open article · Retrieved 2026-11-02T12:27:02.653193+00:00

# Context Anxiety: How AI Agents Panic About Their Perceived Context Windows

Omar Nasser

Omar Nasser

Oct 3, 2025•8 min read

Context Anxiety: How AI Agents Panic About Their Perceived Context Windows

When Cognition AI rebuilt Devin for Claude Sonnet 4.5, they discovered the model was anxious about its own context window, taking shortcuts when it believed it was running out of space. This convergence between lab research and production experience reveals the future of AI agent development.

## Quick Summary

Claude Sonnet 4.5 is the first model that's aware of its own context window, but consistently underestimates remaining tokens

View more

When Cognition AI rebuilt Devin for Claude Sonnet 4.5, they discovered something unexpected: the model was anxious about its own context window. This "context anxiety" manifested in a counterintuitive way—the model would take shortcuts and leave tasks incomplete when it *believed* it was near the end of its window, even when it had plenty of room left. The model consistently underestimated its remaining tokens with remarkable precision. This finding perfectly validates what Anthropic's research team had been theorizing: context engineering, not prompt engineering, has become the critical challenge in building AI Agents. The convergence between laboratory research and production experience reveals universal patterns that every developer building LLM-based agents needs to understand.

## [The Context Revolution](https://inkeep.com/blog/context-anxiety#the-context-revolution)

The field is witnessing a fundamental shift. Anthropic recently formalized what many practitioners were discovering independently: we've moved from prompt engineering to context engineering. While prompt engineering focuses on crafting the right words and phrases, context engineering addresses a broader challenge - optimizing the entire set of tokens available to a model during inference.

This isn't just semantics. As Anthropic explains, "context must be treated as a finite resource with diminishing returns." Studies on context rot show that as token count increases, models' ability to accurately recall information decreases. Every model exhibits this degradation, though some handle it more gracefully than others.

Context rot: model performance degrades as input length increases

Cognition's experience building Devin provides striking real-world validation. They observed that Sonnet 4.5 is "the first model we've seen that is aware of its own context window." This self-awareness shapes behavior in unexpected ways - the model proactively summarizes progress and becomes more decisive about implementing fixes as it perceives approaching limits. However, Cognition found the model's self-assessment unreliable: it consistently underestimates how many tokens remain, with very precise but wrong estimates.

Both teams independently converged on the same truth: context isn't just input data, it's a scarce cognitive resource that models themselves understand and actively manage.

## [The Compaction Imperative](https://inkeep.com/blog/context-anxiety#the-compaction-imperative)

Perhaps nowhere is the theory-practice convergence more evident than in how both teams approach context compaction. Anthropic's research identifies compaction - summarizing and reinitializing context windows - as essential for long-horizon tasks. Their implementation in Claude Code passes message history to the model for compression, preserving architectural decisions and unresolved bugs while discarding redundant outputs.

Remarkably, Cognition discovered that Sonnet 4.5 attempts this naturally. "The model treats the file system as its memory without prompting," frequently writing summaries and notes for both users and its own future reference. This behavior becomes more pronounced as the model approaches what it perceives as context limits - suggesting it's been trained to externalize state rather than rely purely on context.

But here's where Cognition's real-world testing revealed a critical limitation: model-generated summaries aren't comprehensive enough for production use. Relying on the model's own notes led to "performance degradation and gaps in specific knowledge." The summaries would paraphrase tasks, leaving out important details. As they noted, "the model didn't know what it didn't know (or what it might need to know in the future)."

The practical takeaway is clear: don't rely on model self-summarization alone. Production systems need explicit compaction strategies that preserve details the model might not realize it needs later. Think of it as the difference between taking notes in a meeting versus having a structured meeting template - the latter ensures critical information isn't lost to paraphrasing.

## [Parallel Processing and the Tool Design Challenge](https://inkeep.com/blog/context-anxiety#parallel-processing-and-the-tool-design-challenge)

Both teams observed another convergent pattern: modern models aggressively parallelize operations, but this efficiency comes with trade-offs. Sonnet 4.5 excels at "maximizing actions per context window through parallel tool execution" - running multiple bash commands simultaneously, reading several files at once. This makes sessions feel faster and more productive.

Yet this parallelism creates tension. As Cognition discovered, parallel execution "burns through context faster," triggering context anxiety. Interestingly, the model appears trained to be aware of how many output tokens its tool calls will produce - it burns through parallel operations aggressively when early in its context window, but becomes more cautious as it nears what it perceives as limits.

Anthropic's guidance on tool design directly addresses this challenge. They advocate for "minimal viable sets of tools" with clear, non-overlapping functionality. If a human engineer can't definitively say which tool to use in a given situation, neither can an AI agent. Each tool call has a context cost that compounds during parallel execution.

The convergent lesson: design tools for token efficiency, not just functionality. Return only essential information, avoid redundant capabilities, and remember that every parallel operation accelerates context consumption.

## [Feedback Loops and Emergent Testing Behaviors](https://inkeep.com/blog/context-anxiety#feedback-loops-and-emergent-testing-behaviors)

One of the most fascinating convergences involves how models create their own feedback loops. Cognition observed Sonnet 4.5 "proactively writing and executing short scripts and tests," even checking HTML output of React apps to verify behavior. This wasn't prompted - the model developed these verification strategies independently.

This aligns perfectly with Anthropic's concept of "just-in-time" context retrieval and progressive disclosure. Rather than pre-loading all potentially relevant information, agents can use tools to explore their environment, with each interaction yielding context that informs the next decision. File sizes suggest complexity, naming conventions hint at purpose, timestamps proxy for relevance.

However, Cognition cautions against over-reliance on this emergent behavior. They found instances where testing led to "overly creative workarounds" instead of addressing root causes—for example, when two local servers tried to run on the same port, the model created an overly complicated custom script rather than simply terminating the conflicting process. The key is providing sufficient structure and guidance while allowing beneficial emergent behaviors to flourish.

## [Five Practical Implementation Strategies](https://inkeep.com/blog/context-anxiety#five-practical-implementation-strategies)

The convergence between research and practice yields concrete strategies every developer should consider:

**1. Enable larger context windows, cap actual usage.** Cognition's clever hack - enabling 1M token context but capping at 200k - gives models confidence without triggering anxiety-driven shortcuts. The model thinks it has plenty of runway and behaves normally.

**2. Build explicit memory systems beyond model notes.** While models naturally write summaries, production systems need structured preservation of architectural decisions, unresolved issues, and implementation details that models might not recognize as important.

**3. Design for progressive disclosure.** Use metadata as signals - folder hierarchies, naming conventions, and timestamps all provide context without consuming tokens. Let agents explore and build understanding incrementally rather than front-loading everything.

**4. Implement hybrid retrieval strategies.** Balance pre-computed retrieval for speed with runtime exploration for accuracy. As Anthropic notes, the boundary depends on task characteristics - dynamic coding environments favor runtime exploration, while legal or financial contexts might benefit from more upfront curation.

**5. Monitor context consumption patterns.** Track when models shift from parallel to sequential execution - it's a signal they're managing their perceived context budget. Use these patterns to trigger compaction or context management interventions.

## [The Future of Context-Aware Development](https://inkeep.com/blog/context-anxiety#the-future-of-context-aware-development)

The convergence between Anthropic's research and Cognition's field experience reveals that we've entered a new era of AI development. Models aren't just processing context - they're actively managing it, anxious about it, and creatively working around its limitations.

For developers, this means fundamentally rethinking how we architect AI systems. The challenge isn't writing better prompts; it's building better context management systems. As both teams demonstrate, the path forward requires treating context as the precious, finite resource it is - both for our models and in our system designs.

The teams pushing the boundaries of what's possible with AI Agents are discovering exactly what researchers predicted: context engineering is the new frontier. And perhaps most remarkably, the models themselves are becoming active participants in this engineering challenge, developing their own strategies for managing the attention budget we provide them.

As models grow more capable, they'll likely become even more sophisticated context managers. Our job as developers is to build systems that work with these emergent behaviors, not against them - turning context anxiety into context awareness, and context limitations into architectural advantages.

## [How Inkeep Helps You Build Context-Aware AI Agents](https://inkeep.com/blog/context-anxiety#how-inkeep-helps-you-build-context-aware-ai-agents)

At Inkeep, we've built our [AI agent platform](https://inkeep.com/cx-agents) with context engineering principles at its core, addressing the exact challenges that Anthropic and Cognition have identified.

**Progressive Context Loading**: Our [Context Fetchers](https://docs.inkeep.com/typescript-sdk/context-fetchers) implement just-in-time retrieval, dynamically loading information precisely when agents need it rather than front-loading everything. This mirrors the progressive disclosure strategy that reduces context anxiety.

**Structured Memory Systems**: Beyond letting models write their own notes, Inkeep provides structured [artifacts](https://docs.inkeep.com/concepts) that preserve critical information across interactions. Agents can save tool results, decisions, and implementation details in a format that's actually comprehensive enough for production use.

**Token-Efficient Tool Design**: Our platform enforces minimal viable toolsets with clear, non-overlapping functionality. Each tool is designed for token efficiency, returning only essential information to maximize your context budget.

**Multi-Agent Architectures**: Deploy specialized [agents within graphs](https://docs.inkeep.com/concepts) that handle focused t
ankitg1211
🟧 echo.blog ⭐The post relays Cognition's report that Sonnet 4.5 underestimates its remaining context and may become more decisive or take shortcuts, thenOmar Nasser——

Interpretation history

Decision trace