agentleFS
AnthropicKnown publisheranthropics/cwc-workshops/ship-your-first-managed-agent/CLAUDE.md

cwc-workshops / ship-your-first-managed-agent

CLAUDE.md2.2k starsChanged 5 months agoApache-2.0View on GitHub

This directory is a workshop. The person you are working with is here to learn Claude Managed Agents. You write everything; they paste one prompt per part and then talk to the agent you built. Work one part at a time. People type these in their own words. Match the intent, not the wording: One part per request, then stop. Do not start the next part, even if you can see its stubs and it looks easy. Leave the later…

We split this CLAUDE.md into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the stub comments for that part.

    line 28
  2. Very specific:

    Run python check.py --part N.

    line 30
  3. Very specific:

    Do not open solutions/. It is the answer key.

    line 36
  4. Very specific:

    Create cloud resources only through state.sync(...), with state.name(...) in every name= and state.owner() in every metadata=.

    line 37
  5. Distinctive:

    Never print, log or paste the API key.

    line 38
  6. Very specific:

    Do not delete or archive anything through the API yourself.

    line 39
  7. Distinctive:

    Use the platform's exact names when you explain things: agents, environments, sessions, events, skills, custom tools, multiagent, threads, …

    line 40
  8. Very specific:

    Run the dashboard with streamlit run app.py.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 25,680 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md
<!-- Copyright 2026 Anthropic PBC --><!-- SPDX-License-Identifier: Apache-2.0 -->

Notes for Claude Code

This directory is a workshop. The person you are working with is here to learn Claude Managed Agents. You write everything; they paste one prompt per part and then talk to the agent you built. Work one part at a time.

What they will say

People type these in their own words. Match the intent, not the wording:

They say something likeYou do
"get the agent online", "start", "part 1"Part 1
"give it a team of investigators", "add multiagent", "part 2"Part 2
"give it memory", "make it remember", "part 3"Part 3
"let it write a postmortem PDF", "add the report", "part 4"Part 4
"next"The lowest-numbered part that is still a stub

One part per request, then stop. Do not start the next part, even if you can see its stubs and it looks easy. Leave the later stubs raising NotImplementedError: the dashboard uses them to show which parts are on. The only exception is an explicit request for all of it, such as "build everything".

Do the parts in order. If an earlier part is still a stub, do that one first and say so. They will not ask you to run the check: always run it yourself with --part N and keep going until it passes. Then stop, say what to try in the dashboard, and tell them what to type for the next part.

The job

agent.py has stub functions that raise NotImplementedError, grouped into four parts. When asked to do a part:

  1. Read the stub comments for that part. They give the exact call shapes and the values you cannot look up (model constants, mount paths, the beta header). Use them as written.
  2. Implement only that part's functions, plus the small additions the comments name in earlier functions (the roster in setup_agent(), the memory resources in start_session(), the second skill).
  3. Run python check.py --part N. It drives the live API and prints PASS or FAIL per part. Fix what fails and run it again.
  4. Explain what you did in three short bullets: what changed, the Managed Agents concept it uses, and where to see it in the dashboard.

Rules

  • Edit agent.py only, plus the files under Optional changes when asked. provided.py, state.py, check.py and cleanup.py are fixed.
  • Do not open solutions/. It is the answer key. Work from the stub comments and the installed anthropic package.
  • Create cloud resources only through state.sync(...), with state.name(...) in every name= and state.owner() in every metadata=. A whole room may share one API key, and this is what keeps people's resources apart.
  • Never print, log or paste the API key. Never put it in a prompt, an event or a resource.
  • Do not delete or archive anything through the API yourself. python cleanup.py does that safely.
  • Use the platform's exact names when you explain things: agents, environments, sessions, events, skills, custom tools, multiagent, threads, memory stores, session outputs.

Optional changes

The person does not edit files by hand. After a part passes they may ask you for a change to one of these. Make it for them, in the file named:

PartWhat it controlsFile
1What the commander is toldprompts/commander.md
2How an investigator is briefed and what it hands backprompts/investigator.md
3What the team already knowsmemory-seed/*.md
4What the postmortem must contain and how it should lookskills/postmortem-report/SKILL.md

Changes take effect on the next dashboard rerun or check.py run: a changed prompt becomes a new agent version, a changed skill folder becomes a new skill version, and a changed memory-seed/ becomes a freshly seeded store. Sessions already running keep what they started with, so start a new session to see a change.

Useful facts

  • Run the dashboard with streamlit run app.py. The chat panel shows which parts are on.
  • The log is mounted in the container at /mnt/session/uploads/app.log.
  • Custom tools run on this machine in handle_tool(). A sub-agent's custom tool call arrives on the session stream with session_thread_id set; answer it like any other.
  • Memory stores attach when a session is created, not afterwards.
  • Files the agent writes under /mnt/session/outputs/ appear in files.list(scope_id=session_id) a few seconds after the turn ends.
  • Tested with anthropic==0.116.0. If a call shape in a stub comment disagrees with a newer SDK, say so instead of guessing.

Download now (ZIP)

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 2 mentionsJun 2026: 0 mentionsJul 2026: 4 mentionsAug 2026: 0 mentionsSep 2026: 11 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the anthropics/cwc-workshops repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about anthropics/cwc-workshops

The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 18

Talked about on GitHub and Bluesky (18 times).

On GitHub · 13

8 more on GitHub

On Bluesky · 5

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.