docs: add Requirements section; agent: register newer model IDs#2
docs: add Requirements section; agent: register newer model IDs#2jamesbrink wants to merge 1 commit intomainfrom
Conversation
…odel IDs Lists Python 3.12+, Nix/uv, gallery-dl, and auth as preflight requirements. Adds claude-sonnet-4-6 and claude-opus-4-7 to MODEL_CONTEXT so the status bar reports accurate context for newer models instead of falling back.
jamesbrink
left a comment
There was a problem hiding this comment.
Thanks for the cleanup! Left a couple of inline notes about keeping the model lists in sync and a small README wording suggestion.
| "claude-sonnet-4-5": 200_000, | ||
| "claude-sonnet-4-6": 200_000, | ||
| "claude-opus-4-6": 200_000, | ||
| "claude-opus-4-7": 200_000, |
There was a problem hiding this comment.
These new keys are unreachable via the /model slash command because AVAILABLE_MODELS (agent.py:372-376) gates interactive selection. Either add claude-sonnet-4-6 and claude-opus-4-7 there too, or drop these entries. Right now they only apply when the user passes --model ... via CLI.
| # Context window size by model (tokens) | ||
| MODEL_CONTEXT = { | ||
| "claude-sonnet-4-5": 200_000, | ||
| "claude-sonnet-4-6": 200_000, |
There was a problem hiding this comment.
Consider a prefix match instead of exact-string .get() — Anthropic model IDs are often resolved to dated forms (e.g. claude-sonnet-4-6-20260101), which would miss and silently fall back to DEFAULT_CONTEXT.
| ## Requirements | ||
|
|
||
| - Python 3.12+ | ||
| - Either [Nix](https://nixos.org) (flakes enabled) or [uv](https://github.com/astral-sh/uv) |
There was a problem hiding this comment.
Nit: gallery-dl is also available via uv / pip, not only the Nix devshell. Worth rewording to avoid implying Nix is required for it.
|
General note: once the |
Summary
claude-sonnet-4-6andclaude-opus-4-7inMODEL_CONTEXTso the/statuscontext bar reports accurate usage for newer models instead of falling back toDEFAULT_CONTEXT.Test plan
ruff check src/passespyright src/passeslatentforge, run/status, confirm context window reports 200k for the new model IDs when selected via--model