Install and start the TUI
Install from the latest release with install.sh (or install.ps1 on Windows), then run `celagent` to open a Pi Coding Agent session with a unique persistence ID.
celagent · Pi TUI · BOS session authority
A full Pi Coding Agent TUI with session authority on BOS. CAS writes keep history recoverable across machines; a task ledger covers distributed work.
celagent celagent list celagent <id> # restore from BOS celagent task ledger Pi TUI + BOS persistence
celagent runs a full Pi Coding Agent TUI. Each turn dual-writes a local worker cache and BOS with CAS; restore reads BOS first so sessions survive machine changes.
Persistence model
Each turn dual-writes a local worker SQLite cache and BOS with CAS optimistic locking. Restore reads BOS first; the worker is only a miss fallback (RPO≈0).
The pi-coding-agent engine handles interaction, tools, and models. A turn_end hook persists without blocking the chat.
Local SQLite holds a fast cache with a short write budget. Lost cache can be rebuilt from BOS.
Direct BOS writes use If-Match optimistic locking, idempotent dedupe, and an async queue. sessions/<id>.json keeps full turns.
`celagent <id>` loads history from BOS. `list`, `doctor`, and `cas-probe` check recoverability and conditional-write readiness.
How a session runs
Install from the latest release with install.sh (or install.ps1 on Windows), then run `celagent` to open a Pi Coding Agent session with a unique persistence ID.
On turn end, the worker caches locally and BOS is written with CAS optimistic locking. BOS is the session authority (RPO≈0); the worker is a miss fallback.
`celagent <id>` loads full history from BOS first. `celagent list` shows recoverable sessions; export and remove are available when you need them.
`celagent task submit/status/ledger` drives a Celld state machine with checkpoint resume and a per-cell idempotent ledger.
What it covers
Use celagent when a Pi TUI session must survive machine changes, local cache loss, or multi-step Celld work.
Questions & how-to
On Unix: `curl -fsSL https://github.com/hxddh/celagent/releases/latest/download/install.sh | sh`. On Windows: run install.ps1 from the same release (CLI only; upstream Celld has no Windows package).
On BOS. Each turn dual-writes a worker cache and BOS with CAS. Restore reads BOS first; the worker is only a miss fallback.
No. It reuses the pi-coding-agent engine with the full tool set (bash, read, write, grep, find, edit, ls) and multi-model switching.
MIT.