Skip to content

refactor(party-mode): consolidate into single SKILL.md with real subagents#2160

Merged
bmadcode merged 1 commit intomainfrom
feature/pmode
Mar 29, 2026
Merged

refactor(party-mode): consolidate into single SKILL.md with real subagents#2160
bmadcode merged 1 commit intomainfrom
feature/pmode

Conversation

@pbean
Copy link
Copy Markdown
Contributor

@pbean pbean commented Mar 29, 2026

Summary

  • Replaces the multi-file workflow architecture (workflow.md + 3 step files) with a single self-contained SKILL.md
  • Each agent is now spawned as an independent subagent via the Agent tool, producing genuinely diverse perspectives instead of one LLM roleplaying multiple characters
  • Adds --model and --solo flags for controlling subagent model selection and fallback to single-LLM mode

Test plan

  • Invoke party mode and verify agents are spawned as real subagents
  • Test --model haiku flag to confirm model override works
  • Test --solo flag to confirm single-LLM fallback works
  • Verify agent selection, context passing, and cross-talk work as described

🤖 Generated with Claude Code

…gents

Replace the multi-file workflow architecture (workflow.md + 3 step files)
with a self-contained SKILL.md that spawns each agent as an independent
subagent via the Agent tool. This produces genuinely diverse perspectives
instead of one LLM roleplaying multiple characters. Adds --model and
--solo flags for flexibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@augmentcode
Copy link
Copy Markdown

augmentcode bot commented Mar 29, 2026

🤖 Augment PR Summary

Summary: Refactors Party Mode to be a single, self-contained SKILL.md focused on orchestrating a real multi-agent roundtable.

Changes:

  • Replaces the previous multi-file workflow/steps architecture with consolidated instructions in src/core-skills/bmad-party-mode/SKILL.md
  • Defines Party Mode as an orchestrator that selects 2–4 relevant BMAD agents per user message and coordinates a roundtable
  • Switches from single-LLM roleplay to spawning each agent as an independent subagent (via the Agent tool), aiming for more diverse viewpoints
  • Adds optional --model flag to force a specific model for subagents and guidance for picking model weight per round
  • Adds optional --solo flag to run without subagents (single-LLM fallback) and instructs the orchestrator to announce it
  • Standardizes activation steps: load config, read agent-manifest.csv, optionally include project-context.md, then present a roster
  • Documents follow-up patterns (direct reactions, adding specific agents, rotating voices) to keep the discussion dynamic
  • Removes the old workflow.md and step files for agent loading / orchestration / exit flow

Technical Notes: Party Mode now relies on {project-root}/_bmad/_config/agent-manifest.csv for agent persona fields and uses a “pass-through” presentation style (no summarizing/editing agent replies).

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Follow the instructions in ./workflow.md.
# Party Mode

Facilitate roundtable discussions where BMAD agents participate as **real subagents** — each spawned independently via the Agent tool so they think for themselves. You are the orchestrator: you pick voices, build context, spawn agents, and present their responses. You never generate agent responses yourself.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This says “You never generate agent responses yourself,” but later --solo explicitly instructs generating all agent responses in one message; that contradiction could cause the orchestrator to refuse to operate in solo mode.

Severity: medium

Other Locations
  • src/core-skills/bmad-party-mode/SKILL.md:87

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.


1. **Parse arguments** — check for `--model` and `--solo` flags from the user's invocation.

2. Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loading config only from {project-root}/_bmad/bmm/config.yaml assumes the BMM module is installed; if Party Mode is used in a core-only installation, this step may fail and prevent activation.

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 29, 2026

📝 Walkthrough

Walkthrough

The Party Mode skill documentation was reorganized by consolidating the workflow architecture from separate step files (step-01, step-02, step-03) and a primary workflow.md into a comprehensive specification within the main SKILL.md document. All core functionality, execution guidance, and behavioral specifications remain intact.

Changes

Cohort / File(s) Summary
Consolidated Skill Specification
src/core-skills/bmad-party-mode/SKILL.md
Updated with complete Party Mode spec, including agent orchestration model, invocation options (--model, --solo), activation protocol, core loop definition, context management, failure mode handling, and exit behavior.
Removed Step Files
src/core-skills/bmad-party-mode/steps/step-01-agent-loading.md, src/core-skills/bmad-party-mode/steps/step-02-discussion-orchestration.md, src/core-skills/bmad-party-mode/steps/step-03-graceful-exit.md, src/core-skills/bmad-party-mode/workflow.md
Deleted workflow architecture files previously defining sequential orchestration steps, agent roster loading, multi-round conversation control, and graceful exit flow; content consolidated into SKILL.md.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • bmadcode
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'refactor(party-mode): consolidate into single SKILL.md with real subagents' accurately reflects the main change: consolidating a multi-file workflow into a single SKILL.md and switching from LLM roleplay to real subagents.
Description check ✅ Passed The description is directly related to the changeset, clearly explaining the consolidation of workflow files into SKILL.md, the transition to independent subagents, and the addition of --model and --solo flags.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/pmode

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/core-skills/bmad-party-mode/SKILL.md`:
- Around line 14-19: Update user-facing docs to document the new Party Mode CLI
flags: add entries for `--model <model>` and `--solo` that explain behavior,
examples, and trade-offs; specifically, create or update
docs/reference/party-mode.md (or equivalent) to define `--model` (usage examples
like `--model haiku`, when to force models vs. defaults, impact on subagents)
and `--solo` (describe roleplaying fallback, announce on activation, and when to
use), update any how-to guides under docs/how-to/ with sample invocations
showing the flags, and add a release note/CHANGELOG entry highlighting the
architectural change to real subagents and the new control flags so users know
about the new options introduced by Party Mode (`--model`, `--solo`) and their
effects.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9a8acd94-4bae-4734-b0e9-5bcae1fc65b2

📥 Commits

Reviewing files that changed from the base of the PR and between 7dd49a4 and 4587e6f.

📒 Files selected for processing (5)
  • src/core-skills/bmad-party-mode/SKILL.md
  • src/core-skills/bmad-party-mode/steps/step-01-agent-loading.md
  • src/core-skills/bmad-party-mode/steps/step-02-discussion-orchestration.md
  • src/core-skills/bmad-party-mode/steps/step-03-graceful-exit.md
  • src/core-skills/bmad-party-mode/workflow.md
💤 Files with no reviewable changes (4)
  • src/core-skills/bmad-party-mode/steps/step-02-discussion-orchestration.md
  • src/core-skills/bmad-party-mode/steps/step-03-graceful-exit.md
  • src/core-skills/bmad-party-mode/workflow.md
  • src/core-skills/bmad-party-mode/steps/step-01-agent-loading.md

Comment on lines +14 to +19
## Arguments

Party mode accepts optional arguments when invoked:

- `--model <model>` — Force all subagents to use a specific model (e.g. `--model haiku`, `--model opus`). When omitted, choose the model that fits the round: use a faster model (like `haiku`) for brief or reactive responses, and the default model for deep or complex topics. Match model weight to the depth of thinking the round requires.
- `--solo` — Run without subagents. Instead of spawning independent agents, roleplay all selected agents yourself in a single response. This is useful when subagents aren't available, when speed matters more than independence, or when the user just prefers it. Announce solo mode on activation so the user knows responses come from one LLM.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Document the new CLI flags in user-facing documentation.

This PR introduces two significant user-facing features:

  • --model <model>: Force all subagents to a specific model (e.g., --model haiku)
  • --solo: Fall back to single-LLM mode (roleplay all agents in one response)

These CLI flags change how users invoke and control Party Mode. Per coding guidelines for src/** files, "altered CLI flags, or modified configuration options should all be reflected in the relevant doc pages."

Suggested documentation updates:

  1. docs/reference/party-mode.md (or similar): Document both flags with examples, use cases, and trade-offs (speed vs. independence)
  2. docs/how-to/ guides: Update any party-mode invocation examples to show the optional flags
  3. Release notes/CHANGELOG: Highlight the architectural shift to real subagents and the new control flags

As per coding guidelines, source file changes introducing new features or CLI flags require corresponding documentation updates.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/core-skills/bmad-party-mode/SKILL.md` around lines 14 - 19, Update
user-facing docs to document the new Party Mode CLI flags: add entries for
`--model <model>` and `--solo` that explain behavior, examples, and trade-offs;
specifically, create or update docs/reference/party-mode.md (or equivalent) to
define `--model` (usage examples like `--model haiku`, when to force models vs.
defaults, impact on subagents) and `--solo` (describe roleplaying fallback,
announce on activation, and when to use), update any how-to guides under
docs/how-to/ with sample invocations showing the flags, and add a release
note/CHANGELOG entry highlighting the architectural change to real subagents and
the new control flags so users know about the new options introduced by Party
Mode (`--model`, `--solo`) and their effects.

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.

2 participants