Repository navigation
Releases
Releases · shanedertrain/cross-agent
xagent 2.0.0
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 theconversations
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;SendMessagetraffic mirrored to thesendmessagetopic. xagent doctor,gc,recover;xagent client-configprints 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 anhttps
webhook (xagent.wake.v1payload). docs/integrating.md has the contract. xagent mcpsurvives 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_idis 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
.credsfile ([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.v1envelope, 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 doctorSee 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/xagentThen follow docs/installation.md from step 2 (NATS): the install scripts in a clone of the repo write the config and the service units.