drizzy-agent 0.6.0 → 0.6.2
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/cli/index.js +14 -14
- package/dist/index.js +25 -12
- package/package.json +12 -12
package/dist/cli/index.js
CHANGED
|
@@ -3505,7 +3505,7 @@ var init_agent_model_defaults = __esm(() => {
|
|
|
3505
3505
|
{ providers: OPENAI_PROVIDERS, model: "gpt-5.4", variant: "medium" },
|
|
3506
3506
|
{ providers: ["opencode"], model: "glm-4.7-free", alwaysAvailable: true }
|
|
3507
3507
|
],
|
|
3508
|
-
includeInInstall:
|
|
3508
|
+
includeInInstall: true
|
|
3509
3509
|
},
|
|
3510
3510
|
"researcher-junior": {
|
|
3511
3511
|
chain: [
|
|
@@ -3515,7 +3515,7 @@ var init_agent_model_defaults = __esm(() => {
|
|
|
3515
3515
|
{ providers: OPENAI_PROVIDERS, model: "gpt-5.4", variant: "low" },
|
|
3516
3516
|
{ providers: ["opencode"], model: "glm-4.7-free", alwaysAvailable: true }
|
|
3517
3517
|
],
|
|
3518
|
-
includeInInstall:
|
|
3518
|
+
includeInInstall: true
|
|
3519
3519
|
}
|
|
3520
3520
|
};
|
|
3521
3521
|
CATEGORY_MODEL_DEFAULTS = {
|
|
@@ -29286,7 +29286,7 @@ function createMcpOAuthCommand() {
|
|
|
29286
29286
|
// package.json
|
|
29287
29287
|
var package_default = {
|
|
29288
29288
|
name: "drizzy-agent",
|
|
29289
|
-
version: "0.6.
|
|
29289
|
+
version: "0.6.2",
|
|
29290
29290
|
description: "DrizzyAgent - AI agent plugin for OpenCode",
|
|
29291
29291
|
main: "dist/index.js",
|
|
29292
29292
|
types: "dist/index.d.ts",
|
|
@@ -29362,17 +29362,17 @@ var package_default = {
|
|
|
29362
29362
|
typescript: "^5.7.3"
|
|
29363
29363
|
},
|
|
29364
29364
|
optionalDependencies: {
|
|
29365
|
-
"drizzy-agent-darwin-arm64": "0.6.
|
|
29366
|
-
"drizzy-agent-darwin-x64": "0.6.
|
|
29367
|
-
"drizzy-agent-darwin-x64-baseline": "0.6.
|
|
29368
|
-
"drizzy-agent-linux-arm64": "0.6.
|
|
29369
|
-
"drizzy-agent-linux-arm64-musl": "0.6.
|
|
29370
|
-
"drizzy-agent-linux-x64": "0.6.
|
|
29371
|
-
"drizzy-agent-linux-x64-baseline": "0.6.
|
|
29372
|
-
"drizzy-agent-linux-x64-musl": "0.6.
|
|
29373
|
-
"drizzy-agent-linux-x64-musl-baseline": "0.6.
|
|
29374
|
-
"drizzy-agent-windows-x64": "0.6.
|
|
29375
|
-
"drizzy-agent-windows-x64-baseline": "0.6.
|
|
29365
|
+
"drizzy-agent-darwin-arm64": "0.6.2",
|
|
29366
|
+
"drizzy-agent-darwin-x64": "0.6.2",
|
|
29367
|
+
"drizzy-agent-darwin-x64-baseline": "0.6.2",
|
|
29368
|
+
"drizzy-agent-linux-arm64": "0.6.2",
|
|
29369
|
+
"drizzy-agent-linux-arm64-musl": "0.6.2",
|
|
29370
|
+
"drizzy-agent-linux-x64": "0.6.2",
|
|
29371
|
+
"drizzy-agent-linux-x64-baseline": "0.6.2",
|
|
29372
|
+
"drizzy-agent-linux-x64-musl": "0.6.2",
|
|
29373
|
+
"drizzy-agent-linux-x64-musl-baseline": "0.6.2",
|
|
29374
|
+
"drizzy-agent-windows-x64": "0.6.2",
|
|
29375
|
+
"drizzy-agent-windows-x64-baseline": "0.6.2"
|
|
29376
29376
|
},
|
|
29377
29377
|
overrides: {
|
|
29378
29378
|
"@opencode-ai/sdk": "^1.2.24"
|
package/dist/index.js
CHANGED
|
@@ -16775,7 +16775,7 @@ var AGENT_MODEL_DEFAULTS = {
|
|
|
16775
16775
|
{ providers: OPENAI_PROVIDERS, model: "gpt-5.4", variant: "medium" },
|
|
16776
16776
|
{ providers: ["opencode"], model: "glm-4.7-free", alwaysAvailable: true }
|
|
16777
16777
|
],
|
|
16778
|
-
includeInInstall:
|
|
16778
|
+
includeInInstall: true
|
|
16779
16779
|
},
|
|
16780
16780
|
"researcher-junior": {
|
|
16781
16781
|
chain: [
|
|
@@ -16785,7 +16785,7 @@ var AGENT_MODEL_DEFAULTS = {
|
|
|
16785
16785
|
{ providers: OPENAI_PROVIDERS, model: "gpt-5.4", variant: "low" },
|
|
16786
16786
|
{ providers: ["opencode"], model: "glm-4.7-free", alwaysAvailable: true }
|
|
16787
16787
|
],
|
|
16788
|
-
includeInInstall:
|
|
16788
|
+
includeInInstall: true
|
|
16789
16789
|
}
|
|
16790
16790
|
};
|
|
16791
16791
|
var CATEGORY_MODEL_DEFAULTS = {
|
|
@@ -74695,6 +74695,12 @@ function createDelegateTask(options) {
|
|
|
74695
74695
|
},
|
|
74696
74696
|
async execute(args, toolContext) {
|
|
74697
74697
|
const ctx = toolContext;
|
|
74698
|
+
const parentContext = await resolveParentContext(ctx, options.client);
|
|
74699
|
+
const parentAgentConfigKey = parentContext.agent ? getAgentConfigKey(parentContext.agent) : undefined;
|
|
74700
|
+
const isResearcherParent = parentAgentConfigKey === "researcher" || parentAgentConfigKey === "researcher-junior";
|
|
74701
|
+
if (args.category && isResearcherParent) {
|
|
74702
|
+
return `Invalid arguments: ${parentContext.agent ?? "Researcher"} cannot use category delegation. Use subagent_type explicitly (explore, librarian, researcher-junior) and do not call coder-junior.`;
|
|
74703
|
+
}
|
|
74698
74704
|
if (args.category) {
|
|
74699
74705
|
if (args.subagent_type && args.subagent_type !== CODER_JUNIOR_AGENT2) {
|
|
74700
74706
|
log("[task] category provided - overriding subagent_type to coder-junior", {
|
|
@@ -74738,7 +74744,6 @@ function createDelegateTask(options) {
|
|
|
74738
74744
|
if (skillError) {
|
|
74739
74745
|
return skillError;
|
|
74740
74746
|
}
|
|
74741
|
-
const parentContext = await resolveParentContext(ctx, options.client);
|
|
74742
74747
|
if (args.session_id) {
|
|
74743
74748
|
if (runInBackground) {
|
|
74744
74749
|
return executeBackgroundContinuation(args, ctx, options, parentContext);
|
|
@@ -92042,7 +92047,7 @@ Analyze the research request carefully.
|
|
|
92042
92047
|
|
|
92043
92048
|
<step_2_plan>
|
|
92044
92049
|
**Step 2: Plan the Research**
|
|
92045
|
-
Break the topic into
|
|
92050
|
+
Break the topic into at least 5 focused sub-questions. For each sub-question, classify it:
|
|
92046
92051
|
- **Codebase** (existing code patterns, usage) --> Explore agent
|
|
92047
92052
|
- **Docs/Library** (official docs, API references, OSS examples) --> Librarian agent
|
|
92048
92053
|
- **General/Web** (comparisons, blog posts, benchmarks, non-coding topics) --> direct websearch/webfetch MCP tools or Researcher-Junior agent
|
|
@@ -92051,7 +92056,7 @@ List your sub-questions and their classification before executing.
|
|
|
92051
92056
|
For coding tasks, this planning step happens only after your first codebase exploration pass.
|
|
92052
92057
|
For non-coding tasks, this planning step happens only after the clarifying questions have been answered.
|
|
92053
92058
|
Also create a single run directory for the whole investigation:
|
|
92054
|
-
- \`.drizzy/research/{slug}
|
|
92059
|
+
- \`.drizzy/research/{slug}/\`
|
|
92055
92060
|
- Save the final report to \`{run_directory}/report.md\`
|
|
92056
92061
|
- Pass the exact same \`{run_directory}\` to every Researcher-Junior task so all findings land under one shared investigation folder.
|
|
92057
92062
|
</step_2_plan>
|
|
@@ -92078,7 +92083,16 @@ For web research:
|
|
|
92078
92083
|
task(subagent_type="researcher-junior", description="Research X topic", load_skills=[], run_in_background=true, prompt="Investigate... Save findings under {run_directory}/findings/... Use this exact run directory: {run_directory}")
|
|
92079
92084
|
\`\`\`
|
|
92080
92085
|
|
|
92081
|
-
|
|
92086
|
+
CRITICAL delegation rule:
|
|
92087
|
+
- Never pass category to task().
|
|
92088
|
+
- Never delegate to coder-junior.
|
|
92089
|
+
- Always delegate with explicit subagent_type: explore, librarian, or researcher-junior.
|
|
92090
|
+
|
|
92091
|
+
You MUST deploy at least 5 Researcher-Junior subagents in parallel. Each sub-question from Step 2 should map to its own Researcher-Junior. If you identified more than 5 sub-questions, spawn one Researcher-Junior per sub-question. Supplement with Explore and Librarian agents as needed for codebase and docs queries -- those do NOT count toward the minimum 5 Researcher-Junior requirement.
|
|
92092
|
+
|
|
92093
|
+
ALL task() calls MUST include description, load_skills, and run_in_background parameters.
|
|
92094
|
+
|
|
92095
|
+
Escalation rule: After collecting results in Step 4, if Researcher-Junior agents return conflicting findings, incomplete coverage, or surface new research threads, deploy additional Researcher-Junior agents to resolve the conflicts or cover the gaps. There is no upper limit -- keep spawning until you have consistent, well-sourced answers across all sub-questions.
|
|
92082
92096
|
</step_3_search>
|
|
92083
92097
|
|
|
92084
92098
|
<step_4_collect>
|
|
@@ -92125,9 +92139,8 @@ Brief description of search strategy, agents used, and any gaps.
|
|
|
92125
92139
|
<step_6_save>
|
|
92126
92140
|
**Step 6: Save and Deliver**
|
|
92127
92141
|
1. Write the full report to \`{run_directory}/report.md\`
|
|
92128
|
-
- \`run_directory\` is the single
|
|
92142
|
+
- \`run_directory\` is the single slug-based directory you created in Step 2
|
|
92129
92143
|
- slug: lowercase, hyphenated topic name (e.g., "react-state-management")
|
|
92130
|
-
- timestamp: current date-time
|
|
92131
92144
|
2. Post in the chat conversation:
|
|
92132
92145
|
- The Executive Summary section
|
|
92133
92146
|
- The Key Takeaways section
|
|
@@ -92151,10 +92164,10 @@ Step 1: Understand the Goal
|
|
|
92151
92164
|
Analyze the research request. First classify it as coding or non-coding. If it is a coding task, inspect the codebase first: launch 1-3 Explore agents in parallel and read the relevant local files before asking planning questions. Treat this as a lightweight grounding pass; if no relevant local code or patterns exist, state that clearly and continue with external research rather than stalling. Only ask targeted follow-up questions after that first codebase pass if a critical ambiguity remains. If it is a non-coding task, use the question tool first and make no assumptions about scope, audience, geography, timeframe, or output format. If you are a subagent without direct user access, return clarifying questions to the caller and stop until they are answered. If detailed instructions already resolve those uncertainties, skip unnecessary clarification. Identify what the requester actually needs to decide or learn.
|
|
92152
92165
|
|
|
92153
92166
|
Step 2: Plan the Research
|
|
92154
|
-
Break the topic into
|
|
92167
|
+
Break the topic into at least 5 focused sub-questions. Classify each as: codebase (use Explore agent), docs/library (use Librarian agent), or general/web (use websearch/webfetch MCP tools or Researcher-Junior agent). List your sub-questions and classification before executing. For coding tasks, do this only after the first codebase exploration pass. For non-coding tasks, do this only after the clarifying questions are answered. Create one shared run directory at .drizzy/research/{slug}/ and pass that exact run_directory to every Researcher-Junior task.
|
|
92155
92168
|
|
|
92156
92169
|
Step 3: Execute Parallel Search
|
|
92157
|
-
Spawn sub-agents for each sub-question using background execution. For codebase questions use task(subagent_type="explore", description="...", load_skills=[], run_in_background=true, prompt="..."). For docs use task(subagent_type="librarian", ...). For web research use websearch MCP tool directly or spawn task(subagent_type="researcher-junior", description="...", load_skills=[], run_in_background=true, prompt="... Use this exact run_directory: {run_directory}. Save findings to {run_directory}/findings/..." ) for deeper investigation.
|
|
92170
|
+
Spawn sub-agents for each sub-question using background execution. For codebase questions use task(subagent_type="explore", description="...", load_skills=[], run_in_background=true, prompt="..."). For docs use task(subagent_type="librarian", ...). For web research use websearch MCP tool directly or spawn task(subagent_type="researcher-junior", description="...", load_skills=[], run_in_background=true, prompt="... Use this exact run_directory: {run_directory}. Save findings to {run_directory}/findings/..." ) for deeper investigation. You MUST deploy at least 5 Researcher-Junior subagents in parallel -- one per sub-question from Step 2. If you have more than 5 sub-questions, spawn one Researcher-Junior per sub-question. Explore and Librarian agents for codebase/docs queries do NOT count toward the minimum 5. ALL task() calls MUST include description, load_skills, and run_in_background parameters. Never pass category to task(), never delegate to coder-junior, and always use explicit subagent_type values (explore, librarian, researcher-junior). Escalation: after collecting results, if Researcher-Junior agents return conflicting findings, incomplete coverage, or surface new threads, deploy additional Researcher-Junior agents to resolve conflicts or cover gaps -- no upper limit.
|
|
92158
92171
|
|
|
92159
92172
|
Step 4: Collect and Deep-Read
|
|
92160
92173
|
Gather all sub-agent results via background_output(task_id="..."). For promising URLs, use webfetch to get full content. Cross-reference findings across sources. Tag each finding with confidence: HIGH (3+ sources confirm), MEDIUM (1-2 authoritative sources), LOW (single/uncertain source).
|
|
@@ -92163,7 +92176,7 @@ Step 5: Synthesize Report
|
|
|
92163
92176
|
Write a structured markdown report: Executive Summary (2-3 paragraphs) --> Themed Sections with inline citations [1], [2] and per-finding confidence --> Key Takeaways (numbered actionable insights) --> Sources (numbered list with relevance notes) --> Methodology (search strategy, agents used, gaps).
|
|
92164
92177
|
|
|
92165
92178
|
Step 6: Save and Deliver
|
|
92166
|
-
Write the full report to {run_directory}/report.md where run_directory is the single
|
|
92179
|
+
Write the full report to {run_directory}/report.md where run_directory is the single slug-based directory created during planning. Post the Executive Summary and Key Takeaways in chat along with the file path.
|
|
92167
92180
|
|
|
92168
92181
|
Quality Rules: Every claim must have a source citation. Cross-reference single-source findings and flag them as MEDIUM or LOW confidence. Prefer recent sources. Acknowledge gaps explicitly. Never hallucinate sources, URLs, statistics, or quotes. Present conflicting information from both sides with sources.
|
|
92169
92182
|
|
|
@@ -92233,7 +92246,7 @@ var RESEARCHER_JUNIOR_DEFAULT_PROMPT = `You are a focused web research specialis
|
|
|
92233
92246
|
- LOW: Single source or uncertain/conflicting information
|
|
92234
92247
|
6. Write findings to: {run_directory}/findings/{sub-topic}-findings.md
|
|
92235
92248
|
- Researcher should pass you an exact run_directory in the prompt
|
|
92236
|
-
- Use that exact run_directory so your findings land in the same
|
|
92249
|
+
- Use that exact run_directory so your findings land in the same shared investigation folder as the final report
|
|
92237
92250
|
- If no explicit run_directory is provided, state the missing contract clearly before making assumptions
|
|
92238
92251
|
7. Return brief summary in conversation
|
|
92239
92252
|
</workflow>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drizzy-agent",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "DrizzyAgent - AI agent plugin for OpenCode",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -76,17 +76,17 @@
|
|
|
76
76
|
"typescript": "^5.7.3"
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
79
|
-
"drizzy-agent-darwin-arm64": "0.6.
|
|
80
|
-
"drizzy-agent-darwin-x64": "0.6.
|
|
81
|
-
"drizzy-agent-darwin-x64-baseline": "0.6.
|
|
82
|
-
"drizzy-agent-linux-arm64": "0.6.
|
|
83
|
-
"drizzy-agent-linux-arm64-musl": "0.6.
|
|
84
|
-
"drizzy-agent-linux-x64": "0.6.
|
|
85
|
-
"drizzy-agent-linux-x64-baseline": "0.6.
|
|
86
|
-
"drizzy-agent-linux-x64-musl": "0.6.
|
|
87
|
-
"drizzy-agent-linux-x64-musl-baseline": "0.6.
|
|
88
|
-
"drizzy-agent-windows-x64": "0.6.
|
|
89
|
-
"drizzy-agent-windows-x64-baseline": "0.6.
|
|
79
|
+
"drizzy-agent-darwin-arm64": "0.6.2",
|
|
80
|
+
"drizzy-agent-darwin-x64": "0.6.2",
|
|
81
|
+
"drizzy-agent-darwin-x64-baseline": "0.6.2",
|
|
82
|
+
"drizzy-agent-linux-arm64": "0.6.2",
|
|
83
|
+
"drizzy-agent-linux-arm64-musl": "0.6.2",
|
|
84
|
+
"drizzy-agent-linux-x64": "0.6.2",
|
|
85
|
+
"drizzy-agent-linux-x64-baseline": "0.6.2",
|
|
86
|
+
"drizzy-agent-linux-x64-musl": "0.6.2",
|
|
87
|
+
"drizzy-agent-linux-x64-musl-baseline": "0.6.2",
|
|
88
|
+
"drizzy-agent-windows-x64": "0.6.2",
|
|
89
|
+
"drizzy-agent-windows-x64-baseline": "0.6.2"
|
|
90
90
|
},
|
|
91
91
|
"overrides": {
|
|
92
92
|
"@opencode-ai/sdk": "^1.2.24"
|