Skip to content

fix: --swarm flag silently ignored in /research and /research-deep#33

Merged
iamladi merged 1 commit intomainfrom
fix/swarm-routing
Feb 10, 2026
Merged

fix: --swarm flag silently ignored in /research and /research-deep#33
iamladi merged 1 commit intomainfrom
fix/swarm-routing

Conversation

@iamladi
Copy link
Copy Markdown
Owner

@iamladi iamladi commented Feb 10, 2026

Summary

  • /research: Replaced advisory "Argument Parsing" + "Mode Selection" with imperative "CRITICAL: Route Selection" gate; reordered Swarm Workflow before Standard Workflow
  • /research-deep: Strengthened "CRITICAL: Parse Flags and Route" with imperative skip directives; reordered Swarm Discovery before Standard Discovery

Root Cause

The LLM read the command prompt top-to-bottom and started executing the first actionable section (Standard Workflow) before processing the routing gate. The weak advisory language ("If user requested swarm mode, execute Swarm Workflow below") wasn't treated as a hard stop.

Test plan

  • /research --swarm topic triggers agent team creation and spawns 3 teammates (Locator, Analyzer, Pattern Finder)
  • /research topic runs standard subagent workflow with no team behavior
  • /research-deep --swarm topic triggers swarm discovery with agent team
  • /research-deep topic runs standard discovery

The LLM was skipping advisory "Mode Selection" and executing Standard
Workflow regardless of --swarm flag. Replaced with imperative "CRITICAL:
Route Selection" gates and reordered Swarm Workflow before Standard
Workflow to prevent top-to-bottom execution bias.
@iamladi iamladi merged commit dc85368 into main Feb 10, 2026
1 check passed
@iamladi iamladi deleted the fix/swarm-routing branch February 10, 2026 12:35
iamladi added a commit that referenced this pull request Apr 20, 2026
…main-model/CONTEXT-FORMAT.md's Rules section, converting the authored-output template's meta-instructions from directives into decidable guidance while preserving the bullet contract shape.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant