-
v0.2.0
Stablereleased this
2026-11-16 06:12:51 +00:00 | 70 commits to main since this releaseChanged
- The image's
gcis built from commit 76a06b2 of gascity'smain, whosegc initchecks the dependencies of the runtime the city selects and not tmux's. - On
Cancelthe host keeps the prompts gc sent, which run in order once the turn has stopped, and drops only the owner's waiting prompts.
Added
-
The Matrix driver's tests run in CI: the job fetches Tuwunel 2.0.0's static binary, checks it against a pinned checksum, and starts it as a process, since the runner has no Docker daemon.
scripts/tuwunel-test.sh run <binary>starts it, andscripts/fetch-tuwunel.shfetches it. WithROOMCITY_TEST_REQUIRE_HOMESERVERset, a test fails instead of skipping when there is no homeserver. -
A session's transcript as a page of the server's page listener:
/-/<session>shows the session's card and its stream as a room shows it, but whole (a tool call's output and a permission request's detail are not cut, and the owner's own words are in),/-/<session>/rawgives the stream as it passed through the server, one JSON message a line, and/-/lists the sessions. The page is read-only and sits behind the pod's authenticating proxy; the journal's notice of a session's end links to it. A transcript is removedtranscript_termafter its session ended, 90 days unless the[server]table says otherwise; a session still running is never removed. -
At each start the server removes from the city's rooms those who no longer hold a role: anyone in a room the city's own user made, a room that left the space included, who is neither one of the city's own users nor in
[[chat.holders]], whether they had joined or only been invited. Nothing they said is redacted. With no holder in the configuration no one is removed. -
The owner's message goes into the running turn at once where the agent takes a message into it, as Claude Code does through steering, and waits for the turn's end where it does not, as goose does:
Prompt.into_turninhost.protoasks it for the owner's prompts, and the new callHostService.Handledtells the server whether the host steered a prompt into the turn, began a turn with it, or queued it. The server writes the prompt's Waiting and Delivered records from that report alone, so the room's ⏳ is on exactly the messages that wait. -
The city's space, named for the city, with a room for each always-on agent in it and the journal, which the city's own user writes: a notice with a link to the room when a session for a task starts, one with a link to its transcript when it ends, and one when an always-on agent's session begins anew. A session started for a task has a room of its own, named for the agent and the session and open to the space's members without an invitation; at the session's end the room leaves the space and the agent's user leaves the room. The
nameandtranscriptskeys of[chat]set the space's name and the transcripts' address. -
The host gives its agent the secrets the server mounts as files: each variable
ROOMCITY_SECRET_<NAME>=<path>of its environment setsNAMEfor the agent to the content of that file, and a file that cannot be read ends the host, naming the variable and the path. -
The session's stream in an agent's room as decided: thoughts as one folded notice for each run, a tool call as a notice for its start and one in reply for its result, the plan as one notice edited in place at most every 1.2 s, the typing notice for the whole turn and off while a permission request waits, a permission request as a message with a reaction for each option, answered by the first owner's reaction, and gc's nudge as a notice.
-
gc's
interrupt(and its Escape and Ctrl-C keys) ends the running turn and drops nothing:CancelofHostServicehaskeep_waiting, and what waits runs after the turn, the owner's first. The owner's!stopcloses the record of each of the owner's prompts that it drops with aDroppedprompt record, so that a room can take the ⏳ off. -
In an always-on agent's room,
!stop, which cancels the turn, and!help; an unknown command is answered with the known ones. A message to a session that is not running is answered with a notice that it was not taken. The reaction ⏳ marks the owner's message while it waits for the turn's end. -
roomcity hostdrives an agent that is an ACP process of its own: when the command the server stages names a program other thanclaude, the host runs it in the working directory and speaks ACP on its standard streams, framing and reporting it as it does Claude Code. Tried ongoose acpwithkimi-for-coding. -
roomcity server: it opens the registry, readsroomcity.toml(-config, orROOMCITY_CONFIG) and serves on three listeners: the network (HostService,GcService), a loopback port for the runtime alone (server.runtime_listen, 127.0.0.1:8082) and a loopback port for the transcripts page's proxy (server.page_listen, 127.0.0.1:8081). Each session is a Kubernetes Job in the server's namespace. -
The runtime's handshake (
protocol) declarescarrier.ops,idle-boundary,report-activityandreport-attachment, and the operations they ask for:peek, which shows the last lines of what the room shows as text, ending with gc's ready prompt when no turn runs and with a busy line while one does (a turn that waits for a permission answer is not idle);get-last-activity, the time of the session's latest frame;interruptandsend-keys(Escape and Ctrl-C), which end the turn as!stopdoes;clear-scrollback; andis-attached, always false. gc'sruntime checkpasses all 17 checks andruntime conformancefails none. -
roomcity runtime, alsogc-runtime-room: gc's exec session runtime. It hands each operation to the server atROOMCITY_RUNTIME_URL.start,stop,is-running,process-alive,list-running,nudgeand the meta operations are carried out; the rest answer exit 2, as an operation that is not offered. -
The registry, in SQLite: sessions, one numbering of each session's frames, prompts and lifecycle, the queue of instructions that survives a restart, the marks gc keeps, and the bundle a start stages for the host.
-
A Secret of
roomcity.tomlthat has akeymay nameenv, the variable the agent gets the file's content in. The Job then carriesROOMCITY_SECRET_<VARIABLE>, the path of the mounted file, and the value is never in the pod's spec. -
What gc starts for a service agent runs as a process of the server, with no Job, no room and no host:
[agents."<pattern>"] process = truenames the agents, byGC_AGENTandpath.Match. The command gc gives is run bysh -cin its working directory with its environment, its output goes to<data>/processes/<name>.log, andstopends the process and all it started. Such a process is running, listed and stopped as a session is; a nudge to it fails. -
The
[server],[agents.<name>]and[kube]sections ofroomcity.toml; a key the file has and the program does not know is an error. -
HostService.Stage, which the host calls once before it starts the agent: a manifest (the agent's command, the commands to run before and after the start, the setup script) and the files, as a tar stream extracted under the working directory. A server that has not implemented it is taken to stage nothing. -
roomcity host, the program of a session's pod: it drives Claude Code throughclaudeacpv0.6.0 in its own process, takes the server's instructions (prompt, cancel, permission answer, stop) and reports every ACP message in both directions as a numbered frame, sending again what the server has not acknowledged. After a lost connection it attaches again, naming the last instruction it took. It readsROOMCITY_SESSION,ROOMCITY_TOKEN,ROOMCITY_SERVERandROOMCITY_WORKDIR, andROOMCITY_SETTINGS, a settings file for claude, when set. -
The stand-in
gc,roomcity gc: it sends its arguments, standard input,GC_*environment and directory to the server throughGcServiceand ends with the exit code of the gc the server ran. It takes the session, its token and the server fromROOMCITY_SESSION,ROOMCITY_TOKENandROOMCITY_SERVER, and sends the token as a bearer token with the call. -
The server's side of
GcService, packageinternal/gchandler: it runs the realgcin the city's directory with the session'sGC_*variables, for a call that carries the session's own token. -
The chat side, in
internal/chat: a driver interface in a chat system's neutral terms, a room for each always-on agent as its session appears, an owner's message in the room as a prompt, and the agent's answer out as one message for each paragraph. -
The Matrix driver, in
internal/chat/matrix: an application service on mautrix-go whose agents' rooms are found again by alias after a restart, and whose transactions handler is mounted on the server. -
The
[chat]section ofroomcity.toml, the holders of the owner's role, and the[matrix]section: the homeserver, the server name, the city's name and the token files. -
scripts/tuwunel-test.sh, a local Tuwunel 2.0.0 for the driver's tests.
Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
1 download
- The image's