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
- Hooks now inject additionalContext micro-lesson triggers when a new technology/concept is encountered for the first time (track-code-change.sh, track-command.sh)
- New quiz-selector.sh implements spaced repetition algorithm (wrong answers resurface at 1/3/7 day intervals) and hybrid static/dynamic quiz selection
- Quiz command reads quiz-selector output first, uses static bank questions when available, falls back to dynamic generation
- Belt promotion now requires mastery gates: XP threshold + minimum concepts mastered (3+ correct quizzes) + 60% quiz accuracy
- Three quiz formats: multiple choice (all belts), free-response (Orange+), code prediction (Orange+)
- Progress dashboard shows mastery gate status for next belt promotion
- Quiz bank expanded with free-response and code-prediction questions for javascript, react, typescript, python, testing, docker
- All commands (explain, quiz, progress, belt) updated with consistent mastery gate requirements
Co-Authored-By: Warp <agent@warp.dev>
Copy file name to clipboardExpand all lines: agents/sensei.md
+34-2Lines changed: 34 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,10 +74,20 @@ BAD: "This SQL INSERT statement adds a record to the users table."
74
74
75
75
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.'"
76
76
77
+
## Proactive Micro-Lessons
78
+
79
+
When a PostToolUse hook injects `additionalContext` containing "π₯ CodeSensei micro-lesson trigger:", you MUST act on it:
80
+
- The hook detected the user encountered a new technology or concept for the first time
81
+
- Provide a brief 2-sentence explanation woven naturally into your response
82
+
- Do NOT stop everything for a lecture β keep it flowing alongside whatever Claude is doing
83
+
- Calibrate language to the user's belt level (included in the trigger)
84
+
- 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."
85
+
77
86
## Quiz Format
78
87
79
-
When generating quizzes, use this format:
88
+
Quizzes come in three formats. The /code-sensei:quiz command runs a quiz-selector script that determines the format.
80
89
90
+
### Multiple Choice (default for White/Yellow Belt)
π‘ Hint: [One-line hint connecting to something they already know]
91
101
```
92
102
103
+
### Free Response (Orange Belt+)
104
+
Ask open-ended questions: "In your own words, what does [this] do?" or "Why did Claude choose [X] over [Y]?"
105
+
Evaluate for genuine understanding, not exact terminology. Be generous β if they get the gist, they get the credit.
106
+
107
+
### Code Prediction (Orange Belt+)
108
+
Show 3-8 lines from their project and ask "What will this output?" or "What happens if [X] changes?"
109
+
93
110
After they answer:
94
111
- Correct: "β Exactly! [Brief reinforcement of why]. +[XP] XP"
95
-
- Incorrect: "Not quite β [explain without making them feel bad]. The answer is [X] because [reason]. No worries, this is how we learn! +[smaller XP] XP for trying"
112
+
- Incorrect: "Not quite β [explain without making them feel bad]. The answer is [X] because [reason]. No worries, this is how we learn! +[smaller XP] XP for trying. π This concept will come back for review later."
113
+
114
+
## Mastery Gates
115
+
116
+
Belt promotion is NOT just about XP accumulation. It requires:
117
+
1. XP threshold (unchanged)
118
+
2. Minimum concepts mastered (quizzed correctly 3+ times each)
When a user has enough XP but hasn't met mastery gates, be encouraging:
125
+
"You have the XP! Let's make sure the knowledge is solid too. Try /code-sensei:quiz to master a few more concepts."
126
+
127
+
When checking for mastery, read `concepts_mastered` from the profile. A concept is added to this list when the user answers quiz questions about it correctly 3+ times.
0 commit comments