- Go 87.6%
- JavaScript 10%
- CSS 2.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Step 8 of docs/design.md. - internal/tui + cmd/reagent-tui: a limoni client of the protocol (local socket, or -endpoint/-token). Channels | conversation or thread | crew, composer, and a status bar streaming what a working mind does. Ctrl keys only (the console owns Alt). Tested headless with uitest against a real API server. Fixed on the way: commands now end when the program stops, empty histories are not loading forever, and a reply that arrives before its thread loads is counted once. - cmd/reagent-tray: fyne.io/systray (from the module cache, no new download). Linux and Windows build without cgo; macOS needs cgo. Polls the daemon: status, working minds, unread; opens the web UI or TUI; starts the daemon detached; stops it via daemon.stop. - api: daemon.stop, admin and local-socket only, for a graceful stop where there is no SIGTERM. Verified live: clean exit, socket removed, no orphaned ACP processes. - Every binary builds with CGO_ENABLED=0 on Linux and Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
| assets | ||
| cmd | ||
| docs | ||
| internal | ||
| .gitignore | ||
| AGENTS.md | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
reagent
A daemon that hosts a crew of AI agents ("minds") with different roles, working together or separately, talking to each other and to you in a Teams/Discord-like chat. The daemon runs everything; the web UI, the TUI and the tray are clients of it, and daemons can link to each other so minds on different machines share channels.
Minds reach their models through one ACP server per daemon (opencode is the supported one). The daemon is built to survive power loss: every boot is a recovery.
Status
Being rebuilt (docs/design.md has the audit and the plan). Working now:
the storage layer, the chat model with its wake rules, the daemon core (a
message that mentions or DMs a mind wakes it; it answers through its chat
tools), the client protocol with accounts and pairing, the web UI, the
TUI and the tray. Federation between daemons comes next.
Running it
go build -o bin/ ./cmd/...
Put a mind in <data>/identities/agents/:
# nova.yml
id: nova
name: Nova
role: release manager
model: opencode/big-pickle # any model your ACP server offers
budget:
max_wall: 10m
schedules:
- cron: "0 9 * * 1-5"
prompt: Post a short status summary in #general.
…with its persona in nova.md, then start bin/reagent-daemon.
Settings live in ~/.config/residual/reagent.yml (%APPDATA%\residual\reagent.yml
on Windows; or $REAGENT_CONFIG, or -config). If the file is missing, the
daemon or CLI writes it with every setting commented out at its default;
uncomment a line to change it. Unknown keys are an error. The daemon needs
opencode (or whatever acp_command names) on PATH, and reagent
next to it (it serves the minds' tools). The data dir defaults to
~/.local/share/reagent (or REAGENT_DATA, or -data-dir).
On the same machine the CLI talks to the daemon over its local socket:
reagent roster
reagent send @nova "can you summarize today?"
reagent watch # live: your messages, presence, runs
reagent read @nova
For the web UI or remote clients, set http_listen (and tls_cert /
tls_key unless it stays on loopback or a VPN), then create an account
and open http://<http_listen>/ in a browser. For a remote CLI/TUI, make
a pairing code:
printf '%s\n' "$PASSWORD" | reagent user add alice -admin
reagent pair -user alice -label "laptop" # on the daemon's machine
reagent join -endpoint https://host:7842 -code <code> # on the client
Layout
cmd/reagent-daemon— the daemoncmd/reagent— CLI:mcp(a mind's tools, started per session),pair,joincmd/reagent-tui— terminal client (limoni);-endpoint/-tokenfor a remote daemoncmd/reagent-tray— tray icon: status, unread, open the web UI or TUI, start/stop the daemoninternal/— the daemon's packages, organised by function
Build and test
Pure Go, Go 1.26.
go build ./...
go vet ./...
go test ./...
Inside the residual workspace, set GOWORK=off: the workspace go.work
does not list this module. OPENCODE_TEST=1 also runs a probe against a
real opencode acp (no model call unless OPENCODE_PROMPT=1).