repo-steward
An AI maintainer that runs your repository. You talk to it in Discord, it works your plans one pull request at a time, two models review each other, and CI decides what merges.
- You steer from your phone. Each request in the Discord channel gets its own thread and a card with Work on it, Done, check again and Dismiss. Replies in the thread continue the work.
- Your plans move while you sleep. Between requests it takes the next open step of your Kanso implementation plans, one session and one pull request per step, through
kanso-runner. - Nothing merges on one model's word. Claude Code writes and Codex reviews the exact commit against a JSON verdict schema, the other way round for the alerts Codex fixes. A rejected commit is dropped, and its reason goes back to the next session.
- CI decides. It squash-merges only a green pull request whose head commit was approved. A red one is closed, and its failed steps' logs feed the retry. Pull requests that touch your owner paths, such as
.github/ordeploy/, wait for your merge. - It respects your limits. A Claude or Codex usage limit pauses the sessions until the reset. Quiet windows hold merges and plan sessions while other jobs run.
- Optional: Bugsink alerts become cards it fixes, and server repairs run through
ops-gate: read verbs at once, destructive ones only after you press Approve.
Used in production by RetroSpeedLab
RetroSpeedLab is a game studio run by AI agents (suite). Its maintainer is repo-steward: it keeps the search, the stream, the website and the lakehouse running, fixes Bugsink alerts and works the suite's plans. Its real configuration is the worked example here: steward.yaml and the product brief brief.md.
owner → #maintainer: "The HUD clock is too small on the stream"
steward → opens a thread: 🔧 Working on it
Claude → commits the fix with a test on maintainer/2026-12-03T0910
steward → runs every check of AGENTS.md again, as the agent user
Codex → APPROVE: "the clock scales with the overlay and the test covers it"
steward → 🔀 Opened …/pull/412; once CI is green: 🔀 Merged
How it works
Discord ─┐ ┌─ Claude Code session as the agent user, with the shipped and your own skills
Bugsink ─┼─▶ inbox ─▶ one queue ─┤ │ commit + report
plans ─┘ │ │ ▼
│ └─ checks from your rules file ─▶ the other model's review ─▶ pull request
└─ every 2 minutes: CI green + approved head + no owner path + no quiet window ─▶ squash merge
repo-steward inboxis the long-running process: Discord, alerts, plans, cards and merges.repo-steward runis one scheduled session on the most important work, for a cron.repo-steward ask --message "…"is one session on a request.
Sessions run as a separate agent user through the deploy/sandbox wrappers, so the agent never sees the steward's tokens; the steward pushes the reviewed commit itself. deploy/Dockerfile builds that image.
Configure
One YAML file, passed with --config or REPO_STEWARD_CONFIG and validated once at start. Unknown keys and missing values stop the steward. ${NAME} reads an environment variable, so private ids stay in your vault:
repository:
name: your-org/your-repo
owner: your-github-login # its open issues with the label become instructions
issue_label: maintainer
branch_prefix: maintainer/
owner_paths: [.github/, deploy/, AGENTS.md]
rules: AGENTS.md # its "## Checks" section lists the commands every commit must pass
brief: docs/steward-brief.md # what the product is and what matters most, in your words
skills: null # or a folder of your product's own skills
git: {name: Your steward, email: steward@your-domain.example}
sessions: {model: opus, summary_model: haiku, minutes: 90, poll_seconds: 30, readable: []}
quiet: {starts: ["01:35"], minutes: 45}
backend: {url: https://api.your-domain.example, record_runs: false}
plans: {hold_url: null}
discord: {channel: "${DISCORD_CHANNEL_ID}", owner: "${DISCORD_OWNER_ID}"}
bugsink: null # or {url, team, server_projects}
ops: null # or {table: deploy/ops/verbs.toml}
Secrets come from the environment: GITHUB_TOKEN, DISCORD_BOT_TOKEN, BACKEND_API_KEY, CLAUDE_CODE_OAUTH_TOKEN, and BUGSINK_API_TOKEN with Bugsink. BUGSINK_DSN reports the steward's own errors. Codex signs in once inside the container with codex-as-agent login --device-auth.
Backend. Discord delivers button clicks to an HTTPS interactions endpoint, so the steward needs a small backend you host. Each call carries X-API-Key: $BACKEND_API_KEY:
| Call | Purpose |
|---|---|
GET /maintainer/actions?wait=20, DELETE /maintainer/actions/{id} |
the owner's clicks, recorded by your Discord interactions endpoint |
POST /maintainer/ops-proposals, GET /maintainer/ops-proposals/{id}/approval |
destructive steps the owner approves, signed with ops_gate.approval.sign_run |
PUT /maintainer/runs/{name} |
run statistics, only with record_runs: true |
GET <hold_url> answering {"paused": true} |
an optional switch that holds plan sessions back |
RetroSpeedLab's backend implements it in its suite, in src/retrospeedlab/backend/maintainer.
Claude Code plugin
The steward's generic skills (fix-a-bug, ci-triage, focused-tdd, systematic-debugging, ponytail-review, ops, owner-request and more) also work in your own Claude Code sessions:
/plugin install repo-steward --marketplace datenwissenschaften/repo-steward
Vendored skills keep their licences: superpowers (MIT, Jesse Vincent), ponytail (MIT, DietrichGebert) and caveman (Apache-2.0).
Development
uv sync && uv run ruff check && uv run mypy && uv run pytest
The acceptance scenarios in tests/features describe the configuration and the merge gate in plain language.
MIT © Dr. Franke Datenwissenschaften OÜ. Built by Dr. Franke Datenwissenschaften: AI agents and data platforms that run in production.
Metadata
Release files for repo-steward 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| repo_steward-0.1.0.tar.gz | 88.1 kB | With provenance | Details for repo_steward-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| repo_steward-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for repo_steward-0.1.0-py3-none-any.whl |
Total release size: 207.1 kB
Release files / repo_steward-0.1.0.tar.gz
| Download URL | repo_steward-0.1.0.tar.gz |
|---|---|
| Size | 88.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9863fd1afae9615fb2a2188035b3c885a5142f9833c6f0e369f73623f9a40786
|
|
BLAKE2b-256 checksum How to use checksums |
a2d73d375d678ec6eed61f3be624efffdbed981ef0faa27b237ec1624dff0d9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logRelease files / repo_steward-0.1.0-py3-none-any.whl
| Download URL | repo_steward-0.1.0-py3-none-any.whl |
|---|---|
| Size | 119.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1afa21966f90ed6a9f65e2ba639696ae9d4d154c4e10e799a9df339a48646949
|
|
BLAKE2b-256 checksum How to use checksums |
55d563d6c78648bcd5a0caad6c78964b25f3eb1c92728b52bf6576c617543063
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logSecurity for repo-steward 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for repo_steward-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.