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
@@ -117,12 +131,17 @@ if command -v jq &> /dev/null; then
117
131
esac
118
132
fi
119
133
120
-
if [ "$IS_FIRST_EVER"="true" ] && [ -n"$CONCEPT" ];then
121
-
# First-time encounter: micro-lesson about the concept
122
-
CONTEXT="🥋 CodeSensei micro-lesson trigger: The user just encountered '$CONCEPT' for the FIRST TIME (command: $SAFE_CMD). Their belt level is '$BELT'. Provide a brief 2-sentence explanation of what $CONCEPT means and why it matters. Adapt language to their belt level. Keep it concise and non-intrusive."
if [ "$ERROR_IS_FIRST_EVER"="true" ] && [ -n"$ERROR_CONCEPT" ];then
138
+
CONTEXT="🥋 CodeSensei micro-lesson trigger: The user just encountered '$ERROR_CONCEPT' for the FIRST TIME while reading command output ($SAFE_CMD). Their belt level is '$BELT'. Provide a brief 2-sentence explanation of how to read this kind of error and why it matters. Adapt language to their belt level. Keep it supportive and practical."
123
139
elif [ -n"$ERROR_CONCEPT" ];then
124
-
# Error detected in command output: teach debugging
140
+
# Error detected in command output: teach debugging first
125
141
CONTEXT="🥋 CodeSensei inline insight: An error appeared in the command output ($SAFE_CMD). The user's belt level is '$BELT'. This is a great moment to teach '$ERROR_CONCEPT' — briefly explain how to read and interpret this type of error in 1-2 sentences, adapted to their belt level. Keep it supportive and practical."
# First-time encounter: micro-lesson about the concept
144
+
CONTEXT="🥋 CodeSensei micro-lesson trigger: The user just encountered '$CONCEPT' for the FIRST TIME (command: $SAFE_CMD). Their belt level is '$BELT'. Provide a brief 2-sentence explanation of what $CONCEPT means and why it matters. Adapt language to their belt level. Keep it concise and non-intrusive."
126
145
elif [ -n"$CONCEPT" ];then
127
146
# Already-seen concept: brief inline insight about this specific command
128
147
CONTEXT="🥋 CodeSensei inline insight: Claude just ran a '$CONCEPT' command ($SAFE_CMD). The user's belt level is '$BELT'. Provide a brief 1-sentence explanation of what this command does, adapted to their belt level. Keep it natural and non-intrusive."
0 commit comments