forked from vhaudiquet/rhema-claw
6a81dfa4669ede2a3683d754171cf19f3479ef19
The account poll kept its notifications cursor in a Mutex<HashMap> on ForgeSource. A restart emptied the map, so the next poll asked the feed from nothing, and every row the forge still considered unread came back to be triaged again. mark_read usually consumes a row, but the call is best-effort, and one failure leaves the row in the feed forever, with every pass re-deciding it and dispatching a fresh turn for a thread that already had one. The repo watches already solve this one scope over: their cursors live in the watch_cursors table, and a restart resumes from the stored row. The account poll does the same now, under SCOPE_ACCOUNT, keyed by forge and account id. The first pass of a new watch still asks from nothing, because an unread feed is news. A restart asks from the durable row, and an unreadable row reads as absent, like a repo watch's, so a corrupted cursor cannot fire a backlog. Removing an account watch deletes its cursor row with it, as removing a repo watch already does. A re-add is a new watch. The new test builds a second ForgeSource over the same store, the shape every restart takes, and checks its notifications poll carries since=2026-10-05T12:00:00Z, the cursor the first pass left.
ῥῆμα, "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
74.9%
Kotlin
13.8%
Vue
7.1%
TypeScript
3%
Dockerfile
0.5%
Other
0.6%