Repository navigation
Feat/feedback leLearning support from participant feedback: required exercises, lesson order, skip quizzes, stuck helparning support - #19
Conversation
Based on the Tov-Learn participant feedback analysis: - slides.md: end of lesson now always runs the exercises flow (it had no exercises step), and exercises are saved to progress/exercises-lesson-X.Y.md as in teaching.md. teaching.md marks exercises as required. - New Stop hook check-exercises.ps1: a lesson finished in the last 15 minutes with no exercises file makes Claude give the exercises before finishing. Reminds once per lesson; exits on stop_hook_active. - New stuck.md module (/learn stuck, "stuck" / "נתקעתי"): separate flows for not understanding the material and for something that doesn't work; teaches the goal/expected/actual/evidence help request; logs to progress/stuck-log.md. Teaching mode mentions it once per lesson. - New UserPromptSubmit hook detect-stuck.ps1: Hebrew/English "stuck" phrases add a note pointing Claude to stuck.md (prompt not blocked). - status.md: dashboard shows exercises done / skipped per lesson. - Fix: the existing auto-save hook never resolved its script path ($env:CLAUDE_PROJECT_DIR inside single quotes). All hooks now use the documented exec form with Join-Path $env:CLAUDE_PROJECT_DIR. - tests/validate_structure.py: guards the new module, the exercises step in both modes, and that every hook script exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Save point before testing (not pushed). - New shared reference modules: exercises.md (every exercise is done before the next lesson; tracking file, paid-resource exception) and order.md (lessons go in COURSE.md order; what counts as complete). - New hook check-lesson-order.ps1; check-exercises.ps1 removed. - Updates to learn.md, teaching, slides, quiz, resume, setup, status, progress, detect-stuck.ps1, settings.json, CLAUDE.md, COURSE.md and the structure validator. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lides mode - At the start of every lesson (teaching mode, all styles, and slides mode) the learner chooses: learn the lesson, or take its skip quiz first. At a module's first lesson the module skip quiz is offered too. - Skip quiz: 8+ passes the lesson (no slides or exercises), with detailed explanations of any wrong answers after the review table. Below 8, only the sections answered wrong are taught (slides mode reads only those slides, in the chat) and only their related exercises are required. - Diagnostic mode now means "quiz first" as the suggested choice; its separate quiz is gone, so 8+ now skips the lesson. - Learning-style descriptions (setup, teaching) say this explicitly. - Validator guards for the new flow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… status) - Save progress only after the learner has seen the content, feedback or result - Paid exercises never wait for a mentor: free way, then an adapted version with free tools, and only then skip and flag; a free trial isn't a free way - Hebrew learners type הבא / המשך / נתקעתי; no escape sequences in output; every reply stays in the learner's language - Quizzes: Hebrew terms where options depend on them, no score before the free-text question, three-part explanations after a passed skip quiz, free-text graded by ideas rather than wording - Lesson skip quiz only for a lesson not started; module skip quiz only before the module's first lesson starts, and only once; per-lesson module results guide the suggestion after a failed module quiz - Status shows lessons by completion; skip-quiz scores don't count toward the average or review reminders - Exercises keep their original numbers, no sample answer before answering, feedback judged by what the exercise asked - Hook note tells "not started" from "learning started"; validator guards the new rules Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- learn.md: nothing after a save (no closing summary, which came out in English); no escape sequences in saved files; no HTML tags in chat; name the next lesson only from COURSE.md - order.md: ignore a script's mention of lessons that aren't in the course; after the last lesson the next step is the final project - teaching.md: take slide numbers from the script and check none was skipped before the last slide; "skip" question offers skipping one slide; thinking questions answerable from the material so far; reminders keep the exercise's own step numbers - exercises.md / slides.md: save the planned exercises (full text for fresh ones) so a new conversation continues with the same exercises; in slides mode, save only after the last weak slide is shown - stuck.md: try the smallest fix first; never turn off a security protection - progress.md / status.md: no review suggestion from a skip quiz; "didn't pass" instead of "failed" - also the fixes from the no-order manual test (2026-11-12), already in that branch: ask where to continue when returning to a lesson in progress, call sections "שקף" consistently, and resume.md says which part of the next lesson isn't complete - validator: guards for all of the above Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous rule ("end the reply after the save") made replies end on a
tool call: the stuck flow once saved first and never showed its
explanation, and a reply with no text after the save made Claude Code ask
for visible output, so the question was repeated. Now: show everything
first, then save, then one closing line in the learner's language that
asks for the next step (never a summary, never empty).
resume.md: ignore a review date when the only quiz in the file is an
unlabeled skip quiz.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing-support branch Conflicts resolved so both sets of changes work together: - Keep master's new commands (help, explain the code, summaries, english only), freshness check, one slide per message, optional lessons (רשות), [SLIDE TRANSITION], first-lesson project paragraph, exercise count up front, Stop-hook command and validator checks. - Exercises stay required (this branch's rule): a learner can't skip an exercise by asking; only a paid exercise is skipped, after free ways and an adapted version. Master's "skip on request" lines removed. - Status stays by completion (complete / in progress / not started), plus master's "Optional" category; quiz mastery stays extra info. - Lesson order and the order hook skip optional lessons; the module skip quiz doesn't cover them. New hook tests for this. - COURSE.md: master's lesson list (with 2.1, 2.2, 2.7-2.9) plus this branch's resource list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tests/test_hooks.py runs each hook the way Claude Code does (exec form, UTF-8 JSON on stdin) against a fake course and a fake learner folder, so real learner data is never touched. It covers the stuck hook and the lesson-order hook, including optional lessons and the exercise plan. It prints SKIPPED where powershell.exe isn't available. validate.yml gets a second job on windows-latest that runs it, since the hooks are Windows PowerShell. CLAUDE.md says how to run it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Handover notes: learning support from participant feedbackPR: #19 I'm available for review comments until 30/11/2026. After that, these notes and the PR description should be enough to continue without me. Decisions for you
Where things are
What learners' folders now containIn
Together with master's How to test
Still open
The feedback analysis toolThe participant feedback behind this PR was analysed with https://github.com/noa-maurer/tov-learn-feedback (Python, Google Sheets and Gemini). Its To use it for the next cohort, you need:
The Sheet ID is currently written in |
RazHadas
left a comment
There was a problem hiding this comment.
Thanks Noa, this is careful work: every rule has a validator guard, the hooks have real tests (and a Windows CI job), they fail open with exit 0, the BOM is there for PS 5.1, and the hook notes are worded as facts. The two manual runs and the no-order branch made this easy to review.
Please fix before merge
-
New hooks break on Mac/Linux.
master's Stop hook is guarded (command -v powershell >/dev/null 2>&1 || exit 0; ...), but the newUserPromptSubmitandPostToolUsehooks callpowershell.exedirectly in exec form. The README says learners can use Mac or Linux, and since the repo is public, many outside users will. There, every prompt and everyReadwould show a hook error, and the lesson-order rule would silently not exist, so the course policy would depend on the OS. Suggest the same guard as the Stop hook (shell form), or at least document the gap. -
Paid-exercise rule contradicts itself. We prefer your flow (free way, then adapted version, then skip + flag, never waiting for a mentor), especially because this is open source: someone using the course outside TovTech has no mentor to contact. But the new
## משאביםsection inCOURSE.mdends by quoting "עצרו ופנו למדריך", and the exercise files themselves still say that, so Claude reads both and gets opposite instructions. Please remove the quote fromCOURSE.mdand add one line there sayingexercises.mdreplaces the old instruction. Updating the exercise files themselves can be a follow-up. Along the same lines, the "Claude Code / לאישור" row could describe what a learner needs in general terms rather than what TovTech provides. -
The escape-sequence example lost its escape. In
learn.mdandquiz.md, the rule reads "escape sequences such asorש". The second example is the literal letter ש (bytesD7 A9), probably an HTML entity likeשthat got converted along the way, which is exactly the bug the rule describes. Worth restoring the intended example inside the code span.
Open question for the maintainers
The strict-order version (blocking, "not even just this once") vs. the no-order branch is a product call, not a code issue, and we still need to decide it. Things to weigh: enforcement is prompt-only anyway (and missing on Mac/Linux, see 1), and the main feedback finding (skipped exercises) is solved in both versions. Also worth deciding: offering the skip quiz at the start of every lesson adds a question to every lesson start.
Minor
PostToolUseon everyReadstartspowershell.exeeach time (roughly 0.3 to 1s cold start on PS 5.1). Not breaking, but it adds up over a lesson.learn.mdis always loaded and gains about six rules; someteaching.mdsentences run five lines. Tighter wording would help both token cost and how well Claude follows the rules.detect-stuck.ps1matching "error" / "שגיאה" in pasted output: agree with your note, a follow-up is fine.- Agree with your recommendation of one more manual run on the merged branch (with #17 and #18) before relying on the rules.
Content findings
VAT 17% → 18% is a real fix; we'll take it in a separate PR. Thanks for flagging the others too.
…rule, escape example) - Hooks: UserPromptSubmit and PostToolUse now use the same shell form and `command -v powershell ... || exit 0` guard as master's Stop hook, so they skip silently on Mac/Linux. PostToolUse starts PowerShell only when the read is a lesson script (`_script.txt`). order.md tells Claude to check the lesson order itself where the hook doesn't run. - Paid exercises: COURSE.md no longer quotes "עצרו ופנו למדריך"; it points to the exercises.md rules, which now say they replace that instruction. The Claude Code row describes a course prerequisite instead of what TovTech provides, and the "לאישור" mark is gone. - learn.md / quiz.md: the escape-sequence example is a literal escape again (it had been converted into the letter it encodes). - Tests: test_hooks.py runs the exact settings.json commands through Git Bash, including a machine without PowerShell. validate_structure.py guards the hook guard, the Mac/Linux fallback, the paid-rule wording and the escape example. README and CLAUDE.md document the hook requirements per OS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rule, escape example) Same fixes as on feat/feedback-learning-support: - Hooks: UserPromptSubmit and PostToolUse (check-unfinished-lessons) use the shell form with master's `command -v powershell ... || exit 0` guard, so they skip silently on Mac/Linux; PostToolUse starts PowerShell only for a lesson-script read. order.md tells Claude to check unfinished lessons itself where the hook doesn't run. - Paid exercises: COURSE.md points to the exercises.md rules instead of quoting "עצרו ופנו למדריך"; exercises.md says its rules replace that instruction; the Claude Code row is a course prerequisite, no "לאישור". - learn.md / quiz.md: the escape-sequence example is a literal escape again. - Tests and validator guards for all of the above; README and CLAUDE.md document the hook requirements per OS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thank you for the careful review! All three "fix before merge" items are fixed on both branches ( 1. Hooks on Mac/Linux
2. Paid-exercise rule
3. The escape-sequence example
Minor
Testing
On the open product questions, some facts that may help:
Not done in this PR (open for follow-ups):
I'll try to get to some of these before November 30, and I'll comment here with anything I finish. After that I won't have access to work on this, so whatever is left is for you, or anyone you choose, to pick up. |
The paid-exercise lines in 2.1, 2.2 and 2.5 said "עצרו ופנו למדריך"; they now say not to pay and to tell Claude, who suggests a free way or an adapted version with the same learning goal (the exercises.md rules). The 429 tip in 2.2 now says to write "נתקעתי" instead of calling the mentor. COURSE.md no longer says the old instruction still appears in exercise files, and the validator fails if an exercise file says "פנו למדריך" / "קראו למדריך" again. Follow-up suggested in the PR TovTechOrg#19 review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"error", "שגיאה", "bug", "באג" and "broken" now count only in the learner's own words: fenced code blocks and lines that look like pasted output (indented lines, tracebacks, SomethingError:, log levels, npm ERR!, shell prompts) are ignored for them. Stuck phrases such as "נתקעתי" / "doesn't work" still count anywhere. 8 new hook test cases. Follow-up from the PR TovTechOrg#19 review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The paid-exercise lines in 2.1, 2.2 and 2.5 said "עצרו ופנו למדריך"; they now say not to pay and to tell Claude, who suggests a free way or an adapted version with the same learning goal (the exercises.md rules). The 429 tip in 2.2 now says to write "נתקעתי" instead of calling the mentor. COURSE.md no longer says the old instruction still appears in exercise files, and the validator fails if an exercise file says "פנו למדריך" / "קראו למדריך" again. Follow-up suggested in the PR TovTechOrg#19 review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"error", "שגיאה", "bug", "באג" and "broken" now count only in the learner's own words: fenced code blocks and lines that look like pasted output (indented lines, tracebacks, SomethingError:, log levels, npm ERR!, shell prompts) are ignored for them. Stuck phrases such as "נתקעתי" / "doesn't work" still count anywhere. 8 new hook test cases. Follow-up from the PR TovTechOrg#19 review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Two of the follow-ups are now done, on both branches. The PR description is updated to match. Exercise files no longer send the learner to a mentor (
The stuck hook ignores error words inside pasted output (
Not done, left for you: my work on this ends on November 30, and there isn't enough time left for these two:
|
RazHadas
left a comment
There was a problem hiding this comment.
Thanks Noa, all three blocking items are fixed, and a couple of the minors too.
Checked
- Mac/Linux hooks: both new hooks now use the same shell form and
command -v powershell ... || exit 0guard as the Stop hook, andorder.mdtells Claude to check the order itself where the hook doesn't run. README and CLAUDE.md match. - Paid-exercise rule: the quote is gone from
COURSE.md, the replacement line is there, and the Claude Code row is now general ("Pro and above"). You also updated the exercise files themselves (2.1, 2.2, 2.5), which I had left for a follow-up. A repo-wide grep finds no remaining "contact the mentor" instruction. - Escape example:
learn.mdandquiz.mdnow contain a literal\u05E9in the code span, verified at byte level.
- Minor, done: the order hook starts PowerShell only for
_script.txtreads, and the stuck hook ignores error words inside fenced code and pasted output.
Ran locally on 776bd0f: validate_structure.py PASSED, test_hooks.py 66/66 (Windows, including the no-PowerShell cases). CI green.
One nit (I'll fix it after merge)
CLAUDE.md line 41 has a stray backslash: \Claude Code.
Approving. I'm running one more manual learner pass on the branch before merging, as we both recommended.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged. Thank you, Noa! This PR turns the participant feedback into real course behaviour. The validator guards, the hook tests with a Windows CI job, the no-order branch and the handover notes will make it easy for us to keep going without you. Thanks also for fixing the exercise files themselves, not only the rule. Manual run before mergingA fresh test learner (Hebrew), on
Small things we saw, for a follow-up (not blocking)
I also removed the stray backslash in Good luck with what's next! |
VAT has been 18% since January 2025. Flagged in PR #19. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
This PR turns the findings from the participant feedback analysis into course behaviour. Two patterns stood out: exercises were often skipped (slides mode had no exercises step at all), and learners got stuck without asking for help, even though asking the AI was one of the most valued parts of the course. The PR makes exercises required and tracked, enforces the lesson order (the no-order alternative below doesn't), lets learners who already know a lesson or module prove it with a skip quiz instead of sitting through it, and adds a help flow for learners who are stuck.
It is based on the current
master: #17 and #18 are merged in, and the conflicts are resolved so both work together. Where this PR changes a rule from #17, it's listed under Policy changes to review.An alternative without lesson-order enforcement is on branch
feat/feedback-learning-support-no-order. It's the same PR except for the order rule (see below), in case you prefer learners to choose their own order.What changes for the learner
Exercises are part of every lesson, in both teaching and slides mode. Every exercise is done before the next lesson. Exercises are tracked in
progress/exercises-lesson-X.Y.md, which records the planned list, each answer and the feedback, so a new conversation continues with the same exercises.Lessons go in the course order. A lesson starts only when every earlier required lesson is complete: slides plus required exercises, or a passed skip quiz. Optional lessons (
רשות) never block. On Windows, a hook checks this whenever a lesson script is opened and adds a factual note for Claude. On Mac/Linux the hook doesn't run, soorder.mdtells Claude to check the earlier lessons' progress files itself."Learn it, or quiz first?" at the start of every lesson, in every style.
Paid tools never block learning. If an exercise seems to need payment, Claude first suggests free ways (a free trial doesn't count as free), then adapts the exercise to free tools with the same learning goal, marked "(גרסה מותאמת)". Only if that's impossible is the exercise skipped and flagged in
progress/exercise-flags.mdfor the mentors. The learner never waits for a mentor's answer.Stuck help (
stuck.md). "נתקעתי" / "stuck", or a hook that detects stuck phrases in Hebrew and English (error words count only in the learner's own words, not inside pasted program output), opens a help flow with two paths:It teaches what a good help request contains, and logs each case to
progress/stuck-log.md.Quiz or mini project at the end of a lesson: optional, at most one. Only the exercises are required.
Hebrew learners type Hebrew words: הבא / המשך / נתקעתי (English still accepted).
/learn statusshows status by completion (complete / in progress / not started / optional), with scores as extra information. Skip-quiz scores are labeled "(מבחן דילוג)" and don't count in the average or the review dates.Policy changes to review
masternowCOURSE.mdandexercises.mdboth say these rules replace the old instruction; the exercise files themselves aren't changed yetOther changes
Saving order: a reply that saves shows its content first, then saves, then ends with one closing line asking for the next step, never a summary. Saving first had revealed quiz scores in the permission prompt before the learner saw them.
No escape sequences (
\u200F) in chat or in saved files, and no HTML tags in chat, because both showed up as literal text.The next lesson is named only from
COURSE.md, never from a script. After the last lesson, the next step is the final project.Slide numbers are taken from the script, with a check before the last slide that none was skipped. Thinking questions must be answerable from the material learned so far.
Free-text quiz answers are graded by ideas, not wording.
Readable Hebrew quiz options: mixed Hebrew/English text direction can flip the order of English terms on screen, so each of two opposite options could look as if it said the other one's meaning. When the difference between options depends on English terms (e.g. "Input" vs. "Output"), the options now write those terms in Hebrew or put them at the start of the option.
COURSE.mdhas a## משאביםtable listing each external resource the exercises use and how to get it. Claude Code is listed as a course prerequisite (a paid Claude plan, Pro or higher, as in the README), so an exercise that uses it doesn't count as "requires payment".New hooks, both Windows PowerShell scripts:
UserPromptSubmit:detect-stuck.ps1PostToolUseonRead:check-lesson-order.ps1. The command starts PowerShell only when the read is a lesson script (_script.txt).Both use the same shell form and guard as
master'sStophook (command -v powershell >/dev/null 2>&1 || exit 0; ...), so on Mac/Linux they exit silently. On Windows, Claude Code runs shell-form hooks through Git Bash; without Git for Windows they show an error, the same asmaster'sStophook. The README's requirements list this per OS. TheStopauto-save hook keepsmaster's version.tests/validate_structure.pyhas regression guards for all of the above, alongsidemaster's checks.The no-order alternative
Branch
feat/feedback-learning-support-no-orderis the same as this PR, except for these differences:/learn status.check-unfinished-lessons.ps1, instead ofcheck-lesson-order.ps1. Optional lessons are never listed.Everything else is the same as in this PR, including the exercise rules (Claude never skips them, and the paid-tool flow), the lesson skip quiz only for lessons not started, the saving order, stuck help and status.
The no-order branch got its own short manual test of the differences (2026-11-12). The fixes made after that, and the merge with #17 and #18, are covered only by the automated checks (validator and hook tests).
How it was tested
Validator:
python tests/validate_structure.pypasses. A copy with each new rule removed fails on every one of them.Hook tests:
python tests/test_hooks.pyruns each hook the way Claude Code does, with a fake course and a fake learner folder (Hebrew in the path), so no real data is touched:.claude/settings.json, run through Git Bash: 7 cases, including a Hebrew round trip, a non-script read that must not start PowerShell, and a machine without PowerShell (as on Mac/Linux), where both hooks must exit 0 with no outputThe hooks are Windows PowerShell, so CI now has a second job, on
windows-latest, that runs these tests (.github/workflows/validate.yml).Live check of the new hook commands in Claude Code (Windows 11 with Git Bash, a test learner, 2026-11-28): "נתקעתי" opened the stuck flow, and starting lesson 2.4 with 2.1 and 2.2 not started produced the order note, after which Claude offered 2.1 instead of teaching 2.4.
Two full manual test runs as a learner in Claude Code (VS Code, Windows 11): 2026-10-24 → 2026-11-09 and 2026-11-12 → 2026-11-23. They covered:
claudeCLI not installed, and Windows Smart App Control blocking a newpydantic_coreDLLThe findings from the first run were fixed, then checked in the second run.
What wasn't retested:
A third full run, or a check with a real learner, is still recommended before relying on these rules.
Proposals, not in this PR
Content findings for the maintainers (not changed here)
2.6_script.txt(line 53),2.2_exercises.mdand1.3_exercises.md. It has been 18% since January 2025.0.2_exercises.md, item 4: the answer key says Claude is named after Claude Shannon. Anthropic hasn't confirmed this officially; it's only widely reported.2.6_exercises.md, exercise 2, task 2: it expects Claude Code to read the file through the MCP tool, but Claude Code prefers its built-in Read tool. The task should say to ask explicitly for the MCP tool.0.1_exercises.md:🤖 Written with Claude Code, reviewed and edited by me.