d887026ff645b223da049ffcef5132b6a1c49cac
`tick` awaited `forge_driver.run_once()` (and the jobs one before it), and `Driver::run_once` awaits every run it admits. So while a turn was under way the loop stopped doing everything else: no forge poll, no watch health, no due task, no calendar reminder, no phone delivery. With a 60s poll interval and a ten-minute turn, the daemon polled once per turn — which is why `last_ok_at` sat frozen at 00:35:02 while the turn that started at 00:35:03 ran. Not a network problem, and not the watch. Worse in combination with a longer lease: an hour-long turn would freeze detection for an hour. Split the pass. The resident loop (`run`) now uses `resident_tick`, which detects and then hands the forge and jobs passes to their own tasks; the interactive drain stays inline, since its runs are the chat itself. One pass per lane at a time — a tick that fires mid-pass leaves its events in the dispatcher's inbox for the next one, which is the queue the dispatcher already is; a second concurrent pass would only lose lease acquisitions to the first. The in-flight flag is cleared by a drop guard, so a panicking pass cannot strand its lane permanently. `tick` keeps its exact shape and semantics: `--once` and the tests still mean "the work happened" when a pass returns, and the forge-line log (`[claw] pass: N detected, H handled, F failed`) is unchanged there. The detached passes log without the detected count, which they do not own.
ῥῆμα, "the spoken word": words that do things.
Rhema Claw
Rhema Claw is the resident tier of the Rhema agent framework: a claw-shaped daemon that watches forges (GitHub, Gitea, GitLab) and calendar feeds, dispatches work to its agents, and serves a chat surface over HTTP — native routes plus an OpenAI-compatible shim, with a web UI and an Android client talking to it.
The framework it embeds (the crates under crates/ it pulls from
crates.io: rhema-autonomous-agent, rhema-host-agent,
rhema-rsd, and friends) lives in the
rhema repository.
Layout
crates/rhema-claw/— the daemon: forge watches, session dispatch, the chat surface, MCP wiring, and the vision helper. See its README.integrations/— the feed adapters that normalize forge and calendar activity intorhema-rsddispatch.tools/— what runs on the user's machine: therhema-claw-tools-contract(the scoped agent-token allowlist the auth middleware enforces), the shared thin-client code, andrhema-claw-tools-notify.web/claw/— the Nuxt web UI.android/— the Compose Android client.deploy/— the Docker images and the Helm chart.
Languages
Rust
76.8%
Kotlin
12%
Vue
7.2%
TypeScript
3%
Dockerfile
0.5%
Other
0.4%