winappCli AGENTS.md

A set of instructions for an AI coding agent working on the winapp project. It explains how to write user documentation, review code, communicate with authors, and respect compatibility limits.

In plain words
What is it for?
Writing commands and troubleshooting steps, reviewing changes, and checking whether proposed behavior fits the project's supported boundaries.
Why use it?
It gives the agent consistent guidance for making changes and explaining them clearly to developers who use winapp.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/microsoft/winappcli/agents-md
Clone the repo
git clone --depth 1 https://github.com/microsoft/winappCli

Made for: Codex, OpenCode.

Per session 3,837 This file is loaded in full into every session.
When invoked 3,837 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.03837 $0.03837
Opus 5 $0.01919 $0.01919
Sonnet 5 $0.00767 $0.00767
Haiku 4.5 $0.00384 $0.00384

Measured 2d ago against content hash b7bcc2c9c5e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

winappCli 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 2d 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 · 308 lines

How it starts

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

Agent instructions for winapp

This file provides focused, actionable information to help an AI coding agent be immediately productive in this repo.

Audience contracts

User documentation

Write for someone using winapp. Lead with the smallest command or input that demonstrates the behavior, then answer: what can I do, what do I type, what happens, and what action should I take if it fails. Describe observable behavior, not implementation machinery.

Keep internal deliberation, review provenance, rejected alternatives, review rounds/IDs, resolved blockers, and defenses of the implementation out of user documentation. State each user-facing fact once on its canonical surface and link to it elsewhere instead of copying it.

Example: "After cloning a project with winapp.yaml, run winapp restore to reinstall its pinned SDK packages and projections without changing versions. For a .NET project without winapp.yaml, run dotnet restore instead."

Reviews and author communication

Assume the reader has no prior codebase or conversation context. A junior developer should understand each finding after one read. Use a plain title, then:

  • What is wrong: the behavior or design defect.
  • Show me: the smallest concrete command, input, tree, or code path, preferably as input -> actual result -> expected result.
  • Why it matters: the user, build, or maintenance consequence.
  • Smallest fix: the least-complex change that resolves it.

Define unavoidable jargon at first use. Put paths and lines in supporting detail, not in a title the reader must decode. If the issue cannot be demonstrated concretely, lower its confidence or drop it.

Example:

  • What is wrong: --setup-sdks none fails instead of skipping SDK updates.
  • Show me: winapp init --setup-sdks none -> exits nonzero in the package update loop; expected: succeeds without updating SDKs.
  • Why it matters: documented automation stops before initialization.
  • Smallest fix: skip the package-update loop when the value is none.

Read the full file on GitHub · 308 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. 2d ago First seen · 308 lines · 3,837 tokens per session scan A b7bcc2c9c5e9

Subscribe to this mod's changes

winappCli AGENTS.md is an instructions file published in the GitHub repository microsoft/winappCli (1,205 stars, last pushed 4d ago), licensed MIT. It adds 3,837 tokens to every session, about $0.0192 per session on Opus 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.