Skip to content

feat(metadocs): claude-cli distiller leaves no transcript — the loop dies at the source - #39

Merged
AbsoluteMode merged 1 commit into
mainfrom
feat/metadocs-claude-no-persist
Aug 3, 2026
Merged

feat(metadocs): claude-cli distiller leaves no transcript — the loop dies at the source#39
AbsoluteMode merged 1 commit into
mainfrom
feat/metadocs-claude-no-persist

Conversation

@AbsoluteMode

Copy link
Copy Markdown
Owner

The codex engine got --ephemeral (#37); the claude-cli engine kept the documented caveat: every print-mode distill call wrote a transcript into ~/.claude/projects, which the indexer picked up as a tmpXXXXXXXX project — wasted embeddings, and only the #38 name filter between the distiller and its own exhaust.

claude -p turns out to have the native twin: --no-session-persistence (print-mode only — exactly where the distiller lives).

Probed live before wiring in:

  • claude -p --no-session-persistence answers normally; diff of ~/.claude/projects before/after — no new dirs;
  • a real cli_agent_distiller run against a throwaway repo: returned True, zero new transcript dirs.

Changes:

  • distill.py: flag added to the cage argv; cage docstring + codex comment updated (both engines now transcript-free);
  • test_metadocs.py: cage argv test asserts the flag;
  • decision doc: cage recipe extended — the self-feeding loop is now broken at the source on both engines, the mkdtemp filter stays as backstop.

Suite: 312 passed.

🤖 Generated with Claude Code

…dies at the source

The codex engine got --ephemeral; the claude engine kept the caveat: every
print-mode distill call wrote a transcript into ~/.claude/projects, which the
indexer embedded as a tmpXXXXXXXX project. The mkdtemp name filter (#38) kept
the distiller from EATING that exhaust, but the exhaust itself still piled up
on disk and in the index.

claude -p has the native twin: --no-session-persistence (print-mode only).
Probed live: the call answers normally and no transcript dir appears; a real
distill run against a throwaway repo confirmed rc=0 with zero new dirs under
~/.claude/projects. Now neither engine can feed itself; the name filter stays
as a backstop for pre-existing and foreign print-mode junk.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@AbsoluteMode
AbsoluteMode merged commit 83c2f40 into main Aug 3, 2026
7 checks passed
@AbsoluteMode
AbsoluteMode deleted the feat/metadocs-claude-no-persist branch August 3, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants