drizzy-agent 0.6.0 → 0.6.1
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 +19 -10
- 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.1",
|
|
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.1",
|
|
29366
|
+
"drizzy-agent-darwin-x64": "0.6.1",
|
|
29367
|
+
"drizzy-agent-darwin-x64-baseline": "0.6.1",
|
|
29368
|
+
"drizzy-agent-linux-arm64": "0.6.1",
|
|
29369
|
+
"drizzy-agent-linux-arm64-musl": "0.6.1",
|
|
29370
|
+
"drizzy-agent-linux-x64": "0.6.1",
|
|
29371
|
+
"drizzy-agent-linux-x64-baseline": "0.6.1",
|
|
29372
|
+
"drizzy-agent-linux-x64-musl": "0.6.1",
|
|
29373
|
+
"drizzy-agent-linux-x64-musl-baseline": "0.6.1",
|
|
29374
|
+
"drizzy-agent-windows-x64": "0.6.1",
|
|
29375
|
+
"drizzy-agent-windows-x64-baseline": "0.6.1"
|
|
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);
|
|
@@ -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,6 +92083,11 @@ 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
|
|
|
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
|
+
|
|
92081
92091
|
Aim for 3-5 parallel agents. ALL task() calls MUST include description, load_skills, and run_in_background parameters.
|
|
92082
92092
|
</step_3_search>
|
|
92083
92093
|
|
|
@@ -92125,9 +92135,8 @@ Brief description of search strategy, agents used, and any gaps.
|
|
|
92125
92135
|
<step_6_save>
|
|
92126
92136
|
**Step 6: Save and Deliver**
|
|
92127
92137
|
1. Write the full report to \`{run_directory}/report.md\`
|
|
92128
|
-
- \`run_directory\` is the single
|
|
92138
|
+
- \`run_directory\` is the single slug-based directory you created in Step 2
|
|
92129
92139
|
- slug: lowercase, hyphenated topic name (e.g., "react-state-management")
|
|
92130
|
-
- timestamp: current date-time
|
|
92131
92140
|
2. Post in the chat conversation:
|
|
92132
92141
|
- The Executive Summary section
|
|
92133
92142
|
- The Key Takeaways section
|
|
@@ -92151,10 +92160,10 @@ Step 1: Understand the Goal
|
|
|
92151
92160
|
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
92161
|
|
|
92153
92162
|
Step 2: Plan the Research
|
|
92154
|
-
Break the topic into 3-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}
|
|
92163
|
+
Break the topic into 3-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
92164
|
|
|
92156
92165
|
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. Aim for 3-5 parallel agents. ALL task() calls MUST include description, load_skills, and run_in_background parameters.
|
|
92166
|
+
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. Aim for 3-5 parallel agents. 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).
|
|
92158
92167
|
|
|
92159
92168
|
Step 4: Collect and Deep-Read
|
|
92160
92169
|
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 +92172,7 @@ Step 5: Synthesize Report
|
|
|
92163
92172
|
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
92173
|
|
|
92165
92174
|
Step 6: Save and Deliver
|
|
92166
|
-
Write the full report to {run_directory}/report.md where run_directory is the single
|
|
92175
|
+
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
92176
|
|
|
92168
92177
|
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
92178
|
|
|
@@ -92233,7 +92242,7 @@ var RESEARCHER_JUNIOR_DEFAULT_PROMPT = `You are a focused web research specialis
|
|
|
92233
92242
|
- LOW: Single source or uncertain/conflicting information
|
|
92234
92243
|
6. Write findings to: {run_directory}/findings/{sub-topic}-findings.md
|
|
92235
92244
|
- Researcher should pass you an exact run_directory in the prompt
|
|
92236
|
-
- Use that exact run_directory so your findings land in the same
|
|
92245
|
+
- Use that exact run_directory so your findings land in the same shared investigation folder as the final report
|
|
92237
92246
|
- If no explicit run_directory is provided, state the missing contract clearly before making assumptions
|
|
92238
92247
|
7. Return brief summary in conversation
|
|
92239
92248
|
</workflow>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drizzy-agent",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
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.1",
|
|
80
|
+
"drizzy-agent-darwin-x64": "0.6.1",
|
|
81
|
+
"drizzy-agent-darwin-x64-baseline": "0.6.1",
|
|
82
|
+
"drizzy-agent-linux-arm64": "0.6.1",
|
|
83
|
+
"drizzy-agent-linux-arm64-musl": "0.6.1",
|
|
84
|
+
"drizzy-agent-linux-x64": "0.6.1",
|
|
85
|
+
"drizzy-agent-linux-x64-baseline": "0.6.1",
|
|
86
|
+
"drizzy-agent-linux-x64-musl": "0.6.1",
|
|
87
|
+
"drizzy-agent-linux-x64-musl-baseline": "0.6.1",
|
|
88
|
+
"drizzy-agent-windows-x64": "0.6.1",
|
|
89
|
+
"drizzy-agent-windows-x64-baseline": "0.6.1"
|
|
90
90
|
},
|
|
91
91
|
"overrides": {
|
|
92
92
|
"@opencode-ai/sdk": "^1.2.24"
|