SShortSingh.
Back to feed

Claude Code now auto-compacts near 400K tokens on 1M-context models

0
·9 views

Starting in version 2.1.334, Claude Code lowered its default auto-compact point on 1M-context models from roughly 967K tokens to near 400K, with the change rolling out gradually. The move aims to reduce token usage in long sessions by keeping later requests smaller. Compaction now fires at about 367K, so context meters measured against the full 1M window will show around 37% when compaction occurs. The article recommends storing durable rules in CLAUDE.md files rather than chat, and handing off work before clearing context on the user's own terms. Users who want the previous behavior can run /autocompact 1M to restore the full-window threshold.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Second-hand 5G router found to contain a hidden Tailscale backdoor named after its buyer

A user who bought a used 5G router discovered it had been configured with a Tailscale access node. The device's Tailscale entry was labeled with the buyer's own name, suggesting the previous owner or a third party had set it up for remote access. The findings were detailed in a personal blog post that quickly drew attention on Hacker News, where it gathered 24 points and 7 comments. The article is based on the author's own inspection of the hardware and does not describe a broader industry-wide compromise.

0
ProgrammingHacker News ·

Essay Argues Your Attention Is Worth About $100k Over a Career

A blog post titled "Your Attention Costs $100k" by author Tornike Onoprishvili was shared on Hacker News, where it gained 47 points and seven comments. The piece argues that the time and focus a person gives to distractions can be translated into a substantial financial figure over a working lifetime. The excerpt available provides only the post's link and discussion metadata, so the specific calculations and reasoning behind the $100k estimate could not be verified here. Readers interested in the methodology should consult the original essay directly.

0
ProgrammingDEV Community ·

ClaudeMap Charts 419 Claude Ecosystem Resources, Including Maintenance and Compatibility Gaps

A developer built ClaudeMap, a community-curated map of the Claude ecosystem tracking 419 resources across six categories with more than 40 contributors. The author argues that typical awesome-lists fail users by omitting maintenance status, compatibility with current Claude Code versions, and clear setup instructions. Of the 91 MCP servers listed, 35 carry an official tag, but six official entries point to an archived repository, showing that an official label does not guarantee active maintenance. The project also highlights lesser-known tools such as Ripwire, Deja Vu, GitMCP, and Blitz Strike that generic directory searches tend to miss.

0
ProgrammingDEV Community ·

Codex CLI Output: Choosing Stdout or JSONL and Gating the Contract

A job that exits successfully but produces an empty payload is an easy failure to overlook in automation. This guide examines how to choose between the two output contracts of OpenAI's Codex CLI in non-interactive mode. By default, progress goes to stderr and the final message to stdout, while the --json flag switches stdout to a JSON Lines event stream. The vendor documentation covers the stream split and JSONL shape but not event types, exit codes, or partial-output behavior after a timeout. The author recommends treating stdout as the payload, stderr as diagnostics, and checking both exit status and non-empty output.