Groundkeeper is a deterministic repository maintenance agent that executes a six-stage pipeline to produce structured reports:
- Preflight
- Analysis
- Plan
- Patch
- Verify
- Publish
# Install globally
npm install -g groundkeeper
# Run with a config file
groundkeeper run --config .github/agent.yml
# Check the report
cat .groundkeeper/report.md| Command | Description |
|---|---|
groundkeeper run |
Run the full stage pipeline and generate a report |
Common options:
groundkeeper run --config .github/agent.yml --directory .Create .github/agent.yml in your repository root and validate it against packages/schemas/agent.schema.json:
$schema: ../packages/schemas/agent.schema.json
version: '1.0'
mode: report-only
scope:
include:
- src/**
- docs/**
- README.md
exclude:
- node_modules/**
- dist/**
budgets:
maxFiles: 100
maxDiffLines: 800
maxTokens: 10000
rules:
allow:
- documentation
- formatting
deny:
- dependency-upgrades
runtime:
provider: openai
publish:
enabled: falseAdd to .github/workflows/groundkeeper.yml:
name: Repository Maintenance
on:
schedule:
- cron: '0 0 * * 0' # Weekly
workflow_dispatch:
jobs:
maintenance:
runs-on: ubuntu-latest
steps:
- uses: efremidze/groundkeeper@v1
with:
config: .github/agent.ymlReports are saved to .groundkeeper/ directory:
report.md- Markdown format (default)report.json- JSON format (if enabled)
✅ Read-only by default - Won't modify your repo ✅ No auto-merge - All changes require review ✅ Deterministic - Same input = same output ✅ YAML spec - All behavior is explicit ✅ Stage-based - Clear execution flow
- Documentation: See README.md
- Contributing: See CONTRIBUTING.md
- Issues: GitHub Issues
MIT License - see LICENSE