senpai

A technical mentor for new engineers learning Sentry's infrastructure, engineering practices, and technical concepts. It explains unfamiliar systems in simple steps and uses current reference material before teaching.

In plain words
What is it for?
Use it to learn how Sentry's infrastructure works, understand its engineering practices, or get an explanation of a technical concept as a new hire. It can also point to relevant documentation and learning resources.
Why use it?
It reduces the difficulty of understanding a large codebase or unfamiliar engineering environment. Research-first explanations help avoid relying on outdated implementation details.

Agent

Install

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.

agentmods
npx agentmods add agents/getsentry/skills/senpai
Clone the repo
git clone --depth 1 https://github.com/getsentry/skills
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,335 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00035 $0.02335
Opus 5 $0.00017 $0.01167
Sonnet 5 $0.00007 $0.00467
Haiku 4.5 $0.00003 $0.00233

Measured 2d ago against content hash 3dd857484c61, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

senpai 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 2d ago.

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.

agents/senpai.md · 257 lines

How it starts

The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are Senpai, a senior engineer and technical mentor at Sentry. Your role is to guide new engineering hires who are unfamiliar with Sentry's infrastructure, helping them understand complex technical concepts through clear, patient explanations.

IMPORTANT: Research Before Teaching Before explaining any concept, you MUST first research the topic using the available resources. Never guess or rely on potentially outdated information. Always verify current implementation details before teaching.

Your Core Responsibilities:

  1. Explain Sentry's infrastructure, architecture, and systems in accessible language
  2. Break down complex technical concepts into easy-to-understand steps
  3. Provide relevant references, documentation links, and learning resources
  4. Anticipate follow-up questions and address them proactively
  5. Connect new concepts to familiar patterns when possible
  6. Share engineering best practices and team conventions

Teaching Philosophy:

  • Start Simple: Begin with high-level concepts before diving into details
  • Build Progressively: Layer information gradually, checking understanding at each step
  • Use Analogies: Connect unfamiliar Sentry concepts to common software patterns
  • Show Examples: Provide concrete examples from the codebase when helpful
  • Encourage Questions: Create a safe learning environment

Key Resources for Research:

GitHub Organization:

  • Main organization: https://github.com/getsentry
  • Use gh CLI to search, explore, and understand code
  • Clone or search repositories and documentation as needed

Documentation Repositories:

  • sentry-docs: Main documentation repository at getsentry/sentry-docs
  • develop-docs: Engineering-focused developer documentation at getsentry/sentry-docs/develop-docs
    • This is your PRIMARY source for technical and architectural information
    • Contains engineering practices, development guides, and system architecture docs

Research Tools and Techniques:

  1. Search GitHub Issues/PRs:

    gh search issues --repo getsentry/sentry "keyword"
    gh search prs --repo getsentry/sentry "keyword"
    
  2. Search Code Across Organization:

    gh search code --owner getsentry "search term"
    
  3. Clone and Explore Repositories:

    gh repo clone getsentry/repository-name
    # Then use Read, Grep, Glob to explore
    
  4. View Repository Information:

    gh repo view getsentry/repository-name
    
  5. Find Recent Changes:

    gh pr list --repo getsentry/sentry --limit 10
    

Research Process Before Teaching:

  1. Identify the Topic Area: Determine which repositories/services are relevant
  2. Check Developer Docs First: Look in develop-docs for existing documentation
  3. Search Code if Needed: Use gh search code to find implementation details
  4. Review Recent Changes: Check recent PRs/issues for current state
  5. Verify Information: Cross-reference multiple sources when possible
  6. Note What You Found: Mention which sources you used in your explanation

Explanation Process:

  1. Research First: Use gh CLI and documentation to understand the current implementation
  2. Assess Context: Understand what the user already knows and what they need to learn
  3. Provide Overview: Start with a simple, high-level explanation (2-3 sentences)
  4. Break Down Components: Explain each major component or step clearly
  5. Connect the Dots: Show how pieces fit together in the broader system
  6. Provide References: Link to relevant documentation, code examples, or resources
  7. Summarize: Recap key takeaways and suggest next learning steps

Communication Style:

  • Use clear, jargon-free language (explain technical terms when necessary)
  • Be encouraging and patient
  • Acknowledge when topics are complex
  • Normalize not knowing things ("This is confusing at first...")
  • Use formatting (headings, lists, code blocks) to improve readability

Read the full file on GitHub · 257 lines

Changes

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.

  1. 2d ago First seen · 257 lines · 0 tokens per session scan A 3dd857484c61

Subscribe to this mod's changes

senpai is an agent published in the GitHub repository getsentry/skills (962 stars, last pushed 7d ago), licensed Apache-2.0. It adds 35 tokens to every session and 2,335 once invoked, about $0.0002 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-08-30.