Improve organic agent behavior when setting up Sentry
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, typescript
- Lĩnh vực
- ai, developer-experience, documentation
Hướng nghiên cứu
This is open design research, not a bounded change. Start with packages/cli/src/lib/detect-agent.ts and packages/cli/src/lib/agent-skills.ts to see how agents are detected and skills installed, then review the llms.txt agent-instructions block and the platform Markdown pages the issue names. Done means a written map of where agents get Sentry information, measured against the benchmark, with recommended steering surfaces checked against the no-growth-hacks guardrail.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When a developer asks a coding agent with no Sentry tooling installed to "set up Sentry", the agent mostly works Sentry out from first principles. It doesn't find or use the CLI, MCP, or skills. This issue covers the organic path: what agents actually do today, what pushes them toward the right setup (CLI-first, current SDK, the right features), and how we'll measure it.
Direction
- The remote-agent implementation of
sentry init(e.g. "set up my GitHub repo with Sentry") is being deprioritized. It is the only hard requirement for a remote agent, as opposed to assuming people already have their own coding agent, and its ROI is low by comparison. - This does not change the onboarding goal. The CLI is still the intended onboarding mechanism, and the CLI + MCP unification (#1357, getsentry/cli#1248) is the main bet.
- Open questions: do we bundle skills, do we need skills at all, is this a docs improvement, should docs be colocated (shipped with packages) or remote?
- Guardrail: help people adopt technology they want but don't yet understand. Don't push technology we want them to want (no growth hacks). Any steering toward CLI, MCP, or extra features has to hold up against this.
Observed organic behavior (one internal sample, 2026-10-14)
- Prompt: "set up Sentry for my web game" (browser JS), Opus 5.5, no plugin installed.
- Result: it worked, but only errors and tracing were set up. The CLI wasn't installed, MCP wasn't configured, and no plugin was installed.
- It picked an older SDK because v11 "looked sus". npm context at that time:
11.0.0shipped 2026-09-23 andlatestis11.7.0(2026-10-12). Thev10line was still publishing (10.76.2, 2026-10-08), and thenextdist-tag still points at11.0.0-rc.1. The agent's actual reasoning is unknown. - Sources it used, per its own session summary: the npm registry (
@sentry/browserversions and release dates) and the Sentry CDN (bundle names, integrity hashes). It did not read docs.sentry.io and ran no web searches. - The
@sentry/browsernpm README (about 1.1 KB) contains only two docs links. It has no agent guidance and doesn't point to the CLI, MCP, or skills. One idea from the discussion: since agents look at the registry first, registry-side instructions could steer them. - A second data point: asked how it would add Sentry, Claude described the ideal flow. It would inspect the project, fetch the official framework docs (preferring
llms.txtor Markdown), use non-interactivenpx @sentry/wizardflags or set things up by hand (interactive prompts often fail in agent shells), ask for the DSN, slugs, and token, and verify. The observed run skipped docs entirely, so what an agent says it will do is not a reliable proxy for what it does. - The same answer said type definitions (
.d.ts) are what it reads most in packages when writing config. JSDoc on each option (purpose, default, deprecation) could be high-leverage agent documentation that needs no new convention.
What we already have (verified 2026-10-14)
- Idea from the discussion: serve different content to agents on the docs site when we can detect them. Partly in place already:
- docs.sentry.io returns Markdown for
Accept: text/markdownand for.mdURLs, and it also returns Markdown for aClaude-UserUA. A bareaxios/*UA with no Accept header gets HTML.
- docs.sentry.io returns Markdown for
docs.sentry.io/llms.txthas an "Instructions for AI Coding Assistants" block. It tells agents to installnpx @sentry/agent-plugin installand useskills.sentry.dev/instrumentandmcp.sentry.dev. It does not mention thesentryCLI, which conflicts with the CLI-first direction.- The platform getting-started Markdown (e.g.
/platforms/javascript.md) doesn't mention the CLI, MCP, or skills. - The CLI already detects agents through env vars and the process tree (
packages/cli/src/lib/detect-agent.ts, adapted fromvercel/detect-agent). It uses this forcli setup, the init wizard, and telemetry, and it can install embedded skills (packages/cli/src/lib/agent-skills.ts). - Benchmark: Value Discovery aims to swap harness, model, plugin, and repo and score tasks like "set up Sentry". It must work without the plugin, so the same prompt can be compared across models with or without any Sentry tooling. Related: #1383 (run init evals on CI).
Industry learnings
- Detecting agents on the web:
- The
Acceptheader is the most reliable signal so far. As of Feb 2026, Claude Code, Cursor, and OpenCode sendtext/markdown. Codex (ChatGPT-UserUA), Gemini CLI (GoogleAgent-URLContext), Copilot, and Windsurf don't. User-Agent is inconsistent: Claude Code sendsaxios/*, and Cursor and OpenCode send a Chrome UA. (Checkly) - Cloudflare converts HTML to Markdown at the edge when the request asks for Markdown. It reports about 80% fewer tokens and adds
x-markdown-tokensandcontent-signalheaders. Vercel and Checkly report 99%+ reductions. (Cloudflare, Vercel) - Cryptographic identity is emerging: Web Bot Auth (HTTP message signatures) and Cloudflare's verified/signed-agent classification, which includes a "user-directed agent" category. (Cloudflare)
- The
- Detecting agents locally: the
vercel/detect-agentrules (env vars likeCLAUDECODE,CURSOR_AGENT,AI_AGENT) are becoming the shared registry. Next.js uses detection innext devto write managedAGENTS.mdblocks. - Always-on context vs. on-demand skills:
- Vercel found an 8 KB docs index in
AGENTS.mdscored 100% on Next.js 16 evals. Skills scored 53%, the same as no docs, because they weren't invoked in 56% of runs. Explicit "use the skill" instructions raised skills to 79%, but results were sensitive to wording. (Vercel) - OpenAI likewise treats skill triggering as something to eval, not assume: the skill's name and description drive invocation. (OpenAI)
- Vercel found an 8 KB docs index in
- Colocated, version-matched docs (Next.js 16.2+):
- Next.js ships docs in
node_modules/next/dist/docs/and writes a managedAGENTS.mdblock ("This is NOT the Next.js you know… read the bundled docs") when it detects an agent. - It also offers per-page
.mdandllms.txt, agent-readable error pages linked from CLI output,next upgrade --agent, and opt-in agent feedback. - Skills are reserved for multi-step workflows, not knowledge lookups. (Next.js, evals)
- Next.js ships docs in
- Agent-specific onboarding pages: Cloudflare docs link an "Agent setup" page from every page, with per-agent guides for Claude Code, Codex, Cursor, Copilot, and OpenCode covering skills and MCP. (Cloudflare)
Scope
- Map where agents actually get Sentry information in organic runs (package registries, READMEs, type definitions, CDN, docs, llms.txt, CLI output), using the benchmark rather than single samples or self-reports.
- Measure whether agents pick the current SDK, enable appropriate features, discover or install the CLI, and use CLI and MCP afterward.
- Evaluate the steering surfaces: package READMEs and registry metadata, JSDoc in type definitions, docs and
llms.txtwording, CLI output when an agent is detected, colocated docs vs. remote docs vs. skills. Check each against the no-growth-hacks guardrail. - Make agent-facing guidance consistent with the CLI-first direction (for example, the
llms.txtplugin-first wording).
Unknowns
- Why the agent distrusted v11. Candidates are release cadence, the parallel
v10publishes, the stalenexttag, or training-data priors. - How representative one Opus sample is across other harnesses and models.
- Whether skills earn their place for setup at all, given the trigger-rate findings above.
via David Cramer.
--
- Ngôn ngữ chính
- TypeScript
- Star
- 938
- Fork
- 166
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 156
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/toolkit
-
bug MCP
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/toolkit#1600 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getsentry/toolkit#1471 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
getsentry/toolkit#1611 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement MCP
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 55/100
getsentry/toolkit#1601 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Use typed detector schemas from @sentry/api for metric monitorsCó thể đã có người làm @MathurAditya724 đã nhận 1 ngày trước. Đang mở
getsentry/toolkit#1595 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/toolkit
Issue tương tự
-
[Feature]: 建议导入源后,自动切换到新导入的源Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
lyswhut/lx-music-desktop#3026 ·
-
area: ci type: test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
schlessera/brain-kit#2769 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Read a vector index's quantization back on Neo4j 2026.10, which reports vector.quantization.typeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
liberation-data/drivine#231 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
alveusgg/alveusgg#2502 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày