Repository navigation
Learn by doing: your turn, practice exercises, progress - #14
Merged
Merged
Conversation
Sym-jay
force-pushed
the
learn-by-doing
branch
from
October 5, 2026 05:48
ddd5926 to
a61788f
Compare
- After three asks for a phrase, Clishe asks you to type its command and checks it (flag order and placeholder values are allowed to differ). Stops after two right answers. "learn_mode": gentle/always/off. - practice: 14 exercises in a mktemp sandbox, checked after each command, with hints, answers, skip, and resume (earlier answers are replayed to rebuild the folder). - progress: everyday commands typed yourself, ones still asked for, and what to learn next. Typed commands are now counted per program. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sym-jay
force-pushed
the
learn-by-doing
branch
from
October 5, 2026 05:52
591b729 to
edf4336
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These features move Clishe from running commands for people to getting people to type commands themselves.
Your turn
After someone asks for the same phrase three times, the existing tip shows them the command. The fourth time, Clishe asks them to type it:
ls -al,ls -l -aandls -laall match.cp notes.txt backup/matchescp <file> <destination>.tar -czvf site.zip sitedoes not match<archive name>.tar.gz."learn_mode"config option:gentle(the default),always(from the second ask) oroff.practiceThere are 14 exercises in a
mktempfolder: pwd → ls → mkdir → cd → touch → echo > → cat → cd .. → cp → mv → find → grep → rm → rm -r.hint,answer,skiporquit. A hint also appears automatically after two misses.rm -r notes) deliberately triggers the safety check's YES prompt, so people see why it exists.progressShows which of 28 everyday commands you've typed yourself, which ones you still ask Clishe for, and three good ones to learn next. Commands you type directly are now counted per program.
clishe practiceandclishe progressalso work from the normal shell.Tests
learn_mode, progress. 447 pass locally.mainon macOS bash 3.2; CI runs them all on Linux.This touches the same CHANGELOG "Unreleased" section as #11 and #12, so whichever merges second or third needs a one-line conflict fix. I can rebase them after you merge.
🤖 Generated with Claude Code