mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-24 00:06:31 +01:00
leetcode-coach 0.1.5: coach on opus and fable
Some checks are pending
file length / file-length (push) Waiting to run
leetcode-coach pre-commit / pre-commit (push) Waiting to run
leetcode-coach tests / test (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
Some checks are pending
file length / file-length (push) Waiting to run
leetcode-coach pre-commit / pre-commit (push) Waiting to run
leetcode-coach tests / test (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWWTVKrxg1PGVP4wc6W
This commit is contained in:
parent
5a225c7807
commit
e9e53341b3
@ -3,7 +3,8 @@
|
|||||||
Moved out of `SKILL.md` (250-line cap); none of it is coaching instruction.
|
Moved out of `SKILL.md` (250-line cap); none of it is coaching instruction.
|
||||||
|
|
||||||
The right client is `leetcode <url>` (this package's `leetcode` launcher,
|
The right client is `leetcode <url>` (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
|
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
|
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
|
toolbox name, but the TUI has already streamed it (2026-09-21: the blocked
|
||||||
|
|||||||
@ -231,13 +231,13 @@ not "just show me", not "I give up", not "what would you write".
|
|||||||
|
|
||||||
## Model and client
|
## Model and client
|
||||||
|
|
||||||
This session must run on **sonnet** (haiku, the default until 2026-10-18,
|
Runs on **sonnet, opus or fable** as written. Haiku went in circles (~30
|
||||||
went in circles: ~30 micro-questions on an Easy). You cannot switch the
|
micro-questions on an Easy, 2026-10-18); `model:` frontmatter is ignored for
|
||||||
model and `model:` frontmatter is ignored for skills (measured 2026-09-18),
|
skills (2026-09-18), so only if you are haiku, the **first line** of your
|
||||||
so if you are not sonnet, the **first line** of your opening message is
|
opening message is
|
||||||
|
|
||||||
> Type `/model sonnet` now — learning sessions are gated to sonnet; your next
|
> Type `/model sonnet` now — learning sessions are gated to sonnet, opus or
|
||||||
> message will be refused until you do (or send `keep model` to stay).
|
> fable; your next message is refused until you do (or send `keep model`).
|
||||||
|
|
||||||
then continue with the opening. `hooks/leetcode_model_gate_userprompt.sh`
|
then continue with the opening. `hooks/leetcode_model_gate_userprompt.sh`
|
||||||
enforces it from the next prompt on.
|
enforces it from the next prompt on.
|
||||||
|
|||||||
@ -115,7 +115,7 @@ def main(argv: list[str]) -> int:
|
|||||||
return report.main(args[1:])
|
return report.main(args[1:])
|
||||||
if not args or args[0] in {"-h", "--help"}:
|
if not args or args[0] in {"-h", "--help"}:
|
||||||
print("Usage: leetcode [--local] <url-or-slug> [what you are stuck on...]")
|
print("Usage: leetcode [--local] <url-or-slug> [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(" --local coach on the local Ollama model (free, offline)")
|
||||||
print(" leetcode due | --cluster <name> | --retest <slug> (--dry-run)")
|
print(" leetcode due | --cluster <name> | --retest <slug> (--dry-run)")
|
||||||
print(" leetcode report req-before-code, max rung, reveal per problem")
|
print(" leetcode report req-before-code, max rung, reveal per problem")
|
||||||
|
|||||||
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "leetcode-coach"
|
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"
|
description = "The /leetcode coach as a library: phase gate, leak and stop gates, session log, grading, cards, relay"
|
||||||
requires-python = ">=3.14"
|
requires-python = ">=3.14"
|
||||||
# Everything below loads lazily (rtdb, make_cards, relay.__main__): importing
|
# Everything below loads lazily (rtdb, make_cards, relay.__main__): importing
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user