muggle-do

muggle-do is a command for Claude Code from multiplex-ai/muggle-ai-teams. It costs 50 tokens per session (4,981 once invoked), scanned A, original, MIT.

An automated development workflow that takes a task from requirements through coding, tests, quality checks, and pull-request creation. It saves session state so work can resume after a crash.

In plain words
What is it for?
It helps implement or fix tasks across configured repositories, run unit tests, investigate failures, repeat fixes, and open pull requests.
Why use it?
It removes the need to coordinate each development step manually and records what happened during the process.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the muggle-ai-teams plugin — 166 skills, 55 commands, 30 agents, 4 hooks shipped together

Good fit It helps implement or fix tasks across configured repositories, run unit tests, investigate failures, repeat fixes, and open pull requests.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/multiplex-ai/muggle-ai-teams/muggle-do
Install

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.

Clone the repo
git clone --depth 1 https://github.com/multiplex-ai/muggle-ai-teams

Made for: Claude Code.

Or install muggle-ai-teams, the plugin that ships this one along with the rest of its 166 skills, 55 commands, 30 agents, 4 hooks.

Wrote 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.

agentmods badge for muggle-do

README.md
[![agentmods](https://agentmods.dev/badge/commands/multiplex-ai/muggle-ai-teams/muggle-do/github.svg)](https://agentmods.dev/commands/multiplex-ai/muggle-ai-teams/muggle-do)
Your own site
<a href="https://agentmods.dev/commands/multiplex-ai/muggle-ai-teams/muggle-do"><img src="https://agentmods.dev/badge/commands/multiplex-ai/muggle-ai-teams/muggle-do/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for muggle-do

Your own site · 80×15
<a href="https://agentmods.dev/commands/multiplex-ai/muggle-ai-teams/muggle-do"><img src="https://agentmods.dev/badge/commands/multiplex-ai/muggle-ai-teams/muggle-do.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,981 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.04981
Opus 5.5 $0.00020 $0.01992
Sonnet 5.5 $0.00010 $0.00996
Haiku 4.5 $0.00005 $0.00498

Measured 5d ago against content hash eec533dd62ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

muggle-do 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 5d 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.

commands/muggle-do.md · 590 lines

How it starts

The opening of the file, as written. The whole thing — 590 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Muggle Do — Autonomous Development Pipeline

Muggle Do is a session-based, iterative development pipeline. Given a task description, it autonomously:

  1. Extracts requirements and acceptance criteria
  2. Analyzes impact across configured repositories
  3. Validates git state (branches, commits, working tree)
  4. Writes or fixes implementation code
  5. Runs unit tests
  6. Runs QA test cases via Muggle AI infrastructure
  7. Triages failures and loops back to fix them
  8. Opens pull requests when done

Each run is a session with full state persistence in markdown files. Sessions survive crashes, support resume, and provide a complete audit trail.


Input

The user's task description is: $ARGUMENTS

This is a natural-language description of what to build, fix, or change. If $ARGUMENTS is empty, ask the user to describe the task before proceeding.


Repo Configuration

Repos are configured in muggle-repos.json in the working directory:

[
  { "name": "frontend", "path": "/absolute/path/to/frontend", "testCommand": "pnpm test" },
  { "name": "backend", "path": "/absolute/path/to/backend", "testCommand": "pnpm test" }
]

Read this file at startup. If it does not exist, ask the user to provide repo details and create it before proceeding.


Session Management

On invocation, check .muggle-do/sessions/ for existing sessions.

If sessions exist

Read each session's state.md to determine its status. Present the user with options:

Existing sessions:
  [1] add-login-page        — CODING (iteration 2)    ← in progress
  [2] fix-payment-timeout   — DONE (2 iterations)     ← completed
  [3] Start new session

Which session? _
  • Resume active session — continue from the current stage recorded in state.md
  • Review completed session — read and display result.md
  • Start new session — proceed with $ARGUMENTS as the task description

If no sessions exist

Skip the prompt entirely. Go straight to creating a new session with $ARGUMENTS.

Read the full file on GitHub · 590 lines

Changes

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.

  1. 5d ago First seen · 590 lines · 50 tokens per session scan A eec533dd62ac

Subscribe to this mod's changes

muggle-do is a command published in the GitHub repository multiplex-ai/muggle-ai-teams (2 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 4,981 once invoked, about $0.0002 per session on Opus 5.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-10-22.