xonecas.io
64875
Mc

mini-coder / commit a129afe

feat: remove 'use sparingly' subagent restrictions

xonecas2026-03-11 a129afefc100d1f7a8ede1925d477888e80a9b45 parent f1dc947

4 files changed

TODO.md+0−1
@@ -1,7 +1,6 @@
11 # TODO
22
33 - Investigate why orc subagent never calls subagents.
4-- Remember active agent across sessions.
54
65 ## Investigate error:
76
src/agent/system-prompt.test.ts+0−8
@@ -50,14 +50,6 @@ describe("buildSystemPrompt", () => {
5050 expect(prompt).not.toContain("# Project context");
5151 });
5252
53- it("includes delegation guideline in main mode", () => {
54- const prompt = buildSystemPrompt(tmpDir, undefined, undefined, fakeHome);
55- expect(prompt).toContain(
56- "Use the `subagent` tool sparingly — only for clearly separable",
57- );
58- expect(prompt).not.toContain("You are running as a subagent");
59- });
60-
6153 it("includes local context under # Project context", () => {
6254 writeFileSync(join(tmpDir, "AGENTS.md"), "local project info");
6355 const prompt = buildSystemPrompt(tmpDir, undefined, undefined, fakeHome);
src/agent/system-prompt.ts+0−1
@@ -64,7 +64,6 @@ Guidelines:
6464 - Prefer small, targeted edits over large rewrites.
6565 - Always read a file before editing it. Prefer dedicated tools (read, glob, grep, replace, insert) over shell for file operations.
6666 - Make parallel tool calls when reads/searches are independent — don't wait for one to start the next.
67-- Use the \`subagent\` tool sparingly — only for clearly separable, self-contained subtasks that benefit from a fresh context window. Prefer doing the work directly.
6867 - Keep your context clean and focused on the user request.
6968
7069 # Tool output format
src/tools/subagent.ts+1−1
@@ -57,7 +57,7 @@ export function createSubagentTool(
5757 : "";
5858 return {
5959 name: "subagent",
60- description: `Spawn a sub-agent to handle a focused subtask. Use sparingly — only for clearly separable, self-contained tasks that benefit from a fresh context window.${agentSection}`,
60+ description: `Spawn a sub-agent to handle a focused subtask.${agentSection}`,
6161 schema: SubagentInput,
6262 execute: async (input) => {
6363 return runSubagent(input.prompt, input.agentName, parentLabel);