AI-powered open source maintainer agent
Project description
RepoKeeper
AI-powered open source maintainer agent. Reads issues, writes code, opens PRs — 24/7.
# Label an issue agent-todo — RepoKeeper handles the rest
@repokeeper go
Zero config. GitHub-native. ~$0.01 per PR with DeepSeek.
Why RepoKeeper?
Open source maintenance is a second job you didn't sign up for. Existing tools help you write code faster — Copilot, Cursor, Codeium. But what about everything else? Triaging issues, bumping dependencies, diagnosing CI, responding to the community?
Copilot helps you write code. RepoKeeper runs your repo while you sleep.
| Copilot / Cursor | RepoKeeper | |
|---|---|---|
| What it does | Suggests code as you type | Maintains your repo autonomously |
| How | Inline completion in editor | Reads issues + codebase → opens PRs |
| When | While you code | 24/7 on schedule |
| Community | No | Monitors, classifies, responds |
| Dependencies | No | Scans for outdated deps, reports upgrade candidates |
| CI | No | Diagnoses failures, suggests fixes |
| Cost | $10–39/month subscription | Estimated per-run token cost with your model/provider |
| Config | IDE settings | One YAML (or zero) |
What It Does
- 🔭 Community Radar — Monitors GitHub issues and discussions for keywords. AI classifies hits as bugs, feature requests, or noise. Auto-creates issues with deduplication and RepoKeeper branding, linking back to original discussions. Notifies you via email, Telegram, or WeChat.
- 🔍 Daily Patrol — Scans 8 ecosystems (pip, npm, Go, Cargo, Bundler, Composer, Maven, Gradle) for outdated deps. Diagnoses CI failures with real job/step data. Auto-fixes CI by opening repair PRs. Finds stale issues. Health score every weekday morning.
- 🤖 Implementation Agent — Reads your codebase + issue → implements → verifies (lint + tests) → pushes branch → opens PR. Streams LLM output in real-time. Estimates token cost. Supports DeepSeek, OpenAI, and Anthropic Claude models.
- 👤 Maintainer Profile — One YAML file describing your code style, tone, PR standards. Or skip it — defaults work.
Adopt in 60 Seconds
Three ways to onboard — pick one:
📋 Copy a workflow
Create .github/workflows/repokeeper.yml in your repo:
mkdir -p .github/workflows
curl -fsSLo .github/workflows/repokeeper.yml \
https://raw.githubusercontent.com/shenxianpeng/repokeeper/main/src/repokeeper/templates/workflows/repokeeper.yml
Or copy the content below:
name: RepoKeeper Implementation Agent
on:
issue_comment:
types: [created]
issues:
types: [labeled]
jobs:
repokeeper:
runs-on: ubuntu-latest
if: |
(
github.event_name == 'issue_comment' &&
!github.event.issue.pull_request &&
contains(github.event.comment.body, '@repokeeper go') &&
(
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'COLLABORATOR'
)
) ||
(
github.event_name == 'issues' &&
github.event.label.name == 'agent-todo'
)
permissions:
contents: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install RepoKeeper
run: pip install repokeeper
- name: Run RepoKeeper Agent
env:
PYTHONUNBUFFERED: 1
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
REPOKEEPER_GITHUB_TOKEN: ${{ secrets.REPOKEEPER_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
LLM_BASE_URL: ${{ secrets.LLM_BASE_URL || 'https://api.deepseek.com' }}
run: repokeeper agent --repo "$GITHUB_REPOSITORY" --issue "$ISSUE_NUMBER"
Then add your API key: Settings → Secrets → Actions → New secret: DEEPSEEK_API_KEY = sk-...
Before pushing, run the setup check:
repokeeper doctor --repo owner/repo
doctor verifies the profile, workflow triggers, workflow permissions, token
environment, LLM key, and repository slug. Fix anything marked missing, then
push the workflow.
Want Radar & Patrol too? Copy
radar.ymlandpatrol.ymlinto the same.github/workflows/folder.
🖥️ CLI
pip install repokeeper
repokeeper init --all-workflows # profile + all 3 workflows
repokeeper init --minimal # profile + agent workflow only
repokeeper doctor --repo owner/repo
🤖 Ask AI
Paste this into any AI coding agent (Copilot Chat, Claude Code, Cursor, Windsurf, pi, etc.):
Add RepoKeeper to this repository. Create
.github/workflows/repokeeper.ymlwith the Implementation Agent workflow fromgithub.com/shenxianpeng/repokeeper— trigger on issue comments (@repokeeper go) and labels (agent-todo). Usepip install repokeeperin the workflow. Then tell me to add aDEEPSEEK_API_KEYsecret in GitHub Actions settings.
Trigger the agent
Label any issue agent-todo — or comment @repokeeper go.
Install (optional CLI)
pip install repokeeper
repokeeper init # Create a profile
repokeeper init --minimal # Create a profile + agent workflow
repokeeper doctor --repo owner/repo
repokeeper radar --repo owner/repo
repokeeper patrol --repo owner/repo --summary
repokeeper agent --repo owner/repo --issue 42
Documentation
Full docs at shenxianpeng.github.io/repokeeper
| Guide | |
|---|---|
| Quick Start | 5-minute setup |
| Security | Permissions, tokens, and automation boundaries |
| Community Radar | Monitor your community |
| Daily Patrol | Automated health checks |
| Implementation Agent | AI-powered PRs |
| Maintainer Profile | Full config reference |
Contributing
Contributions are welcome, especially documentation examples, setup diagnostics, tests, and safety improvements. See CONTRIBUTING.md before opening a pull request.
Safety Model
RepoKeeper creates reviewable pull requests; it does not merge them for you.
The default workflow limits write access to branches, issue comments, and pull
requests, and the agent blocks edits under .github/workflows/. See the
Security guide before
enabling it on sensitive repositories.
License
MIT © Xianpeng Shen
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file repokeeper-0.10.0.tar.gz.
File metadata
- Download URL: repokeeper-0.10.0.tar.gz
- Upload date:
- Size: 72.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd604bd3e86a8f66ef9c71155376f1242844f2b00324599e4f43063f1858a583
|
|
| MD5 |
f2fc8c503a6c54fb02b8627f3d07d439
|
|
| BLAKE2b-256 |
44922871e80ec601637d12f9b36cb9da8bbbde0d748f1fb59a86e9abe5d6bc29
|
Provenance
The following attestation bundles were made for repokeeper-0.10.0.tar.gz:
Publisher:
release.yml on shenxianpeng/repokeeper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
repokeeper-0.10.0.tar.gz -
Subject digest:
cd604bd3e86a8f66ef9c71155376f1242844f2b00324599e4f43063f1858a583 - Sigstore transparency entry: 1453758485
- Sigstore integration time:
-
Permalink:
shenxianpeng/repokeeper@01a2a5fbd4b1c8e2015080d2513d418d100fd8c5 -
Branch / Tag:
refs/tags/v0.10.0 - Owner: https://github.com/shenxianpeng
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@01a2a5fbd4b1c8e2015080d2513d418d100fd8c5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file repokeeper-0.10.0-py3-none-any.whl.
File metadata
- Download URL: repokeeper-0.10.0-py3-none-any.whl
- Upload date:
- Size: 72.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d90ea1165eb77fc725488d885ed5ef2da4a9f1d33a35eb5d9e5e276a314141f3
|
|
| MD5 |
9aac279f199ef29b5c38e37af31202b7
|
|
| BLAKE2b-256 |
eb73a86df524f6cacb90dda04c45e81cbd9d0ad6b16dfe89845c7dc0c9887dd7
|
Provenance
The following attestation bundles were made for repokeeper-0.10.0-py3-none-any.whl:
Publisher:
release.yml on shenxianpeng/repokeeper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
repokeeper-0.10.0-py3-none-any.whl -
Subject digest:
d90ea1165eb77fc725488d885ed5ef2da4a9f1d33a35eb5d9e5e276a314141f3 - Sigstore transparency entry: 1453758613
- Sigstore integration time:
-
Permalink:
shenxianpeng/repokeeper@01a2a5fbd4b1c8e2015080d2513d418d100fd8c5 -
Branch / Tag:
refs/tags/v0.10.0 - Owner: https://github.com/shenxianpeng
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@01a2a5fbd4b1c8e2015080d2513d418d100fd8c5 -
Trigger Event:
push
-
Statement type: