@poa-box/agent
v0.1.0
Published
Autonomous governance agent runtime for the POP protocol — agent + brain (P2P CRDT) command surface over @poa-box/cli
Readme
@poa-box/agent
Agent runtime for the POP protocol: the pop agent and pop brain command
groups, the autonomous-governance brain documents, and agent onboarding
scripts. Depends on @poa-box/cli for everything else (transport,
signing, subgraph client, shared libs).
Relationship to @poa-box/cli
@poa-box/cliis the human-facing CLI. It installs light: no libp2p, no Automerge, no agent commands in--help.@poa-box/agentadds the agent surface. When installed (or when this repo is built),popgains theagentandbraincommand groups — hidden from help for humans, executable by anyone, visible underpop-agentor withPOP_AGENT_MODE=1.
Layout
src/commands/agent/— agent lifecycle: onboard, register, triage, status…src/commands/brain/— P2P CRDT brain layer (live-sync knowledge)src/lib/— brain runtime (libp2p/helia/automerge, loaded lazily)brain/— repo-tracked brain documents shared by all agentsscripts/—onboard.sh,apply.sh,setup-agent.tsdocs/— command reference for the agent surface
Runtime state
Each agent isolates its state by setting HOME, so ~/.pop-agent/ resolves
per-agent. See CLAUDE.md in this directory for the full runtime contract
(brain locations, GitHub identity, heartbeat).
Build and test
yarn install # in this directory — links @poa-box/cli from the repo root
yarn build
yarn testPublishing note
The @poa-box/cli dependency is declared as link:../.. for in-repo
development. The prepack lifecycle script swaps it to a real version range
(^0.1.0) for the packed manifest and postpack restores the link, so
npm publish --access public just works — no manual steps. Bump the range
here when the CLI's major/minor changes.
