sentry-unity
AGENTS.md291 starsChanged 3 months agoMITView on GitHub
Read only guide relevant to task. Do not import all guides at startup.
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.
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Run dotnet build before tests after SDK changes.
- Very specific: line 32
Use batch MSBuild test targets only when Unity CLI is unavailable.
- Distinctive: line 36
Read only guide relevant to task.
- Distinctive: line 52
Use direct, capitalized commit subjects without conventional-commit prefixes.
- Very specific: line 53
Do not add agent attribution trailers such as Co-Authored-By.
≈ “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 Guidance
Build
pwsh bootstrap.ps1
dotnet build- Build outputs and native plugins live in
package-dev/; do not hand-edit generated assemblies or downloaded native artifacts. - See
docs/agent-guides/build.mdfor target ownership, Unity selection, and local native builds.
Native SDKs
dotnet msbuild /t:DownloadNativeSDKs src/Sentry.Unity- Requires
gh. Use when native artifacts are missing;dotnet builddoes not download them.
Test
pwsh scripts/run-tests.ps1
pwsh scripts/run-tests.ps1 -Mode PlayMode -Filter "MyTest"
pwsh scripts/run-tests.ps1 -Mode EditMode- The harness targets
samples/unity-of-bugs-local, using Pipeline for an open Editor orunity testheadlessly when none is running. - Make
unityavailable onPATH. To reuse an Editor, open the sample in Unity 6.6+ withcom.unity.pipelineand leave play mode stopped. - Run
dotnet buildbefore tests after SDK changes.Filternarrows selected tests. - Use batch MSBuild test targets only when Unity CLI is unavailable. See
docs/agent-guides/testing.mdfor commands and integration tests.
Area Guides
Read only guide relevant to task. Do not import all guides at startup.
| Area | Paths or task | Guide |
| Build targets and native bootstrap | Directory.Build.*, build/, build failures | docs/agent-guides/build.md |
| GitHub Actions | .github/workflows/, CI failures | docs/agent-guides/ci.md |
| Tests | test/, Unity test harness, integration tests | docs/agent-guides/testing.md |
| Packaging and releases | package*/, .craft.yml, scripts/pack.ps1, scripts/repack.ps1 | docs/agent-guides/packaging.md |
| Runtime integrations | src/Sentry.Unity/, especially Integrations/ | docs/agent-guides/integrations.md |
| Android | src/Sentry.Unity.Android/, Android plugins or export | docs/agent-guides/platform-android.md |
| iOS and macOS Cocoa | src/Sentry.Unity.iOS/, src/Sentry.Unity.Editor.iOS/, Apple plugins | docs/agent-guides/platform-apple.md |
| Native desktop and consoles | src/Sentry.Unity.Native/, native plugins | docs/agent-guides/platform-native.md |
| Unity Editor | src/Sentry.Unity.Editor/, Editor configuration or preprocessors | docs/agent-guides/editor.md |
Commits
- Use direct, capitalized commit subjects without conventional-commit prefixes.
- Do not add agent attribution trailers such as
Co-Authored-By.
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.

