pgremlin View on GitHub

Runs on macOS. Early access.

pgremlin

Find the bug. Prove the fix. Ship the patch.

An AI software development lifecycle for any repository, open source or your own. It hunts for bugs and security vulnerabilities, fixes them, or builds the feature you ask for. Then it proves the change and hands it to you.

pgremlin, a green goblin peering through a gold jeweller's loupe
langflow-ai/langflow
elapsed
272 s
agent cost
$0.72
agent sessions
5
review
approved
  1. triageunclaimed: 9 GitHub searches, no competing PR or claim
  2. bugcopy.deepcopy(dotdict(...)) raises TypeError: 'dotdict' object is not callable
  3. forgePGsmith writes a test and a fix in an isolated worktree
  4. forge2 files changed, 51.3 s, $0.24
  5. checkcontrol: lfx schema tests on base, exit 0
  6. checkbefore: the new test on base, exit 1. The bug is real.
  7. checkafter: schema and custom template tests, exit 0
  8. checkruff exit 0, ruff format exit 0
  9. reviewPGrumble, blind: no blocking finding, $0.11
  10. forgepolish round: attempt 1 done, 17.2 s, $0.15
  11. checkfails before, passes after, lint clean, again
  12. reviewPGrumble, blind: no blocking finding, $0.11
  13. writePGquill writes the pull request, $0.11
  14. holddraft ready for a person to review. Nothing goes upstream on its own.
A real run on langflow, replayed from its log at ten times speed. Times in seconds.

The loop

Every stage is a gate that leaves evidence on disk. A patch that fails verification or review goes back to the forge, with the reason.

  1. 01

    Discover

    PGnosis

    Hunts for bugs and security vulnerabilities, or takes the feature you ask for.

  2. 02

    Triage

    PGrapevine

    Is it real, in scope and unclaimed? Reads the issue thread and linked pull requests.

  3. 03

    Reproduce

    PGhost

    A minimal failing test on a pinned base commit.

  4. 04

    Forge

    PGsmith

    Writes the patch in an isolated worktree.

  5. 05

    Verify

    PGauntlet, PGlass

    The test fails before the fix and passes after it. The project's own tests and linters pass.

  6. 06

    Review

    PGrumble

    A second agent reviews the diff and the evidence. It never sees the author's reasoning.

  7. 07

    Draft

    PGquill, PGraft

    Writes the pull request to the project's template and rules, and stages it as a draft in your fork.

  8. 08

    Maintain

    PGuardian

    Watches CI, reviews and a moving main branch, and comes back with follow-ups.

Fails or rejected: back to Forge with the evidence.

One run, every span

Each stage, agent session, tool call and check is a span with its time, tokens and cost, exported as an OpenTelemetry trace. This is the trace of the run in the console above.

langflow-dotdict-deepcopy/base ef80323f8ea3
wall clock
272 s
agent cost
$0.72
blind review
approved
prompts
forge-12, skeptic-7

Before: the new test on the unpatched base

start
82.7 s
duration
about 17.8 s
detail
exit 1. The test fails without the fix, so the bug is real
agent session project checks tool calls A ~ marks a time read from logs, not a timer.

langflow-ai/langflow

272 s$0.72

The run above. Deep-copying a dotdict in langflow's lfx package raised a TypeError. It checked nobody had claimed it, wrote a test that fails on the base and passes with the fix, passed the blind review, and left a draft for a person to review.

pandas-dev/pandas

under 2 min$0.33

It made no change. The main branch had already settled the issue, so there was nothing to fix, and it said so.

langflow-ai/langflow#16682

131 s$0.44

A dry run of /pgremlin run on an open PR. One repair round, the checks passed, then the blind review raised two blocking findings, so it stopped and waited for a person.

/pgremlin run

Comment it on an open pull request. pgremlin reads what the PR still needs, fixes it on the PR's head, runs the same gates, and pushes one more commit.

  • Failing CI: it reads the job logs and tells an infrastructure flake from a real failure.
  • Reviewers and review bots: CodeRabbit, Copilot, Gemini, Sourcery, CodeQL and others. Each bot comment is judged before it is acted on.
  • Your own request, written in the comment.

you commented

/pgremlin run

How it sorts what it reads

  • fixA job log with real failure lines from pytest, a compiler or a linter. The excerpt goes to the forge.
  • re-runA job that died because the runner shut down or a registry was down. Not the PR's fault, so it is left for a maintainer to re-run.
  • skipAn aggregate check that only failed because the others did.
  • judgeAn inline comment from a review bot. One short agent call decides whether it is worth acting on.
  • fixA reviewer's comment, or your own request.

pgremlin[bot] authored, you committed

One follow-up commit on the PR's branch, through the same checks as the first.

How a /pgremlin run reads a pull request.

The crew

Each stage is a goblin with a name, so you can tell from a trace who did what. The names stay in your terminal and reports, never in anything published.

GoblinJobMotto
Gobruns the crew and the state machineHerds goblins. Never lets a task wander off.
PGnosisfinds leadsUnderstand before you change.
PGrapevinechecks nobody has claimed itHears who's already on it.
PGhostreproduces the bugRaises the bug from the dead. On demand.
PGsmithwrites the patchForge. Test. Verify.
PGlassdiffs two implementationsAsks both sides the same question and spots the liar.
PGauntletproves the fixFails before, passes after, or it didn't happen.
PGrumblereviews blindReads the diff, not your excuses.
PGquillwrites the bundleYour voice, your name. Not mine.
PGraftstages drafts in your forkGrafts approved work into your fork. Never upstream.
PGsiftsorts red checks and bot reviewsReads the logs, not the label. Flakes go back to the maintainers.
PGmendfixes what an open PR still needsSay /pgremlin run and it picks the thread back up.
PGuardianwatches open PRsKeeps a lantern on your PRs while you sleep.
PGladiatorreplays past fixesOld bugs, hidden answers, no peeking.

Required checks

What holds for every change pgremlin makes, and every run it does.

Let it work the night shift.

Runs on macOS. Early access.

View on GitHub