Skip to content

feat(coding-agent): gate goal subagent spawning - #322

Merged
Pepps233 merged 1 commit into
mainfrom
feat/goal-user-directed-subagents
Nov 8, 2026
Merged

Pepps233 merged 1 commit into
mainfrom
feat/goal-user-directed-subagents

Conversation

@Pepps233

@Pepps233 Pepps233 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Require explicit user direction before Diffex spawns subagents while /goal is enabled.

Honor the requested count and each subagent's purpose, inferring omitted details from context after the user requests delegation.

Reasoning

Goal mode currently exposes delegation without a system instruction limiting autonomous spawning.

Apply the policy in the existing goal-only effective prompt so it survives custom prompts, extension overrides, and tool-loop continuations.

Changes

  • Add goal-only instructions prohibiting autonomous subagent spawning.
  • Clarify that enabling /goal, task complexity, and parallel work opportunities do not authorize delegation.
  • Add interactive command coverage for default, custom, and extension prompts, authorized spawning, mode toggling, and unchanged spawn schemas.

Testing

  • Reproduced the missing instruction through the interactive /goal handler with the faux provider before changing production code.
  • npm run check
  • Focused Vitest run: interactive-goal.test.ts, goal-durability.test.ts, and agent-session-goal.test.ts (30 passed).
  • ./scripts/test.sh (passed, including 3,394 coding-agent tests).

Faux-provider coverage verifies provider-visible instructions and tool behavior; live-model instruction compliance was not evaluated.

- Require explicit user direction for delegation in /goal
- Infer omitted counts and purposes within the user's request
@Pepps233 Pepps233 added enhancement New feature or request coding-agent labels Nov 8, 2026
@Pepps233 Pepps233 self-assigned this Nov 8, 2026
@Pepps233
Pepps233 merged commit 8174b9c into main Nov 8, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coding-agent enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant