agent-bridge

Documentation

Migrating a project-local bridge

If a project already has its own bridge like this (for example a shell script on one side and a PowerShell script on the other, with a .claude/bridge/ mailbox and <machine>-<job> worktrees), move to the plugin like this:

  1. Finish the old jobs with the old scripts, or remove them (done), and archive their messages. The plugin uses other folders (.git/agent-bridge-mail/, .claude/agent-bridge/, .claude/worktrees/bridge-*, branches bridge/*), so the two never mix, but nothing moves over either.
  2. Move the settings. The ssh alias, repo path, build folder and job cap go into ~/.config/agent-bridge/peers.json (see Configuration); the project's presets (the usual feature flags and test commands) into <repo>/.agent-bridge.json.
  3. Keep the SSH setup. Keys, from= lines, firewall rules, pinned host keys and ssh config aliases carry over unchanged: point the peer's ssh at the existing alias. Check that the host key is pinned under the alias (HostKeyAlias) and run agent-bridge <peer> doctor. Or pair the machines afresh, which writes its own entries next to the old ones.
  4. Clean up. Make the project's own worktree cleanup skip .claude/worktrees/bridge-* (or ask agent-bridge is-job <path>), then remove the old scripts and skills, and point the project's docs at the plugin.

Edit this page on GitHub →