A nightly scout for open source contributions that keeps a human in charge.
Every night it finds issues worth working on, measures how each project treats outside contributors, and prepares one contribution completely: a tested draft fix, the pull request text, and a plain-English explanation. In the morning you look at it on your phone, edit it if you want, and tap once. Nothing is ever posted without that tap.
Maintainers are drowning in low-effort, machine-generated pull requests. The answer isn't to generate more of them faster. It's to do the tedious parts (searching, triage, reading unfamiliar code) automatically and leave the parts that build trust with a real person: deciding what is worth sending, reading the change before it goes out, defending it in review, and following through. The tap is the point: a person looked at this and stands behind it.
| When (Pacific) | What | Where |
|---|---|---|
| about 9pm | Scan: finds and ranks issues, refreshes your PR and review history. No AI. | GitHub Actions in this repo (nightly.yml; GitHub often starts it hours late) |
| right after the scan | Routine: a Claude cloud routine prepares at most one ready item plus up to two briefings, and drafts replies to reviews waiting on you. | Claude routines, started by the scan |
| on demand | Run again starts an extra scan and routine. By default, one manual run is allowed per Pacific day, with a 60-minute wait after the nightly routine starts. | nightly.yml manual dispatch, with limits set in targets.toml |
| 8am | Email: what couldn't send, what's ready to send, today's new recommendations, and any maintainer reply. Each item carries a field tag (e.g. Embedded & firmware) with a one-line reason, a short "About the project", three plain lines (what's broken, what you'd send, what you do and how long), "What we'll do" in a few steps, and one button. Sent only when there is something to say. | Cloudflare Worker cron |
| Saturday 8am | Weekly email, "Worth doing on your laptop this week": the last week's briefings that need a laptop session, with the same three lines. Not sent when there are none. | Cloudflare Worker cron |
| whenever you tap | Act: does the GitHub write you approved, as you. | act.yml in the data repo, started by the Worker |
flowchart LR
S[scan<br/>plain Python] --> D[(private data repo<br/>oss-scout-data)]
D --> R[Claude routine<br/>drafts, never posts]
R --> D
D --> W[Worker<br/>me.aadityad.dev]
W --> P((you, on your phone))
P -->|one tap| W
W -->|starts| A[act.yml<br/>the only writer]
A -->|fork, PR, comment as you| GH[GitHub]
A --> D
- Open me.aadityad.dev (or tap the link in the 8am email). Sign in with Cloudflare Access if asked.
- Waiting on you comes first. A maintainer is waiting on a PR of yours; red means more than 48 hours.
- Small follow-up (a rename, a test, formatting): read the fix and the drafted reply, edit if you like, tap Push fix & reply.
- Discuss follow-up (they question the approach): read the talking points and take it to
/contributeon your laptop.
- Ready for you: read the summary, risks and diff, edit the title and description, then tap Submit PR (or Post comment for repro, triage and review items). You get one confirmation. The PR description keeps any AI-disclosure sentence the project requires; the page won't let you remove it.
- Later snoozes it for three days. Skip turns it down for good.
- The page shows the run's progress. When it says Done, tap Reload.
- Everything else (earlier suggestions, history, project stats) is under the tabs and optional.
A quiet morning is normal: zero ready items is a fine night.
When a send fails, the item stays on the page with a plain reason (the project changed the same files, your GitHub key needs a permission, someone else sent a fix, and so on), a "refresh by" date, and the email's first section says the same. If the project moved on, tap Refresh & send: a job with no secrets tries your saved change on the project's current code and runs its tests, and if it is still the same fix the PR goes out. If not, the Claude routine rebuilds that one item, and the PR goes out within about three hours only if the fix itself is unchanged; otherwise the card asks you to read the new diff. Past the refresh-by date, or after two failed refreshes, it becomes a briefing for your laptop and its slot is freed.
Run /contribute in a Claude Code session in this repo for the things that shouldn't be one tap:
- Pair projects (
mode: pair: DuckDB, llama.cpp and f3d allow AI-assisted code but want posts, replies and the PR body in your own words, and no autonomous agents). The scout does the root-causing and a fix plan, never a patch. In/contribute, Claude starts the build, explains the bug, writes the fix and test in small steps for you to steer, quizzes you with three questions, and gives you bullet facts. You write the claim comment and PR body. - Own projects (
mode: own: the project bans AI-written code). You write the code; Claude explains and reviews. - Discuss follow-ups: a reviewer asks why, and you want to think it through.
- Any suggestion you want to pair on instead of sending as prepared.
It loads the briefing, reuses one local clone per project, and prepares the commit and PR for you to approve and send under your own name.
- This repo (public): the scanner and tools (
scout/), the Claude guard hook (guard/), the routine's instructions (routine/PROMPT.md), the dashboard template (dashboard/), the Worker (worker/), andtargets.toml, where every setting lives. aadityad12/oss-scout-data(private):mainholds the routine's.claude/config andact.yml. Branchclaude/scout-dataholdsstate.json,briefings/<owner>__<repo>__<n>/(briefing,draft.patch,pr.json,post.md,followups/),picks/,digest.json,dashboard.htmlanddashboard.json(the same data for other programs, seedocs/dashboard-json.md).- me.aadityad.dev (private): a Cloudflare Worker behind Cloudflare Access. It serves
dashboard.htmland turns a tap into anact.ymlrun. - oss.aadityad.dev (public): your contributions only: merged and open PRs, projects, activity. No briefings, no research.
- Secrets in
oss-scout(public repo):DATA_REPO_TOKEN,ROUTINE_FIRE_URL,ROUTINE_TOKEN(already set). -
SUBMIT_TOKENinoss-scout-data(Settings, Secrets and variables, Actions): a classic personal access token with thepublic_reposcope, plusworkflowso it can send changes under.github/workflows/. Created on your account. It's the only place this token lives. The routine never sees it. A missingworkflowpermission is caught before anything is cloned and shown on the card. -
ROUTINE_FIRE_URLandROUTINE_TOKENinoss-scout-datatoo (the same two values as inoss-scout's secrets): Refresh & send uses them to start the routine for one item when the automatic check can't tell it is the same fix. Without them the rebuild waits for the next nightly run. - Rotate it every 90 days: make a new token, replace the secret, then set
[submit] token_rotatedintargets.tomlto today. The email and dashboard warn after 80 days. - Install the workflow: in a checkout of the data repo's default branch,
main, runSCOUT_DATA_DIR=<that checkout> python3 -m scout init-data, then commit and push.github/workflows/act.ymlalong with the.claude/files (workflow_dispatchonly finds workflows on the default branch). Re-run it after changingscout/datarepo.py. - Worker: follow
worker/README.md(Cloudflare Access app, a fine-grained token limited tooss-scout-data,npx wrangler deploy, two secrets, Resend). - DNS:
oss.aadityad.devCNAME toaadityad12.github.io(the public page), and a redirect rulescout.aadityad.devtooss.aadityad.dev.me.aadityad.devis created by the Worker deploy. - Routine model: in the routine's settings on claude.ai, set the model to Sonnet.
The routine runs unattended and reads text written by strangers, so it is boxed in.
- The routine can't write to GitHub.
guard/guard.pyis a Claude CodePreToolUsehook that blocks every GitHub write (gh pr/issue create|comment|review|merge,gh apiwith a write method or body,curlwrites, remote rewrites) and everygit pushexcept one branch of the private data repo. That cloud profile is unchanged. A stricter--profile agentfor a local agent (nogit pushat all, nosudo, nothing that reaches Holt's sockets or credential folders) and its install files are described inguard/README.md. Tests are intests/test_guard.py. Cloud sessions honor a repo's hooks only when the session has a single repository, so the routine opens only the data repo and clones this one read-only. - The only writer is
act.yml, and only your tap starts it: Cloudflare Access (your email only) guards the dashboard, the Worker checks the Access token again, rejects cross-site requests and accepts only a fixed list of actions. Its token,SUBMIT_TOKEN, exists only in the data repo's secrets. - Every action is re-checked before anything is written (
scout/act.py): the item exists and has the right status, the briefing still validates, pair and own projects (and the legacyguide, read aspair) and "no AI-written posts" projects are refused, the repo and branch names are sane, your open-PR limits still hold, and edited text has no AI markers and still has the required disclosure sentence.--dry-runshows what would happen. - No AI markers anywhere you post: no
Co-Authored-By, "Generated with", robot emoji or tool names in commits, PR text, comments or branch names. Commits use your name and your GitHub noreply address, with no trailers exceptSigned-off-bywhen a project requires DCO. - Disclosure is explicit. When a project requires it, exactly one plain sentence in your voice goes in the PR body; it is never ticked or filled any other way.
- Stranger text is data. The prompt treats issue text as data, and the dashboard escapes or sanitizes everything it shows.
The routine runs on Sonnet and does the triage, drafting and briefings itself.
- Opus only through the
root-cause-analystsubagent, at most once per pick, for hard picks, fixes that fail their tests, or deep root-causing in big C++ codebases. - Haiku through the
thread-summarizersubagent, for long issue threads. - The scanner and everything in
actuse no model at all.
- Scan (
python -m scout run, no LLM). Collects open, unassigned issues labelled beginner-friendly, help-wanted, bounty or confirmed-bug from a tiered list of large, company-backed projects (Zephyr, DuckDB, PyTorch, Envoy, Mbed TLS, ...), grouped by field, plus open search across GitHub at a lower weight, limited to organization-owned repos with 3,000+ stars. - Measure each project from its recent history: of the last 300 closed PRs by occasional outside contributors (from forks, by people with fewer than three recent PRs), the merge rate, median days to merge and median time to a maintainer's first reply. It also reads CONTRIBUTING and AI-policy files for AI rules (
draft,pairorown, see above) and CLA requirements. This becomes a 0-100 friendliness score. - Filter anything already claimed (linked open PRs, recent "I'll take this" comments, assignees, blocking labels). A linked PR nobody has touched in
stale_pr_days(90) is treated as abandoned: it doesn't block, and the briefing mentions it. - Skip issues already suggested, and for 60 days any the routine or you turned down.
- Rank by friendliness, freshness, label fit, language fit, project tier, project size, whether an organization runs it, and your history with the project. Each candidate gets a field hint (from its tier,
[repo_fields]or its GitHub topics); the routine makes the final call per issue and explains it in one plain sentence. The fields are listed inscout/fields.py. - Prepare. The routine picks, reproduces and drafts where it can, and writes the briefing and, for the ready item, the files
actuses. Work in flight is limited (max_open_prs,max_open_prs_per_repo, andmax_unsentprepared items, new or failed, waiting to be sent). - Track what you actually did, read from GitHub, never self-reported:
suggested → claimed → pr_open → waiting_on_you → merged; prepared items goready → approved → submitting → pr_open(orposted).
python3 -m scout doctor # check GitHub access
python3 -m scout run # scan -> data/candidates.json
python3 -m scout track # refresh contribution history only
python3 -m scout ingest # record new briefings as suggestions
python3 -m scout digest # write data/digest.json
python3 -m scout render # build data/dashboard.html
python3 -m scout render-public # build the public page
python3 -m scout init-data # install guard, settings and act.yml into the data dir
python3 -m scout act --key owner/repo#123 --action submit --dry-run # what a tap would do
python3 -m scout act --key owner/repo#123 --action refresh --dry-run # would a refresh be the same fix? (no tests run)
python3 -B -m scout check-text --title 'Fix crash' < body.txt # check title/body for AI markers, length and disclosure (offline)
python3 -m scout refresh-check --key owner/repo#123 --out /tmp/out # the workflow's no-secrets checkSCOUT_DATA_DIR points at the data directory (default ./data). Standard library only, Python 3.11+. Reads use gh api when the GitHub CLI is available and fall back to GH_TOKEN; REST only, because the cloud GitHub proxy blocks most GraphQL. Writes live only in scout/ghwrite.py.
Tests: python3 -m pytest and cd worker && node --test.
Everything lives in targets.toml: your login and name, languages, project tiers and weights, label patterns, discovery settings, work-in-progress limits, the token rotation date, and the date until which the scout explores widely before recommending two or three home projects.
MIT