feat: clickable Plan link + /gpr loop autonomous mode#3
Merged
Conversation
After Plan.json is written, unconditionally run `gpr render` and print the absolute `.gpr/Plan.html` path on its own line prefixed with `file://`. Modern terminals (iTerm2, Warp, VS Code, Ghostty, Kitty) auto-linkify bare file:// URLs — wrapping in markdown link syntax breaks linkification in some terminals, so keep it raw. Also nudge the user toward both modes after grill: `/gpr` for single-step or `/gpr loop` for the hands-off CLI driver.
`/gpr loop` (also `/gpr run`, `/gpr auto`) now hands off to the existing `gpr run` binary instead of self-driving iterations from inside Claude. Model-driven loops drift across agents — `gpr run` is deterministic and identical for Claude/Codex/OpenCode/Gemini. Changes: - install/commands/gpr.md: decision tree branches on `$ARGUMENTS` starting with loop|run|auto. Extra words forward as `gpr run` flags. - install/skill/SKILL.md: new "Autonomous loop" section. Preflight renders Plan + prints clickable file:// link, surfaces budget caps, requires explicit yes before launch. Hard rule forbids `while true; do gpr next-intent` style self-loops. Single-iteration (`/gpr`, `/gpr next`, `/gpr ratchet`) stays the default — only the explicit loop subform delegates.
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two small UX upgrades surfaced from real usage of the gpr loop:
gpr-grillwrites.gpr/Plan.json, it now unconditionally runsgpr renderand prints the absolute.gpr/Plan.htmlpath on its own line asfile:///.... Modern terminals auto-linkify barefile://URLs, so the user can open the rendered PRD in one click instead of copy-pastinggpr render --open./gpr loop— hands-off mode. New routing ininstall/commands/gpr.md:/gpr loop,/gpr run,/gpr auto(and trailing flags) hand off to the existinggpr runCLI driver. The driver is a single deterministic binary that picks the next intent, spawns the build agent, parses the signal, runs the audit, persists, and repeats — identical for Claude/Codex/OpenCode/Gemini. The user's observation that "some AIs' loop function is not great" is exactly why this delegates to the CLI rather than asking Claude to self-loop.Single-iteration (
/gpr,/gpr next,/gpr ratchet) stays the default. Only the explicitloop/run/autosubform delegates.Commits
feat(grill): print clickable file:// link to rendered Planfeat(skill,cmd): route /gpr loop to autonomous gpr run CLI driverFiles
install/commands/gpr.md— decision tree expanded with loop branchinstall/skill/SKILL.md— new "Autonomous loop — /gpr loop" section; routing block at topinstall/skill/gpr-grill/SKILL.md— final-write step now renders + prints clickable linkTest plan
bash install/install.shcopies all three updated files to~/.claude/{skills,commands}/.gpr/Plan.json:/gpr loopwalks the new branch — preflight, budget surface, explicit yes, thengpr run --agent claude.gpr/Plan.json:/gpr-grillruns the nine beats, writes Plan.json, printsPlan ready: file:///.../Plan.htmlon its own line (clickable in iTerm2/Warp/VS Code)/gpr(no args) still runs exactly one iteration and yields