agentleFS
SentryKnown publishergetsentry/streams/sentry_streams_k8s/AGENTS.md

streams / sentry_streams_k8s

AGENTS.md5 starsChanged 7 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 checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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.

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

    Recommended: Use the repository root Makefile commands documented in ../AGENTS.md:

    line 22
  2. Distinctive:

    If working directly in the package directory without using the root Makefile:

    line 35
  3. Distinctive:

    When not using the root Makefile:

    line 46
  4. Very specific:

    Recommended: Use make reset from repository root.

    line 95
  5. Very specific:

    Always work within the virtual environment (.venv)

    line 101

≈ “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_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_streams directory.

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 code
  • tests/ - Python test suite

Quick Start

Recommended: Use the repository root Makefile commands documented in ../AGENTS.md:

  • make install-dev - Set up development environment
  • make tests-k8s - Run Python tests
  • make 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 sync

This 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_function

Type 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 --wheel

Wheels are created in dist/. Recommended: Use make build-streams-k8s from repository root.

Package-Specific Notes

Cleaning Build Artifacts

# Manual cleanup
rm -rf .venv

Recommended: 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

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.