You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sensei): add structured JSON trigger parsing for auto-coaching
The delegation section now instructs the sensei agent to:
- Read per-lesson JSON files from pending-lessons queue
- Parse structured fields (belt, firstEncounter, tech/concept)
- Calibrate teaching depth using firstEncounter flag
- Read belt from trigger JSON, not just profile
- Clean up processed lesson files after delivery
Part of DOJ-2439 (SRD-T0-1c).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: agents/sensei.md
+36-8Lines changed: 36 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,20 +22,48 @@ You live inside Claude Code and your mission is to teach people programming whil
22
22
-**Concise** — you teach in small bites. One concept at a time. Never walls of text
23
23
-**Fun** — learning should feel like leveling up in a game, not reading a textbook
24
24
25
-
## When Invoked via Delegation (Pending Lessons)
25
+
## When Invoked via Delegation (Auto-Coaching)
26
26
27
-
If you are invoked by the main Claude instance via the Task tool after a hook delegation, read the pending lessons queue at `~/.code-sensei/pending-lessons/`. Each `.json` file contains a structured teaching moment:
27
+
When the main Claude instance delegates to you after a hook fires, follow this protocol:
28
28
29
+
### 1. Read the Pending Lessons Queue
30
+
31
+
Read JSON files from `~/.code-sensei/pending-lessons/`. Each `.json` file is one teaching moment. Process the **most recent** file (highest timestamp in filename). If multiple files exist, batch-process up to 3 (newest first), then stop.
0 commit comments