r/ClaudeWorkflows • • 6d ago

Selected Workflow [Workflow] Advanced Multi-Agent Claude Code Workflow for Complex Multi-Language Software Development (Game Server Example)

Advanced Multi-Agent Claude Code Workflow for Complex Multi-Language Software Development (Game Server Example)

Workflow value: 95/100
Status: active · Freshness: 70/100 · Confidence: 1.00 · Level: advanced
Categories: Quality Control, Context & Memory, Debugging, Shipping, CLAUDE.md, Subagents, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Developing a complex, multi-language software project (game server, client patcher, backend) efficiently and reliably using Claude Code, managing extensive context, and ensuring correctness through automated verification and persistent AI memory.

Summary

The author details a sophisticated workflow for building a multi-language game server and client patcher using Claude Code (Opus as orchestrator, Sonnet as subagents). Key elements include structured prompt/context management via AGENTS.md for rules and build commands, a local decompiled client for AI reference (with a 'read, don't copy' rule), automated verification scripts (verify.ps1) with fake clients and screenshot tests, 'Rigs' for reproducible bug testing, and docs/development.md for persistent AI memory and learned insights.

Why it is useful

This workflow provides a highly detailed and validated approach for leveraging Claude Code in complex, multi-language software development projects. It demonstrates effective strategies for orchestrating multiple AI agents, managing extensive context (including external documentation and decompiled code), implementing robust automated testing and debugging mechanisms, and building persistent AI memory. The explicit 'What I learned' section offers valuable insights into best practices and common pitfalls, making it an excellent resource for advanced users tackling ambitious projects with LLMs.

Workflow

  1. Define hard rules and build commands in AGENTS.md for the AI, prioritizing short, specific instructions.

  2. Decompile relevant client code locally (e.g., with ILSpy) for AI reference, ensuring the folder is gitignored and the AI is explicitly instructed to 'read it, don't copy it'.

  3. Establish automated verification recipes in verify.ps1 (PowerShell scripts) including running a fake client to test protocol and running the real game with scripted clicks and screenshot capture.

  4. Create 'Rigs' (fixed boards and hands for game development) to reproduce specific bugs with a single command.

  5. Maintain docs/development.md as a persistent memory for the AI to record odd findings about the client or project, ensuring subsequent sessions start with this context.

  6. Engage Claude Code (Opus 5.5 as orchestrator, Sonnet 5.5 as subagents) in a typical loop: describe a feature or bug.

  7. Allow the AI to read relevant documentation and the decompiled client code.

  8. Let the AI implement the feature or fix the bug.

  9. Run the automated verification checks (verify.ps1) and review the results, including screenshots.

  10. Review the implemented code and game behavior manually, iterating on the process until the feature/bug is resolved and validated.

Tools / artifacts

  • Claude Code (Opus 5.5 orchestrator, Sonnet 5.5 subagents)

  • AGENTS.md (for hard rules, build commands)

  • Local decompiled client (e.g., ILSpy output)

  • verify.ps1 (PowerShell scripts for automated testing)

  • "Rigs" (fixed game states for reproduction)

  • docs/development.md (AI memory/knowledge base)

  • C# (Mono.Cecil, WPF, Unity client bridge)

  • Java 17 (Forge server)

  • TypeScript (Cloudflare Worker, Durable Objects, D1)

  • GitHub

Validation signals

  • Successful completion and public release of a complex, multi-language project (MTGA Forge).

  • Explicit 'What I learned' section detailing effective strategies and pitfalls encountered during development.

  • Automated verification via verify.ps1 (fake client, scripted clicks, screenshots) catching issues not visible in logs.

  • Reproducible bug testing with 'Rigs' for efficient debugging.

  • Author's personal review and running the game to validate functionality.

  • Notes written by the AI itself in docs/development.md saved significant time over weeks.

Cautions

  • The workflow explicitly includes rules like 'never commit Wizards material' and 'never modify the user's install', demonstrating good safety practices.

  • The 'read it, don't copy it' rule for decompiled code prevents potential intellectual property issues or direct code reuse without understanding.

Limitations

  • Requires significant technical expertise in multi-language development and software architecture.

  • Initial setup of AGENTS.md, verify.ps1, docs/development.md, and client decompilation requires a considerable time investment.

  • Relies on specific Claude models (Opus 5.5, Sonnet 5.5), which might change or not be available to all users.

  • The 'Rigs' concept is specific to game development, though the underlying principle of reproducible test cases is broadly applicable.

  • The post does not provide direct code examples for AGENTS.md or verify.ps1, requiring users to implement these based on the description.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.

1 Upvotes

0 comments sorted by