PulseAugur
EN
LIVE 05:19:16

Claude Code compaction inconsistently retains invoked skills

A recent analysis of Claude Code's compaction behavior reveals inconsistencies in how it retains invoked skills. While the root CLAUDE.md file and its imports are consistently preserved, two out of eight compaction tests failed to re-inject the body of an invoked skill when using the `claude -p --resume` command. This contrasts with compactions run within a single process, which successfully re-attached skills. The study also confirmed that Claude Code preserves typed passphrases within chat summaries and correctly re-injects nested CLAUDE.md files under specific conditions. AI

IMPACT Investigating the reliability of AI agent memory and context retention during operations like compaction.

RANK_REASON Analysis of a specific software feature's behavior with detailed methodology and findings. [lever_c_demoted from research: ic=1 ai=1.0]

Read on dev.to — Claude Code tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Claude Code compaction inconsistently retains invoked skills

How we ranked this

Signal score
21 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
Analysis of a specific software feature's behavior with detailed methodology and findings. [lever_c_demoted from research: ic=1 ai=1.0]
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, other
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Rulestack ·

    What survives /compact in Claude Code: the root CLAUDE.md came back 8 of 8 times, an invoked skill didn't through claude -p --resume

    <blockquote> <p>2 of 8 compactions dropped the body of a skill I had invoked earlier in the session, even though the Claude Code docs say invoked skill bodies are re-injected: both were <code>/compact</code> sent through <code>claude -p --resume</code>, while the 6 compactions th…