From e9e53341b3d361b2716f4627b90e3e1cd11b1486 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Fri, 20 Nov 2026 14:47:29 +0100 Subject: [PATCH] leetcode-coach 0.1.5: coach on opus and fable Sonnet, opus and fable all run the skill as written; only haiku gets the /model sonnet nudge. Help and DOCS name LEETCODE_MODEL. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WzxdWWTVKrxg1PGVP4wc6W --- leetcode_coach/leetcode_coach/DOCS-clients.md | 3 ++- leetcode_coach/leetcode_coach/SKILL.md | 12 ++++++------ leetcode_coach/leetcode_coach/leetcode_repl.py | 2 +- leetcode_coach/pyproject.toml | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/leetcode_coach/leetcode_coach/DOCS-clients.md b/leetcode_coach/leetcode_coach/DOCS-clients.md index 069acb9..d0bcfa0 100644 --- a/leetcode_coach/leetcode_coach/DOCS-clients.md +++ b/leetcode_coach/leetcode_coach/DOCS-clients.md @@ -3,7 +3,8 @@ Moved out of `SKILL.md` (250-line cap); none of it is coaching instruction. The right client is `leetcode ` (this package's `leetcode` launcher, -symlinked from `~/.local/bin`): a print-mode loop on sonnet that also runs +symlinked from `~/.local/bin`): a print-mode loop on sonnet +(`LEETCODE_MODEL=opus` or `fable` to switch) that also runs the req-before-code gate and the session log (`leetcode report`). The Stop hook (`stop_gate.py`) sends back a reply with a pasteable line or an early toolbox name, but the TUI has already streamed it (2026-09-21: the blocked diff --git a/leetcode_coach/leetcode_coach/SKILL.md b/leetcode_coach/leetcode_coach/SKILL.md index a8f2e02..00e5a84 100644 --- a/leetcode_coach/leetcode_coach/SKILL.md +++ b/leetcode_coach/leetcode_coach/SKILL.md @@ -231,13 +231,13 @@ not "just show me", not "I give up", not "what would you write". ## Model and client -This session must run on **sonnet** (haiku, the default until 2026-10-18, -went in circles: ~30 micro-questions on an Easy). You cannot switch the -model and `model:` frontmatter is ignored for skills (measured 2026-09-18), -so if you are not sonnet, the **first line** of your opening message is +Runs on **sonnet, opus or fable** as written. Haiku went in circles (~30 +micro-questions on an Easy, 2026-10-18); `model:` frontmatter is ignored for +skills (2026-09-18), so only if you are haiku, the **first line** of your +opening message is -> Type `/model sonnet` now — learning sessions are gated to sonnet; your next -> message will be refused until you do (or send `keep model` to stay). +> Type `/model sonnet` now — learning sessions are gated to sonnet, opus or +> fable; your next message is refused until you do (or send `keep model`). then continue with the opening. `hooks/leetcode_model_gate_userprompt.sh` enforces it from the next prompt on. diff --git a/leetcode_coach/leetcode_coach/leetcode_repl.py b/leetcode_coach/leetcode_coach/leetcode_repl.py index 51e1ab3..4389117 100755 --- a/leetcode_coach/leetcode_coach/leetcode_repl.py +++ b/leetcode_coach/leetcode_coach/leetcode_repl.py @@ -115,7 +115,7 @@ def main(argv: list[str]) -> int: return report.main(args[1:]) if not args or args[0] in {"-h", "--help"}: print("Usage: leetcode [--local] [what you are stuck on...]") - print(" LEETCODE_MODEL=opus leetcode ... to use a stronger model") + print(" LEETCODE_MODEL=opus|fable leetcode ... (default: sonnet)") print(" --local coach on the local Ollama model (free, offline)") print(" leetcode due | --cluster | --retest (--dry-run)") print(" leetcode report req-before-code, max rung, reveal per problem") diff --git a/leetcode_coach/pyproject.toml b/leetcode_coach/pyproject.toml index 19845ef..d6abf74 100644 --- a/leetcode_coach/pyproject.toml +++ b/leetcode_coach/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "leetcode-coach" -version = "0.1.4" +version = "0.1.5" description = "The /leetcode coach as a library: phase gate, leak and stop gates, session log, grading, cards, relay" requires-python = ">=3.14" # Everything below loads lazily (rtdb, make_cards, relay.__main__): importing