sprag-cli 3.82.0 → 3.83.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprag-cli",
3
- "version": "3.82.0",
3
+ "version": "3.83.0",
4
4
  "description": "Model-delegation router for Claude Code and Codex: lookups, checks and test runs go to cheaper models, documents go in as compact Markdown, and a live statusline shows spend and savings.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -6,8 +6,8 @@
6
6
  "when its signature verifies; otherwise this file is used.",
7
7
  "Models are aliases on purpose (a gateway resolves them through ANTHROPIC_DEFAULT_*_MODEL),",
8
8
  "except t1h-worker, which names the full id: a bare alias resolves to an older model.",
9
- "Effort follows how the work is verified: low for lookups and command runs, medium for",
10
- "implementation against tests, high for the larger opus share.",
9
+ "Effort follows how the work is verified: low for lookups and command runs, high for",
10
+ "implementation by either worker (the sonnet worker moved from medium to high in 3.83.0).",
11
11
  "The files are rendered in English (description.en, body.en): they are model-facing",
12
12
  "prompts, and the Korean copy is what the /ops console shows next to it.",
13
13
  "tier and categories say which model-routing rules an agent serves (agentForRule in",
@@ -91,7 +91,7 @@
91
91
  {
92
92
  "name": "t1-worker",
93
93
  "model": "sonnet",
94
- "effort": "medium",
94
+ "effort": "high",
95
95
  "tier": "T1",
96
96
  "categories": [
97
97
  "*"
@@ -33,9 +33,10 @@ const MARK_LINE = `# managed by sprag (${OWNER_MARK}); edits are overwritten`;
33
33
  // Effort is a separate axis from the tier and is set by how the work gets
34
34
  // verified, not by how hard it is. Where the check is command output or a file
35
35
  // comparison (lookups, test runs, mechanical conversion) extra thinking buys
36
- // nothing, so those agents run at low. The worker implements a design the
37
- // caller already fixed, against tests, so it takes the default for well-specified
38
- // work, medium; the opus worker takes the larger, harder share of that work at high. The main session's effort is never touched here, and
36
+ // nothing, so those agents run at low. Both workers implement a design the
37
+ // caller already fixed and run at high: a wrong implementation costs a rerun and
38
+ // another review by the main model, which outweighs the extra thinking. The
39
+ // tier, not the effort, separates the sonnet worker from the opus one. The main session's effort is never touched here, and
39
40
  // CLAUDE_CODE_EFFORT_LEVEL must stay unset: it overrides every agent's own value.
40
41
  //
41
42
  // The files are rendered from the English copy. They are prompts the model
@@ -265,7 +265,7 @@ export function renderModelRatchet(rules, lang = userLanguage(), { root } = {})
265
265
  '(어떤 도구가 토큰을 아끼고 있는지 가시화):',
266
266
  '`🔀 [sprag] 모델 피팅: "<유형>" → <agent> (<모델> · effort <effort>) 위임`',
267
267
  '',
268
- '<모델>과 <effort>에는 룰의 에이전트 표기 괄호 안에 적힌 값(예: Sonnet 5.5 · effort medium)을',
268
+ '<모델>과 <effort>에는 룰의 에이전트 표기 괄호 안에 적힌 값(예: Sonnet 5.5 · effort high)을',
269
269
  '그대로 옮기고, 값이 적혀 있지 않으면 그 부분을 뺍니다. Claude Code 호출 행에는 에이전트',
270
270
  '이름만 보이므로, Agent 도구의 description 맨 앞에도 `[<모델> · <effort>]` 를 붙이십시오.',
271
271
  '',
@@ -293,8 +293,8 @@ export function renderModelRatchet(rules, lang = userLanguage(), { root } = {})
293
293
  '- **effort**: 모델 티어와 다른 축이다. 설치된 서브에이전트는 검증 형태에 따라',
294
294
  ' effort가 고정되어 있다. 명령 출력이나 파일 대조로 검증되는 위임(조회·명령',
295
295
  ' 실행·정형 변환을 맡는 haiku 에이전트)은 low, 확정된 설계를 테스트에 맞춰',
296
- ' 구현하는 위임(sonnet 워커)은 medium, 범위가 큰 구현·디버깅 위임(opus 워커)은',
297
- ' high다. 메인 세션의 effort는 바꾸지 않고,',
296
+ ' 구현하는 위임(sonnet 워커)과 범위가 큰 구현·디버깅 위임(opus 워커)은 high다.',
297
+ ' 두 워커는 effort가 아니라 모델 티어로 나뉜다. 메인 세션의 effort는 바꾸지 않고,',
298
298
  ' CLAUDE_CODE_EFFORT_LEVEL은 서브에이전트의 effort를 덮어쓰므로 설정하지 않는다.',
299
299
  '- **고난도 구현(T1H)**: 설계는 메인이 확정하고, 범위가 크거나 sonnet 이 틀린',
300
300
  ' 적 있는 구현·디버깅은 opus 에 위임한다. Fable·Mythos 세션에서만 적용되며,',
@@ -310,7 +310,7 @@ export function renderModelRatchet(rules, lang = userLanguage(), { root } = {})
310
310
  ' 컨텍스트를 다 보고도 틀린 오판형 실패는 모델을 한 티어 올린다. 순서는',
311
311
  ' ① 재지시 후 재시도(누락형이면 effort 한 단계 위) → ② 한 티어 상향(오판형)',
312
312
  ' → ③ 메인 모델이 직접 수습. effort를 올릴 때는 에이전트 파일을 고치지 않고',
313
- ' Agent 도구 호출의 effort 인자에 한 단계 위 값(low → medium → high)을 넘긴다.',
313
+ ' Agent 도구 호출의 effort 인자에 한 단계 위 값(low → medium → high → xhigh)을 넘긴다.',
314
314
  '',
315
315
  '## Rules',
316
316
  '',
@@ -333,7 +333,7 @@ export function renderModelRatchet(rules, lang = userLanguage(), { root } = {})
333
333
  '`🔀 [sprag] model fitting: "<category>" → delegated to <agent> (<model> · effort <effort>)`',
334
334
  '',
335
335
  'Fill <model> and <effort> from the parentheses after the agent in the rule',
336
- '(e.g. Sonnet 5.5, effort medium), and leave out whichever the rule does not',
336
+ '(e.g. Sonnet 5.5, effort high), and leave out whichever the rule does not',
337
337
  'give. Claude Code shows only the agent name on the call row, so also start',
338
338
  'the Agent tool\'s description with `[<model> · <effort>]`.',
339
339
  '',
@@ -363,9 +363,9 @@ export function renderModelRatchet(rules, lang = userLanguage(), { root } = {})
363
363
  '- **Effort**: a separate axis from the tier. The installed subagents pin it',
364
364
  ' by how their work is verified: low where the check is command output or a',
365
365
  ' file comparison (the haiku agents for lookups, command runs and mechanical',
366
- ' conversion), medium where a fixed design is implemented against tests (the',
367
- ' sonnet worker), high for large implementation or debugging (the opus',
368
- ' worker). Leave the main session\'s effort alone, and never set',
366
+ ' conversion), high where a fixed design is implemented against tests (the',
367
+ ' sonnet worker) and for large implementation or debugging (the opus',
368
+ ' worker); the tier, not the effort, separates the two workers. Leave the main session\'s effort alone, and never set',
369
369
  ' CLAUDE_CODE_EFFORT_LEVEL: it overrides every subagent\'s own value.',
370
370
  '- **Heavy implementation (T1H)**: the main model fixes the design; large-scope',
371
371
  ' implementation or debugging, or work sonnet has already got wrong, goes to',
@@ -383,7 +383,7 @@ export function renderModelRatchet(rules, lang = userLanguage(), { root } = {})
383
383
  ' moves up one tier. Order: ① re-instruct and retry (effort +1 on an',
384
384
  ' omission) → ② move up one tier (on a wrong answer) → ③ the main model',
385
385
  ' takes over directly. To raise effort, pass the next level (low → medium →',
386
- ' high) in the Agent call\'s effort argument instead of editing the agent file.',
386
+ ' high → xhigh) in the Agent call\'s effort argument instead of editing the agent file.',
387
387
  '',
388
388
  '## Rules',
389
389
  '',