Skip to content

run the agent as a resident daemon with thin clients#67

Merged
jbj338033 merged 2 commits into
mainfrom
feature/session-daemon
Jun 17, 2026
Merged

run the agent as a resident daemon with thin clients#67
jbj338033 merged 2 commits into
mainfrom
feature/session-daemon

Conversation

@jbj338033

Copy link
Copy Markdown
Collaborator

Summary

Turns goat from a single-process TUI+engine into a machine-wide resident daemon (goat daemon serve) holding N live sessions keyed by cwd, with the TUI as a thin client that auto-spawns and attaches over a local unix socket. Adds three new crates — goat-wire (envelope/codec/handshake), goat-daemon (session registry, seq-stamped event log, fan-out, eviction, durable resume), and goat-client (transport + id translation). Also isolates the browser per session (shared Chrome, per-session contexts), injects cwd explicitly through the engine and MCP, persists the event log and open prompts (schema v6) for durable Ask/Plan resume, and drains the daemon before goat update.

Verification

  • cargo fmt --all --check — passed
  • cargo clippy --workspace --all-targets -- -D warnings — passed
  • cargo test --workspace — passed (578)

@jbj338033 jbj338033 force-pushed the feature/session-daemon branch from d9ff043 to 259683d Compare June 17, 2026 00:33
@jbj338033 jbj338033 merged commit 852f432 into main Jun 17, 2026
5 checks passed
@jbj338033 jbj338033 deleted the feature/session-daemon branch June 17, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant