@0perator/operator 0.1.337 → 0.1.338
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.
|
@@ -108,7 +108,7 @@ function sendWithTimeout(send, ms, interrupt) {
|
|
|
108
108
|
const msg = (e) => (e instanceof Error ? e.message : String(e));
|
|
109
109
|
// ── The `delegate_task` tool (registry wires run: runDelegateTask) ──────────
|
|
110
110
|
/**
|
|
111
|
-
* Run `args.task` on a sub-agent backed by `args.model` (default "scout") and return its final answer, or an
|
|
111
|
+
* Run `args.task` on a sub-agent backed by `args.model` (default: settings autonomy.delegateModel, else "scout") and return its final answer, or an
|
|
112
112
|
* `error: ...` string (the tool contract: never throws). Result size is bounded downstream — the executor's
|
|
113
113
|
* capToolResult spills anything over 40KB to disk and hands the planner a re-readable pointer.
|
|
114
114
|
*/
|
package/dist/tools/registry.js
CHANGED
|
@@ -2792,10 +2792,10 @@ const TOOLS = [
|
|
|
2792
2792
|
},
|
|
2793
2793
|
{
|
|
2794
2794
|
name: "delegate_task", safe: false,
|
|
2795
|
-
description: `Hand ONE self-contained subtask to a sub-agent running on a chosen model and get its final answer back (blocks until it finishes). The sub-agent is a full headless Operator session with its own tools, but NO memory of this conversation and it cannot ask you questions — so \`task\` must carry everything it needs (paths, constraints, the exact output you want). \`model\` is any /model id
|
|
2795
|
+
description: `Hand ONE self-contained subtask to a sub-agent running on a chosen model and get its final answer back (blocks until it finishes). The sub-agent is a full headless Operator session with its own tools, but NO memory of this conversation and it cannot ask you questions — so \`task\` must carry everything it needs (paths, constraints, the exact output you want). \`model\` is any /model id; OMIT IT to use the owner's configured default sub-agent (settings autonomy.delegateModel), which is the right choice almost always. Name a model only when the subtask needs a specific one, and never pick a model you have not seen answer in this fleet: an unloaded model fails the delegation. Anything TOOL-HEAVY — reviewing a remote/GitHub repo, multi-file exploration, web research, debugging, a repo audit — needs a strong tool-driver such as "cortana"; small models (e.g. "scout", 4B) drive tools unreliably and are often not loaded. Other fleet models: venice-24b, qwen3.8-flash, operator-1m. YOU CAN ALSO DELEGATE TO ANY CLOUD PROVIDER THE OWNER HAS CONNECTED (a stored vendor key): Claude via "claude-sonnet" (full tool-using), and any BYO provider — ${BYO_DELEGATE_PROVIDERS} — registered with "operator auth byo-model" (e.g. an OpenAI/Gemini/Groq/DeepSeek model id). A provider with NO stored key is refused with the exact command to store it, so a failed delegation is never silent — pick "cortana" if you're unsure a cloud key is connected. Use delegation to farm out an independent chunk while you keep planning; do not delegate what you can do in one tool call. Sub-agents cannot delegate further. The sub-agent runs with the owner's permission policy and can mutate the workspace.`,
|
|
2796
2796
|
parameters: { type: "object", properties: {
|
|
2797
2797
|
task: { type: "string", description: "the complete, self-contained subtask — the sub-agent sees only this" },
|
|
2798
|
-
model: { type: "string", description: "registry model id to run it on
|
|
2798
|
+
model: { type: "string", description: "registry model id to run it on; omit for the owner's configured default sub-agent" },
|
|
2799
2799
|
}, required: ["task"] },
|
|
2800
2800
|
run: (a) => runDelegateTask(a),
|
|
2801
2801
|
},
|