-
v0.8.0
Stablereleased this
2026-11-12 19:27:23 +00:00 | 14 commits to main since this releaseAdded
- The
applyorder installs the changelog checker aschangeloginREX_BIN_DIR, with a new command of the roles tool,roles changelog install <pin-file> <bin-dir>, thatapply.shcalls in three lines. It is built at the version thatchangelog.pinin the city repository names (module@version, assarak.sh/mikluko/changelog/v2@v2.0.1). It builds when the installedchangelogis not that build, moves it into place only when the build succeeded, and, when the build fails, mails the Operator, keeps the oldchangelogand does not move the city directory. A city with nochangelog.pingets nochangelog. gc forgejo pr comment --repo <worktree> --pr <url|number> --body-file <path>posts one comment on a pull request as the account of the token, and with--jsonprints the comment's id and URL; an empty body is refused with exit status 2. The Worker'sworker-reworkskill uses it for the note that a round of rework is done, in place of acurlto the forge.- The
rolespack carries the Researcher,roles.researcher: a pool of the city, at most two sessions, that takes a bead of any store routed to it withgc sling roles.researcher <bead>. It runs on an acp box in gc'sfull-automode and claims withgc hook --claim --drain-ack --json. Its formulamol-researcher-workand its skillresearcherare not in the pack yet. - The Researcher's settings,
roles/agents/researcher/overlay/per-provider/claude/.claude/settings.json, deny theAgent,Edit,WriteandNotebookEdittools, which the city's own allow list permits. - The Operator's startup prompt names the Researcher's pool,
roles.researcher, beside the Worker's two. tests/researcher.shresolves the Researcher in a throwaway city and checks its agent, its prompt, its settings and the Operator's line.- The Researcher has Perplexity, its own and no other agent's:
roles/agents/researcher/mcp/perplexity.tomldefines the official MCP server,@perplexity-ai/mcp-serverpinned to1.3.0, which an acp session receives in itssession/newrequest, sogc mcp list --agent roles.researchershows it and the same command for the Worker or the Operator shows none. Its key is the file~/.config/gascity-root/perplexity-token, read when the server starts and written into no tracked file; the README gives thebaocommand that makes it. Its allow list is to nameperplexity_searchandperplexity_askand nothing else of Perplexity. - The
researcherskill says Perplexity finds and is not a source: a claim in the findings cites the primary source that owns it, read with WebFetch or in a clone, never a Perplexity answer. It names the two tools the role may use to find where a claim lives (perplexity_search,perplexity_ask) and saysperplexity_researchandperplexity_reasonare not available to it. - The
researcherskill, the instructions of the Researcher role: it answers one question from primary sources and posts its cited findings as a comment on its bead; it comes from Matt Pocock'sresearchskill, with itsUPSTREAMfile and MITLICENSE. - The forgejo pack has a
revieworder: for each pull request head whose checks have completed, it makes the review bead (labelsserviceandreview,review_roundcounted) and slings it to the rig's Reviewer, once per pull request and head, for a bead handed over in either shape. - The
revieworder is off untilFORGEJO_REVIEW=onis in its environment, and holds its review back until the schedule order has marked the bead unlessFORGEJO_REVIEW_NEEDS_SCHEDULE=offis set. - A head whose checks have not started after half an hour becomes a bead for the Operator, with
pr_event=checks_not_started. gc roles view beads --rig <name>shows one rig's beads, and so doesgc roles view beadsstarted in a rig's directory or below it; started anywhere else it shows every rig, as it did.gc roles view beadshas the groups "in review" (a review bead of the bead is open), "in rework" (the bead has a pull request and a Worker holds it, the pool waits to, or its last review failed), "approved" (its last review passed) and "parked" (a count of the beads labelledparked).- The Worker's skill gives two rules to follow before it pushes, under "Handing over". The first: every sentence it wrote that states a fact about the code, in the README, the docs, a comment, the changelog fragment and the pull request's description, is checked against the commit it pushes, after its last change. The second: for each test it added or changed, it undoes the change the test is for, runs the test and sees it fail, then restores the change; the pull request's description says so and names any test for which it could not.
tests/formula.shholds the skill to both by their phrases.
Changed
- A Worker and the Reviewer run the checker as
changelogfromPATHand no longer build one. Where it is absent, a Worker runs no check, says so in the pull request and mails the Operator, one mail for the whole city while it is unarchived; the Reviewer says so in its review and sends no mail. - Breaking: the Worker and the Reviewer no longer set
permission_mode = "unrestricted"in theiroption_defaults: they take the city's provider default. A city that sets none gets gc's builtin default for the provider, which at gc 6bd609f isunrestrictedfor claude (--dangerously-skip-permissions), so such a city sees no change; a city that sets a mode of its own, such asfull-auto, now has it apply to both, and a city that wants the old mode for them alone patchesroles.workerandforgejo.reviewer. The README's "Permission mode" section says so, and the Reviewer's patch there no longer setspermission_mode. - Breaking: the Operator's
permission_modeisauto-edit(--permission-mode acceptEdits) in place ofunrestricted. The file tools come back,AskUserQuestionkeeps working, and the user is prompted in the Operator's tab for a call that no allow rule covers: a city must list inpermissions.allowof the settings file gc passes to claude what the Operator may run without asking, or it is prompted for everyBashcall. A city that wants the old mode patchesroles.operator. The README's "Permission mode" section says so, and the deny-permission skill no longer says that the agents it denies run in bypass-permissions mode. - The Worker's skill and the Reviewer's prompt tell the agent to read with Read, edit with Edit and write a new file with Write, not through Bash, and that a call the session's allow rules do not cover comes back as a refusal, which is not the end of the run: it goes on another way, and says in its pull request or review what it could not do.
- The Worker's skill no longer says that Claude Code asks for a permission on an
rm -rfof a computed path "in bypass mode too": the command is stopped and comes back as a refusal, and the rules on scratch files and on the hand-over stay. - The Reviewer's formula (
mol-forgejo-review) says the same of its rule on scratch files andrm: the command is stopped and comes back as a refusal, and a refusal of thermwould take the hand-over with it. Its phrases and the rule itself stay, and a test holds that the step no longer mentions bypass mode. gc roles view beadsshows what is in flight first: "with a Worker", "in review", "in rework" and "approved", one line for each bead with its pull request's number, before "waiting on you", "with the Operator", "queued" and "backlog".gc roles view beadsreads the claim mark ofmol-worker-work(in_progresswithworker_session) as a bead with a Worker, and shows the time the Worker took it instead of the step's title.- A bead assigned to the user that has a pull request in review, approved or in rework is no longer under "waiting on you" in
gc roles view beads. - A bead labelled
rework, or one with a pull request that is slung to a Worker again, is under "in rework" and no longer under "queued". gc roles view beadsreads the beads closed in the last day every 300 seconds, where it read them every 30, and at once when a bead leaves the list;VIEW_CLOSED_INTERVALsets the interval.
Fixed
- CI no longer runs a
gcbinary on the registry's word for its checksum.test.yamlkeeps the expected SHA-256 of the pinnedgcbesideGC_SHA, one per architecture (GC_SHA256_AMD64,GC_SHA256_ARM64), and runs the download only when it matches; the.sha256file the registry served beside the binary is no longer fetched. A download that does not match, or that takes longer than 180 seconds (curl --max-time), falls back to buildinggcatGC_SHA, as an unpublished pin does. Thelintandscriptsjobs setcache: falseonsetup-go, so the runner's cache service, which answers 500 on every save, no longer leaves a warning. ChangingGC_SHAnow means changing the two checksums with it. tests/formula.shcompilesmol-worker-workfrom the checkout whateverGC_CITYandGC_CITY_PATHsay, and counts the step in bytes whatever the locale, as CI does, so a Worker can run it in its session and agree with CI; the Worker's skill and Part 6 of the formula now say that fixing what a review sent back is the work while watching the run afterwards is not.- The
permission-requestorder mails each pending request on a host with jq 1.6, where it mailed none when its state file was missing or empty. pr stateno longer assumes the forge's pages hold 50 reviews: when a page of reviews comes back empty and the forge's total says more rows are left, it asks the forge for its page size (max_response_itemsin/api/v1/settings/api) and counts the rows against that, so a forge that caps a page below 50 cannot hide a review of the head behind pages of other accounts' pending reviews.- The
mergeorder no longer closes a review bead as shipped, or hands it to the Operator, when its pull request merges or closes. gc forgejo pr reviewposts the review again when the account's latest approval or request for changes of the head is the same event but the forge does not count it (officialfalse). Before this it posted nothing and exited 12,not_recorded, so an approval made before the rule on the base branch named the account could not be replaced by the tool: only a repository admin's dismissal or a new head freed it. Now it posts, reads the new review back as for any review, and sayspostedwhen it counts. When the new review is not counted either, it exits 12 as before, with the new review inreviewand both ids in the message. A stale review is still not posted again. The same holds for a request for changes, which the forge counts by the same rule. The Reviewer's own look for a review of the head inmol-forgejo-reviewis unchanged.- The Reviewer's formula,
mol-forgejo-review, carries the rules the Worker's skill got for scratch files andrm: scratch files go in a directory made withmktemp -dunder$TMPDIRand stay there; the Reviewer never runsrm, with or without-r, whatever its path: not on a path that comes from a variable or a command substitution, and not inside a script passed tobash -corenv -i ... bash -c, where Claude Code cannot resolve a path, a literal one included (a test that needs a file gone makes a new directory for each case, checks the file out from a commit that lacks it, or overwrites it with>); it never puts anrmin the command that hands a bead over; and a refusal of such a command does not end its turn, so it goes on without therm. Claude Code stops anrmon a path it cannot resolve with a permission prompt, bypass mode or not, and a Reviewer ofclaudeacpraised one on 2026-11-12 while it tried a changelog guard in a scratch repository, and one ofrexcityon the same day ranrm .changelog/bad.mdinside abash -cscript. The rule replaces the formula's "you remove nothing withrm -rf", which said nothing ofrmwithout-rand was not held by a test.tests/reviewer.shholds each rule by its phrase and fails if a command of the step runs anrm, inside abash -cstring or not. A review bead poured before the release keeps the old text, since the formula is poured into the workflow at the sling. tests/view-mail.shwaits for the stopped stream ofgc roles view mailto exit, so it no longer fails at random with "view mail left gc events --follow running".- The pane views read the size of the terminal they run on, with bash 3.2 as with bash 5, and read it again at every draw;
COLUMNSandLINESare used only where stdout is no terminal. Under bash 3.2 the views had cut and capped nothing. gc roles view mailno longer takes a message id that starts with-for an option ofgc mail peek.- The one line a view prints when
jqfails ends with a newline. gc roles view mailshortens a name with characters of more than one byte as it does one of ASCII, under jq 1.6 and 1.7.
Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
1 download
- The