Harlan GitHub Agent software factory

Harlan GitHub Agent software factory An architecture diagram generated by Archify. Sentry · read by sentry-checkin · Routines Sentry read by sentry-checkin Cloudflare · read by daily-checkin · Routines Cloudflare read by daily-checkin Feedback form · melbjs.harlanzw.com → issue · Routines Feedback form melbjs.harlanzw.com → issue Factory review · review the factory itself · Routines Factory review review the factory itself Issues · issues.list / get · GitHub: read Issues issues.list / get Pull requests · pulls.list, reviews · GitHub: read Pull requests pulls.list, reviews check runs · checks.listForRef, logs · GitHub: read · read only check runs checks.listForRef, logs read only Poller · poll pass, webhook hint · Service on Hogwild (systemd) Poller poll pass, webhook hint Journal · SQLite: Items, Revisions · Service on Hogwild (systemd) Journal SQLite: Items, Revisions Scheduler · Queue, leases, Routines · Service on Hogwild (systemd) · max 8 open PRs Scheduler Queue, leases, Routines max 8 open PRs Agent pool · glm-5.3-flash, effort high · Service on Hogwild (systemd) › Agent permit pool: 4 active · Reasoning effort: high Agent pool glm-5.3-flash, effort high Reasoning effort: high Worktrees · wt, one per Task · Service on Hogwild (systemd) › Agent permit pool: 4 active Worktrees wt, one per Task Publication · App token, SHA recheck · Service on Hogwild (systemd) Publication App token, SHA recheck Comments · one canonical comment · GitHub: write Comments one canonical comment Labels · READY, PENDING, BLOCKED · GitHub: write · harlan-agent-* Labels READY, PENDING, BLOCKED harlan-agent-* Pull requests · push, create, auto-merge · GitHub: write · squash Pull requests push, create, auto-merge squash after cutoff head SHA conclusions Revisions Tasks lease Task wt switch stage write commits new issue Agents run Routines · check-ins read sources · Factory review inspects the factory · Publication files findings as issues upsert Routine findings and Candidate issues · the factory feeds its own queue outcome push, merge Routines GitHub: read Service on Hogwild (systemd) Agent permit pool: 4 active GitHub: write Legend Backend Database Cloud Security External

GitHub primitives

  • • Read: issues, pull requests, reviews, check runs, job logs, rulesets
  • • Write: comments, labels, branches, pull requests, auto-merge, issues (Routine, Candidate)
  • • Never writes a check run or a review

Tasks by Agent role

  • • Issue triage, Issue work, Batch
  • • pull request triage, Adversarial review, Repair
  • • Baseline repair, Conflict resolution, Routines

Model and Reasoning effort

  • • opencode: zai-coding-plan/glm-5.3-flash, high, every role
  • • codex fallback: gpt-5.6 sol high, luna low, terra medium
  • • Reserve: opencode 50%, codex 20%; Context budget 20M cached tokens

Limits

  • • 4 active Agents, 8 open pull requests
  • • 3 Repair rounds per contributor commit
  • • poll every 15s to 3600s, webhook is a hint only