profile-explorer
AGENTS.md288 starsChanged 6 months agoMITView on GitHub
NEVER commit or git add without explicit user permission. When asked for a commit message, provide the message text only - do not execute git commit or git add. IMPORTANT: Always use Release configuration (-c Release). The user runs Release builds, not Debug. If running, ask the user to close it before building. The Core project build is much faster (~2-3s) and doesn't require ProfileExplorer to be closed. The app version lives in 3 files that must stay in lockstep…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
NEVER commit or git add without explicit user permission: When asked for a commit message, provide the message text only - do not execute …
- Distinctive: line 12
Always check if ProfileExplorer is running before attempting a build - it locks the DLLs:
- Distinctive: line 18
If running, ask the user to close it before building.
- Distinctive: line 32
Ask user to close ProfileExplorer
- Distinctive: line 75
Use the analysis script (don't read raw logs - they're ~12MB):
≈ “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.
Files
Agent Instructions for Profile Explorer
Git Policy
NEVER commit or git add without explicit user permission. When asked for a commit message, provide the message text only - do not execute git commit or git add.
Building
IMPORTANT: Always use Release configuration (-c Release). The user runs Release builds, not Debug.
Before Building
Always check if ProfileExplorer is running before attempting a build - it locks the DLLs:
tasklist /FI "IMAGENAME eq ProfileExplorer.exe" 2>nul | find /i "ProfileExplorer"If running, ask the user to close it before building.
Build Commands
# Full UI build (Release)
dotnet build "C:/src/profile-explorer/src/ProfileExplorerUI/ProfileExplorerUI.csproj" -c Release
# Core library only (faster, for checking compilation)
dotnet build "C:/src/profile-explorer/src/ProfileExplorerCore/ProfileExplorerCore.csproj" -c ReleaseIterative Development
For faster iteration when ProfileExplorer is running:
- Build just the Core project first to check for compilation errors
- Ask user to close ProfileExplorer
- Build the full UI project
- User can relaunch and test
The Core project build is much faster (~2-3s) and doesn't require ProfileExplorer to be closed.
Bumping the App Version
The app version lives in 3 files that must stay in lockstep (history shows they've drifted apart and needed follow-up commits). Use the bump script — never edit these by hand:
# Print current version across all files
.\scripts\Bump-Version.ps1 -Show
# Bump components (1.2.1 -> 1.2.2 / 1.3.0 / 2.0.0)
.\scripts\Bump-Version.ps1 -Bump Patch
.\scripts\Bump-Version.ps1 -Bump Minor
.\scripts\Bump-Version.ps1 -Bump Major
# Set an explicit version
.\scripts\Bump-Version.ps1 -Version 1.5.0
# Preview without writing
.\scripts\Bump-Version.ps1 -Bump Patch -WhatIfThe script refuses to bump when the files disagree on the current version; pass -Version X.Y.Z -Force to force a known-good value. See the script's header comment for full help.
The files it updates:
src/ProfileExplorerUI/ProfileExplorerUI.csproj(AssemblyVersion,FileVersion,Version)installer/x64/prepare-installer.cmdinstaller/arm64/prepare-installer.cmd
Diagnostic Logging
Enable diagnostic logging with:
$env:PROFILE_EXPLORER_DEBUG = "1"Logs are written to %TEMP%\ProfileExplorer_Diagnostic_*.log
Analyzing Logs
Use the analysis script (don't read raw logs - they're ~12MB):
C:\src\profile-explorer\scripts\Analyze-DiagnosticLog.ps1 -LogPath <path-to-log>Or grep for specific patterns:
grep -i "pattern" <log-file> | head -30Key Files
Symbol Loading Performance
ETWProfileDataProvider.cs- Main symbol loading orchestration (~lines 759-1150)SymbolFileSourceSettings.cs- Symbol settings including timeouts, filters, cachingPEBinaryInfoProvider.cs- Binary file downloadingPDBDebugInfoProvider.cs- PDB file downloading
Important Settings (SymbolFileSourceSettings)
SymbolServerTimeoutSeconds- Normal timeout (default: 10s)BellwetherTestEnabled- Test symbol server health before bulk downloadsBellwetherTimeoutSeconds- Timeout for bellwether test (default: 5s)DegradedTimeoutSeconds- Reduced timeout when server is slow (default: 3s)RejectPreviouslyFailedFiles- Negative caching for failed downloadsWindowsPathFilterEnabled- Skip non-Windows binariesCompanyFilterEnabled- Only load symbols for specific companies (e.g., Microsoft)
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.

