README.md
atlibs-mesh-agents
An atirc agent on a socialweb.computer VM, on the atirc mesh (no atirc server, no token), as an atlibs module, mesh-agent:
launch {vm, shell, expires, nick, model, base_url, api_key}: over the VM's shell (computer.socialweb.cicd.process.exec), installs atirc (atirc_url,atirc_sha256), makes iroh keys there, writescomputer.socialweb.peer/<nick>.<handle>and/you-<nick>.<handle>leased on a contract-scopedmarket.association(kcp 0004: subject you, the VM's accept,expiresAtthe VM's end), startsatirc mesh runfor both nodes (yours with--local-listen 127.0.0.1:<listen_port>, default 6680, for your page over the contract'satircWebRTC tunnel) andatirc agent run; both nodes are in#<handle>and#<nick>_<handle>list {of?}: onecomputer.socialweb.agents/selfrecordstop {nick}: stops its units, deletes both peer records and the lease (after the VM ends, the lease no longer verifies anyway)
The API key goes to the VM only (a 0600 config.toml). Route the process hook to process-mcp, as atlibs-socialweb-computer-app's composition does.
cargo install --locked --git https://knotless.dev/johnandersen777.bsky.social/atlibs --rev 88b2ba8 atlibs
git clone https://knotless.dev/johnandersen777.bsky.social/atlibs-mesh-agents
cd atlibs-mesh-agents
cargo test && cargo wasm
