Skip to Content

How it works

A small computer that sleeps until something needs it, checks your accounts on a schedule, and turns everything outward into a card you approve.

Its own computer, asleep until needed

Rusuban runs on a Sprite, Fly.io's small always-there computer that sleeps when idle and wakes in a second or two when a request arrives. It keeps its database (SQLite) on its own disk, so nothing is lost while it sleeps. In the week these docs were written the developer's agent woke 304 times and slept in between.

Three things wake it:

WhatWhen
Upstash QStasha signed tick every 5 minutes, so scheduled checks run even when no one has the app open
The appany request from a paired phone or browser (and it drains due work right after answering)
The live viewthe public feed on this site, polled every 20 seconds only while someone is looking

While it works it holds a short task lease on its Sprite, so it is never paused halfway through a send.

A sequence: QStash posts a signed tick; the Sprite answers 202 at once, takes a task lease, runs the due checks through Sprites connectors, asks Jev whether each new item needs you, files it in Needs you, and sleeps again
One wake, from the 5-minute tick to a sorted Needs you list. The count reaches your phone with the morning brief.

Checking your accounts

Each source has its own check, which you can switch off or speed up on the Routines screen:

CheckDefaultFirst look-back
Gmailevery 15 min2 days
Slack (mentions and messages to you)every 15 min2 days
Calendarevery 30 min
Drive (files shared with you)every hour2 days
Box (your folder and shared folders)every hour2 days
Rusuban's own inbox (AgentMail)every 5 min
Money owed (Gmail)every 6 hours90 days

New items go to TypeSafe Jev, which answers a few plain questions about each one: does this need the owner, which bucket fits, how urgent is it. Code compares dates and amounts; Jev never does arithmetic. The result is your Needs you list and the morning brief.

Doing things, but only with your OK

When you ask for something in chat, or a routine finds something to do, the model calls tools:

  • Read tools run straight away: search Gmail, read a thread, check your calendar, search Drive, search and read the web, look up money cases and memory. Whatever they return is wrapped as untrusted data, with a random marker per run, so text in an email can't pose as your instructions.
  • Propose tools never act. Each one makes an approval card and ends the model's turn.
  • Internal tools only write Rusuban's own records: a watcher, a routine, a remembered fact, a code task in the sandbox.

The executor that actually sends is not a tool the model can call. It runs the exact payload you approved, once, after checking that nothing changed.

A sequence: you ask the brain to email Dana; the brain proposes; the gate decides to ask; the card shows To, Subject and Message; you approve; the outbox waits 20 seconds for undo, re-hashes the payload, re-checks the target and sends once through Gmail; the result returns to the chat
From your words to a sent email. Details in Approvals and safety.

Keys never live on the Sprite

Every outside service is reached through a Sprites connector. The agent calls https://<gateway>/<provider>/… with a placeholder key, and the gateway adds the real key on the way out. Connectors are limited by Sprite label, so only your Rusuban Sprites can use them.

Provider API keys never sit on the Sprites. What does: QStash's signing keys (they can only verify a tick); the secret the agent and the workshop share to sign jobs (on both Sprites); the agent's own web-push key and Rewind signing key, in its database; and, if you sign Codex in with your ChatGPT plan, that sign-in on the workshop Sprite.

Two Sprites, one with no way out

Code tasks and mini-apps run on a second Sprite, the workshop. It has no GitHub, no mail, nothing that can send, push or pay: only the model, npm and the Sprites gateway. The agent fetches the repo for it and opens the pull request itself, after you approve the diff. Code tasks.

On this page