small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

Honcho #

The Honcho extension looks up memories when a person prompts an enrolled Albedo session. It also delivers the conversation to the configured Honcho workspace. Albedo installs the extension with its default selection off.

Configure the destination #

Set the honcho section in extensions.json to identify the destination. Use the same human peer across conversations that should share memories. The assistant peer must have a different ID. Set endpoint to the base URL of a self-hosted server to use it in place of the default hosted endpoint.

{
  "enabled": { "honcho": true },
  "honcho": {
    "workspace": "my-workspace",
    "humanPeer": "aly",
    "assistantPeer": "albedo"
  }
}

Store the bearer key under honcho.apiKey in creds.json. The extension reads the key when making a request. The configuration module owns field validation. See settings for daemon settings and credentials.

Older ordinary chat and skill submissions lack a separately saved original text. Backfill skips these human messages. It can still send their assistant replies.

Enroll a session #

Set enabled.honcho to true as shown above and restart the daemon. Sessions inherit the default for both sync and recall. To keep a session private, turn Honcho off in its extension selection. To enable Honcho for one session while the default is off, turn it on in that session. Reload a running session after changing its selection. Choose inheritance to follow the daemon default again.

When the selected composition enters service, the delivery extension binds a new remote session and records the current end of the transcript. Opening a tool menu or preparing a candidate that the runtime rejects cannot enroll a session. Reload after configuring a destination if the session was already running.

When the daemon default enables Honcho, open the /honcho page to choose an action, or specify it directly, for example /honcho backfill. The operator service serves GET /extensions/honcho/sessions/{session_id} and accepts POST on that path with an action field. The page shows the binding, pending message count, last delivery, next retry, fork copy state, and any reason delivery paused.

Disabling Honcho for a session revokes its local grant. Requests already sent can still complete. Re-enabling starts from the new transcript boundary and drops any old pending deliveries. A destination change pauses capture and recall until you run /honcho bind. Binding the new destination starts a fresh remote session.

Delivery and recovery #

The worker wakes at turn start, turn end, and daemon startup. It reads committed conversation text in pages, then saves each eligible message and its scan position in one transaction. Each part carries its original timestamp when known and a source key for receipt lookup. Long messages split at 25,000 Unicode scalars. A worker handles one part at a time. It waits outside the database while contacting Honcho.

A definite temporary failure schedules another attempt. If a connection breaks while a message is being sent, the worker searches Honcho for a receipt with the same source key. Missing receipts are checked again. Use /honcho retry after fixing a configuration or credentials error to resume delivery or check a receipt. Use /honcho resend only when you intend to authorize a new send of the paused part: the original may still arrive.

/honcho backfill includes the transcript before initial enrollment. The backfill has its own durable cursor. Repeating the command resumes the same interval. A fork omits the prefix copied from its source, including during backfill. Rewinding drops unsent parts beyond the retained position. Previously transmitted data remains in Honcho. Local deletion removes the binding and its queued data. Moving a session leaves its binding with the source daemon, which stops sending to it. Run /honcho bind on the target to enroll the moved session from its current position.

Copy a fork's remote history #

Enroll the child and use /honcho clone before sending its first message to Honcho. Albedo must have captured the checkpoint map when it created the fork. Forks created before this feature lack that map. The parent must have been enrolled at the time. Both bindings must still point to the same destination. The worker waits for pending parent messages through the checkpoint. It copies the acknowledged parts that belong to the fork into the child's own Honcho session before sending new child messages. Repeating the command or restarting the daemon resumes the same copy. Use /honcho cancel-clone to abandon the remaining copy and continue normal child delivery. Parts already accepted by Honcho remain there.

The fork mapping records contiguous runs of copied transcript positions. Each confirmed part has a remote receipt. The worker reads that exact message from Honcho, preserving its remote text, peer and timestamp. Entries added independently to the parent in Honcho have no Albedo receipt and stay in the parent. Copies request reasoning.enabled = false to avoid deriving memories a second time. Honcho's native clone operation assigns a new session ID on each call. Albedo instead uses the child's stable session ID and reconciles lost receipts as it does for ordinary delivery. See the Honcho session clone contract.

Recall #

The prompt hook queries the human peer's representation using the human submission from the opening turn inputs. A successful lookup adds up to 4,000 Unicode scalar values to the model's context. Albedo saves that text as a note attributed to the extension. An empty or failed lookup lets the turn continue.

For a question about previous conversations, use await honcho.ask("What did we decide about tests?") in a Python cell. The kernel binding calls the same session's enrollment. The HTTP client sends the question to the human peer's chat endpoint.