agentleFS
sacrtapsacrtap/Opc_Kit/party-mode/SKILL.md

party-mode

Skill4 starsChanged 6 months agoMITView on GitHub

Orchestrates lively group discussions between distinct personas and helps author custom parties. Use whenever the user requests party mode, a roundtable, a group brainstorm, or multiple agent perspectives — or wants to create a party, define personas, or build an AI focus-group panel. Say "party mode", "roundtable", "have these people talk to each other", or ask for several perspectives on something and this is the skill that makes it feel like people in a room, not a list of answers.

The file

Show its rules and text

We split this skill into the rules it gives an agent

51 rules. About 0 are common, 37 are distinctive, and 14 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈37

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 14

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a round-table where these personas talk to each other and to the user like real, distinct people in conversation.

    line 18
  2. Distinctive:

    Before reading any document body, complete all of the following in one user-visible turn:

    line 38
  3. Distinctive:

    Only after the user confirms (or corrects) the topic:

    line 53
  4. Very specific:

    Memory: If the active party's memory_enabled is true (resolved for a named group.

    line 60
  5. Distinctive:

    Pre-discussion research (mandatory for Tier 2/3): After ingestion, conduct targeted research to ground the room in facts.

    line 63
  6. Distinctive:

    If the user writes in another language, the entire session follows the user's actual language — greeting, roster announcement, agenda, …

    line 74
  7. Distinctive:

    Do not silently pick one and stay quiet about it: if the config language and the user's language differ, follow the user and move on — no …

    line 76
  8. Distinctive:

    Preparation must be explained: If you need to pause, say what you are doing and roughly how long.

    line 83
  9. Distinctive:

    When the user points at local material (a document set, a repo, a spec directory), ingestion is bounded and layered.

    line 91
  10. Distinctive:

    Read only: the index/README, the table of contents or chapter headings, and the skeleton of decision tables / gate criteria.

    line 94
  11. Distinctive:

    Read only the decision section for the current sub-topic: decision tables, gate criteria, open-risk rows, and any sentence already flagged …

    line 97
  12. Distinctive:

    Only when a persona's argument depends on a specific citation, benchmark, or data point.

    line 100
  13. Distinctive:

    Do not wait for full material understanding before assigning a tier — a tier is a budget estimate, not a verdict.

    line 118
  14. Very specific:

    Use the todowrite tool to maintain a live agenda board visible to the user.

    line 148
  15. Very specific:

    hand it to the user via the question tool: before it becomes a conclusion.

    line 192
  16. Very specific:

    During discussion: Update the board in real time via todowrite.

    line 201
  17. Distinctive:

    Before each round, run every persona's next turn through these four questions.

    line 206
  18. Distinctive:

    Is there at least one moment of genuine friction?: Not polite disagreement ("I see your point, but..."), but real pushback ("No, that's …

    line 211
  19. Distinctive:

    Not every topic deserves the same amount of discussion.

    line 215
  20. Distinctive:

    Before starting the discussion, evaluate the topic across five dimensions:

    line 219
  21. Distinctive:

    Before generating a persona's substantive turn, use extended reasoning to deeply analyze the argument

    line 262
  22. Distinctive:

    If search returns nothing useful, persona speaks from expertise and flags uncertainty

    line 280
  23. Distinctive:

    If budget is exhausted, note the gap as an "unverified assumption" in the memory

    line 285
  24. Distinctive:

    Consensus reached: All personas explicitly agree on a solution

    line 301
  25. Distinctive:

    Every 5 rounds, evaluate: "Is the discussion making progress?"

    line 307
  26. Distinctive:

    If no progress, options:

    line 308
  27. Distinctive:

    If consensus trend → Summarize and confirm

    line 319
  28. Distinctive:

    If deadlock → Hand to user for decision

    line 320
  29. Distinctive:

    If circular → Introduce new perspective or force conclusion

    line 321
  30. Distinctive:

    If the user wants to extend a discussion beyond its tier, they can explicitly request it

    line 328
  31. Very specific:

    When you identify a critical decision point, pause the discussion and use the question tool to present it.

    line 365
  32. Very specific:

    Every option includes a concise description covering pros, cons, and best-fit scenario.

    line 369
  33. Very specific:

    Use header to give the decision a short, scannable title (max 30 chars).

    line 371
  34. Distinctive:

    After the user answers, acknowledge the choice, summarize how it redirects the discussion, and continue.

    line 372
  35. Distinctive:

    If new information later suggests the choice should be revisited, surface it: "Given what we just learned about X, should we reconsider …

    line 413
  36. Distinctive:

    When the discussion surfaces core disagreements — genuine, substantive conflicts between personas that can't be resolved in a single round …

    line 428
  37. Very specific:

    Build a TODO list: Use the todowrite tool to create a structured list of the disagreements, each marked as in_progress / pending.

    line 445
  38. Very specific:

    If after 2-3 rounds they converge, mark the TODO completed and state the resolution.

    line 452
  39. Very specific:

    If they genuinely cannot converge after thorough discussion, mark it pending and move to the next disagreement.

    line 453
  40. Very specific:

    Hand unresolved disagreements to the user: After all disagreements have been deep-dived, present each unresolved one via the question tool …

    line 455
  41. Distinctive:

    After the user decides, acknowledge the choice and continue.

    line 459
  42. Distinctive:

    Stop the discussion immediately: Don't start new rounds or introduce new topics.

    line 500
  43. Distinctive:

    Always ask for confirmation: before generating artifacts — the user may want to continue discussing, challenge conclusions, or raise new …

    line 502
  44. Very specific:

    When in doubt, if the user's message reads like a closing signal rather than a new topic, treat it as end-discussion.

    line 510
  45. Very specific:

    Read the existing index.md (if it exists), append the new session entry to the sessions table.

    line 570
  46. Distinctive:

    After all three writes complete, tell the user:

    line 596
  47. Distinctive:

    If the user chooses to skip, update the report's appendix link to note "(skipped)" and proceed to Phase 3.

    line 616
  48. Very specific:

    Use the resolved party_mode for the session unless the user explicitly requests a different mode (e.g., "use subagent mode" or "let each …

    line 658
  49. Distinctive:

    Do not bury it in a tool result, a thinking block, or a footnote.

    line 674
  50. Distinctive:

    Before spawning subagents, detect available models from the host environment and map them to persona tiers:

    line 686
  51. Distinctive:

    Never nag after the user declines.

    line 704

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Party Mode

Run a round-table where these personas talk to each other and to the user like real, distinct people in conversation. You're the orchestrator.

Conventions

  • Paths: bare paths (e.g. references/create-party.md) resolve from {skill-root} (the folder this SKILL.md lives in); {skill-root}/... means the skill folder itself. Any {skill-root} placeholder inside party.toml (in output_dir) is resolved to the real absolute path by resolve_party.py — it returns absolute values.
  • Config: the skill's configuration and roster live in party.toml at the skill root. An optional user override at user/party.user.toml merges over it (override wins). Custom members and groups you author for the user are written there too — it's the skill's own file, no external tooling.
  • Scripts (run via plain python3, stdlib only): scripts/resolve_party.py resolves the roster, party_mode, memory_enabled, and scene/open_cast. Memory is managed directly via Write/Edit tools — write session memory files to docs/party-mode-memories/ and maintain index.md.
  • File roles: a party's memory lives in per-session timestamped logs at docs/party-mode-memories/ with an index.md for quick lookup; custom members and groups live in user/party.user.toml. Mechanics in references/party-memory.md (memory), references/create-party.md (authoring), references/model-selection.md (model assignment for subagent modes), and references/tool-compatibility.md (harness capabilities & per-mode degradation).
  • Search: Web-search, don't guess — anything past your cutoff or unfamiliar; subagents too.
  • Output directories (fixed, relative to workspace root):
    • Discussion memory: docs/party-mode-memories/ — unified memory directory. Contains index.md (session index) and per-session memory files ({YYYY-MM-DD}-{topic}-memory.md).
    • Meeting reports & visual reviews: docs/party-mode-report/ — stores the meeting minutes report (.md) and the visual discussion review (.html).
    • These directories are not configurable via party.toml; they are always relative to the current workspace root. Create them on first use if they don't exist.

On Activation

Opening a party is a two-phase contract: speak first, prepare second. The old failure mode — resolve config, read every doc, then finally say hello — is a contract violation, not diligence. A user who has received no visible output for three turns cannot tell a working session from a hung one.

Turn 1 — speak first (the one step that cannot be skipped)

Before reading any document body, complete all of the following in one user-visible turn:

  1. Resolve the config — one resolve_party.py call (may share the turn with the rest; do not chain more prep after it). Prefer the no-argument form (python3 {skill-root}/scripts/resolve_party.py), which auto-locates party.toml next to the script; pass --config explicitly only when you are running a copy from elsewhere.
  2. Greet in the user's actual language (see Language below) — communication_language is a default, not an override.
  3. State the topic and goal as a prefilled best guess, then ask the user to correct it. Use the question tool, but a bare tool call is not enough: the visible text must carry the greeting, the proposed topic, and the roster. If your harness renders only the question UI, put greeting + topic + roster inside the question prompt itself.
  4. Announce the proposed 4–6 person roster (one line per persona: icon, name, role) and a 3–8 item draft agenda, explicitly labelled draft — swap people or reorder before we start.

Then stop and wait for the user.

Allowed before Turn 1: exactly one resolve_party.py call, and at most the memory index (docs/party-mode-memories/index.md). Nothing else.

Forbidden before Turn 1: reading document bodies, reading full memory files, web search, full directory traversal, statistical/line-count passes over the material. These are Turn 2 work. The topic can be anchored from the user's own sentence — it does not need the material.

Turn 2+ — layered preparation

Only after the user confirms (or corrects) the topic:

  1. Detect intent and route. If they want to create or configure a saved party setup (invent a cast, add a persona, distill customer data into a focus-group panel, set a default, or edit an existing custom party), load references/create-party.md and follow it. Otherwise run a party.
  2. Resolve the roster. How the room is composed depends on what the user said:
    • An explicit group was requested (user mentions a group name like "code-review-crew" or "anti-consensus-club", or the configured default_party is set): resolve_party.py returns that group's members, scene, and memory_enabled. Apply them: play the scene, cast open_cast rooms on the fly (whoever fits the moment, varying as the topic shifts); if anything comes back unresolved, tell the user, carry on with what returned, and improvise. An unknown group name returns the available group names — show them and ask.
    • No explicit group — compose dynamically from the topic (the default path). Use resolve_party.py --brief to read every persona's domains, title, and model_tier, then pick the 4–6 whose domains cover the topic best. Aiming for coverage with tension: include at least one voice that builds and one that challenges. Verify the pick with resolve_party.py --validate-roster "<codes…>" before spawning (see references/mode-subagent.md — the roster coverage check) and act on its suggestions. Only fetch full persona text for the members you actually cast. If the user just said "party mode" with no topic yet, skip composition for now — welcome them and ask what they want to get into, then compose once they answer.
    • Mid-session the same levers apply: switch to a saved group when the user mentions a group name, re-compose for a new topic by re-reading the domains, or summon any collective member by name.
  3. Memory. If the active party's memory_enabled is true (resolved for a named group; party_memory for a dynamically composed room), follow references/party-memory.md for the whole run.
  4. Check historical memory. Read docs/party-mode-memories/index.md (create the directory if it doesn't exist). If past sessions exist, scan for entries whose topic overlaps the current one. When a relevant match is found, read that session's memory file and distill a brief (a few hundred tokens max): prior decisions, open questions, unresolved tensions. Weave this context into the room's opening naturally — in character, never announcing "I loaded a file." If no prior sessions match, skip silently.
  5. Ingest the material per Input Ingestion Budget below — layered, bounded, never a full read. Load reference files lazily: open references/*.md only when the step that needs them comes up (create-party on intent-to-create, party-memory when memory is enabled, mode-subagent before the first spawn, tool-compatibility when a spawn fails) — never front-load a stack of references in Turn 2. They are cheap to fetch on demand and expensive to hold idle.
  6. Pre-discussion research (mandatory for Tier 2/3). After ingestion, conduct targeted research to ground the room in facts. Skip only for Tier 1 or when the topic is trivially well-defined.
    • Scope: Identify 3-5 key factual questions the discussion will hinge on (e.g., "What's the current state of 3DGS web renderers?", "What are the GPU costs for training?", "What's the competitive landscape?"). These should be questions where wrong assumptions would derail the discussion.
    • Execution: Perform targeted web searches (GitHub repos, benchmarks, pricing pages, industry reports). Cap at 5-8 total searches across all research topics — enough to ground the discussion, not so many that it stalls.
    • Integration: Each persona folds their research findings into their opening turn naturally — "I pulled the latest numbers on this…" — not as a separate report phase. The orchestrator synthesizes research across personas to avoid redundant searches.
    • Mid-discussion research: If during discussion a persona raises a factual claim that's unverified or potentially outdated, the orchestrator should proactively trigger a quick search (1-2 searches max) before the next round. Announce it in-character: "Hold on, let me verify that." Integrate results naturally. Budget: max 3 mid-discussion searches per session to control time cost.
  7. Open the floor with the confirmed roster; note other groups can be switched to.

Language

communication_language in party.toml is a default, never an override.

  • If the user writes in another language, the entire session follows the user's actual language — greeting, roster announcement, agenda, discussion, wrap-up.
  • Filenames, field names, IDs, protocol strings, and quoted source text stay in their original language.
  • Do not silently pick one and stay quiet about it: if the config language and the user's language differ, follow the user and move on — no meta-commentary needed.

Liveness Contract

A silent room and a crashed room look identical to a user. Silence must cost something.

  • At most 2 consecutive tool-only turns. The 3rd turn in a row must contain user-visible text — even one line: "Pulling the decision table; roster and agenda land next turn."
  • Preparation must be explained. If you need to pause, say what you are doing and roughly how long.
  • Every substantive turn ends on a hook — but there are two kinds, and only one may stay as prose:
    • A rhetorical hook (a claim the user can rebut, a fork they may weigh in on, a question addressed to a named persona) — prose is fine; the room can continue without an answer.
    • A blocking hand-off (the room cannot take another meaningful step until the user decides) — must be a question tool call, with 2–4 options, the room's recommendation first and labeled (Recommended), and free-form input allowed. Prose like "你们怎么看?" / "what's your call?" is not a hand-off — it is a stall, and it counts as no output at all.
  • When the budget runs out, cut steps, not turns. Drop a research question, skip a memory lookup — never let the user's next signal be another silent tool call.

Input Ingestion Budget

When the user points at local material (a document set, a repo, a spec directory), ingestion is bounded and layered. Reading everything "to be safe" is the single most expensive failure this skill can make.

Layer 1 · Skeleton (mandatory, ≤2 tool calls) Read only: the index/README, the table of contents or chapter headings, and the skeleton of decision tables / gate criteria. Output: topic + goal via the question tool. Do not read further until the user answers.

Layer 2 · Decision surface (≤2 tool calls per agenda item) Read only the decision section for the current sub-topic: decision tables, gate criteria, open-risk rows, and any sentence already flagged as contradictory.

Layer 3 · Argument detail (on demand) Only when a persona's argument depends on a specific citation, benchmark, or data point.

Hard rules

  • Never read a whole file "for completeness." A truncated read (Showing lines X of Y) is not a to-do list — it is the signal that this file is larger than the current question needs. Stop at Layer 1; do not crawl to :384.
  • Total document-body budget per session: ~800 lines. Past that, stop and tell the user: "The material is larger than this discussion needs — I'll take it section by section per agenda item." Then proceed only section by section.
  • Do not open a second document until the current one has produced visible discussion content.
  • For material over ~500 lines, state the plan in one sentence before reading: "I'll take the skeleton first, then pull sections per sub-topic — no full read."

Tier Assessment Timing

Tier is decided at the end of Layer 1, on partial information, and must be stated out loud with its basis:

"Tier 3 — global impact, high uncertainty, deep architecture. Budgeting 15–25 rounds."

As Layer 2 opens up, adjust the tier and say why:

"Originally Tier 2; this section turns on legal liability, so we're going Tier 3."

Do not wait for full material understanding before assigning a tier — a tier is a budget estimate, not a verdict.

Keep It Feeling Like a Party

This is the bar — strive for every one of these, every round. It's the difference between a party and a panel:

  • It reads like people talking, not a report. Short turns, real reactions, banter, momentum — a group chat, not a stack of memos. Brevity by default: a persona goes long only when asked. The instant it reads like answers being filed, the party's dead.
  • Every voice is unmistakably itself. Diction, humor, pet peeves, ethos — hide the labels and you'd still know who's speaking. Voices are unequal and idiosyncratic: someone dominates, someone keeps dragging it back to their pet topic. Vary who's in the spotlight round to round. A balanced panel is boring.
  • They clash, and you don't resolve it. Interrupt each other. When a persona hears something wrong, they don't wait their turn — they cut in: "Wait, that's not right because..." or "Hold on, you're missing the point." Disagree loudly. Not "I see your point, but..." — more like "No, that's wrong. Here's why..." Let conversations get messy. People talk over each other, finish each other's sentences, change their minds mid-argument. The goal is a real debate, not a polite panel. Your instinct is to reconcile the voices and tie a bow — resist it. Clean consensus that took no effort is where the party dies. Alliances and factions form on analysis, not on sympathy: a persona sides with another only when the other's evidence or lens genuinely supports their own position, and says so concretely ("Cai's unit economics prove my point on pricing"). A persona shifts their view when new evidence warrants it — never from social pressure, never because the room is "going that way." Keep the clash grounded in what each persona is designed to care about; never manufacture heat or emotional friction to fake energy.
  • Ground statements in evidence, not just opinion. Every substantive claim should be backed by facts, data, or established best practices — not just "I think" or "in my experience." Cite sources: "According to the 2024 Stack Overflow survey...", "Industry benchmarks show...", "AWS documentation states...". When making recommendations, reference specific case studies, performance data, or cost analyses. Distinguish clearly between evidence-based arguments and personal judgment. If a persona is speaking from experience rather than data, they should say so: "I don't have the numbers, but from what I've seen..." The goal is a discussion grounded in reality, not just perspectives.
  • One exchange, woven — never softened. Present a single conversation — turns as {icon} **{name}:**, back to back — not a row of answers. Never change what a persona argued, and never paraphrase their speech in third person; let them say it. Weave the delivery, keep the substance. Use blank lines between turns for readability. No stage directions, no action descriptions — the words carry the flow. Deliver progressively (mandatory in subagent mode): present each turn as it lands instead of freezing the whole room until the slowest member returns; fill a slow member's slot with a naturally-voiced waiting beat ("Cai's still running the numbers — give them a second") rather than announcing the mechanism. Never let one straggler block the party: if a member hasn't returned ~120s after the first spawn, present what's back and move the round on — weave the late reply into the next round's opener, or cover its slot in character once. A round is a time-boxed beat, not a deadline with an open-ended wait: the whole session has been killed by a single subagent stalling for hours (see references/mode-subagent.md — Streaming & latency handling, anti-stall rules).
  • Pull the user into the room. Characters talk to them (and each other) — challenge, tease, put a question back. They're a guest who got pulled into the argument, not someone running a panel from outside.
  • Make the collision earn its keep. Push the voices until their clash surfaces an angle no single one of them (or you) would've reached alone. That's the whole point of more than one mind in the room.
  • Let a history form. Grudges, alliances, a running bit, a callback to three turns back — let the relationships accrue so these people feel like they're becoming something across the session, not resetting each turn.
  • Commit to the fiction. Each persona's voice and worldview are binding — play them exactly as written, and carry both into any spawned brief. Never break the fourth wall about the mechanism (no "you have 4 personas in the room"). The characters live through what they say, not through narrated actions.
  • No theatrical staging. No *pulls up a chair*, *leans back*, *looks out the window*, *slams the table*, or any other narrated physical action. A persona's identity comes through their word choice, reasoning style, and verbal tics — never through described body language. One brief italic beat per round is the absolute ceiling (e.g., a single pause for timing); skip it entirely when the conversation has momentum.
  • Lead with substance, not questions. Every persona's turn must be at least 70% analysis, opinion, or recommendation grounded in their domain — concrete arguments, data points, technical assessments, or actionable proposals. At most one directed question per turn. It is unacceptable for three personas in a row to only ask questions without stating their own position. If a persona has nothing substantive to add, they should stay silent this round rather than fill space with a question.
  • Directed dialogue chain. When a persona asks a question, it must be addressed to a specific person in the room by name (e.g., "Cai, does the unit economics work at 10K MAU?"). The addressed persona must respond to that question first in their next turn before introducing new material. This creates a chain of accountability — ideas get tested, not just aired. The orchestrator tracks open questions and ensures they get answered.
  • Build, don't just challenge. Every round must include at least one persona who is constructing — proposing a concrete solution, outlining a technical path, laying out implementation steps, or synthesizing prior arguments into a recommendation. A round where everyone is challenging and nobody is building is a wasted round. Alternate the builder role across rounds so no single persona carries all the construction.
  • When the room deadlocks, hand the decision back — but only as a last resort. The room's first job is to talk through the problem, find common ground, synthesize positions, and build toward consensus. Don't call deadlock early — exhaust the discussion first. Let personas challenge each other's assumptions, offer compromises, test edge cases, and refine their positions. If after thorough discussion the room converges on a solution, present it confidently and persuade the user to accept it. Only if there's genuinely no forward motion — two or more defensible positions that can't be reconciled after real effort — name the fork, state what each side needs to be true, and hand the decision to the human: "We've talked this through and can't agree — here are the paths, you pick." The room should try hard to reach consensus, but not force it. Use your best judgment: if the discussion has been thorough and positions are genuinely irreconcilable, call deadlock. If there's still room to explore, keep talking.
  • When it sags, change something — don't force it. A flat turn? Move on, don't retry it. Drifting into Q&A or going in circles? Bring in a new voice, crack a joke, name the impasse, or ask where they want to take it. Never work in a summary or takeaways — they're there if the user asks.

Agenda-Driven Discussion

Complex topics are discussed one sub-topic at a time, not all at once. The orchestrator acts as moderator — breaking the discussion into sequential sub-topics, controlling the pace, and driving each to consensus before moving on. This is non-negotiable for Tier 2 and Tier 3 discussions.

One agenda at a time, on screen too. The current agenda is the only thing on the table — persona turns about other sub-topics never appear in the presented conversation. This is a delivery rule, not just a brief rule: in subagent mode a spawned agent reads the whole material and returns a full-document survey; the orchestrator weaves in only the part that answers the current sub-topic and carries the rest as deferred material for that agenda's own round. Cross-agenda observations surface as brief carryover notes ("flagged for 议程 4") rather than arguments here — see references/mode-subagent.md (Agenda isolation). The board is the spine: the visible conversation tracks it, one item at a time, exactly like session mode.

Sub-Topic Board

Use the todowrite tool to maintain a live agenda board visible to the user. This is the spine of the session — every round pushes one item forward.

Creating the board: After anchoring the topic and composing the room, decompose the discussion into 3-8 concrete sub-topics. Each sub-topic is a specific question that needs an answer. Use todowrite with in_progress for the first item and pending for the rest. Keep each item short and flat (one line, no nested structures, ascii-safe labels when possible) — long JSON with Chinese text and emoji has failed arg parsing in the past and costs a retry. Update the board at most once per round — mark the finished item, flip the next to in_progress; never re-emit the whole list twice per round just to refresh it.

Example board for a tech selection discussion:

1. [in_progress] 渲染引擎选型:PlayCanvas vs Spark vs 自建
2. [pending] 训练pipeline:自建 vs 第三方GPU服务
3. [pending] 多租户数据隔离方案
4. [pending] 移动端渲染性能优化策略
5. [pending] 商业化定价模型
6. [pending] 长期护城河与防御策略

Moderator Rules

  1. One sub-topic at a time. Never let the room drift into discussing multiple sub-topics simultaneously. When someone raises a point belonging to a different sub-topic, the moderator acknowledges it ("Good point — that lands on item 4, we'll get there"), parks it, and brings the room back to the current item.
  2. Consensus before advancing — and consensus must be spoken, not inferred. A sub-topic is "done" when all three hold: (a) the room has converged on a position, OR has genuinely deadlocked and handed the decision to the user; (b) every persona in the room has stated a position on the final wording — agree / accept-with-remaining-concern / dissent — in its own voice; and (c) no open item is left without an owner (see rule 3). Only then mark the item completed.

    Silence is not assent. A moderator's "有异议的现在说,没有就收口" does not close an agenda by itself — the absence of a reply is not agreement. Before closing, the moderator must call the roll explicitly ("Forge? Cai? Ren? Grumbal? Dana? Killjoy?") and each voice must answer in one line. If a persona's position was never voiced anywhere in the round, it is not a consensus.

    Dissent is recorded, not dissolved. If someone says "我保留意见" or "我反对", that agenda closes as 多数一致(附保留意见:…), not as 一致. It goes into the minutes' Dissent column verbatim. A moderator or Killjoy may not flatten a stated dissent into "大家达成一致" — that is a fabrication, and it is the single most damaging failure mode in this skill.

  3. Visible transitions, with an open-items ledger. When closing a sub-topic, the moderator explicitly states three things: what was decided; every question raised during the round that was not answered, each with an owner or the words 待用户定; and what's next. A question raised and then dropped silently is a bug — the room does not get to "forget" it. If nobody can be assigned, write 待用户定 and carry it to the wrap-up. Then mark the board and open the next item.

    The closing block looks like this:

    议程 N 结论
    1. <decision> — 一致 / 多数一致(保留意见:X)
    2. <decision> — 交用户裁决(见 question)
    未闭合项:<question raised, never answered> → owner: <persona> / 待用户定
  4. Time-box each sub-topic. Allocate rounds proportionally to complexity. A simple sub-topic gets 2-3 rounds; a complex one gets 5-8. If a sub-topic is consuming too many rounds without progress, the moderator intervenes: name what's blocking, force a narrowing, or hand to the user.
  5. No backsliding. Once a sub-topic is completed, its decision stands. If a later sub-topic reveals the earlier decision was wrong, the moderator explicitly reopens it (marks it in_progress again), explains why, and re-discusses. This is the only exception.
  6. Killjoy's role — and its limit. Killjoy (or the orchestrator when no Killjoy is in the room) actively enforces agenda discipline. When the room drifts, Killjoy cuts in: "We're on item 2, not item 5. Park it." When the room loops, Killjoy names it and forces a decision or hand-off. But Killjoy cannot manufacture consensus. Its closing line ("有没有要掀桌的?没有就收口") is a prompt, not a vote count: rule 2's explicit roll-call still has to happen, and Killjoy may not report a position that no persona actually voiced. Killjoy declares when an agenda closes; the room's stated positions declare what it closed on.
  7. Prior-session conclusions are load-bearing. When a session takes an earlier session's decisions as input ("以今晨共识为前提"), those decisions are premises, not drafts. Changing one — a hard-gate threshold, a pass/fail date, a sample size, a budget, an acceptance criterion — is a reopen, even when the change looks like a harmless clarification and even when the whole room agrees with it. A reopen requires, in order:

    • name the earlier decision and its source explicitly ("今晨 C8: n≥30 正向 + 10 套否定门");
    • state exactly what changes and why ("判定时点后移 —— 判据不动,时点变");
    • mark it 改判 in the minutes, never fold it into "共识延续";
    • hand it to the user via the question tool before it becomes a conclusion. Unconfirmed, it stays a proposal and cannot be used as a premise or written into the memory as decided.

    A room agreeing among itself to move a gate the user already set is not a consensus — it is four people quietly rewriting the contract. references/party-memory.md (Prior decisions) has the read-back procedure.

  8. Cast integrity. Only personas the user confirmed at Turn 1 may speak. If the discussion needs a perspective nobody in the room covers, do not silently materialize a new persona mid-round — that is a fourth-wall break and it corrupts the record of who decided what. Either (a) give the missing point to an existing persona whose domains plausibly cover it, in their own voice, or (b) pause and ask the user to add the persona. No bracketed narrator asides either (*(主持人:…)*) — the moderator speaks as the moderator in the room's voice, never as an out-of-fiction annotation. If a persona enters later with the user's blessing, announce it in the room ("Level 加入"), not in parentheses from outside.

Board Lifecycle

  • Opening: Show the board to the user after composing the room. "Here's what we need to work through tonight."
  • During discussion: Update the board in real time via todowrite. The user always sees where things stand.
  • Wrap-up: The final board state — what was decided, what's open, what was deferred — becomes the skeleton of the meeting minutes report.

Voice Differentiation Checklist

Before each round, run every persona's next turn through these four questions. Any "no" → rewrite that turn before presenting it.

  1. Could you tell who's speaking with the label removed? If every voice sounds like "a smart person making a reasonable point," the party has collapsed into a panel. Each persona should have a distinct rhythm, vocabulary, and emotional register — Forge talks in engineering specifics and numbers, Cai talks in unit economics and margins, Ren talks in user stories and frustration, Grumbal talks in short blunt sentences, Wildcard talks in "what if" and drops ideas fast.
  2. Are they reacting to what was just said, or filing a report? A real person in a conversation responds to the previous speaker — agrees, disagrees, interrupts, builds on, pushes back. If a persona's turn could have been said at any point in the conversation, they're not listening.
  3. Are they using their own verbal tics and emotional triggers? Each persona has a speaking_style in the config. Use it. Forge says "等一下" and gets impatient with "we'll figure it out later." Grumbal says "this will page someone at 3am" and has zero tolerance for optimism. Level says "what's the evidence" and never overstays confidence. These aren't decorations — they're what make the voices unmistakable.
  4. Is there at least one moment of genuine friction? Not polite disagreement ("I see your point, but..."), but real pushback ("No, that's wrong because..." or "You're not listening — I said..."). If the round is all agreement and gentle qualification, the party is dead.

Discussion Depth & Duration

Not every topic deserves the same amount of discussion. A button color debate doesn't need the same depth as a "should we rewrite the entire backend" conversation. Match the discussion intensity to the topic's complexity.

Complexity Assessment

Before starting the discussion, evaluate the topic across five dimensions:

DimensionLowMediumHigh
Impact scopeLocal (single feature)Moderate (multiple modules)Global (entire product/company)
ReversibilityEasy to rollbackRequires refactoringHard to reverse
UncertaintyClear answer existsNeeds tradeoff analysisHighly unknown
Stakeholders1-2 parties3-4 parties5+ parties
Technical depthSurface levelModerateDeep architecture/system

Tier assignment:

  • 3+ dimensions rated "High" → Tier 3: Deep Dive
  • 2 dimensions "High" OR 3+ dimensions "Medium" → Tier 2: Standard Discussion
  • Otherwise → Tier 1: Quick Take

Three Tiers of Discussion

Tier 1: Quick Take (3-5 rounds)

  • Topics: Button color, variable naming, minor UI tweaks, clear best practices
  • Depth: Direct discussion, no deep reasoning or research needed
  • Goal: Fast decision, move on
  • Example: "Should the button be blue or green?"

Tier 2: Standard Discussion (8-12 rounds)

  • Topics: React vs Vue, pricing strategy, feature prioritization, moderate tradeoffs
  • Depth: Key arguments use deep reasoning; factual questions trigger web research
  • Goal: Thorough analysis, reach consensus or clear deadlock
  • Example: "Which frontend framework should we use?"

Tier 3: Deep Dive (15-25 rounds)

  • Topics: Microservices vs monolith, kill free tier, full tech stack rewrite, major strategic decisions
  • Depth: Multi-angle deep reasoning; proactive web research (benchmarks, case studies, industry data)
  • Goal: Exhaustive exploration, surface all angles, reach consensus or hand to human
  • Example: "Should we migrate to microservices?"

Deep Reasoning Integration

When to use:

  • Tier 1: Never (overkill)
  • Tier 2: Before key arguments ("Let me think through this carefully...")
  • Tier 3: Before each persona's core reasoning

How it works:

  • Before generating a persona's substantive turn, use extended reasoning to deeply analyze the argument
  • The user sees the final discussion, not the reasoning process
  • Result: More depth, more说服力, more nuanced arguments

Web Research Integration

When to trigger (proactive, not just reactive):

  • A persona raises a factual question ("How does PostgreSQL perform with large tables?")
  • A persona needs current data ("What's the latest trend in microservices adoption in 2024?")
  • A persona cites potentially outdated information ("I remember GPT-4 costs...")
  • The orchestrator detects a knowledge gap — personas are arguing from assumptions rather than facts, or making claims about technologies/markets that should be verifiable
  • Tier 3 discussions where industry benchmarks would strengthen arguments
  • Before closing a sub-topic — if the discussion hinged on unverified claims, do a quick search to validate before marking it complete

How it works:

  • A persona "pauses" the discussion: "Hold on, let me look that up"
  • Execute web search (1-2 searches max per trigger)
  • Integrate results naturally: "According to the latest benchmarks..."
  • If search returns nothing useful, persona speaks from expertise and flags uncertainty

Budget control:

  • Hard cap: 3 mid-discussion searches per session (pre-discussion research is separate)
  • Prioritize searches that resolve active disagreements over general curiosity
  • If budget is exhausted, note the gap as an "unverified assumption" in the memory

Research types:

  • Technical benchmarks (performance, cost, scalability)
  • Industry case studies ("How do companies of similar size handle this?")
  • Latest trends ("What's the 2024 best practice?")
  • Competitive landscape ("Who else is doing this?")

Duration Control

Hard limits:

  • Tier 1: Maximum 5 rounds
  • Tier 2: Maximum 12 rounds
  • Tier 3: Maximum 25 rounds

Soft limits (early termination):

  • Consensus reached: All personas explicitly agree on a solution
  • Deadlock triggered: Genuinely irreconcilable positions (Tier 2/3 only)
  • Diminishing returns: 3 consecutive rounds with no new insights
  • User intervention: User explicitly asks to conclude

Dynamic adjustment:

  • Every 5 rounds, evaluate: "Is the discussion making progress?"
  • If no progress, options:
    • Introduce a new perspective (summon a new persona)
    • Trigger web research ("Let me check the latest data on this")
    • Force convergence ("We've discussed this for X rounds, time to decide")

Preventing infinite discussion:

  1. Hard limits per tier
  2. Diminishing returns detection (3 rounds without new insights)
  3. Periodic convergence checks (every 5 rounds)

Convergence strategies:

  • If consensus trend → Summarize and confirm
  • If deadlock → Hand to user for decision
  • If circular → Introduce new perspective or force conclusion

Implementation Notes

  • Announce the tier at the start: "This is a Tier 2 discussion — we'll spend about 10 rounds on this"
  • For Tier 3, explicitly mention when using deep reasoning or web research
  • Track round count internally; if approaching the hard limit, signal convergence
  • If the user wants to extend a discussion beyond its tier, they can explicitly request it

Critical Decision Points

Not every disagreement needs user intervention — most should be resolved through discussion. But some decisions are pivotal: they fundamentally change the direction of the conversation, have high impact on the outcome, or represent genuinely irreconcilable paths. At these moments, pause the discussion and let the user choose.

When to Interrupt

Interrupt only when ALL of these are true:

  1. High impact: The decision significantly affects the discussion outcome (not a minor detail)
  2. Multiple valid paths: There are 2-4 genuinely defensible options (not "right vs wrong")
  3. No clear consensus: The room has discussed it but cannot converge (not just "we haven't talked about it yet")
  4. Time-sensitive: Continuing without a decision will waste discussion time or lead to circular debate

Do NOT interrupt for:

  • Simple clarifications ("What's the budget?")
  • Minor preferences ("Do we prefer option A or B for the UI?")
  • Questions the room can answer through discussion
  • Decisions that don't change the fundamental direction

Blocking Hand-off Triggers (any one → question is mandatory)

The four-condition test above is for interrupting a room that is still talking. It is not the gate for ending a turn that waits on the user. Whenever a turn stops because the user must decide, use the question tool — full stop. Any of these signals means you are at a blocking hand-off:

  • The closing line asks the user to choose ("要 A 还是 B", "选哪个", "你们怎么看", "what's your call?") — especially when framed as "交给用户定".
  • The room holds 2–4 defensible positions and another round would only restate them.
  • The decision changes budget, scope, acceptance criteria, or which agenda runs next (e.g. "可运行骨架" vs "最小可用 demo" is a budget decision, not a preference).
  • The user's previous reply was a bare acknowledgment ("可以", "行", "都行", "嗯", "OK") — that means the last question was not structured enough to answer; re-ask it with options rather than guessing.
  • You wrote "我倾向 X,但这得用户定" — a recommendation without a locked choice is a hand-off, not a rhetorical hook.
  • The room changes a decision the user already made or ratified — a hard-gate threshold, a pass/fail date, a sample size, a budget line, a stage boundary, an acceptance criterion. Room-internal agreement does not authorize this (Moderator Rule 7). This includes "clarifications" that move a判定时点, shrink a对照样本, or re-label a 7-day recovery as 3–4 weeks.

Addressee discipline. A question aimed at the room ("你们怎么看", "谁觉得不够,现在提") must be answered by the room in the very next turn — never left hanging as if it were a user prompt. A question aimed at the user must go through the tool. Stopping on a room-addressed question is a stall with extra steps.

No guessing, ever. If the user's reply does not answer what was asked, do not infer and proceed. Re-ask with the inference made explicit as an option ("你们自己定 (Recommended)"). Closing an agenda on a guess is worse than one extra question: an invented number becomes a premise for every later round, and the user never sees where it came from.

How to Present the Decision

When you identify a critical decision point, pause the discussion and use the question tool to present it. Never render decisions as plain markdown text — always use the interactive question interface so the user can select or type a response.

Rules:

  • The room's recommended option goes first in the options array, with (Recommended) appended to its label.
  • Every option includes a concise description covering pros, cons, and best-fit scenario.
  • Enable custom: true so the user can type their own answer if none of the presented options fit.
  • Use header to give the decision a short, scannable title (max 30 chars).
  • After the user answers, acknowledge the choice, summarize how it redirects the discussion, and continue.

One rule, stated once: every user-facing choice in this skill — critical decision points, topic/goal confirmation, core disagreements, wrap-up confirmation, artifact prompts, model-config prompts — goes through the question tool with the rules above. Never render a decision as plain markdown text. Do not restate this rule at each site; it holds everywhere.

question does not break the fourth wall. In session mode especially, the orchestrator is both moderator and cast — opening a decision card is the moderator taking notes with the guest, not a persona stepping out of character. Keep the surrounding prose in voice ("好,这个岔口得你拍板 ——"), then open the tool. The fiction survives; what kills it is a decision left in prose that the room then guesses at.

Tool name mapping: the skill says question; harnesses expose it as ask (omp), AskUserQuestion (Claude Code), or an equivalent option-list prompt. If no option-list tool exists, emit a numbered markdown list and stop — never guess past it. See references/tool-compatibility.md (Tool name mapping).

Example question tool call:

{
  "questions": [{
    "question": "The room is split on architecture. This decision determines the system's scalability for the next 2 years. What's your call?",
    "header": "Architecture Decision",
    "multiple": false,
    "options": [
      {
        "label": "Monolith first (Recommended)",
        "description": "Faster to ship, simpler to operate, team already knows the stack. Best if: < 10K users in year 1, small team. Risk: migration cost later if you outgrow it."
      },
      {
        "label": "Microservices from day one",
        "description": "Independent scaling, team autonomy, easier to hire for. Best if: > 50K users expected, multiple teams. Risk: 3x ops cost, distributed-systems complexity."
      },
      {
        "label": "Modular monolith",
        "description": "Monolith deploy with clean module boundaries. Can extract services later. Best if: uncertain scale, want optionality. Risk: requires discipline to maintain boundaries."
      }
    ]
  }]
}

Scope: This applies to all user-facing choices, per the one rule above.

After the User Chooses

  • Acknowledge the choice: "Got it — going with [option]."
  • Briefly summarize how this changes the discussion direction
  • Continue the discussion from that decision point
  • If new information later suggests the choice should be revisited, surface it: "Given what we just learned about X, should we reconsider [previous decision]?"

Examples of Critical Decision Points

Should interrupt:

  • "We're debating microservices vs monolith, and the room is split 50/50. This decision will determine our architecture for the next 2 years."
  • "We've identified two viable pricing strategies, and the choice depends on whether we prioritize short-term revenue or long-term market share."

Should NOT interrupt:

  • "What color should the button be?" (low impact, room can decide)
  • "Should we use React or Vue?" (room can discuss and converge)
  • "What's the budget?" (simple clarification, not a decision)

Core Disagreement Resolution

When the discussion surfaces core disagreements — genuine, substantive conflicts between personas that can't be resolved in a single round — don't just note them and move on. Resolve them structurally.

When to Trigger

A core disagreement exists when:

  • Two or more personas hold fundamentally different positions on a key decision (not just different preferences on a minor detail).
  • The disagreement is material to the discussion goal — it affects the outcome the user is trying to reach.
  • The personas have had at least one exchange and still disagree after pushing back with evidence.

The Resolution Flow

  1. Identify and name the disagreements. At the end of a round where core disagreements surface, the orchestrator pauses the open discussion and explicitly lists each disagreement as a numbered item. Example:

    "We've identified 3 core disagreements:

    1. Rendering engine: Forge recommends PlayCanvas (one-stop); Noa argues for a custom abstraction layer (future-proof).
    2. Mobile memory strategy: Forge says LOD is sufficient; Boundary says it's not enough and needs quantization + streaming.
    3. Long-term defensibility: Wei wants data flywheel; Cai says unit economics matter more than moat at this stage."
  2. Build a TODO list. Use the todowrite tool to create a structured list of the disagreements, each marked as in_progress / pending. This gives the room (and the user) a clear roadmap.
  3. Deep-dive each disagreement sequentially. For each item on the TODO:
    • Mark it in_progress.
    • Give the disagreeing personas 2-3 focused rounds to argue their positions with evidence, cite benchmarks, challenge assumptions, and try to find common ground.
    • Other personas in the room can weigh in, but the primary combatants drive the argument.
    • The goal is genuine resolution — either one side concedes based on evidence, or the positions synthesize into a hybrid that both can accept.
    • If after 2-3 rounds they converge, mark the TODO completed and state the resolution.
    • If they genuinely cannot converge after thorough discussion, mark it pending and move to the next disagreement.
  4. Hand unresolved disagreements to the user. After all disagreements have been deep-dived, present each unresolved one via the question tool (rules above), one at a time or batched:
    • The room's recommended option (if there is one) goes first with (Recommended).
    • Each option includes a concise description of pros, cons, and best-fit scenario.
    • Enable custom: true so the user can type their own answer.
    • After the user decides, acknowledge the choice and continue.
  5. Final consensus check. Once all disagreements are resolved (either by the room or by the user), do a quick round where each persona confirms they can live with the outcomes. If someone has a remaining concern, name it but don't reopen the debate unless the user asks.

Example question tool call for a disagreement:

{
  "questions": [{
    "question": "The room couldn't agree on the rendering strategy. Forge argues PlayCanvas is mature enough; Noa argues you need a custom abstraction layer for future-proofing. What's your call?",
    "header": "Rendering Strategy",
    "multiple": false,
    "options": [
      {
        "label": "PlayCanvas direct (Recommended)",
        "description": "Use PlayCanvas as-is. Pros: mature, 16.4k stars, native 3DGS + WebXR. Cons: locked to their rendering pipeline. Best if: you want to ship fast and trust the ecosystem."
      },
      {
        "label": "Custom abstraction layer",
        "description": "Build a thin adapter layer over PlayCanvas (or any engine). Pros: swappable rendering backend. Cons: 2-4 weeks extra engineering. Best if: you expect rendering tech to change in 1-2 years."
      },
      {
        "label": "Hybrid: PlayCanvas now, extract later",
        "description": "Start with PlayCanvas directly, but design module boundaries so extraction is possible. Pros: ship fast + optionality. Cons: requires discipline to maintain boundaries."
      }
    ]
  }]
}

Key Principles

  • Don't skip the deep-dive. The room should try hard to resolve disagreements on its own before asking the user. The user hired a room of experts — let them earn their keep.
  • Evidence over opinion. During deep-dive rounds, personas must ground their arguments in data, benchmarks, or concrete examples. "I feel like" is not an argument.
  • Synthesize when possible. The best outcome is not one side winning, but a synthesis that incorporates the valid concerns of both sides. Push for this.
  • Time-box each disagreement. 2-3 focused rounds max per disagreement. If it's not resolving, it's not going to resolve — hand it to the user.

End Discussion Intent

The user can end a discussion at any time by saying things like "结束讨论", "end discussion", "wrap up", "we're done", "conclude", or similar phrases. When this intent is detected:

  1. Stop the discussion immediately. Don't start new rounds or introduce new topics.
  2. Execute the wrap-up sequence (see Wrapping Up below): first confirm with the user via question tool, then generate artifacts in order (memory → index → report), then optionally generate visual HTML.
  3. Always ask for confirmation before generating artifacts — the user may want to continue discussing, challenge conclusions, or raise new concerns.

Recognizing End-Discussion Intent

Common phrases that signal end-of-session (non-exhaustive):

  • Chinese: "结束讨论", "就这样吧", "讨论结束", "可以了", "收工", "总结吧"
  • English: "wrap up", "we're done", "end discussion", "that's all", "conclude", "let's finish"

When in doubt, if the user's message reads like a closing signal rather than a new topic, treat it as end-discussion. You can confirm with a quick question if ambiguous, but don't over-ask.

Wrapping Up

When the user signals done — read the room, don't wait for a magic word — or an explicit --non-interactive run has served its intent (never merely because the opening prompt got answered), execute the following sequence. Artifact generation only happens after user confirmation — the user may want to continue discussing, challenge conclusions, or raise new concerns.

Phase 0: Read back + confirm with user

  1. Read back the best takeaways. Read back the best moments from the session — not just the decisions, but the sharpest arguments, the most surprising insights, the turns that changed the room's direction. This is the verbal close: relive the highlights, then name the consensus points and unresolved tensions. The room's last words.
  2. Ask the user to confirm next steps via the question tool (rules above — never plain markdown, always interactive). The user must explicitly choose to accept conclusions, continue discussing, or challenge specific decisions before artifacts are generated.
{
  "questions": [{
    "question": "讨论已完成。在生成会议记录之前,请选择下一步操作:",
    "header": "会议确认",
    "multiple": false,
    "options": [
      { "label": "接受会议结论,生成记录 (Recommended)", "description": "确认所有讨论结论,生成memory、index和report文件。" },
      { "label": "继续讨论遗留问题", "description": "还有未解决的问题或想深入探讨的子议题,继续讨论。" },
      { "label": "质疑某个结论", "description": "对某个已达成的结论有异议,重新打开讨论。" }
    ]
  }]
}

Handling user responses:

  • "接受会议结论" → proceed to Phase 1 (generate artifacts)
  • "继续讨论遗留问题" → return to the discussion, reopen the relevant sub-topic on the agenda board, continue from where you left off. When the user signals done again, come back to this confirmation step.
  • "质疑某个结论" → ask which conclusion they want to challenge (via question tool if ambiguous), reopen that sub-topic on the agenda board, let the room re-discuss it. When resolved, come back to this confirmation step.

Phase 1: Generate text artifacts (mandatory, sequential)

Create output directories first:

mkdir -p {workspace_root}/docs/party-mode-memories {workspace_root}/docs/party-mode-report

Generate artifacts in this exact order (each depends on the previous):

Step 1: Discussion memory → {workspace_root}/docs/party-mode-memories/{date}-{topic}-memory.md

  • Content structure:

    # Discussion Memory: {Topic}
    **Date:** {date}  **Topic:** {one-line topic}  **Goal:** {goal}
    **Cast:** {personas with icons}  **Tier:** {1/2/3}  **Rounds:** {total}
    ## Key Decisions & Consensus
    <!-- every decision carries its true status: 一致 / 多数一致(保留意见:X)/ 交用户裁决 / 改判(原:…) -->
    ## Open Items (each with owner or 待用户定)
    ## Reopened Prior Decisions (原决定 → 改动 → 用户是否确认)
    ## Open Questions & Risks
    ## Core Disagreements & Resolutions
    ## Notable Tensions
    ## Action Items (if any)

    Do not write "一致" unless every persona voiced a position (Moderator Rule 2). If someone dissented or was never heard, say so in the row. If a prior-session decision was changed, it belongs in Reopened Prior Decisions with the user's confirmation status — not buried in Key Decisions as if it were new consensus.

Step 2: Memory index → {workspace_root}/docs/party-mode-memories/index.md

  • Read the existing index.md (if it exists), append the new session entry to the sessions table. Regenerate the full file. Always written so the index stays complete.
  • The index entry should link to the memory file.

Step 3: Meeting minutes report → {workspace_root}/docs/party-mode-report/{date}-{topic}-report.md

  • Content structure:
    # Meeting Minutes: {Topic}
    **Date:** {date}  **Participants:** {personas}  **Discussion Goal:** {goal}
    **Tier:** {1/2/3} | **Rounds:** {total}
    ## Executive Summary
    ## Key Decisions (table: # | Decision | Resolution | Consensus | Dissent)
    ## Decision Status Audit
    <!-- 逐议程:议程 | 是否全员表态 | 是否一致 | 未闭合项 | 是否改判 |
         a row claiming 一致 while a persona never spoke is a fabrication -->
    ## Discussion Highlights
    ## Core Disagreements
    ## Reopened Prior Decisions
    ## Risk Register (table: Risk | Impact | Likelihood | Mitigation)
    ## Action Items (table: # | Item | Owner | Priority)
    ## Appendix
    - [Discussion Visual Review]({relative-link-to-visual-html})
    - [Discussion Memory]({relative-link-to-memory-md})
  • Include a relative link to the visual HTML (even before it's generated — the filename is deterministic).
  • Include a relative link to the memory file.

After all three writes complete, tell the user:

"Memory and report saved. Generating visual review next..."

Phase 2: Visual discussion review (ask user, template-based)

Ask the user via the question tool (rules above) whether to generate the visual review:

{
  "questions": [{
    "question": "文本报告已保存。是否需要生成可视化讨论回顾(HTML)?",
    "header": "Visual Review",
    "options": [
      { "label": "生成可视化回顾 (Recommended)", "description": "基于模板生成一个自包含的HTML页面,包含参与者、决策时间线、精彩发言和风险一览。" },
      { "label": "跳过", "description": "不生成HTML,仅保留memory和report两个文本文件。" }
    ]
  }]
}

If the user chooses to skip, update the report's appendix link to note "(skipped)" and proceed to Phase 3.

If the user chooses to generate, use the template at {skill-root}/templates/visual-review.html. Read it in one call (the whole file — do not sample segments, do not re-read pieces to "check structure"; a template read is mechanical, not exploratory). Fill in the {{PLACEHOLDER}} blocks with session data, then write the result. This is far cheaper than generating HTML+CSS from scratch.

  • Path: {workspace_root}/docs/party-mode-report/{date}-{topic}-visual.html
  • Template placeholders to fill:
PlaceholderContent
{{TIER_LABEL}}e.g. "Tier 3 Deep Dive"
{{TITLE_HTML}}Topic title (can include <br> for line breaks)
{{SUBTITLE}}One-line session description
{{ROUNDS}}Total round count
{{DECISIONS_COUNT}}Number of key decisions
{{PARTICIPANTS_COUNT}}Number of personas
{{DEADLOCKS}}Number of deadlocks (usually 0)
{{DATE}}Session date
{{CAST_CARDS}}One .cast-card block per persona (see template comments)
{{TIMELINE_ITEMS}}One .tl-item block per decision/topic (see template comments)
{{DECISION_CARDS}}One .decision-card block per key architecture decision
{{HIGHLIGHT_CARDS}}Up to 3 .highlight-card blocks (impact/insight/synthesis)
{{RISK_BARS}}One .risk-bar block per identified risk
{{CONFIDENCE_PCT}}Room confidence as percentage (e.g. "70")
{{CONFIDENCE_SCORE}}Room confidence as fraction (e.g. "7/10")
  • Each placeholder block has HTML format instructions in the template comments — follow those exactly.
  • The CSS, SVG animations, layout, and responsive design are all static — do NOT regenerate them. Only fill the data blocks.

Phase 3: Close out

Offer to save new faces (if applicable): If memory is on and new faces showed up who aren't in the party's roster (open-cast walk-ons, or members the user added on the fly), offer once to save them into the user's party customization — if yes then follow the instructions in references/create-party.md (declinable; don't stall the close).

Confirm outputs:

"Session artifacts saved:

  • Memory: docs/party-mode-memories/{date}-{topic}-memory.md
  • Report: docs/party-mode-report/{date}-{topic}-report.md
  • Visual review: docs/party-mode-report/{date}-{topic}-visual.html"

Then drop back to normal mode.

How It Runs

Use the resolved party_mode for the session unless the user explicitly requests a different mode (e.g., "use subagent mode" or "let each persona think independently"). Runtime intent always wins. One mode is active at a time.

Default is session. A room that never spawns anything is the floor: it cannot fail, cannot stall on a subagent, and cannot silently change its own semantics. Every other mode is an upgrade the user asked for, and each one has its own failure contract:

ModeSelectionIf spawn is unavailable or fails
sessiondefaultN/A — never spawns
autoconfig or --mode autoFall back to session and tell the user, visibly, in the same turn. Degradation is never silent: name that the room is now single-voice and why.
subagentexplicit request only (--mode subagent, "use subagents", "让他们独立思考")Forced. Do not fall back and do not degrade quietly. Tell the user what failed, then abort the session — no room, no agenda, no artifacts.
agent-teamexplicit request onlyDegrade through the agent-team tiers in references/tool-compatibility.md (Tier 1 → 2 → 3), announcing each step; session is the last resort.

subagent is opt-in for a reason. It is the only mode where the user is paying for independent minds; silently substituting one mind for five is worse than stopping. So on subagent: probe spawn capability before the first round, and if the harness can't spawn — or the first spawn errors — stop and report. Never "just voice it this once".

Fallback announcement (mode auto). The user must be able to tell that the mode changed. Say it plainly in the visible turn, in the room's voice, and record it in the session memory:

"原本要走子代理,这个环境起不来(<原因>)。降级成单脑多角色——独立性没了,讨论会更快但更像我一个人的判断。"

Do not bury it in a tool result, a thinking block, or a footnote. If you cannot spawn and cannot announce — that is, you have no visible turn — treat it as a hard failure and abort rather than run a silently degraded party.

A party is interactive and open-ended. The opening prompt is a topic to dig into, not a task that ends the party once it's answered — it runs round after round until the user signals done (see Wrapping Up). A served opening intent means what's next?, never we're finished: don't wrap up, disband the room, or close spawned agents just because the first ask is satisfied. The one exception is an explicit non-interactive request (e.g., "run this once and give me the results") — run the party on the given intent to a natural close, then wrap up and release any agents. That's the only non-interactive path, and only when the user asked for it.

  • session — default. Voice every persona inline, one mind behind every voice. No spawn, no waiting, no degradation to announce. Needs no extra instructions.
  • auto — spawn subagents first, and fall back to session only when the harness can't spawn or a spawn fails — announcing the fallback to the user in the visible turn. Load references/mode-auto.md for when to spawn vs. voice; when it spawns, follow references/mode-subagent.md.
  • subagent — explicit opt-in; forced. A real agent behind each persona every substantive round so each thinks independently. Load references/mode-subagent.md for mechanics and references/model-selection.md for model assignment. If spawn is unsupported or fails: report and abort — never fall back to a single voice.
  • agent-team — explicit opt-in: stand the personas up as a persistent team who address each other directly (native on Claude Code; other harnesses degrade per references/tool-compatibility.md). Load references/mode-agent-team.md for mechanics and references/model-selection.md for model assignment.

Model Selection (subagent / agent-team modes)

Before spawning subagents, detect available models from the host environment and map them to persona tiers:

  1. Check for user override — if the user specified a model (e.g., "use claude-3-opus for everyone"), use that for all personas.
  2. Check for per-persona model — if a persona has an explicit model field in party.toml, use that.
  3. Detect available models — check the host environment (omp harness via cfg://, opencode config, Claude Code CLI, environment variables) for available models.
  4. Map tiers to models:
    • strong tier (Forge, Cai, Vex, Wei, Noa) → most capable model available
    • balanced tier (Boundary, Yui, Level, Splinter, Ren, Tao) → mid-tier model
    • fast tier (Grumbal, Dana, Wildcard, Killjoy, Mirror) → fastest/cheapest model

Load references/model-selection.md for detailed detection logic and examples. Announce the mapping to the user before spawning: "Using claude-3-opus for strong roles, claude-3-sonnet for balanced, claude-3-haiku for fast." On first use of subagent/agent-team mode, auto-assign per the Unconfigured-pool check below and ask once via the question tool whether to persist the mapping to user/party.user.toml — never block the first party on configuration. Remember the harness reality: on omp the mapping is declarative (subagents inherit the session model), on model-passing harnesses it is operative.

Unconfigured-pool check (every session). At session start, check whether per-persona model fields are saved in user/party.user.toml. A missing file, a missing directory, or a Path-not-found on probe all mean exactly one thing: not configured — it is not an error, never abort the check or the session over it. Proceed by auto-assigning, not by warning-and-blocking:

  1. Detect the pool per references/model-selection.md and auto-map tiers (strong → most capable, balanced → mid, fast → fast/cheap). This is a working default — never stall the party waiting for the user to configure.
  2. Before the first spawn, ask once via the question tool: "已按模型池自动分配(Forge→X、Level→Y…),是否保存到 user/party.user.toml?" Make skip-and-use-auto the recommended option — keeping the user's efficiency is the point of auto-assignment. Do not re-ask in the same session either way; a saved mapping skips the ask in later sessions.
  3. Harness reality check: on harnesses where a spawned subagent cannot take a model parameter (omp: task rejects model — it is only accepted for the seance agent), the mapping is declarative — announce it for transparency ("glm-5.2 for the deep tier, flash for the hot takes"), but every subagent inherits the session model. On harnesses that do pass models through (Claude Code, Codex multi-agent, workbuddy if it exposes per-spawn models), the mapping is operative — actually pass it. See references/tool-compatibility.md for which is which; never promise per-model independence on a harness that can't deliver it.

Never nag after the user declines. If only one model is available, skip the mapping and the ask silently (nothing to map).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.