diffusers-workflow / dw_mcp
CLAUDE.md19 starsChanged 3 days agoApache-2.0View on GitHub
Guidance for the dw_mcp/ stdio MCP server package. What it covers and how its modules split is in the dw_mcp/__init__.py docstring and docs/MCP.md; the rules that hold across modules are in docs/ARCHITECTURE.md.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ui/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- model-family-onboardingSkill
The file
Files
dw_mcp
Guidance for the dw_mcp/ stdio MCP server package. What it covers and how its modules split is in the dw_mcp/__init__.py docstring and docs/MCP.md; the rules that hold across modules are in docs/ARCHITECTURE.md.
Writing text an agent reads
- A tool description (the docstring in
dw_mcp/tools_*.py) or the instructions indw_mcp/server.pymust put what an agent has to act on first, and point at a guide section rather than restate it.tests/test_mcp_server.pypins the length (CLIENT_TEXT_LIMIT,SURFACE_BUDGET) but not the ordering, and the instructions andlist_workflowssit within a few dozen characters of the limit.SURFACE_BUDGETis a fixed ceiling with headroom, not a ratchet: when it fails, move narrative to a guide and leave a pointer before raising it.tests/test_guide_pointers.pychecks every pointer resolves and that a tool which points at a guide keeps its pointer. MAX_WAIT_SECONDS(dw_mcp/diagnose.py) is interpolated into the tool descriptions, so no doc or skill quotes the number.
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.

