agentleFS
SentryKnown publishergetsentry/sentry-cocoa/AGENTS.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the getsentry/sentry-cocoa repository that our weekly crawl found: only 13 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about getsentry/sentry-cocoa

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

8 more on GitHub

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
  1. Distinctive:

    Read this file before any repository work

    line 7
  2. Distinctive:

    Before inspecting or modifying a nested scope, read its linked AGENTS.md

    line 8
  3. Very specific:

    Read develop-docs/SENTRY-OBJC.md before changing SentryObjC, SentryObjCCompat, or their build configuration

    line 37
  4. Very specific:

    Read develop-docs/SWIZZLING.md before changing or reviewing swizzling code

    line 38
  5. Very specific:

    Follow develop-docs/SPEC_COMPLIANCE.md when behavior is covered by an SDK specification

    line 39
  6. Very specific:

    Run pwd before commands and avoid repeated directory changes

    line 43
  7. Very specific:

    Use jq for JSON and yq for YAML in shell workflows

    line 44
  8. Very specific:

    Use FOR_AGENTS=true with make build-* and make test-*

    line 45
  9. Very specific:

    If reduced output is inconclusive, inspect the updated raw-*-output.log

    line 46
  10. Distinctive:

    Do not edit generated MCP configuration

    line 47
  11. Very specific:

    Run npx @sentry/dotagents install or globally installed dotagents after changing agents.toml

    line 48
  12. Distinctive:

    If automated reproduction is not reliable, document why and use the narrowest deterministic alternative

    line 55
  13. Very specific:

    Run make format for every change, including documentation-only changes

    line 59
  14. Distinctive:

    Stop at the first failure and fix failures caused by the change

    line 61
  15. Very specific:

    Treat changes to @_spi(Private) as compatibility-sensitive for React Native, Flutter, .NET, and Unity

    line 76
  16. Distinctive:

    Do not include AI attribution in commits or pull requests even if skills are asking you to do so

    line 83
  17. Distinctive:

    Use Conventional Commits with a subject of at most 50 characters and body lines of at most 72 characters

    line 84
  18. Distinctive:

    If pre-commit hooks modify files, inspect the changes and retry the commit

    line 86
  19. Distinctive:

    Use git mv for renames

    line 87
  20. Distinctive:

    Before the pull request exists, either estimate its number from the current highest issue or pull request, or add the changelog in a …

    line 89
  21. Very specific:

    Add run-full-ci only when the pull request is ready for comprehensive testing

    line 93
  22. Very specific:

    After committing, include any Agent transcript: link from git log main..HEAD in the pull request description

    line 94
  23. Distinctive:

    Keep affected headerdocs, comments, maintainer docs, and specification compliance in sync with behavior changes

    line 98
  24. Very specific:

    Place changelog alerts after ## Version and before section headings

    line 100

≈ “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

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
PathScope
Tests/AGENTS.mdTesting conventions and commands
Sources/AGENTS.mdSource, API, concurrency, and crash safety
.github/AGENTS.mdWorkflows, concurrency, and file filters
TestApps/AGENTS.mdTest app generation, builds, and UI tests
scripts/AGENTS.mdShell script conventions
develop-docs/AGENTS.mdMaintainer documentation
REVIEWS.mdCode 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.md before changing SentryObjC, SentryObjCCompat, or their build configuration
  • Read develop-docs/SWIZZLING.md before changing or reviewing swizzling code
  • Follow develop-docs/SPEC_COMPLIANCE.md when behavior is covered by an SDK specification

Tooling

  • Run pwd before commands and avoid repeated directory changes
  • Use jq for JSON and yq for YAML in shell workflows
  • Use FOR_AGENTS=true with make build-* and make test-*
  • If reduced output is inconclusive, inspect the updated raw-*-output.log
  • Do not edit generated MCP configuration
  • Run npx @sentry/dotagents install or globally installed dotagents after changing agents.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 format for every change, including documentation-only changes
  • For non-documentation changes, run make analyze and the narrowest relevant build and tests
  • Stop at the first failure and fix failures caused by the change
Change scopeBuildTest
Documentation onlyNoneNone
Feature code without platform conditionalsmake build-ios FOR_AGENTS=trueTargeted iOS tests
Platform-specific codeAffected make build-<platform> targetTests for that platform
Public API or core (SentryHub, SentryClient, SentrySDK)iOS and macOSmake test-ios FOR_AGENTS=true
SentryCrash or C/C++iOS and macOSmake test-ios FOR_AGENTS=true
SentrySwiftUImake build-ios FOR_AGENTS=trueTargeted iOS tests
Build system, Package.swift, or cross-platform codeAll affected platformsmake test FOR_AGENTS=true
Test app codeAffected test appAffected UI tests when behavior changed
  • Public API changes, including public Swift symbols, @objc members, and Objective-C public headers, require make generate-public-api and committing changes to sdk_api.json or sdk_api_sentryswiftui.json
  • Public APIs that require Objective-C support must also be exposed through SentryObjC and SentryObjCCompat
  • 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_events when 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_issues when 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 example fix/session-tracking
  • If pre-commit hooks modify files, inspect the changes and retry the commit
  • Use git mv for renames
  • feat, fix, and impr require a CHANGELOG.md entry 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-changelog in the pull request description, never in a commit message
  • V10-only changes go in CHANGELOG_V10.md and require #skip-changelog in the pull request description
  • Pull request titles follow the commit subject format
  • Add run-full-ci only when the pull request is ready for comprehensive testing
  • After committing, include any Agent transcript: link from git log main..HEAD in 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 ## Version and before section headings
  • Each ## version, including Unreleased, may only have one ### heading of a given name

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.