Skip to main content

Pr Sweep

@maphew/pr-sweepv2026.10.15.2· MIT(was AGPL-3.0-only)· 2d agoBEHAVIORSACCEPTED WARNINGS
01README

Sweep open pull requests a fork contributes to an upstream GitHub repo: an adversarial review, findings addressed, branches brought up to date, and merges — with queryable per-PR and run-summary resources. Ships the sweeper prompt as a bundled asset.

02Release Notes

Relicense from AGPL-3.0-only to MIT.

03Behaviors1
@maphew/pr-sweepv2026.10.14.1src/pr_sweep.ts
fn sweep(upstreamRepo: string, forkRepo: string, workdir: string, agent?: enum, mainBranch?: string, swampRepoDir?: string, sweeperPrompt?: string, resyncBehind?: boolean, updateStrategy?: enum)
Sweep open PRs from a fork in an upstream repo
ArgumentTypeDescription
upstreamRepostringUpstream GitHub repo as owner/name (e.g. Kilo-Org/kilocode)
forkRepostringFork GitHub repo as owner/name (e.g. maphew/kilocode)
workdirstringLocal checkout directory for the upstream repo
agent?enumHeadless agent to run the sweep
mainBranch?stringBase branch to rebase and merge into
swampRepoDir?stringPath to the swamp repo that owns this workflow. Optional: only used to find a legacy `<swampRepoDir>/.kilo/agents/pr-sweeper.md` prompt override; the bundled prompt is used otherwise.
sweeperPrompt?stringAbsolute path to a custom sweeper prompt file. Overrides both the bundled prompt and the legacy `<swampRepoDir>/.kilo/agents/pr-sweeper.md` lookup.
resyncBehind?booleanAfter the agent run, re-fetch the base branch and bring any behind PR branch up to date
updateStrategy?enumHow to update a behind branch: merge the base in (no force-push) or rebase onto it (force-push)

Resources

sweep(30d)— PR sweep run summary
pr(30d)— Per-PR sweep result
04Previous Versions2
2026.10.15.1AGPL-3.0-only(was none)

Declare license: AGPL-3.0-only in the manifest; no model, workflow, or schema changes.

2026.10.14.1

Initial publish from maphew/swamp-extensions. Bundles the sweeper prompt (prompts/pr-sweeper.md) so the model is self-contained: swampRepoDir is now optional and a custom prompt can be supplied with sweeperPrompt. agent now selects claude/codex/opencode/kilo instead of always running kilo. Records mergeStateStatus on per-PR results and a truncated flag on summaries, and adds an upgrade entry for the source move.

05Stats
A
100 / 100
Downloads
2
Archive size
20.3 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned

07Platforms
08Labels