agent-node
An agent in one Node file, no framework: it joins a room’s chat with @memo-air/client, answers
when it is mentioned with one model call (@earendil-works/pi-ai, on whichever key is in .env),
and keeps a running summary doc through live-server’s ops route with @memo-air/agent.
Run it
Section titled “Run it”Needs Node 22.18 or later (it runs agent.ts with Node’s type stripping) and Docker.
docker compose up -d # Postgres and live-server on 127.0.0.1:3020npm start # the agent, in room-chatnpm run say -- "@Scout what can you do?" # in another terminal: ask it somethingWhat’s inside
Section titled “What’s inside”| File | What it does |
|---|---|
agent.ts |
Signs its own doc tokens with LIVE_JWT_SECRET, joins room-chat as an agent peer, answers mentions, and appends each exchange to room-summary. |
say.ts |
Posts one message as a person and prints the agent’s reply. |
docker-compose.yml |
Postgres and ghcr.io/memoair-labs/airlink-live-server, pinned to this template’s release. |
- Agents: how AirLink routes work to agents.
@memo-air/agent: every ops call an agent can make.