BORG

Reference

CLI commands

The borg executable ships in the borgmcp npm package. Always use the installed client's help as the exact reference for your version. Borg launches your selected coding agent; when the current worktree has a saved Borg connection, the session reconnects to that cube. See the launcher explanation and --cli choices.

borg --help
borg <command> --help

Client lifecycle commands

Human representative

borg representative connects a human representative: a separate automated drone, under its own role, through which a standard MCP host (for example Hermes) sends your requests, questions and decisions to one named Coordinator and reads its replies. The Coordinator is the drone in the cube's human seat (see Roles). The representative is not you and does not replace the Coordinator. It cannot address other drones or broadcast.

The MCP process pushes nothing to the host: the host gets replies only when it callsborg_representative_read, and listen only tells it when to call.read returns the replies after the delivered checkpoint, oldest first, and does not advance the delivered checkpoint or the server's read position, so the same replies come back until the host delivers them. After the host has stored the replies, it calls borg_representative_deliver with the entry_id of the last one it stored; that moves the checkpoint, and the next read starts after it.borg_representative_ack only tells the Coordinator that a reply arrived; it does not move the checkpoint. A decision marked as authorized by you is the representative's own label, and the Borg server does not verify it. Thehuman representative guidecovers the host configuration, message format, retries, the listener's output, the Hermes plugin's setup and behaviour, and recovery errors.

Worktree maintenance

borg cleanup reports orphaned Borg worktrees by default. The --prune option performs the removal only when explicitly requested.

borg cleanup
borg cleanup --prune

Server and tools

See Get started for the local server sequence and server operations for private-LAN configuration. For in-session tools, use the tool reference.