chore(agents): strip [1m] long-context suffix from every default model #394
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!394
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/strip-1m-context-defaults"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
1M context tokens always meter against the Anthropic extra-usage rail, not against the Pro Max included weekly quota. The €200/mo extra-usage cap was hit (€200,63 / €200) on 2026-04-26, blocking every reviewer / boss / designer / foreman dispatch with
API Error: Extra usage is required for 1M context · enable extra usage at claude.ai/settings/usageeven though the Pro Max Sonnet weekly bucket sat at 5%.This drops the
[1m]suffix from:config/agents.json— boss, reviewer, designer, foreman defaultsapps/server/src/domain/agent/foreman.ts— fallback when the request omits a modelapps/server/src/background/worker.ts— stale "bump model to claude-opus-4-7[1m]" advice in the prompt-too-long hint for designer (split the task instead)apps/web/e2e/planner.spec.ts— fixture aligned with the new defaultValidation
claude-sonnet-4-6and APPROVED with substantive feedback (two doc nits flagged non-blocking). 200k headroom is sufficient for single-PR review even with the forgejo-mcp tool surface.[1m]-fixture tests still pass (parsing/round-trip behaviour preserved)Out of scope
[1m]-stripping logic intoken-economy.tsstays as-is — operators can still override individual instances via the agents DB when a specific job genuinely needs 1M (in which case extra-usage spend is intentional and signed off).🤖 Generated with Claude Code
All four sites correctly stripped. The
worker.tshint improvement (drop the "bump to [1m]" advice, keep the "split the task" remediation) is a nice bonus. CI green.