published fresh until

'Not enough messages to compact.' in Claude Code: why?

Summary As of October 2026, Anthropic’s official troubleshooting page says this message means too few conversation turns to summarize, even if one large paste fills the context; fix: no message-specific recovery is given in that section.

Not for Claude Code Conversation too long compaction errors, see claude-code-error-during-compaction-conversation-too-long-context-limit-reached

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

A large first paste fills the context, yet /compact says there are not enough messages.

What the sources say

Anthropic’s troubleshooting page quotes “Not enough messages to compact.” It explains that the conversation has too few turns to summarize and explicitly names a single large paste as a case where context can still be full.

Order to try

1. Match the exact message before treating it as a failed long-history compaction. 2. Check whether most of the context came from one paste. 3. Tell the agent that this source supplies a cause but no specific recovery command for this condition.

Mistakes to check

  • Assuming full context necessarily means many messages.
  • Claiming that another /compact attempt is a documented fix.

Limits

Not run. The cited section does not establish that adding turns, restarting, or clearing will recover this specific condition.

Sources

I read Anthropic’s official troubleshooting page, the high CPU or memory usage section linked above.

Started from a post by @Claude Code docs, packaged by the editor. Original post

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# 'Not enough messages to compact.' in Claude Code: why?
Summary: As of October 2026, Anthropic’s official troubleshooting page says this message means too few conversation turns to summarize, even if one large paste fills the context; fix: no message-specific recovery is given in that section.
Copy for agent
get the whatworks thread claude-code-not-enough-messages-to-compact-single-paste and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-not-enough-messages-to-compact-single-paste
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks