Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/getsentry/sentry-java/e2e_testsgit clone --depth 1 https://github.com/getsentry/sentry-javaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/getsentry/sentry-java/e2e_tests)<a href="https://agentmods.dev/rules/getsentry/sentry-java/e2e_tests"><img src="https://agentmods.dev/badge/rules/getsentry/sentry-java/e2e_tests.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00006 | $0.00413 |
| Opus 5 | $0.00003 | $0.00206 |
| Sonnet 5 | $0.00001 | $0.00083 |
| Haiku 4.5 | $0.00001 | $0.00041 |
Grade A, and why
e2e_tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Java SDK End to End Tests (System Tests)
The samples in the sentry-samples directory are used to run end to end tests against them.
There is a python script (system-test-runner.py) that can be used to run one (using --module SAMPLE_NAME) or all (using --all) system tests.
The script has an interactive mode (-i) which allows selection of test setups to execute, whether to run the tests or just prepare infrastructure for testing from IDE.
The tests run a mock Sentry server via system-test-sentry-server.py. Any system under test will then have a DSN set that reflects this local mock server like http://502f25099c204a2fbf4cb16edc5975d1@localhost:8000/0.
By using this local DSN, the system under test sends events to the local mock server.
The tests can then use TestHelper to assert envelopes that were received by the mock server.
TestHelper uses HTTP requests to retrieve the JSON payload of the received events and deserialize them back to objects for easier assertion.
Tests can then assert events, transactions, logs etc. similar to how they would appear in beforeSend and similar callbacks.
TestHelper has a lot of helper methods for asserting, e.g. by span name, log body etc.
The end to end tests either expect the system under test to either be running on a server or call java -jar to execute a CLI system under test.
For Spring Boot, we spin up the Spring Boot server. The tests then send requests to that server and assert what is sent to Sentry.
End to end tests are also executed on CI using a matrix build, as defined in .github/workflows/system-tests-backend.yml.
Some of the samples are tested in multiple ways, e.g. with OpenTelemetry Agent auto init turned on and off.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 29 lines · 6 tokens per session scan A c73faa80e7db
e2e_tests is a cursor rule published in the GitHub repository getsentry/sentry-java (1,349 stars, last pushed today), licensed MIT. It adds 6 tokens to every session and 413 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other cursor rules, from other repositories
backend-java-ruoyi-conventions
YiSmartCloud backend Java RuoYi conventions.
component-parameter-key-no-dot
@ComponentParameter 的 key 禁止包含 ".",统一使用下划线 / 顶层扁平命名.
com-example-service-PublicPaymentController
AI rules for com.example.service.PublicPaymentController.
java-springboot-jpa-cursorrules-prompt-file
description: "Cursor rules for Java development with Springboot and JPA integration." globs: / alwaysApply: false.
commit-sponsors
Every git commit message must acknowledge BetterDesk supporters.
security-threat-and-stability
Maximum security scrutiny on issues/PRs and stability-first code changes.