Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Site

# Builds landing/ (Vite + React) and deploys it to GitHub Pages at logickoder.dev/agent-bridge.
# The build reads the CLI version from the root package.json and takes shared images from docs/assets,
# so a release or a new graphic redeploys too.
on:
push:
branches:
- main
paths:
- "landing/**"
- "docs/assets/**"
- "package.json"
- ".github/workflows/site.yml"
# PRs build only, so a broken page fails before it merges.
pull_request:
paths:
- "landing/**"
- "docs/assets/**"
- "package.json"
- ".github/workflows/site.yml"
workflow_dispatch:

permissions: {}

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: landing
steps:
- name: Checkout
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false

# Version comes from packageManager in landing/package.json.
- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
with:
package_json_file: landing/package.json

- name: Setup Node
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: 24
cache: pnpm
cache-dependency-path: landing/pnpm-lock.yaml

- name: Install
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Upload site
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: landing/dist

# Separate job: deploy rights never sit next to dependency code.
deploy:
needs: build
if: github.event_name != 'pull_request'
# One deploy at a time. A deploy in flight always finishes; the newest queued run goes next.
concurrency:
group: pages
cancel-in-progress: false
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
| `src/adapters/opencode/plugin/` | The opencode plugin. Standalone (node built-ins only): install copies the built file into opencode's plugins folder |
| `src/adapters/claude/plugin/` | The Claude plugin: `/bridge` (socket) and `/bridge-monitor` skills sharing `shared/peer-messages.md`, the monitor, and the bypass-guard hook. Registered by install through the repo's `.claude-plugin/marketplace.json` |
| `docs/` | User docs (`concepts.md`, `install.md`, `agents/`) and the design record (`decisions.md`, `live-tests.md`, `adding-an-agent.md`, `open-questions.md`). Agent findings live in `docs/agents/<agent>.md`; never name a file there `claude.md`, macOS loads it as `CLAUDE.md` |
| `landing/` | The product page at logickoder.dev/agent-bridge. Its own Vite + React + Tailwind project with its own lockfile, deployed by `.github/workflows/site.yml`. Reads the version from the root `package.json`. The favicon and social card are served from `docs/assets` by a plugin in `landing/vite.config.ts`; edit them in `docs/assets`. Not part of the npm package |
| `test/` | Tests that touch real files, sockets or processes. `e2e.test.ts` runs against `dist/cli.js`. `net*.test.ts` run several homes as separate users through `harness.ts` (homes, `until`, `socketRequest`, `tty` on a pseudo-terminal), with `proxy.ts` (a recording, tampering stand-in for the tunnel) |

## Rules
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p align="center"><img src="docs/assets/logo.svg" width="96" height="96" alt="agent-bridge logo: two terminal windows joined by a bridge, with a message crossing it"></p>
<p align="center"><img src="docs/assets/logo.svg" width="96" height="96" alt="agent-bridge logo: a prompt sends a message that arcs over and lands on a cursor"></p>

<h1 align="center">agent-bridge</h1>

Expand Down Expand Up @@ -31,7 +31,7 @@ Then `/bridge share` in each session others may reach, and compare fingerprints

## How it works

![Three idle agent sessions, Claude Code, Antigravity and opencode, each woken by the agent-bridge daemon through its own interface: inbox socket, agentapi send-message, plugin session.prompt.](docs/assets/how-it-works.svg)
![On one machine, myapp-claude sends "ready for review" to myapp-agy. The agent-bridge daemon queues it on disk for that peer and wakes the idle Antigravity session through agentapi; opencode is reached through a plugin. Optionally, the same daemon seals the message end to end and sends it through a tunnel you host to a teammate's daemon, which wakes planner@bob.](docs/assets/how-it-works.svg)

A local daemon routes messages between peers over a Unix socket, with disk queues in `~/.agent-bridge`. Each agent is woken through its own native interface:

Expand Down
199 changes: 132 additions & 67 deletions docs/assets/how-it-works.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/assets/logo-mono.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 8 additions & 16 deletions docs/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/social-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading