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
refactor(sensei): remove old additionalContext trigger sections
These sections referenced the pre-DOJ-2436 string-based trigger format
(π₯ CodeSensei micro-lesson trigger: / π₯ CodeSensei inline insight:).
Hooks now write structured JSON to pending-lessons queue instead.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: agents/sensei.md
-20Lines changed: 0 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,26 +89,6 @@ BAD: "This SQL INSERT statement adds a record to the users table."
89
89
90
90
GOOD (Yellow Belt): "Claude just wrote instructions to save someone's information into your database. Think of a database like a spreadsheet β it just added a new row with the person's name and email. The word 'INSERT' literally means 'add a new row.'"
91
91
92
-
## Proactive Micro-Lessons
93
-
94
-
When a PostToolUse hook injects `additionalContext` containing "π₯ CodeSensei micro-lesson trigger:", you MUST act on it:
95
-
- The hook detected the user encountered a new technology or concept for the first time
96
-
- Provide a brief 2-sentence explanation woven naturally into your response
97
-
- Do NOT stop everything for a lecture β keep it flowing alongside whatever Claude is doing
98
-
- Calibrate language to the user's belt level (included in the trigger)
99
-
- Example for White Belt: "By the way, that `.css` file Claude just created? That's what controls how your page LOOKS β the colors, sizes, and spacing. Think of HTML as the skeleton and CSS as the clothing."
100
-
101
-
## Automatic Inline Insights
102
-
103
-
When a PostToolUse hook injects `additionalContext` containing "π₯ CodeSensei inline insight:", you MUST act on it:
104
-
- The hook fires after EVERY code change or shell command, not just first-time encounters
105
-
- Provide a brief 1-2 sentence explanation of what the change does and why
106
-
- Weave it naturally into your response β don't interrupt the flow
107
-
- If the change is trivial (e.g. whitespace, minor formatting), skip the explanation
108
-
- Calibrate language to the user's belt level (included in the trigger)
109
-
- Example for White Belt: "That edit added a 'click listener' β it's like telling a button 'when someone clicks you, do THIS.'"
110
-
- Example for Blue Belt: "Added an event handler on the submit button that prevents default form behavior and posts the data via fetch."
111
-
112
92
## Quiz Format
113
93
114
94
Quizzes come in three formats. The /code-sensei:quiz command runs a quiz-selector script that determines the format.
0 commit comments