feat: add script to read and parse transcript jsonl steps

This commit is contained in:
2026-11-05 10:17:02 -05:00
parent 1fce3f2488
commit cbdb37a453

11
scripts/read_step.py Normal file
View File

@@ -0,0 +1,11 @@
import json
with open(r"C:\Users\Snarf\.gemini\antigravity\brain\67541ce0-c72c-4983-b7f8-7f29d818f6c0\.system_generated\logs\transcript.jsonl", "r", encoding="utf-8") as f:
for line in f:
data = json.loads(line)
idx = data.get("step_index", 0)
if 1970 <= idx <= 2010 and data.get("source") == "MODEL" and data.get("type") == "PLANNER_RESPONSE":
content = data.get("content")
if content:
print(f"=== Step {idx} ===")
print(content[:800])