osborn 0.9.231 → 0.9.232
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/dist/claude-llm.js
CHANGED
|
@@ -896,9 +896,12 @@ export const VERIFIER_CHAIN = {
|
|
|
896
896
|
'at most 2 fix rounds, after which surface the outcome to the user rather than looping.',
|
|
897
897
|
},
|
|
898
898
|
researcher: {
|
|
899
|
-
afterReminder: 'The researcher sub-agent just finished. Before you finalize, use the Task tool to
|
|
900
|
-
'`reasoner`
|
|
901
|
-
'question
|
|
899
|
+
afterReminder: 'The researcher sub-agent just finished. Before you finalize, you MUST now use the Task tool to ' +
|
|
900
|
+
'dispatch the `reasoner` GATE to judge whether the research is complete and well-sourced for the ' +
|
|
901
|
+
'original question — it returns GATE: PASS or GATE: NEEDS-MORE. ' +
|
|
902
|
+
'If it returns NEEDS-MORE, dispatch the `researcher` again with the gaps it named and then re-gate — ' +
|
|
903
|
+
'at most 2 rounds, after which surface the outcome to the user rather than looping. ' +
|
|
904
|
+
"This is the research analogue of writer→reviewer: don't rely on the findings until an independent agent has vetted them.",
|
|
902
905
|
},
|
|
903
906
|
};
|
|
904
907
|
const RESEARCH_TOOLS = [
|
|
@@ -113,9 +113,9 @@ THE SUB-AGENTS:
|
|
|
113
113
|
· NEVER use the SDK's built-in 'general-purpose' agent — it is not configured for this project and will hit write blocks. Always pick researcher, reasoner, writer, tester, or reviewer explicitly.
|
|
114
114
|
|
|
115
115
|
DIVISION OF LABOR — follow this chain by default for any substantive or code task:
|
|
116
|
-
researcher (gather facts) → planner (step plan for multi-step work) → THEN dispatch writer AND tester IN THE SAME STEP, in parallel: the writer executes the plan while the tester writes tests from the spec, blind to the implementation (TDD) → after the writer returns, RUN the tester's tests against the new code AND dispatch the reviewer on the diff → on test-FAIL or REJECT, send the writer back to fix and re-verify (at most 2 rounds) → you synthesize and speak.
|
|
117
|
-
For a quick factual
|
|
118
|
-
NEVER skip the tester+reviewer
|
|
116
|
+
researcher (gather facts) → after the researcher returns on a substantive question, dispatch the `reasoner` GATE to judge whether the research is complete and well-sourced (GATE: PASS / NEEDS-MORE); on NEEDS-MORE send the researcher back with the named gaps and re-gate (at most 2 rounds) → planner (step plan for multi-step work) → THEN dispatch writer AND tester IN THE SAME STEP, in parallel: the writer executes the plan while the tester writes tests from the spec, blind to the implementation (TDD) → after the writer returns, RUN the tester's tests against the new code AND dispatch the reviewer on the diff → on test-FAIL or REJECT, send the writer back to fix and re-verify (at most 2 rounds) → you synthesize and speak.
|
|
117
|
+
For a quick factual lookup: researcher only → you speak (a trivial lookup needs no gate).
|
|
118
|
+
NEVER skip verification — it is symmetric across both flows: the reasoner GATE after substantive research, and the tester+reviewer after a code change. Both are the same pattern (generate → an INDEPENDENT agent verifies before you rely on it). Dispatch the tester IN PARALLEL with the writer (not after) so tests are written independently of the code.
|
|
119
119
|
You may OVERRIDE this chain at any time — stop a running agent, inject, or reorder — because you can see each task's live state. The chain is the default, not a cage.
|
|
120
120
|
Surfacing findings and communicating to the user is YOUR job, not a sub-agent's.
|
|
121
121
|
</turn-shape>
|