-
v0.27.0
Stablereleased this
2026-11-11 06:19:13 +00:00 | 54 commits to main since this releaseAdded
rexcity acp clauderuns a real agent under gc'ssession = "acp":--model,--effortand--settingsgo intosession/newas claude-agent-acp's_meta.claudeCode.options,--bypasssendssession/set_modebypassPermissionsright after it and holds thesession/newreply until the agent accepts, so no permission request reaches gc (a refused mode becomes an error forsession/new), and--pre-start CMD(repeatable) runs the agent's pre_start commands, which gc's ACP runtime skips, before the agent starts. The image carries the pinned claude-agent-acp v0.104.1 standalone build as/usr/local/bin/claude-agent-acp, with its bundled Claude CLI in/usr/local/lib/claude-agent-acp/beside it, and the image's smoke test drivesrexcity acp claudethrough one prompt with a tool call against a stand-in for the Anthropic API (cmd/rexcity-mock-api). The image grows by the two binaries, about 450 MB.rexcity acp view LOGrenders an ACP proxy's log readably (prompt, streamed agent text, tool calls with a short result, plan, stop reason; long output truncated). The Rex tab ofrexcity acp clauderuns it with--followinstead oftail -Fon the raw JSON-RPC, and closes itself 5 minutes after the agent exits (REXCITY_ACP_GRACEstill overrides, was 5 s); the proxy no longer waits for the grace, so it returns when the agent exits.- A Claude session that has
CLAUDE_CODE_ENABLE_TELEMETRYset getscity(GC_CITY's base name),gc.agent(GC_ALIAS) andgc.rig(GC_RIG) appended toOTEL_RESOURCE_ATTRIBUTESby the rex runtime's start wrapper, percent-encoded, empty ones omitted and the attributes already there kept, soclaude_code.token.usagecan be split by city and agent. Without telemetry the env is untouched. - The release workflow calls each city's Flux Receiver (
saraksh-rexcity,uptime-rexcity) after the chart is published, so its OCIRepository reconciles at once. It reads the repository secretsFLUX_RECEIVER_SARAKSH_PATH,FLUX_RECEIVER_SARAKSH_TOKEN,FLUX_RECEIVER_UPTIME_PATHandFLUX_RECEIVER_UPTIME_TOKEN; a city with unset secrets is skipped, and a failed call only warns. rexcity acp claude, an ACP proxy: it runs an ACP agent such asclaude-agent-acpas its child, relays the JSON-RPC both ways unchanged, logs each message as a JSON line and shows the log in a Rex tab.rexcity-acp-clientis a stand-in for gc to run it end to end, andmake acp-agentfetches a pinnedclaude-agent-acp.packs/forgejoships the orderpr-sweep, a shell script every 15 minutes that finds the city's open pull requests with no bead in flight: it slings a rebase to the rig's fix pool for one that conflicts with its target, slings the next review round for one with no approval at its head, and mails the Mayor once per pull request and head about one that is stuck or escalated. Hold labels stop it, and--dry-runlists the action for each pull request.- A pull request that changes the
Dockerfile,rootfs/,cmd/,internal/or the Go module files builds the image on the Forgejo runners and runs the image's tools inside it (.forgejo/scripts/smoke-image.sh). The image itself is unchanged.
Changed
rexcityis the one entry point:rexcity runtimeis the session runtime thatgc-runtime-rexwas, with the same arguments, andrexcity acp claudeis the ACP proxy for Claude, which had acmd/rexcityof its own.rexcity,rexcity runtime -handrexcity acp -hprint usage, and an unknown command exits 2. The commandcmd/gc-runtime-rexis gone; installcmd/rexcityinstead. gc's exec session provider takes an executable name, not a command line, so the image carriesgc-runtime-rexas a link torexcity, which acts asrexcity runtimewhen started under that name, andpack.tomland a city's configuration need no change.- The forgejo pack's Refinery sleeps when its queue is empty. Its
mol-refinery-patrolfork endsfind-workwithout pouring a next wisp and burns every patrol wisp assigned to the Refinery, so none is left open andsleep_after_idleputs the session to sleep. A polecat's handoff wakes it, and the startup prompt pours a wisp. With work found the patrol still pours the next wisp. - The image is built on kuberex 0.26.0.
Fixed
- A nudge the rex runtime delivers through an agent's message socket is no longer byte-identical to the one before, which Claude Code dropped as a duplicate (a second "You have mail from human" never reached the Mayor). A mail notice now names each unread message not yet named to that session as
- [mail] <id> from <sender>: <subject>(fromgc mail inbox --json), and every delivery ends with a stamp of its own id and time. If the lookup fails the nudge goes out with the stamp only. go test ./packs/is green on main again: theTestReviewOfAMovedHeadcase for a work bead naming a round no review bead has expects the claim release (--assignee=) that a blocking stop now makes, which the test lacked after two pull requests merged on top of each other.- Every step of
mol-forgejo-pr-reviewcarriesgc.continuation_groupandgc.session_affinity = require, so with two reviewer sessions gc keeps a review workflow's steps on the session that claimed its first instead of splitting them across both. The drain closes only the drain step of the workflow root thatloadrecorded asWORKFLOW_ROOTin the state file, not that of another workflow whose step the session's hook claimed. - The forgejo reviewer reads
REVIEW.mdfrom the pull request's target branch, not its head, so a pull request that editsREVIEW.mdno longer steers its own review; the reviewer names aREVIEW.mdchange in its findings. mol-forgejo-pr-reviewofpacks/forgejoleaves a review bead routed to another rig untouched: a reviewer session of one rig that claims the step of another rig's review hands its step back (open, unassigned) instead of claiming the bead or blocking it asinvalid_beadbecause its own checkout is not the pull request's repository. The route is read fromgc.execution_routed_to, which gc writes on a slung bead, withgc.routed_toas the fallback; the handed-back step also drops its session pin.loadofmol-forgejo-pr-reviewreleases the assignee of the review bead once it holds the review, recordingreview_session, so the session's nextgc hook --claimreturns the review's next step and not the review bead.- A
mol-forgejo-pr-reviewstop ofpacks/forgejothat blocks the review bead also releases its claim, so the reviewer session closes on drain instead of sleeping and keeping gc from starting the rig's next reviewer. - The forgejo pack's Refinery handoff to an existing pull request slings a review round whenever the pull request's head differs from the commit of its latest review, and numbers the round after the pull request's earlier review beads. A handoff without
review_roundused to call every round 1. - A forgejo review round whose pull request moved while it ran finds a newer round among the pull request's review beads, found by
pr_number, not in the work bead'sreview_bead_round. A rebase bead's round N+1 no longer leaves the Mayor a false "moved, no newer round" mail.
Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
1 download