OSS Scout
An agent that prepares open-source fixes every night, and can't post a thing without my tap.
Personal project, in daily use · Sep to Oct 2026
Results
- 1Write paths to GitHubact.yml, started only by a tap
- ≈278Testspytest and Node tests, counted Oct 2026
- 37Guard hook testsevery GitHub write blocked
- 9 PM scan
- then drafts
- 8 AM email
- you tap
Switch open. A drafted fix is waiting for your tap.
Run log (6 events)
Why
Maintainers are drowning in low-effort, machine-generated pull requests. The answer isn't to generate more of them faster. OSS Scout automates the tedious parts (search, triage, reading unfamiliar code) and leaves the trust-building parts to a person: deciding, reading the change, defending it in review, following through. Nothing is posted without my one tap, because someone looked at the change and stands behind it.
What I built
- Least privilege by construction: a Claude Code guard hook with 37 tests blocks every GitHub write from the unattended agent, and the only write token lives in a private repo's secrets where the agent never runs.
- A nightly scan in plain Python ranks issues by how each project treats outside contributors, scored from its last 300 closed outside PRs: merge rate, time to merge, time to first maintainer reply.
- A Claude cloud routine prepares at most one tested draft fix a night, plus up to two briefings, for a private dashboard behind Cloudflare Access, with an 8 am email.
- Treats text from strangers as data: the dashboard escapes and sanitises it, and the Worker re-validates the Access token, rejects cross-site requests, and accepts only a fixed list of actions.
Built with
Python, GitHub Actions, Claude Code hooks, Cloudflare Workers, Cloudflare Access, Resend, pytest
From the build
"""PreToolUse hook: the scout may read GitHub, never write to it."""
GH_WRITE_SUBCOMMANDS = {
"pr": {"create", "merge", "close", "comment", "review", ...},
"issue": {"create", "comment", "edit", "close", ...},
"repo": {"create", "fork", "delete", "edit", ...},
"release": None, "workflow": None, "secret": None, ...
}
def block(reason, advice=DEFAULT_ADVICE):
print(f"Blocked by oss-scout guard: {reason}. {advice}")
sys.exit(2) # exit 2 stops the tool callagent $ gh pr create
Blocked by oss-scout guard: `gh pr create` writes to GitHub. The scout never writes to GitHub; leave this for the human.