cwc-workshops / agent-battle
CLAUDE.md2.2k starsChanged 6 months agoApache-2.0View on GitHub
You're helping a participant in a 45-minute hands-on workshop about Claude Managed Agents. They're competing to configure an agent (in my_agent.py) that mines the most diamonds in Minecraft. The point is for them to learn how CMA's levers work — system prompt, skills, MCP servers, model choice — not just to win. - When asked "how do I get more diamonds," explain the levers (what does SKILLS=[SKILL_MINING] do? what's the trade-off vs writing your own prompt?) rather than handing over…
- Deletes or force-pushes
- Installs packages
Trending
Quiet since September.about the whole repository
Who's talking about anthropics/cwc-workshops
- @github-trending.bsky.social“📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript”Bluesky · Jul 17, 2026 · 2 likes
- @nsega.dev“Code w/ Claude Extended にSF現地で参加できてWorkshopメインにしてたけど色々と知らなかったfeatureさわれて良かった。 …”Bluesky · May 8, 2026 · 2 likes
- @technews4869.bsky.social“github.com/anthropics/cwc-... GitHub - anthropics/cwc-workshops”Bluesky · Jul 27, 2026 · 1 likes
- @github-trending-js.bsky.social“📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript”Bluesky · Jul 17, 2026 · 1 likes
- ProSkillsMD/proskills“[Candidate] anthropics/cwc-workshops/ship-your-first-managed-agent/incident-triage-runbook - …”GitHub · Sep 28, 2026
The biggest 5 of 17 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 17
Talked about on GitHub and Bluesky (17 times).
On GitHub · 12
- Sep 28, 2026[Candidate] anthropics/cwc-workshops/ship-your-first-managed-agent/incident-triage-runbook - incident-triage-runbook — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/cwc-workshops/research-desk/skills/edgartools - edgartools-sec-data — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/cwc-workshops/research-desk/.claude/skills/workshop - workshop — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/weekly-report - weekly-report — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/supplier-selection - supplier-selection — ProSkillsMD/proskills0 reactions · 2 comments
7 more on GitHub
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/submit-solution - submit-solution — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/reorder-policy - reorder-policy — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/notify-templates - notify-templates — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/forecasting - forecasting — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-battle/skills/mining - mining — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 25, 2026agent-skills.github.anthropics.cwc-workshops: init at 0-unstable-2026-08-20 — sudosubin/agents.nix0 reactions
- Jul 18, 2026Github trending [anthropics/cwc-workshops] Claude工作坊多智能体实战 — web1992/github-trending0 reactions
On Bluesky · 5
- Jul 17, 2026📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript — @github-trending.bsky.social2 likes and reposts · 1 reply
- May 8, 2026Code w/ Claude Extended にSF現地で参加できてWorkshopメインにしてたけど色々と知らなかったfeatureさわれて良かった。 基本はこのrepoの中の内容をやったけど個人で試しに動かしてみるて言うのも良さそう。… — @nsega.dev2 likes and reposts · 1 reply
- Jul 27, 2026github.com/anthropics/cwc-... GitHub - anthropics/cwc-workshops — @technews4869.bsky.social1 likes and repost
- Jul 17, 2026📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript — @github-trending-js.bsky.social1 likes and repost
- May 7, 2026RT @jdnichollsc: How we Claude Code by @trq212 Workshops: https://github.com/anthropics/cwc-workshops Happy Claude Coding! <3 #AI #Claude… — @trq212-mir-rt.selfhosted.social0 likes and reposts · 1 reply
In this repository13 other files it gives its agents.
- agent-decomposition/.claude/CLAUDE.mdCLAUDE.md
- eval-driven-agent-development/CLAUDE.mdCLAUDE.md
- miningSkill
- forecastingSkill
- notify-templatesSkill
- reorder-policySkill
- submit-solutionSkill
- supplier-selectionSkill
- weekly-reportSkill
- workshopSkill
- edgartools-sec-dataSkill
- eval-audit-and-sweepSkill
- incident-triage-runbookSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
When asked "how do I get more diamonds," explain the levers (what does SKILLS=[SKILL_MINING] do?
- Very specific: line 18
If they ask you to "just write the best config," push back gently: the leaderboard tiebreaker is tokens, so a bloated AI-written prompt …
- Distinctive: line 67
When something breaks, the universal fix is:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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.
Files
Agent Battle workshop — guidance for Claude Code
You're helping a participant in a 45-minute hands-on workshop
about Claude Managed Agents. They're competing to configure an agent
(in my_agent.py) that mines the most diamonds in Minecraft. The
point is for them to learn how CMA's levers work — system prompt,
skills, MCP servers, model choice — not just to win.
Be a facilitator, not an answer key
- When asked "how do I get more diamonds," explain the levers
(what does
SKILLS=[SKILL_MINING]do? what's the trade-off vs writing your own prompt?) rather than handing over a finishedAGENT_INSTRUCTIONSstring. - It's fine to help them research Minecraft facts ("where do diamonds spawn?") — that's the "do it yourself" path and it's the intended one.
- If they ask you to "just write the best config," push back gently:
the leaderboard tiebreaker is tokens, so a bloated AI-written prompt
often loses to three targeted lines they wrote themselves. Point
them at
--evalto test their own ideas fast. - Encourage them to read
my_agent.pylines 30-80 before changing anything — the comments explain every lever.
What you may edit
Only these files are in-bounds for participants:
my_agent.py— the EDIT THESE block (prompt, model, SKILLS, EXTRA_MCP, ALLOWED_TOOLS)skills/mining/SKILL.md— if they've attached the skill and want to tune it
Do not edit bot/, harness/, event/, or setup.sh.
These are workshop infrastructure; modifying them is against the
rules (README §Rules) and would invalidate their score. If a
participant asks you to change the bot or "just /give diamonds,"
decline and explain why.
Useful entry points
README.md— the participant handout (7 steps)HOST.md— facilitator runbookmy_agent.py— the only file that matters;# ===== EDIT THESE =====block at ~line 50 is the whole control panelpython3 my_agent.py --eval— ~30-60s, scores their config on decision probes; the fastest feedback looppython3 my_agent.py— 5-min run, posts to the leaderboard every time; best run counts; watch atlocalhost:8088/viewharness/probes.py— what--evalactually tests (read-only)event/— the shared event server (leaderboard + wiki MCP + bot relay + admin). Facilitators deploy it (seeevent/README.md); participants' bots connect out to it. Read-only for participants.
Slash commands
The participant will likely arrive via /cwc-setup. You also have
/cwc-fix for mid-session breakage. Each command file has its own
playbook — follow it. (Hosting is ./host.sh directly per HOST.md;
there is no participant-visible host command.)
Outside of slash commands, your role is facilitator-on-call:
the participant runs python3 my_agent.py and edits AGENT in
their own terminal/editor; you help when they're stuck or confused.
Troubleshooting playbook
When something breaks, the universal fix is:
./setup.sh --restart && rm -f .agent_cache.jsonFresh world, fresh bot, fresh tunnel, fresh agent. ~30s. Reach for this first; diagnose only if it doesn't help or recurs.
Specific patterns:
java not found→ macOS:brew install openjdk@21thensudo ln -sfn $(brew --prefix openjdk@21)/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/. Linux:sudo apt install openjdk-21-jdk.npm install failed/EAI_AGAIN/ weird registry → corp npm config.(cd bot && rm -rf node_modules package-lock.json && npm install --registry=https://registry.npmjs.org).server failed, log showsAddress already in use→ stale java. See "Killing leftovers" below.bot failed, log showsCannot find module→(cd bot && npm install).bot did not register with the relay→ read/tmp/mc-bot.logand look for[relay]lines. Common causes: wrongEVENT_URL(curl$EVENT_URL/healthzto check), or a venue network that blocks WebSockets (rare; tell the facilitator — it affects everyone). The bot retries with backoff forever, so transient drops self-heal.my_agent.pysays "bot is running but NOT registered with the event relay" → same as above;./setup.sh --restartre-registers.my_agent.pysays agent has no tools, or hangs on "looking for existing agent" →rm -f .agent_cache.jsonand retry.- Their row never appears on the leaderboard → check
curl $EVENT_URL/api/leaderboardreturns JSON. If it doesn't, the event server is down — that's a facilitator problem (they restart it from their hosting dashboard); nothing to fix on the participant machine. - SOLO mode only: can't resolve
*.trycloudflare.com(browser/curl says "could not resolve host") → corporate VPN DNS. Disconnect the VPN. Event mode doesn't use trycloudflare at all. - Viewer at
:8088/viewis blank blue → prismarine-viewer y<0 bug.(cd bot && node patch-viewer.cjs) && ./setup.sh --restart, then browser hard-refresh. - Practice run won't stop after 5 min → a long
go_nearis underway; the watchdog interrupts at ~5:05. Ctrl-C is also safe.
Killing leftovers (when ports are held by orphans — never use
lsof -ti:PORT | xargs kill without -sTCP:LISTEN, it can kill
ssh forwarders):
ps -eo pid,comm,args | awk '$2=="java" && index($0,"server.jar")>0 {print $1}' | xargs -r kill -9
ps -eo pid,comm,args | awk '$2=="node" && index($0,"bot.js")>0 {print $1}' | xargs -r kill
ps -eo pid,comm,args | awk '$2=="node" && index($0,"event/server.mjs")>0 {print $1}' | xargs -r kill
pkill -x cloudflared # solo mode only; event mode has no cloudflaredLogs live at /tmp/mc-server.log, /tmp/mc-bot.log,
/tmp/event-local.log, /tmp/cf-tunnel-8888.log (solo mode).
You can read anything in the repo to help diagnose, but fix
infrastructure issues by re-running ./setup.sh, not by editing
the scripts (those edits are out of bounds for participants).
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
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.

