Urgent.News

What's breaking now, across hundreds of outlets.

AI

I turned off one Claude Code setting, and it finally stopped forgetting what we were working on

We've had this conversation before, Claude

I turned off one Claude Code setting, and it finally stopped forgetting what we were working on

In 2026, Anthropic experienced a significant turn of events. Claude, initially regarded with reverence in niche developer circles, began to find utility across various fields, prompting Anthropic to accelerate the development of new features and commands for Claude Code. However, one such feature, automatic context compaction, has proven counterproductive for longer tasks, causing Claude Code to lose track of the initial task at hand.

Context windows are a crucial aspect of Large Language Models (LLMs), determining the amount of information they can manage at any given time. Anthropic's mainstream models possess a 1-million-token context window, but this isn't a guarantee of optimal performance. As Claude Code's responses deteriorate with longer conversations, token consumption becomes a concern.

Despite the context window's size, Claude's active working information should ideally remain relatively small. To tackle these issues, Anthropic introduced automatic context compaction in Claude Code. This feature generates conversation summaries, thus freeing up space for new information. While Anthropic couldn't entirely trust users to manage context window management, they introduced manual compaction via the /compact command and automatic compaction once specific thresholds are reached.

With the release of Claude Code v2.1.334, the threshold for automatic compaction was reduced from 967,000 tokens to approximately 367,000 tokens. Idle compaction triggers when a conversation is idle for about an hour and has accumulated at least 200,000 tokens. While Claude decides what to retain, this often doesn't align with the user's perspective, leading to the loss of significant details.

Furthermore, automatic compaction can occur when much of the information is still pertinent to the task at hand. The good news is that users can turn off automatic compaction by disabling it in Claude Code.

Rewritten by urgent.news; may contain errors โ€” check the original.

Source: xda-developers.com

Read the original at xda-developers.com โ†’

More from XDA Developers on urgent.news

Report a problem with this story

Get the day's news by email. Daily, weekly or monthly. Sign up

More in AI

More from Thursday, 3 December 2026 โ†’