Skip to content

xagent 2.0.0

Latest

Choose a tag to compare

@shanedertrain shanedertrain released this 23 Nov 18:18
· 2 commits to master since this release

xagent is rewritten in Rust: one xagent binary (daemon, MCP relay, hooks, CLI), a cargo workspace of seven crates, no
Python runtime.

  • The daemon serves MCP itself on a Unix socket; clients launch xagent mcp, a stdio relay. No separate MCP service.
  • Identity is the native conversation: chat- + 24 hex of sha256(client, conversation), in the conversations
    workspace. A session joins its project's root topic automatically.
  • Wake transports: Claude Code's native cross-session inbox, the Codex app-server, dsh's RPC. Stop hooks for Claude
    Code and Codex; SendMessage traffic mirrored to the sendmessage topic.
  • xagent doctor, gc, recover; xagent client-config prints the client setup.
  • Any agent or system joins under its own client name: xagent mcp --client my-agent (conversation from
    XAGENT_CONVERSATION_ID) or the CLI's --client my-agent. [clients.<name>] wakes it with a command or an https
    webhook (xagent.wake.v1 payload). docs/integrating.md has the contract.
  • xagent mcp survives a daemon restart: it reconnects and replays the client's handshake.
  • Retention is the broker's, shared by every host: xagent retention --days N --max-mb N (new streams: 7 days,
    1024 MB). Each host can keep local copies shorter with [retention] local_days.
  • host_id is unique: each daemon holds a host lease, and a second daemon with the same id waits, not ready.
  • NATS auth by user and password file, or by a .creds file ([nats] credentials_file); TLS with a private CA
    (scripts/setup-nats.sh --tls).
  • Paths follow the XDG base directories. Claude and Codex are woken in their own profile directory
    (CLAUDE_CONFIG_DIR, CODEX_HOME).
  • NATS wire format (subjects, xagent.message.v1 envelope, stream, KV buckets, consumer names) is unchanged.

Dropped: role and numbered-instance identities, multiple workspaces and ws/name addressing, topic wildcards and
subscription replay, the Claude development-channel wake, tmux wake, the shared MCP service, the legacy MCP transport,
the Python package and its pilot scripts.

Install

You need Rust 1.89 or newer and a nats-server binary.

git clone https://github.com/shanedertrain/cross-agent && cd cross-agent
scripts/install.sh && scripts/setup-nats.sh
systemctl --user daemon-reload && systemctl --user enable --now nats-server xagentd
xagent doctor

See the README and docs/installation.md.

Prebuilt binaries

Static Linux binaries (musl, no libc dependency) for x86_64 and aarch64:

arch=$(uname -m)
curl -LO https://github.com/shanedertrain/cross-agent/releases/download/v2.0.0/xagent-v2.0.0-$arch-linux-musl.tar.gz{,.sha256}
sha256sum -c xagent-v2.0.0-$arch-linux-musl.tar.gz.sha256
tar -xzf xagent-v2.0.0-$arch-linux-musl.tar.gz
install -m755 xagent-v2.0.0-$arch-linux-musl/xagent ~/.local/bin/xagent

Then follow docs/installation.md from step 2 (NATS): the install scripts in a clone of the repo write the config and the service units.