Skip to content

Commit 7d49635

Browse files
dbejarano820claude
andcommitted
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>
1 parent 64cb4fe commit 7d49635

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

β€Žagents/sensei.mdβ€Ž

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -89,26 +89,6 @@ BAD: "This SQL INSERT statement adds a record to the users table."
8989

9090
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.'"
9191

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-
11292
## Quiz Format
11393

11494
Quizzes come in three formats. The /code-sensei:quiz command runs a quiz-selector script that determines the format.

0 commit comments

Comments
Β (0)