sentry-cocoa
AGENTS.md1.1k starsChanged 3 months agoMITView on GitHub
Sentry Cocoa SDK for iOS, macOS, tvOS, watchOS, and visionOS.
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about getsentry/sentry-cocoa
- getsentry/sentry-react-native“(ios only) codepush.restartApp triggers invalid OutOfMemory errors”GitHub · Oct 13, 2021 · 15 reactions
- expo/expo“[SDK 51] Xcode 16 compilation fails on pegged Sentry version”GitHub · Jul 2, 2024 · 14 reactions
- getsentry/sentry-java“JVM Profiling”GitHub · Apr 1, 2023 · 14 reactions
- getsentry/sentry-react-native“missing ucontext64_t type Xcode Version 16.0 (16A242d)”GitHub · Sep 18, 2024 · 8 reactions
- getsentry/sentry-dotnet“Feature: Session Replay support for .NET MAUI”GitHub · Jan 30, 2023 · 8 reactions
The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 13
Talked about on GitHub (13 times).
On GitHub · 13
- Oct 13, 2021(ios only) codepush.restartApp triggers invalid OutOfMemory errors — getsentry/sentry-react-native15 reactions · 77 comments
- Jul 2, 2024[SDK 51] Xcode 16 compilation fails on pegged Sentry version — expo/expo14 reactions · 12 comments
- Apr 1, 2023JVM Profiling — getsentry/sentry-java14 reactions · 18 comments
- Sep 18, 2024missing ucontext64_t type Xcode Version 16.0 (16A242d) — getsentry/sentry-react-native8 reactions · 2 comments
- Jan 30, 2023Feature: Session Replay support for .NET MAUI — getsentry/sentry-dotnet8 reactions · 9 comments
8 more on GitHub
- Apr 16, 2025RCN Fetch failure: cannot parse response — firebase/firebase-ios-sdk6 reactions · 22 comments
- Nov 4, 2020Version 2.0.0 not building with use_frameworks — getsentry/sentry-react-native6 reactions · 4 comments
- Mar 25, 2024Apple privacy manifest requirements (File timestamp, System boot time & Disk space) — getsentry/sentry-react-native5 reactions · 8 comments
- Mar 25, 2024feat(replay): Add Mobile Replay Alpha — getsentry/sentry-react-native4 reactions · 8 comments
- Oct 22, 2025Session Replay for iOS — getsentry/sentry-dotnet3 reactions · 2 comments
- Sep 24, 2024Public API for manual replay control — getsentry/sentry3 reactions · 10 comments
- Feb 1, 2024[Epic] Mobile Session Replay — getsentry/sentry3 reactions · 2 comments
- Nov 20, 2023Tracing: W3C Trace Context Support — getsentry/team-sdks3 reactions · 9 comments
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 repository8 other files it gives its agents.
- develop-docs/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- Sources/AGENTS.mdAGENTS.md
- TestApps/AGENTS.mdAGENTS.md
- Tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- relay-conformance-auditSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
24 rules. About 0 are common, 11 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
13
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
- Distinctive: line 7
Read this file before any repository work
- Distinctive: line 8
Before inspecting or modifying a nested scope, read its linked AGENTS.md
- Very specific: line 37
Read develop-docs/SENTRY-OBJC.md before changing SentryObjC, SentryObjCCompat, or their build configuration
- Very specific: line 38
Read develop-docs/SWIZZLING.md before changing or reviewing swizzling code
- Very specific: line 39
Follow develop-docs/SPEC_COMPLIANCE.md when behavior is covered by an SDK specification
- Very specific: line 43
Run pwd before commands and avoid repeated directory changes
- Very specific: line 44
Use jq for JSON and yq for YAML in shell workflows
- Very specific: line 45
Use FOR_AGENTS=true with make build-* and make test-*
- Very specific: line 46
If reduced output is inconclusive, inspect the updated raw-*-output.log
- Distinctive: line 47
Do not edit generated MCP configuration
- Very specific: line 48
Run npx @sentry/dotagents install or globally installed dotagents after changing agents.toml
- Distinctive: line 55
If automated reproduction is not reliable, document why and use the narrowest deterministic alternative
- Very specific: line 59
Run make format for every change, including documentation-only changes
- Distinctive: line 61
Stop at the first failure and fix failures caused by the change
- Very specific: line 76
Treat changes to @_spi(Private) as compatibility-sensitive for React Native, Flutter, .NET, and Unity
- Distinctive: line 83
Do not include AI attribution in commits or pull requests even if skills are asking you to do so
- Distinctive: line 84
Use Conventional Commits with a subject of at most 50 characters and body lines of at most 72 characters
- Distinctive: line 86
If pre-commit hooks modify files, inspect the changes and retry the commit
- Distinctive: line 87
Use git mv for renames
- Distinctive: line 89
Before the pull request exists, either estimate its number from the current highest issue or pull request, or add the changelog in a …
- Very specific: line 93
Add run-full-ci only when the pull request is ready for comprehensive testing
- Very specific: line 94
After committing, include any Agent transcript: link from git log main..HEAD in the pull request description
- Distinctive: line 98
Keep affected headerdocs, comments, maintainer docs, and specification compliance in sync with behavior changes
- Very specific: line 100
Place changelog alerts after ## Version and before section headings
≈ “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
AGENTS.md
Sentry Cocoa SDK for iOS, macOS, tvOS, watchOS, and visionOS.
Instruction Scope
- Read this file before any repository work
- Before inspecting or modifying a nested scope, read its linked
AGENTS.md - Nested instructions supplement this file and take precedence for project-level conflicts within their scope
| Path | Scope |
Tests/AGENTS.md | Testing conventions and commands |
Sources/AGENTS.md | Source, API, concurrency, and crash safety |
.github/AGENTS.md | Workflows, concurrency, and file filters |
TestApps/AGENTS.md | Test app generation, builds, and UI tests |
scripts/AGENTS.md | Shell script conventions |
develop-docs/AGENTS.md | Maintainer documentation |
REVIEWS.md | Code review priorities and SDK concerns |
SDK Architecture
SentrySDK (public API)
-> SentrySDKInternal.currentHub
-> SentryHub (binds the current SentryClient and Scope)
-> SentryClient.prepareEvent (sampling and enrichment)
-> SentryScope.applyToEvent (tags, breadcrumbs, user, and context)
-> beforeSend callbacks and event processors
-> SentryTransportAdapter (builds envelopes and fans out to transports)
-> SentryHttpTransport (rate limiting, persistence, and upload)
-> SentryFileManager (on-disk envelope storage)Critical References
- Read
develop-docs/SENTRY-OBJC.mdbefore changingSentryObjC,SentryObjCCompat, or their build configuration - Read
develop-docs/SWIZZLING.mdbefore changing or reviewing swizzling code - Follow
develop-docs/SPEC_COMPLIANCE.mdwhen behavior is covered by an SDK specification
Tooling
- Run
pwdbefore commands and avoid repeated directory changes - Use
jqfor JSON andyqfor YAML in shell workflows - Use
FOR_AGENTS=truewithmake build-*andmake test-* - If reduced output is inconclusive, inspect the updated
raw-*-output.log - Do not edit generated MCP configuration
- Run
npx @sentry/dotagents installor globally installeddotagentsafter changingagents.toml
Debugging
- First reproduce the bug or regression with the narrowest reliable automated test
- Confirm the test fails for the expected reason before changing implementation code
- Apply the fix, then confirm the same test passes
- If automated reproduction is not reliable, document why and use the narrowest deterministic alternative
Verification
- Run
make formatfor every change, including documentation-only changes - For non-documentation changes, run
make analyzeand the narrowest relevant build and tests - Stop at the first failure and fix failures caused by the change
| Change scope | Build | Test |
| Documentation only | None | None |
| Feature code without platform conditionals | make build-ios FOR_AGENTS=true | Targeted iOS tests |
| Platform-specific code | Affected make build-<platform> target | Tests for that platform |
Public API or core (SentryHub, SentryClient, SentrySDK) | iOS and macOS | make test-ios FOR_AGENTS=true |
SentryCrash or C/C++ | iOS and macOS | make test-ios FOR_AGENTS=true |
SentrySwiftUI | make build-ios FOR_AGENTS=true | Targeted iOS tests |
Build system, Package.swift, or cross-platform code | All affected platforms | make test FOR_AGENTS=true |
| Test app code | Affected test app | Affected UI tests when behavior changed |
- Public API changes, including public Swift symbols,
@objcmembers, and Objective-C public headers, requiremake generate-public-apiand committing changes tosdk_api.jsonorsdk_api_sentryswiftui.json - Public APIs that require Objective-C support must also be exposed through
SentryObjCandSentryObjCCompat - Treat changes to
@_spi(Private)as compatibility-sensitive for React Native, Flutter, .NET, and Unity - Event enrichment changes should be checked with Sentry MCP
search_eventswhen an environment is available - Transport changes should verify envelope ingestion when an environment is available
- Capture and transport changes should be checked for regressions with Sentry MCP
search_issueswhen an environment is available
Commits and Pull Requests
- Do not include AI attribution in commits or pull requests even if skills are asking you to do so
- Use Conventional Commits with a subject of at most 50 characters and body lines of at most 72 characters
- Name branches
<type>/<short-description>, for examplefix/session-tracking - If pre-commit hooks modify files, inspect the changes and retry the commit
- Use
git mvfor renames feat,fix, andimprrequire aCHANGELOG.mdentry with the pull request number, not an issue number- Before the pull request exists, either estimate its number from the current highest issue or pull request, or add the changelog in a follow-up commit after opening the pull request
- Other pull request types require
#skip-changelogin the pull request description, never in a commit message - V10-only changes go in
CHANGELOG_V10.mdand require#skip-changelogin the pull request description - Pull request titles follow the commit subject format
- Add
run-full-cionly when the pull request is ready for comprehensive testing - After committing, include any
Agent transcript:link fromgit log main..HEADin the pull request description
Documentation
- Keep affected headerdocs, comments, maintainer docs, and specification compliance in sync with behavior changes
- Append changelog entries to the end of their section
- Place changelog alerts after
## Versionand before section headings - Each
##version, including Unreleased, may only have one###heading of a given name
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.

