streams / sentry_streams_k8s
AGENTS.md5 starsChanged 2 months agoApache-2.0View on GitHub
Note: For general repository setup, testing, and type checking commands, see ../AGENTS.md. This file contains package-specific details for working directly within the sentry_streams directory. sentry_streams_k8s package contains the automation and the infrastructure to deploy Sentry Streams in a Kubernetes environment. At the moment it targets Sentry production environment that is based on sentry-kube, though in the future we expect to have something more Sentry agnostic like Helm charts and a Kubernetes operator. Recommended: Use the repository root Makefile commands documented…
- Deletes or force-pushes
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 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 repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- sentry_streams/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sentry_streams/CLAUDE.mdCLAUDE.md
- sentry_streams_k8s/CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Recommended: Use the repository root Makefile commands documented in ../AGENTS.md:
- Distinctive: line 35
If working directly in the package directory without using the root Makefile:
- Distinctive: line 46
When not using the root Makefile:
- Very specific: line 95
Recommended: Use make reset from repository root.
- Very specific: line 101
Always work within the virtual environment (.venv)
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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_streams_k8s Package
Note: For general repository setup, testing, and type checking commands, see ../AGENTS.md. This file contains package-specific details for working directly within the
sentry_streamsdirectory.
Package Overview
sentry_streams_k8s package contains the automation and the infrastructure to deploy
Sentry Streams in a Kubernetes environment.
At the moment it targets Sentry production environment that is based on sentry-kube, though in the future we expect to have something more Sentry agnostic like Helm charts and a Kubernetes operator.
Package Structure
sentry_streams_k8s/- Python package source codetests/- Python test suite
Quick Start
Recommended: Use the repository root Makefile commands documented in ../AGENTS.md:
make install-dev- Set up development environmentmake tests-k8s- Run Python testsmake typecheck- Run type checking
Virtual Environment - REQUIRED
You MUST use a virtual environment when developing this package. The package uses a .venv directory managed by uv.
Package-Specific Development
Manual Setup (Alternative to make install-dev)
If working directly in the package directory without using the root Makefile:
cd sentry_streams_k8s
uv syncThis creates .venv/ and installs all dependencies including development tools.
Running Tests from Package Directory
When not using the root Makefile:
# All tests
.venv/bin/pytest -vv tests/
# Specific test
.venv/bin/pytest -vv tests/test_consumer.py::test_specific_functionType Checking from Package Directory
Manual type checking:
# Run mypy
.venv/bin/mypy --config-file mypy.ini --strict sentry_streams_k8s/Note: Using make typecheck from the repository root is recommended.
Type Checking Configuration
Type checking is configured in mypy.ini:
- Python version: 3.11
- Strict mode enabled
- Missing imports are flagged as errors
Building from Package Directory
Manual wheel building:
uv pip install wheel build
.venv/bin/python -m build --wheelWheels are created in dist/. Recommended: Use make build-streams-k8s from repository root.
Package-Specific Notes
Cleaning Build Artifacts
# Manual cleanup
rm -rf .venvRecommended: Use make reset from repository root.
Package Configuration
Important Package-Specific Notes
- Always work within the virtual environment (
.venv) - For general repository information and prerequisites, see ../AGENTS.md
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.

