Skip to content

feat: add opt-in auto-join and auto-leave (0.2.3) - #10

Merged
logickoder merged 2 commits into
mainfrom
feat/auto-join
Nov 24, 2026
Merged

logickoder merged 2 commits into
mainfrom
feat/auto-join

Conversation

@logickoder

@logickoder logickoder commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add opt-in auto-join config (~/.agent-bridge/config.json) and CLI (agent-bridge auto-join on|off|ignore|unignore), off by default.
  • Add leave --session <id> (and session-bound leave with no args) so exit hooks release bindings cleanly even after renames.
  • Wire auto-join and auto-leave across all three adapters:
    • Claude Code: SessionStart (claude-session-start) silently joins; SessionEnd (claude-session-end) leaves. Refresh cached plugin on agent-bridge install.
    • Antigravity: SessionStart (agy-session-start) prompts agy to run join --kind agy on the first turn; loopback TCP alive probe detects exited CLI sessions (persistEndpoint stays false).
    • opencode: subscribes to session.created and session.deleted via ctx.event.subscribe (skipping child sessions and resolving symlinks).
  • Split persistEndpoint from alive on Adapter, and add background Hub.probePushers() sweeps (3s cooldown, 100ms retry, 45s timer) kicked by status and send --to-kind.
  • Bump package to 0.2.3 and Claude plugin to 0.2.0.

Verification

  • pnpm build && pnpm check: typecheck clean, 31/31 unit test files (348/348 tests), 9/9 e2e files (100/100 tests).
  • Live tmux tests against isolated AGENT_BRIDGE_HOME on Claude Code, Antigravity, and opencode.

Add ~/.agent-bridge/config.json with `agent-bridge auto-join on|off|ignore|unignore`, `leave --session`, Claude Code SessionStart/SessionEnd hooks, Antigravity SessionStart hook and loopback liveness probe, opencode session.created/session.deleted handlers, and background daemon liveness sweeps.

Bump package.json to 0.3.0 and Claude plugin to 0.2.0.
@logickoder logickoder changed the title feat: add opt-in auto-join and auto-leave (0.3.0) feat: add opt-in auto-join and auto-leave (0.2.3) Nov 24, 2026
@logickoder
logickoder merged commit 2cdaeec into main Nov 24, 2026
3 checks passed
@logickoder
logickoder deleted the feat/auto-join branch November 24, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant