Claude Code용 세션 브리지 플러그인
hackernews
|
|
💼 비즈니스
#claude
#claude code
#p2p 통신
#개발 팁
#멀티레포
#세션 브리지
요약
Claude Code에 대한 'Session-bridge' 플러그인이 출시되었으며, 이는 개발자가 로컬 환경과 원격 서버 간의 작업 세션을 원활하게 연결할 수 있게 해줍니다. 이 플러그인은 복잡한 네트워크 설정 없이도 보안을 유지하며 코드 실행을 지원하며, 특히 원격 개발 작업을 자주 하는 개발자들에게 생산성 향상에 도움을 줄 것으로 기대됩니다.
왜 중요한가
개발자 관점
검토중입니다
연구자 관점
검토중입니다
비즈니스 관점
검토중입니다
본문
Peer-to-peer communication between Claude Code sessions Quick Start · Commands · How It Works · Limitations When you're working across multiple repos — a shared library and its consumer app, a backend and frontend, microservices — each Claude Code session is isolated. session-bridge lets them talk to each other. The Library agent answers questions about breaking changes. The Consumer agent asks what API replaced a deprecated function. The agent responds with its full context — no approximation, no extra API cost. demo.mp4 # Install jq (required) brew install jq # macOS sudo apt install jq # Linux # Install the plugin claude plugin marketplace add PatilShreyas/claude-code-session-bridge claude plugin install session-bridge Alternative: install via git clone git clone https://github.com/PatilShreyas/claude-code-session-bridge.git ~/claude-code-session-bridge Then start Claude with: claude --plugin-dir ~/claude-code-session-bridge/plugins/session-bridge Or add to ~/.claude/settings.json for permanent loading: { "plugins": ["~/claude-code-session-bridge/plugins/session-bridge"] } Open two terminals — one for each project. Terminal 1 (the project that has the answers): cd ~/projects/my-library && claude > /bridge listen Session ID: a1b2c3 Listening for peer messages... (Ctrl+C to stop) Terminal 2 (the project that needs answers): cd ~/projects/my-app && claude > /bridge connect a1b2c3 Connected to 'my-library' > /bridge ask "What breaking changes did you make?" Response from my-library: 3 breaking changes in v2.0: 1. login() → authenticate() — takes a Config object 2. getUser() → getCurrentUser() — returns UserProfile 3. Removed refreshToken() — now automatic That's it. The Library agent responds with its full session context — it knows what it changed, why, and how. No extra API calls, no approximation. | Command | Description | |---|---| /bridge start | Register this session as a bridge peer | /bridge connect | Connect to a peer session (auto-starts if needed) | /bridge listen | Enter listening mode — answer peer queries continuously | /bridge ask | Send a question and wait for the response | /bridge peers | List all active sessions on this machine | /bridge status | Show session ID, connected peers, pending messages | /bridge stop | Disconnect, notify peers, clean up | Tip: You don't always need explicit commands. Just tell your agent "ask the library about X" in natural language and it will use the bridge automatically. The key innovation: /bridge listen puts the agent into a continuous listening loop. When a query arrives, the agent itself responds — with its full conversation context, not an approximation. - No background process — the agent IS the responder - No claude -p calls — zero extra API cost for responses - Full context — the agent that made the changes answers questions about them - Includes real code — responses contain actual file contents, not just descriptions Design principles: - No shared mutable state — each session owns its manifest - Atomic file writes — temp file + mv prevents partial reads - UUID message IDs — no collision risk - Connection via ping handshake — peers never mutate each other's manifests Multi-repo coordination — Library + consumer app, SDK + client, shared module + services You make breaking changes in the library. Instead of context-switching to the consumer app and manually explaining what changed, the consumer agent asks the library agent directly. Backend + Frontend — API changes that affect both sides Backend session changes an endpoint's response format. Frontend session asks "what does the new response look like?" and gets the actual schema, not a stale doc. Microservices — Service A depends on Service B's contract Service B renames a field in its API. Service A's agent asks Service B's agent what changed and updates the client code automatically. Monorepo modules — Independent modules that depend on each other Module X changes an internal interface. Module Y's agent queries Module X about the new type signatures and applies the fix. Migration assistance — Upgrading dependencies with breaking changes Your agent can ask the dependency's agent: "I'm on v1.3. What do I need to change for v2.0?" and get a step-by-step migration with actual code. - Real-time chat between humans (it's agent-to-agent communication) - Remote collaboration across machines (local-only via filesystem) - CI/CD pipelines (sessions are tied to interactive Claude Code) - Persistent messaging (messages don't survive session cleanup) Consumer: "Update our app to use auth-sdk v2.0" Agent detects version bump → proactively queries library peer Agent: "Asking auth-sdk about breaking changes..." Library responds with changes + migration steps Agent applies all changes automatically Agent: "Done. Updated 4 files, ran tests, all passing." Consumer: /bridge ask "How should I handle the new error types?" Library: "What error types are you currently catching? Send me your error handler." Consumer: (reads