maui: Agent for Claude Code

.github/agents/sandbox-agent.agent.md

sandbox-agent is an agent for Claude Code from dotnet/maui. It costs 23 tokens per session (433 once invoked), scanned C, original, MIT.

A specialized agent for testing the .NET MAUI Sandbox app, a sample application used to reproduce issues and validate changes through hands-on platform testing.

In plain words
What is it for?
Use it to test or validate a pull request, reproduce an issue, or deploy the Sandbox app to iOS or Android and summarize the results.
Why use it?
It provides a defined path from understanding a pull request or issue to creating a test scenario, running the app, and reporting what happened.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

This is dotnet/maui's own configuration. It tells Claude Code how to work on maui 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 maui configures →

About the project

.NET MAUI is a C# and XAML framework for building native mobile and desktop applications from one shared codebase. Developers use it to create apps for Android, iOS, iPadOS, macOS, and Windows. The catalogue entries provide skills, instructions, and agents for working with .NET MAUI.

dotnet/maui · 23,322 stars · on GitHub · dot.net

Reuse

Borrowing it

Nothing to install: this file belongs to dotnet/maui. 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/dotnet/maui/main/.github/agents/sandbox-agent.agent.md
Clone the repo
git clone --depth 1 https://github.com/dotnet/maui

Made for: Claude Code.

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 sandbox-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/dotnet/maui/sandbox-agent/github.svg)](https://agentmods.dev/agents/dotnet/maui/sandbox-agent)
Your own site
<a href="https://agentmods.dev/agents/dotnet/maui/sandbox-agent"><img src="https://agentmods.dev/badge/agents/dotnet/maui/sandbox-agent/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 sandbox-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/dotnet/maui/sandbox-agent"><img src="https://agentmods.dev/badge/agents/dotnet/maui/sandbox-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 433 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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.00023 $0.00433
Opus 5.5 $0.00009 $0.00173
Sonnet 5.5 $0.00005 $0.00087
Haiku 4.5 $0.00002 $0.00043

Measured 1mo ago against content hash 537fd49efb45, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

sandbox-agent scanned grade C 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 1mo 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- NOTE: This agent exists as a workaround because GitHub Copilot CLI is not reliable with applyTo frontmatter in instruction files. Instead of relying on automatic pattern matching, this agent explicitly reads the san
.github/agents/sandbox-agent.agent.md · 57 lines

What it actually says

Sandbox Agent

Role

You are a specialized testing agent for the .NET MAUI Sandbox app. Your job is to validate PRs and reproduce issues through hands-on testing with the Sandbox sample application.

When to Invoke

Invoke this agent when user:

  • Asks to "test this PR" or "validate PR #XXXXX"
  • Asks to "reproduce issue #XXXXX" in Sandbox
  • Asks to "test" or "verify" something using Sandbox
  • Wants to deploy to iOS/Android for manual testing
  • Mentions Sandbox app by name in testing context

Workflow

When invoked, you will:

  1. Read sandbox instructions:

    • .github/instructions/sandbox.instructions.md
  2. Execute the complete sandbox testing workflow:

    • Checkout the PR branch
    • Understand the issue and PR changes
    • Create appropriate test scenario in Sandbox MainPage
    • Run BuildAndRunSandbox.ps1 script
    • Analyze results from logs and test execution
    • Provide comprehensive testing summary
  3. Report back to user with:

    • Test scenario details (source and justification)
    • Test results (pass/fail/partial)
    • Recommendations for next steps

What This Agent Does

  • ✅ Reads and follows comprehensive sandbox testing instructions
  • ✅ Creates test scenarios in Sandbox MainPage.xaml[.cs]
  • ✅ Runs BuildAndRunSandbox.ps1 for automated build/deploy/test
  • ✅ Analyzes device logs and Appium output
  • ✅ Provides detailed testing summaries with verdicts

Scope

This agent handles the complete Sandbox testing workflow as documented in the instructions. For automated UI test creation (not Sandbox testing), use the standard workflow instead.

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. 1mo ago First seen · 57 lines · 23 tokens per session scan C 537fd49efb45

Subscribe to this mod's changes

sandbox-agent is an agent published in the GitHub repository dotnet/maui (23,322 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 433 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

gem-mobile-tester

Mobile E2E testing: Detox, Maestro, iOS/Android simulators.

github/awesome-copilot · 22 tokens

Salesforce Apex & Triggers Development

Implement Salesforce business logic using Apex classes and triggers with production-quality code following Salesforce best practices.

github/awesome-copilot · 26 tokens

sap-screens-reviewer

Adversarial review of a Phase 2 screens.md — checks it describes the LIVE WEB-GUI rendering (accessible names/labels Playwright will use, initial states, dialogs, ALV) and is NOT an ABAP selection-screen/source description. Catches screens.md that was derived from source instead of observed in the browser. Use at the…

marcellourbani/vscode_abap_remote_fs · 90 tokens

rn-pr-qa

Device-tests a GitHub pull request on iOS simulator, Android emulator, and/or a physical device using rn-dev-agent. Installs the PR head, exercises the change, and reports pass/fail with repro steps and screenshots/logs. PARENT-SESSION-ONLY: requires MCP tools (cdp, device, rnsession) — do NOT spawn via Task tool, run…

Lykhoyda/rn-dev-agent · 299 tokens

android-emulator-tester

Automated Android UI/integration testing specialist; the agent that drives a real Android app on a headless emulator under WSL/Linux and gates on what it observes. Use when the task is "run the app on an emulator", "smoke-test a screen", "drive the Android UI", "reproduce a tap-and-crash / ANR", "automate an Android…

simiancraft/simiancraft-skills · 247 tokens

Screenplay Renderer

Capability probe and delivery verifier for accepted Cratis Screenplay models: checks admission, renders with the cratis CLI into a probe destination, builds and tests the generated output, maps results to .play specifications, and classifies model fixes against platform gaps. Never edits .play or Stage-managed files…

Cratis/AI · 74 tokens