Skip to content

feat(forgectl): pr poll — auto-review daemon + LaunchAgent + tray #32

Description

@cameronsjo

Part of #3 (the pr sub-epic) · Epic #1 · umbrella cameronsjo/claude-configurations#206.

forgectl pr poll — auto-review daemon (+ LaunchAgent + macOS tray)

Scope

  • forgectl pr poll [--tray] — on a fixed interval, discover PRs awaiting your review and pre-stage a review session per new PR. The human stays in the loop: the daemon only stages; you attach and approve.
  • Stateful dedup — the reviewed store doubles as in-flight memory.
  • Detached runs are no-TTY-safe: all narrative funnels to a log file.
  • Optional menu-bar tray (macOS, cgo build): status + Check-now / Pause / Attach / Quit; "Attach" spawns a terminal since the GUI process has no TTY.
  • forgectl pr poll install — register as a per-user macOS LaunchAgent (idempotent).

Design (two-layer launch funnel)

Every launch entry point reaches one all-paths core function (worktree prep, reviewed-marking, no-TTY routing); interactive-only UX (a post-launch navigation prompt) lives one layer up in the CLI command — because the daemon calls the core function directly and never goes through the CLI layer.

Depends on

Reference

cameronsjo/claude-configurations#202 → "The poll daemon", "dx pr poll".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    block:waitingWaits on other work, a release, or a date trigger. Clears itself.enhancementNew feature or requestexec:blockedWaits on a decision, a gate, or a close. Triage claim; verified at dispatch.forgectlforgectl component

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions