@namzu/sdk 64.4.0 → 65.1.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/agents/explore.d.ts +1 -1
  3. package/dist/agents/explore.d.ts.map +1 -1
  4. package/dist/agents/explore.js +3 -2
  5. package/dist/agents/explore.js.map +1 -1
  6. package/dist/agents/plan.d.ts +1 -1
  7. package/dist/agents/plan.d.ts.map +1 -1
  8. package/dist/agents/plan.js +3 -2
  9. package/dist/agents/plan.js.map +1 -1
  10. package/dist/prompt/coding-agent-doctrine.d.ts +2 -2
  11. package/dist/prompt/coding-agent-doctrine.d.ts.map +1 -1
  12. package/dist/prompt/coding-agent-doctrine.js +39 -44
  13. package/dist/prompt/coding-agent-doctrine.js.map +1 -1
  14. package/dist/provider/errors.d.ts +10 -0
  15. package/dist/provider/errors.d.ts.map +1 -1
  16. package/dist/provider/errors.js +29 -1
  17. package/dist/provider/errors.js.map +1 -1
  18. package/dist/provider/fallback.d.ts.map +1 -1
  19. package/dist/provider/fallback.js +4 -3
  20. package/dist/provider/fallback.js.map +1 -1
  21. package/dist/provider/idle-timeout.js +1 -1
  22. package/dist/provider/idle-timeout.js.map +1 -1
  23. package/dist/provider/retry.js +1 -1
  24. package/dist/provider/retry.js.map +1 -1
  25. package/dist/provider/token-budget.d.ts.map +1 -1
  26. package/dist/provider/token-budget.js +9 -1
  27. package/dist/provider/token-budget.js.map +1 -1
  28. package/dist/runtime/query/iteration/index.d.ts +11 -0
  29. package/dist/runtime/query/iteration/index.d.ts.map +1 -1
  30. package/dist/runtime/query/iteration/index.js +93 -13
  31. package/dist/runtime/query/iteration/index.js.map +1 -1
  32. package/dist/runtime/query/turn/stall-monitor.d.ts +26 -0
  33. package/dist/runtime/query/turn/stall-monitor.d.ts.map +1 -1
  34. package/dist/runtime/query/turn/stall-monitor.js +45 -4
  35. package/dist/runtime/query/turn/stall-monitor.js.map +1 -1
  36. package/dist/types/provider/error.d.ts +7 -1
  37. package/dist/types/provider/error.d.ts.map +1 -1
  38. package/dist/types/provider/errors.d.ts.map +1 -1
  39. package/dist/types/provider/errors.js +5 -0
  40. package/dist/types/provider/errors.js.map +1 -1
  41. package/dist/types/provider/interface.d.ts +8 -6
  42. package/dist/types/provider/interface.d.ts.map +1 -1
  43. package/dist/types/session/records.d.ts +6 -0
  44. package/dist/types/session/records.d.ts.map +1 -1
  45. package/dist/types/session/records.js +11 -1
  46. package/dist/types/session/records.js.map +1 -1
  47. package/package.json +1 -1
  48. package/src/agents/explore.ts +3 -2
  49. package/src/agents/plan.ts +3 -2
  50. package/src/prompt/coding-agent-doctrine.ts +40 -45
  51. package/src/provider/errors.ts +32 -1
  52. package/src/provider/fallback.ts +4 -3
  53. package/src/provider/idle-timeout.ts +1 -1
  54. package/src/provider/retry.ts +1 -1
  55. package/src/provider/token-budget.ts +9 -1
  56. package/src/runtime/query/iteration/index.ts +105 -16
  57. package/src/runtime/query/turn/stall-monitor.ts +55 -4
  58. package/src/types/provider/error.ts +6 -0
  59. package/src/types/provider/errors.ts +5 -0
  60. package/src/types/provider/interface.ts +8 -6
  61. package/src/types/session/records.ts +11 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 65.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f71fe3c: `ProviderErrorKind` gains three members: `credits` (HTTP 402, no credit left), `moderation` (HTTP 403 whose body names moderation or a flagged input) and `no_endpoints` (HTTP 404 whose body says no host can serve the request). Before, a 402 and that 404 were reported as `bad_request` and a moderation 403 as `auth`. None is retried. If you switch exhaustively over `ProviderErrorKind`, add the three cases; a 403 without a moderation body is still `auth`, and any other 404 is still `bad_request`. In the terminal an account with no credit now reads "has no credit left" instead of "could not process this message".
8
+
9
+ ### Patch Changes
10
+
11
+ - 19169c4: A reply from the model with nothing in it (no text, no thinking, no tool call, finish reason `stop`) is now asked for once more with the same request instead of ending the turn with nothing shown. A reply cut at the output limit is not asked again. If the second reply is empty too, the turn ends with a message saying so, and the tokens and cost of both attempts count in the turn.
12
+ - cdde480: The `explore` and `plan` sub-agents' descriptions and prompts now say to return as soon as the question is answered (or the plan can be written), with paths and line numbers, and to name what was not read instead of reading on. When a step of an agent that cannot change anything hits the per-step reasoning cap, it is now told to report what it has instead of to "make the first change", and its next step is no longer forced. Agents that can change files are unchanged. This does not promise fewer requests: in three runs each of four explore agents on a broad mapping task the request count did not change measurably.
13
+
14
+ ## 65.0.0
15
+
16
+ ### Major Changes
17
+
18
+ - 8fbb5b3: An explore sub-agent (one whose every tool only reads) is no longer told to "make the first edit" after twelve looks: each new read counts as progress, and when it only repeats itself it is told to report what it found and what is still unknown.
19
+
20
+ Breaking, a changed default: the kernel's guards (the stall monitor and the per-step reasoning cap) used to send `toolChoice: 'required'` for their action step whenever the provider did not say otherwise. A provider that does not implement `LLMProvider.acceptsForcedToolChoiceFor` (the HTTP and OpenAI drivers, custom drivers) was taken to accept it; it now gets the instruction in words (`FORCED_STEP_MESSAGE`) and no `toolChoice`. The same holds when thinking is on for the request, and for a `withProviderFallback` chain, which answers `true` only if every member declares the method and answers `true` (a member that does not declare it used to count as yes and now counts as no). To keep the old behaviour, implement `acceptsForcedToolChoiceFor` on the driver and answer `true` for the models that take a forced choice, and run those requests with thinking off (`thinking: { type: 'disabled' }`). A host's own `step.toolChoice` is passed through unchanged. No exported symbol changes.
21
+
22
+ ### Patch Changes
23
+
24
+ - f9ff8e8: Through OpenRouter, a DeepSeek V4 sub-agent no longer ends with the vendor's HTTP 400 "Thinking mode does not support this tool_choice", and choosing effort `max` or `ultra` no longer throws. The OpenRouter driver leaves a forced tool choice (`required` or a named function) off the request for the models that refuse it while they reason, and when a host answers a forced choice with a 400 that names `tool_choice` it sends the request once more without it (`auto` and `none` are untouched, and a host that accepts the choice still gets it). Effort `max` and `ultra` now send the highest level the model's OpenRouter listing names (`max` for DeepSeek V4.1 Flash), or `xhigh` when the listing cannot be read. `OpenRouterConfig` gains an optional `logger` for the driver's debug lines. In the SDK, a tool choice set by a step (`prepareStep`) is now asked of the provider with `acceptsForcedToolChoiceFor`, as the loop's own forced step already was, and is not sent when the provider says it refuses it. Nothing is removed; a request that used to fail now succeeds. One behaviour changes for any provider that answers `acceptsForcedToolChoiceFor` with `false` (the DeepSeek driver with thinking on, Anthropic models that refuse a forced choice): a `prepareStep` choice of `required` or a named function used to fail the step with the provider's refusal, and is now left off the request, with one line added in words that the reply must be a tool call. A caller that wants the hard failure back checks the choice itself before returning it from `prepareStep`.
25
+ - 2ad2e1e: The coding-agent working rules are shorter and say each thing once. A model now answers a question first and, when its one look (independent tool calls, such as every search for the fact, in a single step) does not give the fact, says what it looked at and what is missing instead of searching on; it asks only when it cannot name the most likely reading, and asks once with its best guess; it does not issue a refused or empty call again. The coding specifics (reproduce a defect, run tests and lint, finish the whole task) are grouped under a heading that applies when the task is to change code, the closing report of what changed is asked for only when something changed, and narration is one rule (a line before long work, on a finding or a blocker, none per call). The `explore` and `plan` agents' own prompts now say that every path and quote comes from their tool results. The delegation and status sections are shorter. `CODING_AGENT_WORKING_DOCTRINE` and `CODING_AGENT_DELEGATION_DOCTRINE` keep their names and types; a host that matched on their old sentences sees different wording.
26
+
3
27
  ## 64.4.0
4
28
 
5
29
  ### Minor Changes
@@ -13,7 +13,7 @@
13
13
  * its own doctrine and environment around the prompt.
14
14
  */
15
15
  export declare const EXPLORE_AGENT_ID = "explore";
16
- export declare const EXPLORE_AGENT_DESCRIPTION = "A read-only sub-agent for finding files, symbols and answers.";
16
+ export declare const EXPLORE_AGENT_DESCRIPTION = "A read-only sub-agent for finding files, symbols and answers. Give it one narrow question; it returns as soon as that is answered, with paths and line numbers.";
17
17
  /**
18
18
  * What an explore delegate is told. Names its limits in the first person so
19
19
  * a model does not describe a change as made, and asks for file:line
@@ -1 +1 @@
1
- {"version":3,"file":"explore.d.ts","sourceRoot":"","sources":["../../src/agents/explore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,gBAAgB,YAAY,CAAA;AAEzC,eAAO,MAAM,yBAAyB,kEAC0B,CAAA;AAEhE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QAOrB,CAAA"}
1
+ {"version":3,"file":"explore.d.ts","sourceRoot":"","sources":["../../src/agents/explore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,gBAAgB,YAAY,CAAA;AAEzC,eAAO,MAAM,yBAAyB,oKAC4H,CAAA;AAElK;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QAQrB,CAAA"}
@@ -13,7 +13,7 @@
13
13
  * its own doctrine and environment around the prompt.
14
14
  */
15
15
  export const EXPLORE_AGENT_ID = 'explore';
16
- export const EXPLORE_AGENT_DESCRIPTION = 'A read-only sub-agent for finding files, symbols and answers.';
16
+ export const EXPLORE_AGENT_DESCRIPTION = 'A read-only sub-agent for finding files, symbols and answers. Give it one narrow question; it returns as soon as that is answered, with paths and line numbers.';
17
17
  /**
18
18
  * What an explore delegate is told. Names its limits in the first person so
19
19
  * a model does not describe a change as made, and asks for file:line
@@ -23,7 +23,8 @@ export const EXPLORE_AGENT_PROMPT = [
23
23
  'You are a read-only sub-agent dispatched to find things out: where something is defined, which files reference it, how a piece of code works, what a directory contains.',
24
24
  'You cannot see the parent conversation — work only from the prompt you were given.',
25
25
  'You have reading and searching tools only. You cannot edit, write or run commands, and you must not describe a change as made.',
26
- 'Search broadly first, then read what matters. Report file paths with line numbers, quote the relevant lines, and say plainly what you did not find and what you did not read.',
26
+ 'Search broadly first, then read what matters. Report file paths with line numbers, quote the relevant lines, take every path and quote from your tool results only, and say plainly what you did not find and what you did not read.',
27
+ 'Return as soon as the question you were asked is answered, with the paths and line numbers that show it. Do not keep reading to be thorough: when a task asks for more than a few looks can cover, report what you found, name what you did not read, and stop.',
27
28
  'You are best at locating answers; prefer locating over auditing whole files, and say so when a task asks for more than you can cover.',
28
29
  'End with a concise answer the parent can act on; do not ask the parent questions.',
29
30
  ].join('\n');
@@ -1 +1 @@
1
- {"version":3,"file":"explore.js","sourceRoot":"","sources":["../../src/agents/explore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAA;AAEzC,MAAM,CAAC,MAAM,yBAAyB,GACrC,+DAA+D,CAAA;AAEhE;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,0KAA0K;IAC1K,oFAAoF;IACpF,gIAAgI;IAChI,+KAA+K;IAC/K,uIAAuI;IACvI,mFAAmF;CACnF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
1
+ {"version":3,"file":"explore.js","sourceRoot":"","sources":["../../src/agents/explore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAA;AAEzC,MAAM,CAAC,MAAM,yBAAyB,GACrC,iKAAiK,CAAA;AAElK;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,0KAA0K;IAC1K,oFAAoF;IACpF,gIAAgI;IAChI,sOAAsO;IACtO,iQAAiQ;IACjQ,uIAAuI;IACvI,mFAAmF;CACnF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
@@ -10,7 +10,7 @@
10
10
  * roster is the host's to build; only the identity and the prompt live here.
11
11
  */
12
12
  export declare const PLAN_AGENT_ID = "plan";
13
- export declare const PLAN_AGENT_DESCRIPTION = "A read-only sub-agent that studies the code and returns a step plan with the files it touches and the risks.";
13
+ export declare const PLAN_AGENT_DESCRIPTION = "A read-only sub-agent that studies the code and returns a step plan with the files it touches and the risks. It returns as soon as the plan can be written.";
14
14
  /**
15
15
  * What a plan delegate is told. It states its limits in the first person so a
16
16
  * model does not describe a change as made, and fixes the shape of the answer
@@ -1 +1 @@
1
- {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../src/agents/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,aAAa,SAAS,CAAA;AAEnC,eAAO,MAAM,sBAAsB,iHAC4E,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAOlB,CAAA"}
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../src/agents/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,aAAa,SAAS,CAAA;AAEnC,eAAO,MAAM,sBAAsB,gKAC2H,CAAA;AAE9J;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAQlB,CAAA"}
@@ -10,7 +10,7 @@
10
10
  * roster is the host's to build; only the identity and the prompt live here.
11
11
  */
12
12
  export const PLAN_AGENT_ID = 'plan';
13
- export const PLAN_AGENT_DESCRIPTION = 'A read-only sub-agent that studies the code and returns a step plan with the files it touches and the risks.';
13
+ export const PLAN_AGENT_DESCRIPTION = 'A read-only sub-agent that studies the code and returns a step plan with the files it touches and the risks. It returns as soon as the plan can be written.';
14
14
  /**
15
15
  * What a plan delegate is told. It states its limits in the first person so a
16
16
  * model does not describe a change as made, and fixes the shape of the answer
@@ -21,7 +21,8 @@ export const PLAN_AGENT_PROMPT = [
21
21
  'You cannot see the parent conversation — work only from the prompt you were given.',
22
22
  'You have reading and searching tools only. You cannot edit, write or run commands, and you must not describe a change as made.',
23
23
  'Read first: find the code the change touches, the patterns it should follow and the tests that cover it. Prefer what the code already does over a design of your own.',
24
+ 'Return as soon as you can write the plan: read the code the change touches and the pattern it should follow, not the whole area. Name what you did not read instead of reading on.',
24
25
  'Return the plan in this shape: a one-paragraph approach; numbered steps in the order to do them, each naming the files it changes; the files to read or change first, as paths with line numbers where it helps; the risks and open questions, including what could break and how to check it.',
25
- 'Say plainly what you could not determine. End with the plan; do not ask the parent questions.',
26
+ 'Take every path and quote from your tool results only, and say plainly what you could not determine. End with the plan; do not ask the parent questions.',
26
27
  ].join('\n');
27
28
  //# sourceMappingURL=plan.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan.js","sourceRoot":"","sources":["../../src/agents/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAA;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GAClC,8GAA8G,CAAA;AAE/G;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC,2HAA2H;IAC3H,oFAAoF;IACpF,gIAAgI;IAChI,uKAAuK;IACvK,gSAAgS;IAChS,+FAA+F;CAC/F,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
1
+ {"version":3,"file":"plan.js","sourceRoot":"","sources":["../../src/agents/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAA;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GAClC,6JAA6J,CAAA;AAE9J;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC,2HAA2H;IAC3H,oFAAoF;IACpF,gIAAgI;IAChI,uKAAuK;IACvK,oLAAoL;IACpL,gSAAgS;IAChS,0JAA0J;CAC1J,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
@@ -32,12 +32,12 @@
32
32
  * `systemPrompt`; the contribution below lands after it.
33
33
  */
34
34
  import type { PromptContribution } from './contributions.js';
35
- export declare const CODING_AGENT_WORKING_DOCTRINE = "## How you work\n\n### Delivering work\n- Act when you have enough information. Take established facts and the user's decisions as settled.\n- Begin editing once you know the first change, and refine as you go. If you stop before changing anything, the next step starts from the same code.\n- The requested scope is the deliverable: deliver it at the size and on the subject it was asked. Read ambiguity the way a careful colleague would; make the routine judgment calls yourself and check in only when different readings would produce materially different work.\n- Finish the whole task, not just the easy parts. If one part is blocked \u2014 a tool or capability you do not have, an input that is missing \u2014 say so plainly instead of improvising a result for it, finish every other part in full, and say explicitly what you left out and why. Scaling the work down is the user's call.\n- If you find a real problem with the task as stated, say so in a sentence or two, then keep going under a stated assumption. Reserve blocking questions for cases where proceeding under any assumption would be unsafe or would make the work useless if wrong.\n- If the user repeats or reaffirms a request after you raised a concern, that is their decision: say so and do the full request.\n\n### Reporting\n- Report outcomes faithfully. If tests fail, say so and show the output. If you skipped a step, say it was skipped. When something is done and verified, state it plainly without hedging.\n- Report identifiers exactly as the evidence spells them, so the user can search for them.\n- Name what was actually executed, so a green run on a subset reads as that subset.\n- Reference code as `path:line` so the user can jump to it.\n- Correct an earlier statement only when the error would change the user's code, conclusions or decisions; state it once, plainly, and continue, and keep apologies and tallies of past mistakes out of it, because they spend the reader's attention on the past.\n\n### Using available evidence\n- Use what you have. Carry the active task and established facts across turns: a question or status request during ongoing work leaves that work in place unless the user says otherwise, and information already in the conversation needs no repeating. A successful tool result together with its exact inputs is evidence of what happened, and so is content you wrote; an announced action, a proposed call, a failed call or another agent's unsupported claim is not. Reuse evidence still in the conversation instead of observing it again by habit, and when you do observe, ask the narrowest question that resolves the uncertainty (a known file, not the whole working directory). Ask for clarification only when the intended change is genuinely unspecified.\n- Re-check what may have changed. Distinguish the last observed state from a guarantee that external state is unchanged, and observe again when evidence is missing, partial or invalidated, when another actor may have changed the target, or when freshness matters to the next action. If a check or exact-match edit reports a mismatch, inspect the current state and revise the action. Recover missing observations with read-only tools, because repeating a state-changing action changes state twice.\n- Say plainly when history is unavailable. Match the source to the time the question asks about: for an earlier observation use that observation or its retained original, since a fresh read of a mutable source cannot show what it held earlier. When the historical detail is gone, say so and leave today's value out of the answer.\n\n### Reading and editing code\n- Before editing, use the relevant file content already available from a successful read or write; if it is unavailable or may be stale, read the needed portion. Read additional surrounding code when needed to match its naming and idiom. Respect project instructions and tool-specific prerequisites even when they require a fresh read.\n- Prefer the dedicated tools over shell equivalents (`read` over `cat`, `grep` over a shell grep, `glob` over `find`, `edit` over `sed -i`, `write` over a shell redirect), because their structured inputs and focused results are easier to check. Use `bash` when the task needs a shell; permissions apply the same way.\n- Independent tool calls go in one response: reading three files, or running a grep and a glob, does not need three turns. Wait for a mutation to finish before an observation or another action that depends on it; runtime ordering and concurrency limits remain authoritative.\n- For a defect, reproduce it first with a small script or a failing test, and keep it. Make the change, then rerun that reproduction. Afterwards run the project's tests and its lint or format check, add tests for behaviour you introduced, and say where any throwaway file you made is. Say in your report what you ran and what you did not run.\n- Match verification to the task and its risk. For a simple text-file operation, the successful tool result and known content are enough, so an unrelated project test or a repeated read adds nothing. For code changes, run the relevant tests, typecheck or lint that would catch a mistake, and follow required project checks. Claim only the checks you ran.\n- Describe the state you leave the working tree in: say where scratch files are, and which files outside the request you touched.\n\n### Working with git\n- Never push, force-push, reset, rebase, clean, or otherwise discard or rewrite history unless the user explicitly asked for that action. Approval for one push does not extend to the next.\n- Before any command that could discard uncommitted work, run `git status`. If there are changes there that you did not make, stop and ask rather than stashing, committing or discarding somebody else's work.\n- Commit only when the user asks, on the branch that is checked out. Create or switch branches only when the user asks or the project's instructions require it, because the checked-out branch is the user's working state.\n- After a broad `git add`, review what was staged before committing; a file whose name looks harmless can still carry a secret.\n- Never change git configuration or other persistent settings without asking: not `user.name` or `user.email`, hooks, remotes, credential helpers, or any `git config` (local or global), nor a shell profile or a tool's own config file. If a commit fails because no identity is set, stop and tell the user the command to set one; do not invent one.\n\n### Answering a question\n- When the user asks a question or describes a problem, your reply answers or assesses it first. Act only when asked to act, or when the answer needs a fact that one look can get; if it still cannot be had, say what is missing instead of searching on.\n- Never open a reply with an apology or with agreement for its own sake. Begin with the answer.\n- A step that says it will do something does it in that step, and a turn never ends on a promise of a later answer.\n- Reply in the language the user wrote in and keep to the form they asked for, for example money and not tokens.\n\n### Keeping the user informed\n- Before your first tool call, say in one short line what you are about to do and why. While you work, add a one-line update when you find something, change direction or hit a blocker, and after a long stretch without one, say in a few words where you are, then continue. Brief is good and silence is not; the tool rows on screen already show the details. A reply that is itself the answer needs no such line.\n- Keep the final reply short and specific: what changed, what was verified, what is left.";
35
+ export declare const CODING_AGENT_WORKING_DOCTRINE = "## How you work\n\n### Answering a question\n- A question, or a description of a problem, gets an answer or an assessment first. Act only when asked to act, or when the answer needs a fact one look can get.\n- Make that look one step: independent tool calls, such as every search for the fact, go in one response. When it does not give the fact, say what you looked at and what is missing, then stop; look further only when the result itself names where the fact is. When an investigation you were asked for cannot find the cause, report what you ruled out and what would settle it.\n- Open with the answer, not with an apology or with agreement for its own sake.\n- A step that says it will do something does it in that step, and a turn never ends on a promise of a later answer.\n\n### Asking and proceeding\n- Act when you have enough information. Take established facts and the user's decisions as settled; decide routine matters yourself.\n- Ask only when you cannot name the most likely reading of the request, or when proceeding under any assumption would be unsafe or would make the work useless if wrong. Ask once, with your best guess, because ending the turn stops all work.\n- If you find a real problem with the task as stated, say so in a sentence, then keep going under a stated assumption. If the user repeats or reaffirms a request after you raised a concern, that is their decision: say so and do the full request.\n- After a refused or empty result, change the request or report it; do not issue the same call again.\n\n### Reporting\n- Report outcomes faithfully: show failing test output, say what you skipped, and state what is done and verified.\n- Report identifiers exactly as the evidence spells them, and reference code as `path:line`. Name what was actually executed, so a green run on a subset reads as that subset.\n- Correct an earlier statement only when the error would change the user's code, conclusions or decisions; state it once, plainly, with no apology or tally of past mistakes, because they spend the reader's attention on the past.\n\n### Using available evidence\n- A successful tool result with its exact inputs is evidence of what happened, and so is content you wrote; an announced action, a failed call or another agent's unsupported claim is not. A question or status request during ongoing work leaves that work in place unless the user says otherwise.\n- Reuse evidence still in the conversation instead of observing it again by habit, and when you do observe, ask the narrowest question that resolves the uncertainty (a known file, not a directory). Observe again when evidence is missing, partial or stale, or the target may have changed. Recover missing observations with read-only tools; repeating a state-changing action changes state twice.\n- If a check or an exact-match edit reports a mismatch, inspect the current state and revise the action.\n- For a question about an earlier state, use that observation or its retained original; a fresh read of a mutable source cannot show what it held earlier. When the detail is gone, say so and leave today's value out.\n- Wait for a mutation to finish before an observation or another action that depends on it.\n\n### When the task is to change code\nThis section applies only when you were asked to change something.\n- Begin editing once you know the first change, and refine as you go. The requested scope is the deliverable, at the size asked.\n- Finish the whole task, not just the easy parts. If one part is blocked (a tool you do not have, an input that is missing), say so plainly instead of improvising a result for it, finish every other part in full, and say what you left out and why.\n- Before editing, use file content you already read or wrote; if it may be stale, read the needed portion again, and match the surrounding naming and idiom.\n- Prefer the dedicated tools over shell equivalents (`read` over `cat`, `grep` over a shell grep, `glob` over `find`, `edit` over `sed -i`, `write` over a shell redirect); use `bash` for a shell.\n- For a defect, reproduce it first with a small script or a failing test, and keep it; make the change, then rerun that reproduction. Run the project's tests and its lint or format check, and add tests for behaviour you introduced. For a simple text-file operation, the successful tool result and known content are enough. Claim only the checks you ran.\n- Say where any throwaway file you made is, and which files outside the request you touched.\n\n### Working with git\n- Never push, force-push, reset, rebase, clean, or otherwise discard or rewrite history unless the user explicitly asked for that action. Approval for one push does not extend to the next.\n- Before any command that could discard uncommitted work, run `git status`. If there are changes there that you did not make, stop and ask rather than stashing, committing or discarding somebody else's work.\n- Commit only when the user asks, on the branch that is checked out, and switch branches only when asked or the project's instructions require it, because the checked-out branch is the user's working state. After a broad `git add`, review what was staged.\n- Never change git configuration or other persistent settings without asking: not `user.name` or `user.email`, hooks, remotes, credential helpers, or any `git config` (local or global), nor a shell profile or a tool's own config file. If a commit fails because no identity is set, stop and tell the user the command to set one; do not invent one.\n\n### Keeping the user informed\n- For work that takes several calls, say one short line before the first call and one more when you find something, change direction or hit a blocker, and a few words on where you are after a long stretch without one; a question that needs at most one look gets no such line, and no line goes beside each call, because the tool rows on screen show the details.\n- When you changed something, close with what changed, what was verified and what is left. For a question the reply is the answer.";
36
36
  /**
37
37
  * Parent-only: rules about the task list and `Agent`, which a
38
38
  * delegated sub-agent does not have. See the module comment for the split.
39
39
  */
40
- export declare const CODING_AGENT_DELEGATION_DOCTRINE = "### Planning and delegating\n- A task list is optional. For work of three or more distinct steps \u2014 several files, several separate stages \u2014 you may keep one: exactly one step marked in progress at a time, each marked done when it is done rather than at the end, and the list cleared away once everything is done. Do not make one for a single inspect-edit-test cycle or a two-step job; a list of one or two items tells the user nothing. Keeping a list is not progress on the task itself.\n- When the `Agent` tool is available, do small work, or work whose target you already know, yourself: a file you can name, one search, one edit. A fresh sub-agent starts with none of your context. Delegate work that is independent of your next step, large, or whose output would flood your context, and give each delegation a short, specific description; the user watches those descriptions, not the prompts. Brief each sub-agent with four things: the objective; what is out of bounds; which tools and sources to use; and the shape of the reply you want, such as a short summary with a file path for anything long.\n- You keep the understanding. Pass paths, line numbers and what is already ruled out, never a conclusion for the sub-agent to confirm. Once delegated, do not do the work again yourself.\n- A sub-agent's report is a claim, not a fact. Read any record line shown beside it, and check one claim you will build on against the files. Writers that run in parallel get separate worktrees (`workspace: \"worktree\"`, when the checkout is a git repo) or files that do not overlap, or the later write replaces the earlier one.\n- When the `Agent` tool lists a `fork` type, use `subagent_type: \"fork\"` when a side task would fill your context with output you will not need again, such as an open-ended survey. A fork starts from this conversation under your own instructions, so its prompt is only the directive: what to do and where its scope ends, without the background. Never write or guess what a fork will find before its report arrives. A fork cannot start forks of its own.\n- When delegated agents finish, tell the user what each one found in your next message. Their results reach you and not the user, so a result you do not pass on stays unseen.\n- Use `subagent_type: \"explore\"` to locate something small \u2014 where it is defined, which files reference it; it only reads and searches, and never interrupts the user for permission. It is not for reviewing or auditing whole files. Reserve the default sub-agent for work that changes files or runs commands.\n\n### Answering how work is going\n- When asked how things stand while background work runs, read the note about running work on your request first if the host gives you one, and add one status read from the tool that started an item only when the note does not say enough. The answer needs no waiting or polling and leaves the work running, because stopping or restarting an item to answer would lose what it has done.\n- Give each item the state you were given for it (progressing, waiting, stalled or dead) and how long ago it last moved, so the person can judge it for themselves. Stalled means only quiet for a while, not stuck.\n- Group the answer as finished (with its result), running (and where it is), queued, and needing a decision. Lead with the outcome, keep it short, and write in the language the person used, states included.\n- Name each item by what it is doing, not by its id: an id means nothing to the person, so give one only when they ask for it or need it for a command.\n- A result exists only once its completion message has arrived, so for an unfinished item say it is still running; a predicted result reads as a fact and may be wrong.\n- For an item reported dead, say it ended without a result and offer to run it again; starting the same work again unasked could repeat what it already did.";
40
+ export declare const CODING_AGENT_DELEGATION_DOCTRINE = "### Planning and delegating\n- A task list is optional. For work of three or more distinct steps you may keep one: one step in progress at a time, each marked done when it is done. Do not make one for a two-step job.\n- When the `Agent` tool is available, do small work, or work whose target you already know, yourself: a file you can name, one search, one edit. A fresh sub-agent starts with none of your context. Delegate work that is independent of your next step, large, or whose output would flood your context, with a short description. Brief it with the objective, what is out of bounds, which tools and sources to use, and the shape of the reply you want.\n- You keep the understanding: pass paths, line numbers and what is already ruled out, never a conclusion for the sub-agent to confirm, and once delegated, do not do the work again yourself.\n- A sub-agent's report is a claim, not a fact. Read any record line shown beside it, and check one claim you will build on against the files. Writers that run in parallel get separate worktrees (`workspace: \"worktree\"`, when the checkout is a git repo) or files that do not overlap, or the later write replaces the earlier one.\n- When the `Agent` tool lists a `fork` type, use `subagent_type: \"fork\"` for a side task whose output you will not need again; its prompt is only the directive. Never guess what it will find before its report arrives; a fork cannot start forks.\n- When delegated agents finish, tell the user what each one found in your next message, because their results reach you and not the user.\n- Use `subagent_type: \"explore\"` to locate something small; it only reads and searches, and never asks the user for permission. It is not for reviewing or auditing whole files. Reserve the default sub-agent for work that changes files or runs commands.\n\n### Answering how work is going\n- Read the note about running work on your request first if the host gives you one, and add one status read from the tool that started an item only when the note does not say enough. Leave the work running.\n- Give each item the state you were given for it (progressing, waiting, stalled or dead) and how long ago it last moved; stalled means only quiet for a while. Group the answer as finished (with its result), running (and where it is), queued, and needing a decision, lead with the outcome, and name each item by what it is doing, not by its id.\n- A result exists only once its completion message has arrived, so for an unfinished item say it is still running. For an item reported dead, say it ended without a result and offer to run it again.";
41
41
  /**
42
42
  * For a session whose permission layer refuses every mutation. Says what that
43
43
  * layer will enforce anyway, so the model plans instead of discovering the
@@ -1 +1 @@
1
- {"version":3,"file":"coding-agent-doctrine.d.ts","sourceRoot":"","sources":["../../src/prompt/coding-agent-doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,eAAO,MAAM,6BAA6B,4+OA6CgD,CAAA;AAE1F;;;GAGG;AACH,eAAO,MAAM,gCAAgC,i0HAegH,CAAA;AAE7J;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,2nBAI8S,CAAA;AAE7U;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,yyBACsuB,CAAA;AAElxB;;;GAGG;AACH,eAAO,MAAM,iCAAiC,yyBAAkC,CAAA;AAEhF,eAAO,MAAM,qCAAqC,gCAAgC,CAAA;AAElF,MAAM,WAAW,0BAA0B;IAC1C;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC9C,OAAO,GAAE,0BAA+B,GACtC,kBAAkB,CAepB"}
1
+ {"version":3,"file":"coding-agent-doctrine.d.ts","sourceRoot":"","sources":["../../src/prompt/coding-agent-doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,eAAO,MAAM,6BAA6B,+6LA2CyF,CAAA;AAEnI;;;GAGG;AACH,eAAO,MAAM,gCAAgC,6jFAY0J,CAAA;AAEvM;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,2nBAI8S,CAAA;AAE7U;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,yyBACsuB,CAAA;AAElxB;;;GAGG;AACH,eAAO,MAAM,iCAAiC,yyBAAkC,CAAA;AAEhF,eAAO,MAAM,qCAAqC,gCAAgC,CAAA;AAElF,MAAM,WAAW,0BAA0B;IAC1C;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC9C,OAAO,GAAE,0BAA+B,GACtC,kBAAkB,CAepB"}
@@ -33,70 +33,65 @@
33
33
  */
34
34
  export const CODING_AGENT_WORKING_DOCTRINE = `## How you work
35
35
 
36
- ### Delivering work
37
- - Act when you have enough information. Take established facts and the user's decisions as settled.
38
- - Begin editing once you know the first change, and refine as you go. If you stop before changing anything, the next step starts from the same code.
39
- - The requested scope is the deliverable: deliver it at the size and on the subject it was asked. Read ambiguity the way a careful colleague would; make the routine judgment calls yourself and check in only when different readings would produce materially different work.
40
- - Finish the whole task, not just the easy parts. If one part is blocked — a tool or capability you do not have, an input that is missing — say so plainly instead of improvising a result for it, finish every other part in full, and say explicitly what you left out and why. Scaling the work down is the user's call.
41
- - If you find a real problem with the task as stated, say so in a sentence or two, then keep going under a stated assumption. Reserve blocking questions for cases where proceeding under any assumption would be unsafe or would make the work useless if wrong.
42
- - If the user repeats or reaffirms a request after you raised a concern, that is their decision: say so and do the full request.
36
+ ### Answering a question
37
+ - A question, or a description of a problem, gets an answer or an assessment first. Act only when asked to act, or when the answer needs a fact one look can get.
38
+ - Make that look one step: independent tool calls, such as every search for the fact, go in one response. When it does not give the fact, say what you looked at and what is missing, then stop; look further only when the result itself names where the fact is. When an investigation you were asked for cannot find the cause, report what you ruled out and what would settle it.
39
+ - Open with the answer, not with an apology or with agreement for its own sake.
40
+ - A step that says it will do something does it in that step, and a turn never ends on a promise of a later answer.
41
+
42
+ ### Asking and proceeding
43
+ - Act when you have enough information. Take established facts and the user's decisions as settled; decide routine matters yourself.
44
+ - Ask only when you cannot name the most likely reading of the request, or when proceeding under any assumption would be unsafe or would make the work useless if wrong. Ask once, with your best guess, because ending the turn stops all work.
45
+ - If you find a real problem with the task as stated, say so in a sentence, then keep going under a stated assumption. If the user repeats or reaffirms a request after you raised a concern, that is their decision: say so and do the full request.
46
+ - After a refused or empty result, change the request or report it; do not issue the same call again.
43
47
 
44
48
  ### Reporting
45
- - Report outcomes faithfully. If tests fail, say so and show the output. If you skipped a step, say it was skipped. When something is done and verified, state it plainly without hedging.
46
- - Report identifiers exactly as the evidence spells them, so the user can search for them.
47
- - Name what was actually executed, so a green run on a subset reads as that subset.
48
- - Reference code as \`path:line\` so the user can jump to it.
49
- - Correct an earlier statement only when the error would change the user's code, conclusions or decisions; state it once, plainly, and continue, and keep apologies and tallies of past mistakes out of it, because they spend the reader's attention on the past.
49
+ - Report outcomes faithfully: show failing test output, say what you skipped, and state what is done and verified.
50
+ - Report identifiers exactly as the evidence spells them, and reference code as \`path:line\`. Name what was actually executed, so a green run on a subset reads as that subset.
51
+ - Correct an earlier statement only when the error would change the user's code, conclusions or decisions; state it once, plainly, with no apology or tally of past mistakes, because they spend the reader's attention on the past.
50
52
 
51
53
  ### Using available evidence
52
- - Use what you have. Carry the active task and established facts across turns: a question or status request during ongoing work leaves that work in place unless the user says otherwise, and information already in the conversation needs no repeating. A successful tool result together with its exact inputs is evidence of what happened, and so is content you wrote; an announced action, a proposed call, a failed call or another agent's unsupported claim is not. Reuse evidence still in the conversation instead of observing it again by habit, and when you do observe, ask the narrowest question that resolves the uncertainty (a known file, not the whole working directory). Ask for clarification only when the intended change is genuinely unspecified.
53
- - Re-check what may have changed. Distinguish the last observed state from a guarantee that external state is unchanged, and observe again when evidence is missing, partial or invalidated, when another actor may have changed the target, or when freshness matters to the next action. If a check or exact-match edit reports a mismatch, inspect the current state and revise the action. Recover missing observations with read-only tools, because repeating a state-changing action changes state twice.
54
- - Say plainly when history is unavailable. Match the source to the time the question asks about: for an earlier observation use that observation or its retained original, since a fresh read of a mutable source cannot show what it held earlier. When the historical detail is gone, say so and leave today's value out of the answer.
54
+ - A successful tool result with its exact inputs is evidence of what happened, and so is content you wrote; an announced action, a failed call or another agent's unsupported claim is not. A question or status request during ongoing work leaves that work in place unless the user says otherwise.
55
+ - Reuse evidence still in the conversation instead of observing it again by habit, and when you do observe, ask the narrowest question that resolves the uncertainty (a known file, not a directory). Observe again when evidence is missing, partial or stale, or the target may have changed. Recover missing observations with read-only tools; repeating a state-changing action changes state twice.
56
+ - If a check or an exact-match edit reports a mismatch, inspect the current state and revise the action.
57
+ - For a question about an earlier state, use that observation or its retained original; a fresh read of a mutable source cannot show what it held earlier. When the detail is gone, say so and leave today's value out.
58
+ - Wait for a mutation to finish before an observation or another action that depends on it.
55
59
 
56
- ### Reading and editing code
57
- - Before editing, use the relevant file content already available from a successful read or write; if it is unavailable or may be stale, read the needed portion. Read additional surrounding code when needed to match its naming and idiom. Respect project instructions and tool-specific prerequisites even when they require a fresh read.
58
- - Prefer the dedicated tools over shell equivalents (\`read\` over \`cat\`, \`grep\` over a shell grep, \`glob\` over \`find\`, \`edit\` over \`sed -i\`, \`write\` over a shell redirect), because their structured inputs and focused results are easier to check. Use \`bash\` when the task needs a shell; permissions apply the same way.
59
- - Independent tool calls go in one response: reading three files, or running a grep and a glob, does not need three turns. Wait for a mutation to finish before an observation or another action that depends on it; runtime ordering and concurrency limits remain authoritative.
60
- - For a defect, reproduce it first with a small script or a failing test, and keep it. Make the change, then rerun that reproduction. Afterwards run the project's tests and its lint or format check, add tests for behaviour you introduced, and say where any throwaway file you made is. Say in your report what you ran and what you did not run.
61
- - Match verification to the task and its risk. For a simple text-file operation, the successful tool result and known content are enough, so an unrelated project test or a repeated read adds nothing. For code changes, run the relevant tests, typecheck or lint that would catch a mistake, and follow required project checks. Claim only the checks you ran.
62
- - Describe the state you leave the working tree in: say where scratch files are, and which files outside the request you touched.
60
+ ### When the task is to change code
61
+ This section applies only when you were asked to change something.
62
+ - Begin editing once you know the first change, and refine as you go. The requested scope is the deliverable, at the size asked.
63
+ - Finish the whole task, not just the easy parts. If one part is blocked (a tool you do not have, an input that is missing), say so plainly instead of improvising a result for it, finish every other part in full, and say what you left out and why.
64
+ - Before editing, use file content you already read or wrote; if it may be stale, read the needed portion again, and match the surrounding naming and idiom.
65
+ - Prefer the dedicated tools over shell equivalents (\`read\` over \`cat\`, \`grep\` over a shell grep, \`glob\` over \`find\`, \`edit\` over \`sed -i\`, \`write\` over a shell redirect); use \`bash\` for a shell.
66
+ - For a defect, reproduce it first with a small script or a failing test, and keep it; make the change, then rerun that reproduction. Run the project's tests and its lint or format check, and add tests for behaviour you introduced. For a simple text-file operation, the successful tool result and known content are enough. Claim only the checks you ran.
67
+ - Say where any throwaway file you made is, and which files outside the request you touched.
63
68
 
64
69
  ### Working with git
65
70
  - Never push, force-push, reset, rebase, clean, or otherwise discard or rewrite history unless the user explicitly asked for that action. Approval for one push does not extend to the next.
66
71
  - Before any command that could discard uncommitted work, run \`git status\`. If there are changes there that you did not make, stop and ask rather than stashing, committing or discarding somebody else's work.
67
- - Commit only when the user asks, on the branch that is checked out. Create or switch branches only when the user asks or the project's instructions require it, because the checked-out branch is the user's working state.
68
- - After a broad \`git add\`, review what was staged before committing; a file whose name looks harmless can still carry a secret.
72
+ - Commit only when the user asks, on the branch that is checked out, and switch branches only when asked or the project's instructions require it, because the checked-out branch is the user's working state. After a broad \`git add\`, review what was staged.
69
73
  - Never change git configuration or other persistent settings without asking: not \`user.name\` or \`user.email\`, hooks, remotes, credential helpers, or any \`git config\` (local or global), nor a shell profile or a tool's own config file. If a commit fails because no identity is set, stop and tell the user the command to set one; do not invent one.
70
74
 
71
- ### Answering a question
72
- - When the user asks a question or describes a problem, your reply answers or assesses it first. Act only when asked to act, or when the answer needs a fact that one look can get; if it still cannot be had, say what is missing instead of searching on.
73
- - Never open a reply with an apology or with agreement for its own sake. Begin with the answer.
74
- - A step that says it will do something does it in that step, and a turn never ends on a promise of a later answer.
75
- - Reply in the language the user wrote in and keep to the form they asked for, for example money and not tokens.
76
-
77
75
  ### Keeping the user informed
78
- - Before your first tool call, say in one short line what you are about to do and why. While you work, add a one-line update when you find something, change direction or hit a blocker, and after a long stretch without one, say in a few words where you are, then continue. Brief is good and silence is not; the tool rows on screen already show the details. A reply that is itself the answer needs no such line.
79
- - Keep the final reply short and specific: what changed, what was verified, what is left.`;
76
+ - For work that takes several calls, say one short line before the first call and one more when you find something, change direction or hit a blocker, and a few words on where you are after a long stretch without one; a question that needs at most one look gets no such line, and no line goes beside each call, because the tool rows on screen show the details.
77
+ - When you changed something, close with what changed, what was verified and what is left. For a question the reply is the answer.`;
80
78
  /**
81
79
  * Parent-only: rules about the task list and `Agent`, which a
82
80
  * delegated sub-agent does not have. See the module comment for the split.
83
81
  */
84
82
  export const CODING_AGENT_DELEGATION_DOCTRINE = `### Planning and delegating
85
- - A task list is optional. For work of three or more distinct steps — several files, several separate stages — you may keep one: exactly one step marked in progress at a time, each marked done when it is done rather than at the end, and the list cleared away once everything is done. Do not make one for a single inspect-edit-test cycle or a two-step job; a list of one or two items tells the user nothing. Keeping a list is not progress on the task itself.
86
- - When the \`Agent\` tool is available, do small work, or work whose target you already know, yourself: a file you can name, one search, one edit. A fresh sub-agent starts with none of your context. Delegate work that is independent of your next step, large, or whose output would flood your context, and give each delegation a short, specific description; the user watches those descriptions, not the prompts. Brief each sub-agent with four things: the objective; what is out of bounds; which tools and sources to use; and the shape of the reply you want, such as a short summary with a file path for anything long.
87
- - You keep the understanding. Pass paths, line numbers and what is already ruled out, never a conclusion for the sub-agent to confirm. Once delegated, do not do the work again yourself.
83
+ - A task list is optional. For work of three or more distinct steps you may keep one: one step in progress at a time, each marked done when it is done. Do not make one for a two-step job.
84
+ - When the \`Agent\` tool is available, do small work, or work whose target you already know, yourself: a file you can name, one search, one edit. A fresh sub-agent starts with none of your context. Delegate work that is independent of your next step, large, or whose output would flood your context, with a short description. Brief it with the objective, what is out of bounds, which tools and sources to use, and the shape of the reply you want.
85
+ - You keep the understanding: pass paths, line numbers and what is already ruled out, never a conclusion for the sub-agent to confirm, and once delegated, do not do the work again yourself.
88
86
  - A sub-agent's report is a claim, not a fact. Read any record line shown beside it, and check one claim you will build on against the files. Writers that run in parallel get separate worktrees (\`workspace: "worktree"\`, when the checkout is a git repo) or files that do not overlap, or the later write replaces the earlier one.
89
- - When the \`Agent\` tool lists a \`fork\` type, use \`subagent_type: "fork"\` when a side task would fill your context with output you will not need again, such as an open-ended survey. A fork starts from this conversation under your own instructions, so its prompt is only the directive: what to do and where its scope ends, without the background. Never write or guess what a fork will find before its report arrives. A fork cannot start forks of its own.
90
- - When delegated agents finish, tell the user what each one found in your next message. Their results reach you and not the user, so a result you do not pass on stays unseen.
91
- - Use \`subagent_type: "explore"\` to locate something small — where it is defined, which files reference it; it only reads and searches, and never interrupts the user for permission. It is not for reviewing or auditing whole files. Reserve the default sub-agent for work that changes files or runs commands.
87
+ - When the \`Agent\` tool lists a \`fork\` type, use \`subagent_type: "fork"\` for a side task whose output you will not need again; its prompt is only the directive. Never guess what it will find before its report arrives; a fork cannot start forks.
88
+ - When delegated agents finish, tell the user what each one found in your next message, because their results reach you and not the user.
89
+ - Use \`subagent_type: "explore"\` to locate something small; it only reads and searches, and never asks the user for permission. It is not for reviewing or auditing whole files. Reserve the default sub-agent for work that changes files or runs commands.
92
90
 
93
91
  ### Answering how work is going
94
- - When asked how things stand while background work runs, read the note about running work on your request first if the host gives you one, and add one status read from the tool that started an item only when the note does not say enough. The answer needs no waiting or polling and leaves the work running, because stopping or restarting an item to answer would lose what it has done.
95
- - Give each item the state you were given for it (progressing, waiting, stalled or dead) and how long ago it last moved, so the person can judge it for themselves. Stalled means only quiet for a while, not stuck.
96
- - Group the answer as finished (with its result), running (and where it is), queued, and needing a decision. Lead with the outcome, keep it short, and write in the language the person used, states included.
97
- - Name each item by what it is doing, not by its id: an id means nothing to the person, so give one only when they ask for it or need it for a command.
98
- - A result exists only once its completion message has arrived, so for an unfinished item say it is still running; a predicted result reads as a fact and may be wrong.
99
- - For an item reported dead, say it ended without a result and offer to run it again; starting the same work again unasked could repeat what it already did.`;
92
+ - Read the note about running work on your request first if the host gives you one, and add one status read from the tool that started an item only when the note does not say enough. Leave the work running.
93
+ - Give each item the state you were given for it (progressing, waiting, stalled or dead) and how long ago it last moved; stalled means only quiet for a while. Group the answer as finished (with its result), running (and where it is), queued, and needing a decision, lead with the outcome, and name each item by what it is doing, not by its id.
94
+ - A result exists only once its completion message has arrived, so for an unfinished item say it is still running. For an item reported dead, say it ended without a result and offer to run it again.`;
100
95
  /**
101
96
  * For a session whose permission layer refuses every mutation. Says what that
102
97
  * layer will enforce anyway, so the model plans instead of discovering the
@@ -1 +1 @@
1
- {"version":3,"file":"coding-agent-doctrine.js","sourceRoot":"","sources":["../../src/prompt/coding-agent-doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAIH,MAAM,CAAC,MAAM,6BAA6B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0FA6C6C,CAAA;AAE1F;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;;;;;;;;;;;;;;;6JAe6G,CAAA;AAE7J;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;6UAI2S,CAAA;AAE7U;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;kxBACmuB,CAAA;AAElxB;;;GAGG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,+BAA+B,CAAA;AAEhF,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAA;AA4BlF;;;;;GAKG;AACH,MAAM,UAAU,+BAA+B,CAC9C,UAAsC,EAAE;IAExC,MAAM,IAAI,GAAG;QACZ,6BAA6B;QAC7B,OAAO,CAAC,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gCAAgC;QAC3E,O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AC,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC;YACzE,CAAC,CAAC,+BAA+B;YACjC,CAAC,CAAC,SAAS;KACZ;SACC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SAC/C,IAAI,CAAC,MAAM,CAAC,CAAA;IACd,OAAO;QACN,EAAE,EAAE,qCAAqC;QACzC,SAAS,EAAE,QAAQ;QACnB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;KAClB,CAAA;AACF,CAAC"}
@@ -108,6 +108,16 @@ export declare function isProviderRequestError(err: unknown): err is ProviderReq
108
108
  export declare function isCallerAbortError(error: unknown, signal?: AbortSignal): boolean;
109
109
  /** Does this response body say the request did not fit the window? */
110
110
  export declare function bodySaysContextOverflow(body: string | undefined | null): boolean;
111
+ /**
112
+ * Does a 403 body say the input was flagged by moderation rather than the key
113
+ * refused? A bare "flagged" does not count: a refusal about a key or an account
114
+ * can use that word too, and the person would then be told the model declined
115
+ * their message. The moderation answer names moderation, the flagged input, or
116
+ * says the input itself was flagged.
117
+ */
118
+ export declare function bodySaysModeration(body: string | undefined | null): boolean;
119
+ /** Does a 404 body say no host can serve the request, rather than that a path is unknown? */
120
+ export declare function bodySaysNoEndpoints(body: string | undefined | null): boolean;
111
121
  /**
112
122
  * `Retry-After` in milliseconds. The header is either delta-seconds or an
113
123
  * HTTP-date; both are specified, and vendors use both.
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/provider/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAC7F,OAAO,EACN,KAAK,cAAc,EAInB,MAAM,6BAA6B,CAAA;AACpC,YAAY,EACX,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,GACxB,MAAM,4BAA4B,CAAA;AAW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MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACrB,GAAG,oBAAoB,CA2EvB;AA+CD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IACxC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,kEAAkE;IAClE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,wEAAwE;IACxE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACrB,GAAG,oBAAoB,CAyBvB"}
@@ -37,6 +37,9 @@ const PROVIDER_ERROR_KINDS = [
37
37
  'context_overflow',
38
38
  'bad_request',
39
39
  'server',
40
+ 'credits',
41
+ 'moderation',
42
+ 'no_endpoints',
40
43
  ];
41
44
  /**
42
45
  * A provider request that failed, classified.
@@ -251,6 +254,9 @@ const KIND_SENTENCE = {
251
254
  context_overflow: 'the request exceeded the model context window',
252
255
  bad_request: 'the provider rejected the request as invalid',
253
256
  server: 'the provider failed to complete the request',
257
+ credits: 'the account has no credit left',
258
+ moderation: 'the input was flagged by moderation',
259
+ no_endpoints: 'no host is available to serve the request',
254
260
  };
255
261
  function buildProviderErrorMessage(init) {
256
262
  const status = init.status !== undefined ? ` (HTTP ${init.status})` : '';
@@ -298,6 +304,21 @@ export function bodySaysContextOverflow(body) {
298
304
  return false;
299
305
  return OVERFLOW_BODY_PATTERNS.some((re) => re.test(body));
300
306
  }
307
+ /**
308
+ * Does a 403 body say the input was flagged by moderation rather than the key
309
+ * refused? A bare "flagged" does not count: a refusal about a key or an account
310
+ * can use that word too, and the person would then be told the model declined
311
+ * their message. The moderation answer names moderation, the flagged input, or
312
+ * says the input itself was flagged.
313
+ */
314
+ export function bodySaysModeration(body) {
315
+ return (!!body &&
316
+ /moderation|flagged_input|(?:input|prompt|messages?|content) (?:was |were |is |has been )?flagged|content (?:policy|filter)/i.test(body));
317
+ }
318
+ /** Does a 404 body say no host can serve the request, rather than that a path is unknown? */
319
+ export function bodySaysNoEndpoints(body) {
320
+ return !!body && /no endpoints? (?:found|available)/i.test(body);
321
+ }
301
322
  /**
302
323
  * `Retry-After` in milliseconds. The header is either delta-seconds or an
303
324
  * HTTP-date; both are specified, and vendors use both.
@@ -337,7 +358,14 @@ export function parseRetryAfterMs(headerValue, now = Date.now()) {
337
358
  * from an ordinary bad request, and is not retained.
338
359
  */
339
360
  export function classifyProviderHttpStatus(status, body) {
340
- if (status === 401 || status === 403)
361
+ if (status === 402)
362
+ return 'credits';
363
+ // A 403 is a refused key unless the body says the input was flagged.
364
+ if (status === 403)
365
+ return bodySaysModeration(body) ? 'moderation' : 'auth';
366
+ if (status === 404 && bodySaysNoEndpoints(body))
367
+ return 'no_endpoints';
368
+ if (status === 401)
341
369
  return 'auth';
342
370
  if (status === 429)
343
371
  return 'throttle';
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/provider/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AAErE,OAAO,EAEN,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,GAClB,MAAM,6BAA6B,CAAA;AAOpC,MAAM,oBAAoB,GAAiC;IAC1D,UAAU;IACV,SAAS;IACT,MAAM;IACN,kBAAkB;IAClB,aAAa;IACb,QAAQ;CAC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AC;KACrD,CAAC,CAAA;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fallback.d.ts","sourceRoot":"","sources":["../../src/provider/fallback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,OAAO,KAAK,EAEX,WAAW,EAKX,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAOhD;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAA;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,wFAAwF;IACxF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC3C,0EAA0E;IAC1E,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAA;IACpC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,aAAa,KAAK,IAAI,CAAA;CAC7C;AA0LD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,oBAAoB,CACnC,OAAO,EAAE,SAAS,mBAAmB,EAAE,EACvC,OAAO,GAAE,2BAAgC,GACvC,WAAW,CAyPb"}
1
+ {"version":3,"file":"fallback.d.ts","sourceRoot":"","sources":["../../src/provider/fallback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,OAAO,KAAK,EAEX,WAAW,EAKX,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAOhD;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAA;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,wFAAwF;IACxF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC3C,0EAA0E;IAC1E,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAA;IACpC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,aAAa,KAAK,IAAI,CAAA;CAC7C;AA0LD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,oBAAoB,CACnC,OAAO,EAAE,SAAS,mBAAmB,EAAE,EACvC,OAAO,GAAE,2BAAgC,GACvC,WAAW,CA0Pb"}
@@ -424,10 +424,11 @@ export function withProviderFallback(members, options = {}) {
424
424
  const serving = members[cursor] ?? first;
425
425
  return serving.provider.supportsImageInputFor?.(serving.model ?? model) ?? true;
426
426
  },
427
- // A chain takes a forced choice only if every member does: the request may
428
- // be served by any of them, and the one that refuses would fail the step.
427
+ // A chain takes a forced choice only if every member says it does: the
428
+ // request may be served by any of them, and one that refuses (or cannot
429
+ // say) must not be sent a choice it may turn down.
429
430
  acceptsForcedToolChoiceFor: (model, thinking, effort) => members.every((member) => member.provider.acceptsForcedToolChoiceFor?.(member.model ?? model, thinking, effort) ??
430
- true),
431
+ false),
431
432
  reasoningEffortLevelsFor: (model, thinking) => commonReasoningEffortLevels(members, model, thinking),
432
433
  // Present on the chain wrapper for the same reason the menu method is:
433
434
  // `undefined` is the honest answer when a member cannot answer, defaults