dev-proxy
Copilot instructions837 starsChanged 20 months agoMITView on GitHub
Dev Proxy is a cross-platform .NET API simulator and proxy for testing how applications handle API failures, rate limits, latency, and more. See the comprehensive best practices guide: https://raw.githubusercontent.com/dev-proxy-tools/mcp/refs/heads/main/assets/best-practices.md Key points: - Store Dev Proxy files in .devproxy folder in the workspace - Schema version in $schema must match installed Dev Proxy version - In config files: plugins first, then urlsToWatch, then plugin configs - Plugin order matters: latency plugins first, response simulators before reporters, reporters last - URL matching…
We split this copilot-instructions.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
MCP Server: Use @devproxy/mcp to programmatically retrieve up-to-date docs and JSON schemas
- Very specific: line 37
Release: After release builds, homebrew is updated manually.
- Distinctive: line 41
When testing code, features, or changes, always launch the proxy in detached mode with these settings to avoid conflicts:
- Very specific: line 51
Auth for M365/Azure: No automated auth. You can try m365 util accesstoken get or az account get-access-token (use -h for options) but the …
≈ “Common” is an estimate: at least 1 in 5 of the 3,669 Copilot instructions 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.
Files
Copilot Instructions for Dev Proxy
Overview
Dev Proxy is a cross-platform .NET API simulator and proxy for testing how applications handle API failures, rate limits, latency, and more.
Critical (Non-Obvious)
- Proxy engine: Built on ASP.NET Core Kestrel (a custom forward-proxy + MITM engine; see
DevProxy.Proxy.Kestrel) - Config tokens: Paths in config files can use
~appFolderfor resolution - MCP Server: Use @devproxy/mcp to programmatically retrieve up-to-date docs and JSON schemas
Best Practices
See the comprehensive best practices guide: https://raw.githubusercontent.com/dev-proxy-tools/mcp/refs/heads/main/assets/best-practices.md
Key points:
- Store Dev Proxy files in
.devproxyfolder in the workspace - Schema version in
$schemamust match installed Dev Proxy version - In config files:
pluginsfirst, thenurlsToWatch, then plugin configs - Plugin order matters: latency plugins first, response simulators before reporters, reporters last
- URL matching is order-dependent: most specific URLs first, use
!prefix to exclude - File paths are relative to the config file where they're defined
- Hot reload (v2.1.0+): config changes are detected and the proxy restarts automatically to apply them
Plugin Development
To create a new plugin:
- Implement the
IPlugininterface (DevProxy.Abstractions/Plugins/IPlugin.cs) either directly or by inheriting fromBasePlugin/BaseReportingPlugin. Optionally implementIStdioPluginfor stdio-based communication. - Implement it as a public class in a class library project.
- Implement the required interface members and override any relevant base class methods/events for your use case.
Commits & Releases
- Commit messages: Clear, succinct, and reference the issue they close when applicable
- Versioning: We follow semver. Use the
upgrade-devproxy-versionskill for version bumps - Release: After release builds, homebrew is updated manually. Use the
publish-to-wingetskill for winget submissions
Testing Code Changes
When testing code, features, or changes, always launch the proxy in detached mode with these settings to avoid conflicts:
dotnet run --project DevProxy -- --detach --as-system-proxy false --port 0 --api-port 0--as-system-proxy false— prevents modifying system-wide network settings--port 0— lets the OS assign a random available port for the proxy--api-port 0— lets the OS assign a random available port for the API
Auth for M365/Azure: No automated auth. You can try m365 util accesstoken get or az account get-access-token (use -h for options) but the user may not be signed in.
Cleanup: After testing, stop the proxy using devproxy stop (preferred, cross-platform). If you started it with dotnet run, you can also stop it with Ctrl+C in that terminal; as a last resort, terminate the process using OS-specific tools (for example, kill <PID> on Unix-like systems or Task Manager on Windows). Clean up any generated log files (devproxy-*.log).
Reference (Architecture)
- Main entry point:
DevProxy/Program.cs— sets up web host, configuration, logging, plugins, and starts proxy engine - Proxy Engine:
DevProxy/Proxy/ProxyEngine.cs— network interception, request/response handling, plugin invocation - Plugins: Implement
IPlugininterface (DevProxy.Abstractions/Plugins/IPlugin.cs). Base classes:BasePlugin,BaseReportingPlugininDevProxy.Abstractions/Plugins/ - CLI Commands:
DevProxy/Commands/— built with System.CommandLine, registered viaDevProxyCommand.cs - Configuration:
DevProxy/config/devproxyrc.jsonand other JSON files inconfig/ - macOS scripts:
trust-cert.sh,remove-cert.sh,toggle-proxy.shinDevProxy/
Resources
Where files are headingNew Copilot instructions files have more rules about branches and pull requests, and fewer about code style.
Of the Copilot instructions files we read, the 2,297 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- publish-to-wingetSkill
- upgrade-devproxy-versionSkill
- dev-proxySkill
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
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.

