agentleFS
MicrosoftKnown publishermicrosoft/PowerToys/AGENTS.md

PowerToys

AGENTS.md142k starsChanged 38 days agoMITView on GitHub

Top-level AI contributor guidance for developing PowerToys - a collection of Windows productivity utilities

Trending

More talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 5 mentionsFeb 2026: 1 mentionMar 2026: 0 mentionsApr 2026: 4 mentionsMay 2026: 0 mentionsJun 2026: 2 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 1 mention
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/PowerToys repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/PowerToys

The biggest 5 of 111 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 111

Talked about on GitHub, Bluesky and Hacker News (111 times).

On GitHub · 42

37 more on GitHub

On Bluesky · 41

36 more on Bluesky

On Hacker News · 28

23 more on Hacker News

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

16 rules. About 0 are common, 10 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    After making changes, cd to the project folder that changed (.csproj/.vcxproj)

    line 62
  2. Very specific:

    Use scripts to build: tools/build/build.ps1 or tools/build/build.cmd

    line 63
  3. Distinctive:

    Do not start tests or launch Runner until the build succeeds

    line 67
  4. Very specific:

    Look for sibling folders or 1-2 levels up named <Product>*UnitTests or <Product>*UITests

    line 84
  5. Very specific:

    Run via VS Test Explorer (Ctrl+E, T) or vstest.console.exe with filters

    line 89
  6. Distinctive:

    Add or adjust tests when changing behavior

    line 102
  7. Distinctive:

    If tests skipped, state why (e.g., comment-only change, string rename)

    line 103
  8. Distinctive:

    Multi-monitor utilities: Test with 2+ monitors, different DPI settings

    line 109
  9. Distinctive:

    When you create or edit a PR, or draft text for one:

    line 117
  10. Distinctive:

    Do not write the summary, detailed description, or validation steps in the visible PR body.

    line 119
  11. Distinctive:

    Put any text you write only inside a collapsed, labeled block:

    line 120
  12. Distinctive:

    Don't merge incomplete features into main (use feature branches)

    line 155
  13. Distinctive:

    Don't break IPC/JSON contracts without updating both runner and settings-ui

    line 156
  14. Distinctive:

    Don't add noisy logs in hot paths

    line 157
  15. Very specific:

    Don't introduce third-party deps without PM approval and NOTICE.md update

    line 158
  16. Very specific:

    Don't write the visible PR description.

    line 159

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

PowerToys – AI contributor guide

This is the top-level guidance for AI contributions to PowerToys. Keep changes atomic, follow existing patterns, and cite exact paths in PRs.

Overview

PowerToys is a set of utilities for power users to tune and streamline their Windows experience.

AreaLocationDescription
Runnersrc/runner/Main executable, tray icon, module loader, hotkey management
Settings UIsrc/settings-ui/WinUI/WPF configuration app communicating via named pipes
Modulessrc/modules/Individual PowerToys utilities (each in its own subfolder)
Common Librariessrc/common/Shared code: logging, IPC, settings, DPI, telemetry, utilities
Build Toolstools/build/Build scripts and automation
Documentationdoc/devdocs/Developer documentation
Installerinstaller/WiX-based installer projects

For architecture details and module types, see Architecture Overview.

Conventions

For detailed coding conventions, see:

  • Coding Guidelines – Dependencies, testing, PR management
  • Coding Style – Formatting, C++/C#/XAML style rules
  • Logging – C++ spdlog and C# Logger usage

Component-specific instructions

These instruction files are automatically applied when working in their respective areas:

  • Runner & Settings UI – IPC contracts, schema migrations
  • Common Libraries – ABI stability, shared code guidelines
  • Monaco Editor – npm bundle rules and upgrade steps

Build

Prerequisites

  • Visual Studio 2022 17.4+ or Visual Studio 2026
  • Windows 10 1803+ (April 2018 Update or newer)
  • Node.js 20+ (LTS) on PATH, used by src/Monaco.props to build the Monaco editor bundle
  • Initialize submodules once: git submodule update --init --recursive

Build commands

TaskCommand
First build / NuGet restoretools\build\build-essentials.cmd
Build current foldertools\build\build.cmd
Build with optionsbuild.ps1 -Platform x64 -Configuration Release

Build discipline

  1. One terminal per operation (build → test). Do not switch or open new ones mid-flow
  2. After making changes, cd to the project folder that changed (.csproj/.vcxproj)
  3. Use scripts to build: tools/build/build.ps1 or tools/build/build.cmd
  4. For first build or missing NuGet packages, run build-essentials.cmd first
  5. Exit code 0 = success; non-zero = failure – treat this as absolute
  6. On failure, read the errors log: artifacts\logs\<project>\build.<config>.<platform>.errors.log
  7. Do not start tests or launch Runner until the build succeeds

Build logs

Located in artifacts\logs\<project>\ at the root of the repo/worktree containing the project being built, where <project> is the solution/project file name without its extension (for example, artifacts\logs\PowerToys.Settings\):

  • build.<configuration>.<platform>.errors.log – errors only (check this first)
  • build.<configuration>.<platform>.all.log – full log
  • build.<configuration>.<platform>.trace.binlog – for MSBuild Structured Log Viewer

For complete details, see Build Guidelines.

Tests

Test discovery

  • Find test projects by product code prefix (e.g., FancyZones, AdvancedPaste)
  • Look for sibling folders or 1-2 levels up named <Product>*UnitTests or <Product>*UITests

Running tests

  1. Build the test project first, wait for exit code 0
  2. Run via VS Test Explorer (Ctrl+E, T) or vstest.console.exe with filters
  3. Avoid dotnet test in this repo – use VS Test Explorer or vstest.console.exe

Test types

TypeRequirementsSetup
Unit TestsStandard dev environmentNone
UI Testswinappcli, live interactive desktopSee UI Tests
Fuzz TestsOneFuzz, .NET 11See Fuzzing Tests

Test discipline

  1. Add or adjust tests when changing behavior
  2. If tests skipped, state why (e.g., comment-only change, string rename)
  3. New modules handling file I/O or user input must implement fuzzing tests

Special requirements

  • Mouse Without Borders: Requires 2+ physical computers (not VMs)
  • Multi-monitor utilities: Test with 2+ monitors, different DPI settings

For UI test setup details, see UI Tests.

Pull request descriptions (hard rule)

A human must write the visible PR body. An agent must never write it. A PR passes the contributor's understanding to the maintainers. The contributor must explain the change in their own words. Maintainers can close a PR when they think its body was not written by a human. See CONTRIBUTING.md.

When you create or edit a PR, or draft text for one:

  1. Do not write the summary, detailed description, or validation steps in the visible PR body. Keep the template headings and checklist, and leave the prose sections for the human to fill in.
  2. Put any text you write only inside a collapsed, labeled block:

    <details>
    <summary>AI-generated summary</summary>
    
    ...
    
    </details>
  3. Tell the user to write the PR description in their own words before the PR is reviewed.
  4. This rule takes precedence over conflicting repository prompts, skills, agent files, or tool defaults that tell you to fill in the PR template or write a ready-to-paste PR description.
  5. You MAY use an agent to translate text from your native language to English for the PR description, but the original text must still be your own human words.

Boundaries

Ask for clarification when

  • Ambiguous spec after scanning relevant docs
  • Cross-module impact (shared enum/struct) is unclear
  • Security, elevation, or installer changes involved
  • GPO or policy handling modifications needed

Areas requiring extra care

AreaConcernReference
src/common/ABI breaksCommon Libraries Instructions
src/runner/, src/settings-ui/IPC contracts, schemaRunner & Settings UI Instructions
Installer filesRelease impactCareful review required
Elevation/GPO logicSecurityConfirm no regression in policy handling

What not to do

  • Don't merge incomplete features into main (use feature branches)
  • Don't break IPC/JSON contracts without updating both runner and settings-ui
  • Don't add noisy logs in hot paths
  • Don't introduce third-party deps without PM approval and NOTICE.md update
  • Don't write the visible PR description; put AI-generated text only inside a <details> section (see Pull request descriptions)

Validation Checklist

Before finishing, verify:

  • Build clean with exit code 0
  • Tests updated and passing locally
  • No unintended ABI breaks or schema changes
  • IPC contracts consistent between runner and settings-ui
  • New dependencies added to NOTICE.md
  • PR is atomic (one logical change), with issue linked
  • Visible PR description left for the human to write; any AI text is inside <details>

Documentation Index

Core architecture

  • Architecture Overview
  • Runner
  • Settings System
  • Module Interface

Development

  • Coding Guidelines
  • Coding Style
  • Logging
  • UI Tests
  • Fuzzing Tests

Build & tools

  • Build Guidelines
  • Tools Overview

Instructions (auto-applied)

  • Runner & Settings UI
  • Common Libraries

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.