feat(metadocs): claude-cli distiller leaves no transcript — the loop dies at the source - #39
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 atmpXXXXXXXXproject — wasted embeddings, and only the #38 name filter between the distiller and its own exhaust.claude -pturns 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-persistenceanswers normally; diff of~/.claude/projectsbefore/after — no new dirs;cli_agent_distillerrun against a throwaway repo: returnedTrue, 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;Suite: 312 passed.
🤖 Generated with Claude Code