group-chat

group-chat is a command for coding agents from davepoon/buildwithclaude. It costs 14 tokens per session (789 once invoked), scanned A, original, MIT.

A command pattern for creating a group conversation among several AG2 agents, software agents built with the AG2 framework. Each agent can have a role, such as research or analysis, and the conversation can follow selected speaking rules.

In plain words
What is it for?
Use it to set up research, analysis, or other multi-agent discussions. It supports automatic speaker choice, fixed turn order, or manual handoffs.
Why use it?
It coordinates several specialist agents in one task instead of requiring one agent to do every kind of work. You can control who speaks, how long the discussion runs, and when it ends.

Command

Part of the ag2-agent-builder plugin — 7 commands, 3 agents shipped together

About the project

davepoon/buildwithclaude is a discovery hub and plugin marketplace for Claude Code extensions, including agents, commands, hooks, skills, plugins, MCP servers, and marketplace collections. Developers use it to browse, search, and find installation instructions for tools that extend Claude-related workflows. Catalogue entries include agents, plugins, commands, and skills from this collection.

davepoon/buildwithclaude · 3,405 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/davepoon/buildwithclaude/group-chat
Clone the repo
git clone --depth 1 https://github.com/davepoon/buildwithclaude

Or install ag2-agent-builder, the plugin that ships this one along with the rest of its 7 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for group-chat

README.md
[![agentmods](https://agentmods.dev/badge/commands/davepoon/buildwithclaude/group-chat.svg)](https://agentmods.dev/commands/davepoon/buildwithclaude/group-chat)
Your own site
<a href="https://agentmods.dev/commands/davepoon/buildwithclaude/group-chat"><img src="https://agentmods.dev/badge/commands/davepoon/buildwithclaude/group-chat.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 789 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00014 $0.00789
Opus 5 $0.00007 $0.00394
Sonnet 5 $0.00003 $0.00158
Haiku 4.5 $0.00001 $0.00079

Measured 5d ago against content hash 38cd5d283d17, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

group-chat scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ag2-agent-builder/commands/group-chat.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are creating an AG2 multi-agent group chat workflow. Follow these patterns exactly.

Instructions

  1. Ask the user for:

    • What task the group needs to solve
    • How many agents and their specializations
    • Speaker selection pattern: auto (LLM picks), round_robin, or manual handoff
    • Maximum conversation rounds (default: 10)
    • Termination condition
  2. Create the group chat following this pattern:

Group Chat Pattern

from autogen import ConversableAgent, GroupChat, GroupChatManager

# --- Define Specialist Agents ---

researcher = ConversableAgent(
    name="Researcher",
    description="Finds and synthesizes information",
    system_message="""You are a research specialist.
- Search for relevant information
- Summarize findings clearly
- Cite sources when possible
When your research is complete, say TERMINATE.""",
    llm_config={"model": "gpt-4o-mini"},
)

analyst = ConversableAgent(
    name="Analyst",
    description="Analyzes data and draws conclusions",
    system_message="""You are an analytical specialist.
- Analyze information provided by other agents
- Identify patterns and insights
- Provide evidence-based conclusions""",
    llm_config={"model": "gpt-4o-mini"},
)

writer = ConversableAgent(
    name="Writer",
    description="Drafts clear, structured output",
    system_message="""You are a writing specialist.
- Take research and analysis from other agents
- Produce clear, well-structured output
- When the final output is ready, say TERMINATE.""",
    llm_config={"model": "gpt-4o-mini"},
)

# --- Configure Group Chat ---

group_chat = GroupChat(
    agents=[researcher, analyst, writer],
    messages=[],
    max_round=10,
    speaker_selection_method="auto",  # "auto", "round_robin", "random", or callable
)

manager = GroupChatManager(
    groupchat=group_chat,
    llm_config={"model": "gpt-4o-mini"},
)

# --- Run the Group Chat ---

result = researcher.initiate_chat(
    manager,
    message="Your task description here",
)

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 115 lines · 14 tokens per session scan A 38cd5d283d17

Subscribe to this mod's changes

group-chat is a command published in the GitHub repository davepoon/buildwithclaude (3,405 stars, last pushed 4d ago), licensed MIT. It adds 14 tokens to every session and 789 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.