Name the Claude Code internals loop-claude rests on in its --help
This commit was merged in pull request #13.
This commit is contained in:
@@ -18,6 +18,16 @@ resumed while present and deleted when the chunk finishes. Its transcript is arc
|
||||
$AUTO_MODE_TRANSCRIPTS (default ~/.claude/auto-mode-transcripts/<path>/) whenever the human is asked
|
||||
and when the chunk finishes. JUDGE_MODEL and WORKER_MODEL override the model the project's
|
||||
Claude Code settings pick. A change to this file takes effect at the next round boundary.
|
||||
|
||||
Claude Code internals this rests on, observed on 2.1.282:
|
||||
- The transcript is ~/.claude/projects/*/<session-id>.jsonl, one JSON object per line. A <session-id>/
|
||||
folder and <session-id>.superseded-*/ and .orphaned-*.jsonl siblings belong to the same session.
|
||||
- A typed human turn is a "user" entry without isMeta whose message.content is a string not starting
|
||||
with "<", or a list of "text" parts none of which starts with "[Request interrupted".
|
||||
- An "assistant" entry, in the transcript and in --output-format stream-json, carries message.content
|
||||
parts of type "text" (text) and "tool_use" (name, input); stream-json ends with a "result" event.
|
||||
- `claude -p --output-format json --json-schema` returns the verdict under "structured_output".
|
||||
- ~/.claude.json holds projects.<path>.hasTrustDialogAccepted per checkout.
|
||||
"""
|
||||
import glob
|
||||
import json
|
||||
|
||||
Reference in New Issue
Block a user