maui-labs: Instructions file for Codex

AGENTS.md

maui-labs AGENTS.md is an instructions file for Codex, OpenCode from dotnet/maui-labs. It costs 8,580 tokens per session, scanned A, original, MIT.

A repository guide for experimental .NET MAUI packages arranged as a multi-product monorepo, meaning one repository containing several related products. It describes the products, package layout, technology stack, build process, and command-line tools.

In plain words
What is it for?
Use it when changing the MAUI command-line tool, Android or Apple platform management, device and emulator support, startup profiling, project versioning, port diagnostics, DevFlow automation, or related packages and tests.
Why use it?
It helps coding agents find the correct product, solution, package, and workflow before making a change. This reduces accidental edits to the wrong component and clarifies how the shared MAUI tooling is divided.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

Made for: 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 maui-labs AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dotnet/maui-labs/agents-md"><img src="https://agentmods.dev/badge/instructions/dotnet/maui-labs/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,580 This file is loaded in full into every session.
When invoked 8,580 The same file — it is already loaded in full.
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.08580 $0.08580
Opus 5.5 $0.03432 $0.03432
Sonnet 5.5 $0.01716 $0.01716
Haiku 4.5 $0.00858 $0.00858

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

Security

Grade A, and why

maui-labs AGENTS.md 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 6d 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.

AGENTS.md · 557 lines

How it starts

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

Agent Instructions

Instructions for GitHub Copilot and other AI coding agents working with the maui-labs repository.

Repository Overview

This repository hosts experimental .NET MAUI packages. It is a multi-product mono-repo — each product lives under src/{Product}/ with its own version, solution filter, and CI workflow.

Products

Product Package / Tool Description
Cli Microsoft.Maui.Cli (global tool: maui), Microsoft.Maui.ProfilingHelper Unified MAUI command-line tool: environment diagnostics (maui doctor), Android SDK/JDK/emulator management, Apple platform management, device listing, maui ai for AI-assisted development and agent skill marketplace management, maui go for rapid prototyping, maui profile startup for performance tracing, maui project version for project version management, maui port check for TCP port diagnostics, and the maui devflow automation surface. Microsoft.Maui.ProfilingHelper is a lightweight helper library injected by the CLI to drive the startup profiling exit-control handshake; it can also be referenced directly to mark startup completion via MauiProfilingMarker.Complete().
DevFlow Microsoft.Maui.DevFlow.* packages plus the unified maui devflow CLI surface Runtime MAUI automation toolkit. In-app agent with HTTP API, visual tree inspection, CDP bridge for Blazor WebViews, MCP server for AI agents, cross-platform driver library.
Comet Comet, Comet.SourceGenerator, Comet.Layout.Yoga Experimental MVU UI framework for .NET MAUI — C# fluent UI, signals/reactive state, Yoga layout.
Go Microsoft.Maui.Go.Server + Comet Go companion app Single-file Comet apps server and companion app for rapid prototyping (alpha; sister to Comet).
Essentials.AI Microsoft.Maui.Essentials.AI On-device AI for .NET MAUI — semantic search, chat completion, embeddings, and tool use against local models.
AIExtensions Microsoft.Maui.AI.Attributes Source-generated AI tool bindings — turns decorated C# methods into Microsoft.Extensions.AI-callable tools using Roslyn, with DI parameter binding and AOT support.
AppProjectReference Microsoft.Maui.Build.AppProjectReference MSBuild SDK extension that enables referencing MAUI app projects from test and tooling projects.
Linux GTK4 Microsoft.Maui.Platforms.Linux.Gtk4 + associated packages .NET MAUI platform backend for Linux using GTK4 — handler, Essentials, BlazorWebView, and project templates.
macOS AppKit Microsoft.Maui.Platforms.MacOS + associated packages .NET MAUI platform backend for macOS AppKit — handler, Essentials, BlazorWebView, and project templates.
WPF Microsoft.Maui.Platforms.Windows.WPF + associated packages .NET MAUI platform backend for WPF — handler, Essentials, and project templates.

Read the full file on GitHub · 557 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. 6d ago Changed · +3 lines · +80 tokens per session 51f12720bb6e
  2. 8d ago Changed · +2 lines · +41 tokens per session e82a2254fa5f
  3. 9d ago Changed · +15 tokens per session d02d6674d0c4
  4. 24d ago Changed · +3 lines · +52 tokens per session fc74d5cfb7bb
  5. 27d ago Changed · +2 lines · +51 tokens per session 9dbcfeaa123d
  6. 1mo ago Changed · +15 tokens per session 30254b53934b
  7. 1mo ago Changed · +75 lines · +903 tokens per session e4e1e312ed64
  8. 2mo ago Changed · +127 lines · +1,972 tokens per session 92e7d39b6708
  9. 2mo ago Changed · +32 tokens per session fbaa2633beb5
  10. 2mo ago First seen · 345 lines · 5,419 tokens per session scan A 2445a9fc3cbc

Subscribe to this mod's changes

maui-labs AGENTS.md is an instructions file published in the GitHub repository dotnet/maui-labs (235 stars, last pushed yesterday), licensed MIT. It adds 8,580 tokens to every session, about $0.0343 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-08-30.

Related

maui-labs AGENTS.md compared with instructions from other repositories

maui-labs AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
maui-labs AGENTS.mddotnet/maui-labsInstructions file235yesterdayMITA8,580Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode