muggle-ai-works: Instructions file for Claude Code

AGENTS.md

muggle-ai-works AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from multiplex-ai/muggle-ai-works. It costs 2,515 tokens per session, scanned B, original, Apache-2.0.

A set of instructions and tools for Muggle Works, an acceptance-testing agent that drives a real browser through user flows. It captures evidence, including screenshots, for a pull request.

In plain words
What is it for?
It helps test web user flows after a change and provides an MCP server, command-line tool, and skills for several coding agents.
Why use it?
It checks changes through the same browser interactions a user would perform, rather than relying only on code-level tests. This can make the result of an acceptance check visible in the pull request.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: Claude Code plugin machinery, but also the file is AGENTS.md. Also seen: mentions Claude Code; reads ~/.codex paths; runs codex exec.

This is multiplex-ai/muggle-ai-works's own configuration. It tells Claude Code, Codex and OpenCode how to work on muggle-ai-works itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything muggle-ai-works configures →

Reuse

Borrowing it

Nothing to install: this file belongs to multiplex-ai/muggle-ai-works. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/multiplex-ai/muggle-ai-works/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/multiplex-ai/muggle-ai-works

Made for: Claude Code, Codex, OpenCode.

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-ai-works AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/multiplex-ai/muggle-ai-works/agents-md/github.svg)](https://agentmods.dev/instructions/multiplex-ai/muggle-ai-works/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/multiplex-ai/muggle-ai-works/agents-md"><img src="https://agentmods.dev/badge/instructions/multiplex-ai/muggle-ai-works/agents-md/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-ai-works AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/multiplex-ai/muggle-ai-works/agents-md"><img src="https://agentmods.dev/badge/instructions/multiplex-ai/muggle-ai-works/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,515 This file is loaded in full into every session.
When invoked 2,515 The same file — it is already loaded in full.
Security scan B 1 finding. 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.02515 $0.02515
Opus 5.5 $0.01006 $0.01006
Sonnet 5.5 $0.00503 $0.00503
Haiku 4.5 $0.00251 $0.00251

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

Security

Grade B, and why

muggle-ai-works AGENTS.md scanned grade B with 1 finding 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 13d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| `codex exec` refuses muggle tools | Approve them in `~/.codex/config.toml` (see README, Codex) |
AGENTS.md · 138 lines

How it starts

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

Muggle Works for AI agents

Muggle Works (@muggleai/works, CLI muggle) is an acceptance test agent for coding agents: it drives a real browser through the user flows a change touches and puts the evidence, with screenshots, on the pull request. It ships an MCP server with 130 tools, a CLI, and a plugin of slash-command skills for Claude Code, Codex and Cursor.

Install

Host Command
Any (CLI + MCP server) npm install -g @muggleai/works (Node 22+)
Claude Code plugin /plugin marketplace add multiplex-ai/muggle-ai-works, then /plugin install muggleai@muggle-works
Codex plugin codex plugin marketplace add multiplex-ai/muggle-ai-works, then codex plugin add muggle@muggle-works
Cursor npm install -g @muggleai/works; postinstall writes ~/.cursor/mcp.json and syncs skills to ~/.cursor/skills/
Other MCP clients Register muggle serve (stdio), as below
{ "mcpServers": { "muggle": { "command": "muggle", "args": ["serve"], "env": { "MUGGLE_MCP_PROMPT_SERVICE_TARGET": "production" } } } }

Naming: the Claude Code marketplace entry is muggleai, the installed plugin is muggle, so skills appear as /muggle:<skill> (short aliases such as /mtest also work). Codex uses $muggle:<skill>.

muggle doctor checks the install; muggle setup --force re-downloads the browser runner.

Sign-in

Local browser runs and every muggle-remote-* tool except muggle-remote-pricing-get need an account.

Situation CLI MCP tools
Check muggle status muggle-remote-auth-status
Existing account muggle login [--key-expiry 90d] (device code in the browser) muggle-remote-auth-login, then muggle-remote-auth-poll if still pending
No account /muggle:muggle-register muggle-remote-auth-register (email + password, no browser; stores the API key)
Sign out muggle logout muggle-remote-auth-logout

Credentials live in ~/.muggle-ai/ (oauth-session.json, api-key.json). Long-lived keys: muggle-remote-auth-api-key-*.

Read the full file on GitHub · 138 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. 13d ago Changed · +1 lines · +28 tokens per session 8889dbdd5f63
  2. 18d ago Changed · +1 lines · +31 tokens per session c4e59fd5e948
  3. 19d ago First seen · 136 lines · 2,456 tokens per session scan B 3dde5f518f39

Subscribe to this mod's changes

muggle-ai-works AGENTS.md is an instructions file published in the GitHub repository multiplex-ai/muggle-ai-works (15 stars, last pushed today), licensed Apache-2.0. It adds 2,515 tokens to every session, about $0.0101 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-11.

Related

muggle-ai-works AGENTS.md compared with instructions from other repositories

muggle-ai-works AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
muggle-ai-works AGENTS.mdmultiplex-ai/muggle-ai-worksInstructions file15todayApache-2.0B2,515Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode