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.
npx skills add ag2ai/ag2-claude-plugins --skill group-chatgit clone --depth 1 https://github.com/ag2ai/ag2-claude-pluginsWrote 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.
[](https://agentmods.dev/skills/ag2ai/ag2-claude-plugins/group-chat)<a href="https://agentmods.dev/skills/ag2ai/ag2-claude-plugins/group-chat"><img src="https://agentmods.dev/badge/skills/ag2ai/ag2-claude-plugins/group-chat.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.02516 |
| Opus 5 | $0.00019 | $0.01258 |
| Sonnet 5 | $0.00008 | $0.00503 |
| Haiku 4.5 | $0.00004 | $0.00252 |
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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 364 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are creating an AG2 group chat workflow using DefaultPattern -- explicit handoffs control agent transitions.
Instructions
-
Ask the user for:
- What task the group needs to solve
- How many agents and their specializations
- The handoff/routing logic between agents
- Whether agents need tools (functions)
- Whether shared context variables are needed
-
Create the group chat following this pattern:
DefaultPattern Group Chat
from autogen import ConversableAgent, UserProxyAgent, LLMConfig
from autogen.agentchat import run_group_chat
from autogen.agentchat.group.patterns import DefaultPattern
from autogen.agentchat.group import (
AgentTarget,
AgentNameTarget,
OnCondition,
StringLLMCondition,
OnContextCondition,
ContextExpression,
ExpressionContextCondition,
ReplyResult,
ContextVariables,
RevertToUserTarget,
TerminateTarget,
)
llm_config = LLMConfig({"api_type": "anthropic", "model": "claude-sonnet-4-6"})
# Shared context for tracking state across agents
shared_context = ContextVariables(data={
"stage_completed": False,
})
# Tool function that controls handoff via ReplyResult
def process_task(result: str, context_variables: ContextVariables) -> ReplyResult:
"""Process and hand off to next agent"""
context_variables["stage_completed"] = True
return ReplyResult(
message=f"Task processed: {result}",
context_variables=context_variables,
target=AgentNameTarget("next_agent"), # Explicit handoff
)
agent_a = ConversableAgent(
name="agent_a",
system_message="Your role instructions...",
functions=[process_task],
llm_config=llm_config,
)
agent_b = ConversableAgent(
name="next_agent",
system_message="Your role instructions...",
llm_config=llm_config,
)
user = UserProxyAgent(name="user", code_execution_config=False)
# Register handoffs (see Handoffs section below)
agent_a.handoffs.add_context_condition(
OnContextCondition(
target=AgentTarget(agent_b),
condition=ExpressionContextCondition(
ContextExpression("${stage_completed} == True")
),
),
)
agent_a.handoffs.set_after_work(RevertToUserTarget())
pattern = DefaultPattern(
initial_agent=agent_a,
agents=[agent_a, agent_b],
user_agent=user,
context_variables=shared_context,
)
result = run_group_chat(
pattern=pattern,
messages="Your task here",
max_rounds=30,
)
result.process()
print(result.summary)
# result.context_variables has the final shared state
# result.last_speaker has the last agent's name
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.
- 6d ago First seen · 364 lines · 39 tokens per session scan A d32c75796bde
group-chat is a skill published in the GitHub repository ag2ai/ag2-claude-plugins (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 39 tokens to every session and 2,516 once invoked, about $0.0002 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-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…