Self-hosted Paperclip has gaps that show up as soon as agents do real software work: reviews you can't approve from the issue, agents that silently stop when work changes hands, questions agents ask each other that never arrive, retry storms at a usage limit, and a Costs page that reads $0. Paperclip Helper runs beside Paperclip and closes those gaps, using Paperclip's own API and a board key of yours.
Paperclip Helper is an independent project. It is not made by or affiliated with the Paperclip team.
- Merge to approve. Merge an agent's PR on GitHub and its issue is approved; Request changes sends it back with your review as the brief. No hunting for an Approve button.
- Nothing stalls silently. Dropped hand-offs, finished blockers, undelivered questions, recovery holds and paused agents: the watchdog spots the situations Paperclip doesn't recover from and wakes the right agent.
- Agents wait without polling. A finished CI run, an answered card or a cancelled blocker reaches the agent as one wake, when it happens, instead of a monitor reloading its context every few minutes.
- Usage limits handled. A Claude or Codex plan hits its usage limit? The Helper pauses the agents on that account, keeps the others working, and resumes them when the limit resets.
- The merge queue doesn't strand PRs. A conflict or a failed queue check goes back to the agent; a cancelled runner or the queue's timeout goes to you, not the implementer.
- Reviews aren't skipped by accident. An issue that closed with its PR still open, because an agent wiped its review stages, is reopened and the board is told.
- You can see where the tokens go.
pch usageshows each agent's runs, tokens and what woke it; cost sync puts subscription runs on the Costs page;pch whyandpch blockedsay what's holding the work. - Safe by default. Everything happens through Paperclip's API under your name,
DRY_RUN=truepreviews it all, and the Helper never merges, pushes or deletes anything.
pch status shows what each part is doing, what the watchdog's last check cost, and what the helper has done since it was first started:
- What Paperclip leaves you with, and what the helper does about it
- Paperclip issues it works around
- How it works
- Why it saves tokens
- Quick start
- The three components: relay, watchdog, cost sync
- Commands
- Security
- Upgrading · Troubleshooting · Compatibility
- Documentation · Contributing · License
| In Paperclip you see… | With the helper… |
|---|---|
| "Approval pending with You", and no Approve button on the issue. | Relay. Merge the PR on GitHub and the issue is approved. Request changes on GitHub sends it back to the engineer, with your review as the brief. |
| PRs waiting for your review that you can't merge, because another merge left them with conflicts. | Relay. After each merge it finds the open PRs that now conflict and sends them back to their agents to resolve, with a note on the PR. |
| A PR the merge queue dropped, sitting unmerged with no conflict. | Relay. A failed merge-group check sends it back to its agent with the failed jobs; a cancelled run or the queue's status-check timeout is told to you, without waking the implementer. Optionally it queues the PR again itself. |
| An issue done while its PR is still open and unreviewed, or in review with no stages left (an agent's update wiped them). | Watchdog. It reopens the done issue and tells the board to restore its stages. When you merge such an issue's PR, the relay closes it, so its dependants can start. |
| A review passed while you had the reviewer resumed for it, and the issue waits at your approval with nothing saying the PR can be queued. | pch ready lists the PRs approved by every reviewer, clean and green, in queue order. With WATCHDOG_REPORT_READY_TO_MERGE on, the watchdog says so on each issue, and whether its reviewers can be paused again. |
| An issue closed by its PR's merge while its checklist still has open items. | Relay. The merge comment says so in one line, so you can reopen it and add the keep-open marker. |
| You answered an agent's card, and nothing happened, because the issue was waiting on your review. | Watchdog. It returns the issue to the agent with your answer. |
| An issue that lists the wrong PR, or none. | Relay. It notes the PR's URL on its own issue when the PR opens, so Paperclip links it, in a document that wakes nobody. |
| In Paperclip you see… | With the helper… |
|---|---|
| A board full of blocked issues, and nothing in Decisions. Follow the chain far enough and it ends at an agent's question card to a teammate ("Please rule on…") that has waited for days. Paperclip never delivers a card to a teammate who isn't the issue's assignee: the wake is cancelled before it starts. | Watchdog. It gives the teammate an issue that says which card to answer, and closes it once the card is answered; the asker wakes with the answer. pch blocked shows what every blocked issue waits on, and pch answer answers a card from the command line. |
| An agent that never starts after an issue is handed to it. | Watchdog. It spots the wake Paperclip dropped and wakes the new owner with a comment. |
| A blocked issue that stays blocked after its blockers are done, or whose done blocker is "finalizing" forever. | Watchdog. It wakes the owner, and removes a blocker stuck on a failed workspace clean-up. |
| An issue blocked for good by a cancelled issue. | Watchdog. It tells the agent why the blocker was cancelled, so it can remove or replace it. |
| An issue that sits for hours after CI finished, because the agent said "waiting on run …" and stopped, or its monitor gave up first. | Watchdog (with a GitHub token). It tells the agent the run's result once it finishes, clears the agent's own monitor for that run once the agent is running, and can re-run jobs you know to be flaky first. Runs started by workflow_dispatch on the default branch are reported on every conclusion and never re-run. When a runner fails every job in "Set up runner", before checkout, it tells you once and tells each agent it isn't their PR. |
"Recovery needed" on an issue whose agent only waits for CI (unchanged_source_state_exhausted), after repair runs that each found the CI still queued. |
Watchdog. While the run is going it gives the issue a Paperclip monitor of its own, hours out, which Paperclip counts as the agent's wait; it reports the run and clears the monitor once the agent's run for the report has started, so that run is an ordinary one, not a disposition repair. An issue its agent left in todo is moved to in progress for the monitor. An issue still parked for the board ("restore normal execution", disposition_recovery_retry_stale, or blocked once Paperclip's repairs ran out, on any issue) is handed back to the agent once, as you would, with its PR and the result of its latest CI run. |
An issue you move back to todo after "Recovery needed" (unchanged_source_state_exhausted) is blocked again within a second, or its PR merged long ago and it still waits on its agent. |
Watchdog. It restores such an issue to in progress with a monitor that keeps Paperclip from blocking it again, and one whose PR has merged goes back to its approval stage without waking the agent; pch approve approves it. |
| An agent waking itself dozens of times an hour on one issue, each run's final message posted as its comment and starting the next. | Watchdog. It tells the board once per issue, and never comments on the issue (that would wake the agent again). |
| "Waiting for execution recovery" or "Automatic recovery blocked" after a hand-off, with your message saved but never delivered. | Watchdog. It presses Paperclip's own send queued messages now / Interrupt for you. |
| "Automatic recovery of this task stopped", and every message or Interrupt is saved again with "The previous run has no verified stop record". | Watchdog. Paperclip wants proof that a run cut off at a hand-off has stopped, and that run never recorded any, so the hold never clears. The watchdog records that the run stopped, releases the hold and delivers the saved messages. pch release ISSUE does the same by hand. |
| "Recovery needed. Execution was cancelled; its source was not recorded.", only Inspect run to press, and comments or status changes start nothing. | Watchdog. Paperclip cancelled a run before it started (the issue changed hands a second earlier, or a scheduled repair was no longer needed) and holds the issue behind it for good. The watchdog records that the run performed nothing, releases the hold and delivers the saved messages once. A held review is kept, or its untouched first stage started again; when the issue belongs to another agent, the held run's agent is asked to hand it on. A disposition repair Paperclip suppressed itself ("Disposition repair suppressed: durable_wait"), whose hold the board's Retry only answers with "Retry is waiting for Paperclip to verify that the previous execution stopped", is released the same way once it has stood 10 minutes, when it did no work. Any other pending review it leaves, since Paperclip's release would end it, and tells you instead. pch release ISSUE does the same by hand. |
| "Recovery needed … Inspect the run before sending a new message" on an issue you moved on after pausing its agent, and the next owner's wakes queued for days. | Watchdog. The paused agent's cancelled run holds every wake on the issue, and Paperclip lifts that only when the board comments while that agent has the issue. Once the agent is resumed, the watchdog assigns the issue back to it and asks it to continue, and tells you. pch release ISSUE does the same by hand. |
| Issues left blocked after you pause and resume agents ("the original assignee is not invokable"). | Watchdog. When the agent is resumed, it puts each issue Paperclip blocked during the pause back where it was (a review stays in review) and wakes it, a few at a time. Issues blocked for any other reason, or that someone has touched since, are left alone. |
An agent you resumed that stays paused for hours, agent.resumed in the activity log, no Resume button, and its blocked issues blocked again as soon as you move them. |
Watchdog. Paperclip never finished the pause (an old run it can't prove stopped, often after a restart), and a resume waits for it. The watchdog tells the board once, with what usually holds a pause and how to find it. |
Runs fail at once with setup_failed: "requested inherited execution workspace reuse … could not be restored", or an agent blocks an issue asking for a "workspace ruling". |
pch workspace ISSUE. Issues an agent creates from another issue's work are linked to that issue's workspace. Once it's closed every run fails at setup, and while it's live their commits land on its branch. --apply gives them a new isolated workspace, and pch why recommends it when it sees either. Watchdog clears links to a closed workspace by itself. |
Every run on an issue fails within seconds with workspace_validation_failed, "The selected execution workspace's original repository could not be verified", and the issue is blocked for a board decision; pch why used to say only "raw error text is withheld". |
pch worktrees --links. With git's worktree.useRelativePaths set for the user Paperclip runs as, git writes worktree links Paperclip can't follow, and every new worktree fails. It lists the issues by project checkout with the repair to run on the host, ending with the removal of the extensions.relativeWorktrees setting git leaves behind (which breaks dotnet build and libgit2-based tools); --retry then wakes them. pch why names the reason code for any workspace validation, and the watchdog tells you once per checkout. |
| "Why is nobody working on this?" | pch why ISSUE prints Paperclip's own diagnosis, then a recommendation: what is holding the issue and the command that gets it moving. --prompt turns it into a prompt for an LLM chat. |
| In Paperclip you see… | With the helper… |
|---|---|
| Hundreds of failed runs overnight: every agent on a plan fails with "You've hit your … limit · resets …" (Claude) or "You’ve hit your usage limit. … Try again at …" (Codex), and Paperclip keeps retrying. | Watchdog. It pauses the agents on that account as each one goes idle, tells you once, keeps agents on other accounts working, and resumes exactly those agents when the limit resets. A model at capacity is left to Paperclip's retries. |
| A subscription that runs out sooner than it should, and no way to see which agent spent it. | pch usage shows each agent's runs, tokens, cost and what woke it, and flags the agent that polls, the one that keeps failing and the one using most of its provider's tokens. |
| A Costs page that shows $0, because your agents run on a Claude or ChatGPT subscription. | Cost sync. It posts each run's API-equivalent cost: Claude Code's own figure, and for Codex, tokens × OpenAI list prices. |
A disk that keeps filling up with hundreds of git worktrees under .paperclip/worktrees, for issues finished long ago. |
pch worktrees closes the workspaces of finished issues so Paperclip removes their worktrees, and lists those with uncommitted or unmerged work for you to look at. |
| A model drop-down that doesn't list a new model id. | pch set-model moves every agent from one model to another and keeps the rest of their config, effort included. |
These are open bugs in Paperclip's issue tracker (as of 23 October 2026; the pause and escalation rows as of 1 December 2026) that the helper works around until a fix ships in Paperclip itself. Several have fixes proposed but not yet merged. When a fix ships, the matching check simply finds nothing to do, and each check can be switched off.
| What goes wrong in Paperclip | Paperclip issues | Fixes proposed upstream | Worked around by |
|---|---|---|---|
| A hand-off drops the new owner's wake: the finishing run hasn't released its environment lease yet, so the wake is skipped and never retried. | #16882, #13532, #14973 | #13880, #13769 | watchdog 1 |
| A blocked issue isn't woken when its blockers finish. | #14260, #5985 | - | watchdog 2 |
| A done blocker whose workspace sync-back failed counts as unresolved forever, so its dependants never start. | #15311 | #17206 | watchdog 3 |
| A wake deferred behind a stopped run is never re-admitted ("Waiting for execution recovery"). | #14537, #14879, #16519 | - | watchdog 4 |
| A run stopped by a reassignment leaves a hold the board can't release, with the saved messages behind it. | #15028, #15943 | #15094 | watchdog 5 |
| "The previous run has no verified stop record": a run that never started (or was cut off before recording a process) freezes the issue for good. | #15483, #13640, #14300 | #15965 | watchdog 7, pch release |
| Pausing an agent blocks its issues, and resuming it doesn't undo that. | #14528, #15506 | #14596 | watchdog 15, watchdog 6 |
A pause that never finishes: an old run's process id or group reused after a restart, or a started, cancelled run with no stop record, keeps the agent pausing; every retry reads the agent's whole run history, and a resume (or the lifecycle retry, or a restart) waits on it for good. |
#21165, #23283, #23377, #22296, #17718, #14794, #23081, #23152 | #18866, #18072, #21116, #22671, #19765, #17204, #20037, #22116 | watchdog 15 (tells you; the fix is the board's) |
Closing an issue archives a workspace other open issues still use: their runs fail with setup_failed and they end up blocked. |
#16638, #9313 | - | watchdog 8, pch workspace |
Worktree links git writes as relative paths (worktree.useRelativePaths, git 2.48 or newer) fail Paperclip's workspace check: every run on such a worktree fails at setup with source_registration_unproven. |
not reported yet | - | watchdog 20, pch worktrees --links |
| An issue in progress whose agent waits on CI counts as having no live path: a comment naming the run isn't one, so Paperclip wakes the agent to "repair" its disposition, twice, then blocks the issue for the board. | not reported yet (by design, per Paperclip's own skill) | - | watchdog 11's backstop |
| A board move out of a disposition-repair escalation is blocked again within the same second: Paperclip counts a legacy run's repair attempts on that run, not on the issue, and checks the issue before the move's comment wake is queued, so moving it to todo (or in progress) with a comment doesn't stick. | not reported yet; related: #22169 | - | watchdog 11's restore guard |
| A run's posted final message wakes the agent whose run it summarises, so a run that ends without a comment of its own starts the next. | not reported yet (suggested text) | - | watchdog 21 |
| A question card addressed to a teammate is never delivered: its wake is cancelled as an assignee change. | #11932, #13518, #16409 | #11939, #14378, #15991, #16914 | watchdog 10 |
| An answer to an agent's card is lost when a person holds the issue (a review stage waiting on you). | - | #14514, #10353 | watchdog 12 |
| A run Paperclip's dispatch cancels before it starts still leaves a reconciliation hold ("Recovery needed … Inspect the run"), with no Retry. | #15483 | #18838, not in 2026.1023.0 (queued runs only; a suppressed scheduled retry, or a run claimed and cancelled while preparing, is still held) | watchdog 22, pch release |
| A cancelled blocker never releases its dependants. | #9811 | #11837 | watchdog 14 |
| Usage-limit failures are retried as transient, or the reset time doesn't hold runs back: hundreds of failed runs before the limit resets. | #15797, #11597 | #17013 | watchdog 16 |
An agent's update wipes an issue's review stages (executionPolicy: { stages: [] }), so it closes unreviewed with its PR still open. |
#17301 | related: #16431, #11145 | watchdog 17, relay |
| Approving the last stage always closes the issue, even when the merged PR was only one step of its work: Paperclip has no way to approve a stage and hand the work back to its implementer. | #10360 | #10365; related: #11145 | relay |
| No way to approve a review stage that waits on you: the Approve and Request changes decisions are advertised but not shown, and the decision endpoint refuses them. | #15496 | #10277, #5487 | relay |
- One container, no npm dependencies. It calls Paperclip's API directly with a named board key, so everything it does appears in Paperclip under your name.
- Three components, each with its own switch: the relay receives signed GitHub webhooks, the watchdog checks every minute, and cost sync posts every 15 minutes.
- It works through Paperclip's API, as you would in the UI: comments, review decisions, blocker edits, pausing and resuming agents, cost events, and issues for the questions Paperclip didn't deliver. It never merges, pushes or deletes anything. On GitHub it reads pull requests and CI runs, comments on the PRs it sends back if you turn that on, re-runs failed jobs only if you name them as flaky, and re-queues a PR in the merge queue only if you turn that on.
DRY_RUN=truemakes every component log what it would do and change nothing.
Agents on Paperclip often poll. An agent waiting for a CI run sets a monitor that wakes it every few minutes, and each wake starts a run that reloads the agent's whole context, only to find the CI run still queued. On a subscription that is the fastest way to hit a usage limit; on an API key it costs money.
Paperclip Helper turns those waits into events. It watches GitHub and Paperclip for the agent and wakes it once, when something has actually changed:
- the CI run it named has finished, with the conclusion and the failed jobs in the comment;
- a card it raised was answered;
- a hand-off was dropped;
- a blocker was cancelled;
- a merge conflict appeared in the review queue.
So agents can name what they are waiting for and stop.
In one 16-agent company, before its agents were told to rely on the Helper, about 40% of the busiest implementer's runs, and a third of its input tokens, were monitor wakes that found nothing new. One instruction in the team's agent template ("name the run you're waiting for and end your run; the Helper wakes you") removed them. Your numbers will differ.
Rely on the Helper, not on short monitors. Paperclip wants an issue in progress to have a live path, and a comment naming a run isn't one, so while the run is going the Helper gives the issue a monitor of its own, one check hours out, which Paperclip accepts; an agent's monitor polling the run is replaced by it. When the Helper reports the run, it clears that monitor, or the agent's own if its notes name only that run, once the agent's run for the report has started, so nothing wakes the agent once more for nothing and Paperclip never sees the issue without a live path in between. A monitor still due that names something else keeps the report back (watchdog 11); the suggested wording for agents is there too.
You need a self-hosted Paperclip and Docker with Compose v2 on the same machine, and a Paperclip board user.
Linux and macOS:
curl -fsSL https://raw.githubusercontent.com/DevEnterpriseSoftware/paperclip-helper/main/install.sh | bashWindows (PowerShell 5.1 or 7):
irm https://raw.githubusercontent.com/DevEnterpriseSoftware/paperclip-helper/main/install.ps1 | iexThe installer finds Paperclip, logs in with an approval link, asks which components you want, and adds the pch command. It shows everything before it writes it, never uses sudo or administrator rights, and can be re-run at any time to change settings.
What it does step by step, unattended and manual installs, networking and the GitHub webhook: docs/install.md.
| On GitHub | In Paperclip |
|---|---|
| You merge the PR | The issue is approved, including each consecutive stage that is waiting on you, unless the merge doesn't finish it (below). |
You "Request changes", or comment /changes … |
Changes requested: back to the engineer, with your text as the brief. |
You comment /approve … |
Approved without merging. |
| You comment anything else | Copied to the issue, which wakes the assignee. |
| A merge leaves another open PR with conflicts (optional, needs a GitHub token) | That PR's issue goes back to its agent to resolve them, and the PR gets a comment saying so. |
| The merge queue drops a PR (needs a GitHub token) | A failed check sends it back to its agent; a cancelled run or the queue's timeout is told to you. |
| A PR opens, closes or is merged by someone else | A note in the issue's Pull requests document, which wakes nobody. |
It acts only on events signed with your webhook secret, from your repositories, by your GitHub login, and only when Paperclip says the decision is waiting on you. Otherwise it comments. Details and settings: docs/relay.md.
Approving the last stage closes the issue as done, and Paperclip then releases its dependants. That's right when the PR is the issue's work, and wrong when it's one step of it: a fix found halfway through, or one slice of several. So approve-on-merge closes the issue unless the hand-off comment that sent it to review, or the issue's description, contains the marker (RELAY_MERGE_KEEP_OPEN_MARKER, default Merge does not complete this issue, any case). With the marker, the relay records changes requested instead: the issue goes back to its implementer, who is woken with a comment that the PR merged and the rest of the work is theirs. With RELAY_MERGE_KEEP_OPEN_CHILDREN=true, open child issues keep it open the same way. Put the marker in the hand-off rather than the description: a description marker hands back every merge, the last one too, so you'd finish the issue with /approve (details).
This only works if your agents know to write the marker. Add a line like this to your team's agent template or agent instructions:
When your pull request merges, the Paperclip Helper records the board's approval and Paperclip closes the issue. If the pull request is only one step of the issue's work (a fix along the way, one slice of several), write
Merge does not complete this issuein the hand-off comment that sends the issue to review. The Helper then reports the merge and hands the issue back to you.
The line must quote the same phrase as RELAY_MERGE_KEEP_OPEN_MARKER. If you change the setting, change the line to match.
Most stalls start the same way: an issue changes hands, Paperclip cancels a run at that moment, and the next wake is refused and never retried. Every minute the watchdog looks for the situations in the tables above. It acts only after an issue has been quiet for three minutes, at most twice per situation, and never interrupts a running run. A hold Paperclip can never release by itself is released once its run has been over for three minutes; a hold whose cause it can't be sure of is logged and left to you. A link to a closed workspace, which fails every run at setup, is cleared at once. At a Claude or Codex usage limit it pauses agents only once they are idle, and resumes only those it paused. Details and settings: docs/watchdog.md.
Paperclip records $0 for runs billed to a subscription. Cost sync posts one cost event per finished subscription run and never touches runs billed to an API key. The amounts count toward budgets and cost events can't be deleted, so preview with pch costs first; it changes nothing. Details and settings: docs/cost-sync.md.
pch <command> runs a throwaway container next to the service.
| Command | What it does |
|---|---|
pch status |
What the service is doing, its last checks and counts, Paperclip's version and build commit, and when the key expires; then all-time figures (what the helper has done, roughly how much hand work it saved) and its latest warnings and errors. --clear-problems clears those, keeping the counts. |
pch check [ISSUE] |
Who the key belongs to, its companies and prefixes. With an issue, its stage, current participant, and whether a merge would approve it. With RELAY_FIX_CONFLICTS on, also whether the GitHub token can read each repository's PRs. |
pch why ISSUE |
Why nobody is working on an issue, and what to do about it. --prompt prints it as a prompt for an LLM chat. |
pch blocked |
Why each blocked issue is blocked, which issues the chains of blocked issues end at and what those wait on, and every question card that is waiting. |
pch ready |
The PRs ready to queue, in queue order: approved by every reviewer, open, not a draft, clean and green on GitHub. |
pch approve ISSUE [comment] |
Approves an issue whose approval is waiting on you, or a blocked one whose PR has merged (back to its approval stage first). It refuses otherwise. |
pch changes ISSUE comment |
Requests changes. The comment is required and becomes the brief. |
pch comment ISSUE text |
Comments as you, which wakes the assignee. |
pch answer ISSUE CARD text |
Answers a question card as you (a card with one question). |
pch workspace ISSUE [--apply] |
Gives an issue linked to a closed workspace, or to another issue's, a new isolated workspace. With a closed one, also the other open issues linked to it. It previews unless you pass --apply. |
pch release ISSUE [--apply] |
Releases an execution hold that messages and Interrupt can't clear (one a paused agent's cancelled run left, too), then delivers the saved messages. It previews unless you pass --apply. |
pch worktrees [--apply] [--verbose] |
Closes the workspaces of finished issues so Paperclip removes their git worktrees, leaving those that may hold work, and says why it leaves each of the others, with its folder. It previews unless you pass --apply; --verbose also lists the workspaces of open and recently finished issues. |
pch worktrees --links [--retry] |
The issues whose every run fails at setup on relative git worktree links, by project checkout, with the repair to run on Paperclip's host (including removing the repository extension git leaves behind). --retry then wakes the ones still parked and reports their next runs. |
pch usage [--days N] [--agent NAME] |
Where the tokens go: each agent's runs, tokens, cost and what woke it, and the agents worth a look. |
pch costs |
Previews what cost sync would post, and what it does to budgets. |
pch costs --sessions |
Checks whether resumed sessions report cumulative costs (see cost sync). |
pch costs --audit, --compare-days N |
Checks the cost figures; compares two periods and splits the change into usage and 1.12's costing (see cost sync). |
pch costs --retry-skipped |
Posts the runs Paperclip rejected again, on the service's next pass (see cost sync). |
pch models |
Every agent's adapter (or Paperclip Runner harness), model, effort and status. |
pch set-model FROM TO [--apply] |
Moves every agent on model FROM to TO. It previews unless you pass --apply. |
pch login, pch revoke |
Create the helper's key; revoke and delete it. |
pch secret |
Prints a random webhook secret. |
pch update |
Updates the helper to the latest release of its major version, and restarts it (see Upgrading). It doesn't update Paperclip. |
pch version, pch help |
Version, and this list. |
Examples and sample output: docs/commands.md.
- The key acts as you. Every change the helper makes appears in Paperclip under your name, just like your own actions. The key is a named board API key,
paperclip-helper, that lastsKEY_EXPIRES_DAYS(365).pch statusshows when it expires, and the log warns you two weeks ahead. - Where it's stored:
data/paperclip-token, mode 600 on Linux and macOS. Only the container's user can read it, and it never leaves the machine. - Revoking it:
pch revokerevokes it in Paperclip and deletes the file. Runpch loginfor a new one. - The webhook secret is in
.env(mode 600 on Linux and macOS). GitHub signs every delivery with it, and unsigned or wrongly signed deliveries are rejected. - The GitHub token (optional, for sending back PRs with merge conflicts or dropped by the merge queue, and for the CI runs agents wait on) is in
.envtoo. Give it only the relay's repositories, "Pull requests" access and, for CI runs and merge-queue drops, "Actions: Read" ("Checks: Read" to quote a failure annotation); the helper reads pull requests and CI runs and comments on pull requests. WithWATCHDOG_CI_RERUN_JOBSset it also re-runs the failed jobs you named as flaky ("Actions: Read and write"), and withRELAY_REQUEUE_ON_INFRA_DROPit re-queues PRs (a token allowed to merge); nothing else. See the GitHub token. - Paperclip's API is never exposed. Only the relay's path needs to be public.
- The container runs as a non-root user with a read-only filesystem, no capabilities, and
no-new-privileges. - Logs are one JSON line per event. Anything that looks like a key or secret is masked.
- What it never does: merge, push, delete, or change anything outside what's described here. Beyond comments, its edits are: the failed-finalize repair, clearing links to a closed workspace, the issues it creates (and closes) for undelivered question cards, returning an issue waiting on your review to its agent (as your "changes requested") when you answered its card meanwhile, restoring issues blocked during a pause, pausing and resuming agents at a usage limit, reopening an issue closed with its PR still open (and closing one on its PR's merge), clearing an agent's monitor for a CI run it reports, moving an issue a CI report's wake left parked in Paperclip's recovery back to its agent (once), and its notes document on each issue. Each has its own switch (clearing a monitor and the recovery restore go with
WATCHDOG_CI_RUNS).
pch update pulls the latest release of the helper's major version and restarts it. It never updates Paperclip. Pinning a version, upgrading without pch, and uninstalling: docs/install.md.
pch status shows what the service is doing, pch why ISSUE explains a stuck issue, and docker compose logs --tail 50 shows one JSON line per event. Symptoms and fixes: docs/troubleshooting.md.
- Paperclip versions: tested against Paperclip 2026.916.1 (
ghcr.io/paperclipai/paperclip:lateston 2026-09-30) inauthenticated/privatemode and inlocal_trustedmode, and against 2026.1001.0, 2026.1005.0 and 2026.1012.0 with the compatibility suite (npm run test:compat -- <version>, see CONTRIBUTING.md), which runs the helper's own code against a throwaway Paperclip of that version. The API details the helper relies on were also checked against Paperclip'smainbranch, most recently on 22 October 2026. They're written down, with source references and version-specific notes, in docs/paperclip-internals.md. - Platforms tested: Linux with Docker Engine 29.8, and Windows 11 with Docker Desktop 4.93. On Windows, both Windows PowerShell 5.1 and PowerShell 7 were used. macOS uses the same Docker Desktop networking as Windows but hasn't been tested.
| Page | What's in it |
|---|---|
| docs/install.md | What the installer does, unattended and manual installs, general settings, networking, the hostname guard, exposing the relay, upgrading, uninstalling. |
| docs/relay.md | Every GitHub event and what it does, how the issue is found, PRs with merge conflicts or dropped by the merge queue, the GitHub token, safety rules, the webhook, settings. |
| docs/watchdog.md | Every situation in detail, notes for the board, limits, what it leaves to you, settings. |
| docs/cost-sync.md | How costs are worked out, what to know before turning it on, settings. |
| docs/commands.md | Every pch command, with usage, blocked, set-model and why examples. |
| docs/troubleshooting.md | Symptoms, causes and fixes. |
| docs/paperclip-internals.md | The Paperclip behaviour the helper relies on, with source references. |
Issues and pull requests are welcome. See CONTRIBUTING.md: the helper has no npm dependencies, and npm test runs the suite against a fake Paperclip.
