Commit 2774633
fix(learn): read session transcript in forked execution context (#230)
* fix(learn): read session transcript in forked execution context
The learn skill runs with `context: fork`, which creates an isolated
subagent with no access to the parent conversation. Pass the
transcript_path from the stop hook input through to the skill
invocation, and add Step 0 to SKILL.md instructing the forked agent
to read the transcript file for analysis.
* fix(learn): disambiguate fallback file format in SKILL.md
Addresses CodeRabbit review finding: the fallback guidance that points
to .evolve/trajectories/ was ambiguous about format. Explicitly name
both file types the directory may contain (trajectory_*.json as a
single JSON object, claude-transcript_*.jsonl as raw JSONL) and how to
parse each.
* fix(learn): document how to extract transcript_path from stop hook message
Addresses CodeRabbit review finding: SKILL.md referenced <transcript_path>
as a placeholder but didn't tell the forked agent how to obtain the actual
value. Point to the literal marker "The session transcript is at: <path>"
produced by on_stop.py and describe how to extract and strip the path.
---------
Co-authored-by: Vatche Isahagian <visahak@users.noreply.github.com>1 parent afe8459 commit 2774633
2 files changed
Lines changed: 26 additions & 2 deletions
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
28 | 47 | | |
29 | 48 | | |
30 | | - | |
| 49 | + | |
31 | 50 | | |
32 | 51 | | |
33 | 52 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
21 | | - | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments