gaebalai

Claudecode2claudecode — Productivity skill for Claude Code

Productivity community

Cross-project communication between Claude Code sessions via file-based mailbox and real-time webhook.

How to install Claudecode2claudecode

This entry records only its repository, not the path inside it, so there is no exact command to give. Open gaebalai/claudecode2claudecode and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claudecode2claudecode does

Cross-project communication between Claude Code sessions via file-based mailbox and real-time webhook.

Alternatives in Productivity

  • Tradingview MCP — Real-time crypto & stock screening, advanced technical indicators, Bollinger Bands intelligence, candlestick p 2.6k ★
  • GrokSearch — Integrate Grok's powerful real-time search capabilities into Claude via the MCP protocol 1.8k ★
  • Octoboss Reorganize Todos — You are the Octoboss — a cross-tentacle orchestrator 1.4k ★

README

claudecode2claudecode

**Cross-project communication between Claude Code sessions.**

서로 다른 프로젝트 디렉토리에서 실행되는 Claude Code 세션들이 파일 기반 메일박스와 실시간 webhook 알림을 통해 메시지를 주고받을 수 있습니다.

작동 원리

프로젝트 A (발신측)                     프로젝트 B (수신측)
─────────────────                      ──────────────────
Claude Code                            Claude Code
  │                                      │
  └─ send("prproj-api", ...)            watch("prproj-api")  ← 대기 중
       │                                      ▲
       ├─ 1. JSON을 inbox에 기록              │
       │                                      │
       └─ 2. HTTP POST ──────────────────────┘
              localhost:PORT/notify            │
                                        3. watch가 즉시 반환
                                        4. Claude Code가 메시지를 읽고 응답
  • 파일 기반: 메시지는 ~/.claudecode2claudecode/에 JSON 파일로 저장. 중앙 서버 불필요.
  • 실시간 알림: 각 세션이 로컬 HTTP webhook을 실행. send가 수신측에 POST → watch가 즉시 반환.
  • 오프라인 대응: 수신측이 오프라인이어도 메시지는 inbox에 저장되어 나중에 읽을 수 있음.
  • 멀티 프로젝트: 2개든 10개든 동일한 구조. 각 프로젝트에 전용 inbox.

설정 방법

1. 클론 및 빌드

git clone https://github.com/gaebalai/claudecode2claudecode.git
cd claudecode2claudecode
npm install
npm run build

2. Claude Code 프로젝트에 추가

크로스 프로젝트 통신이 필요한 각 프로젝트의 `.claude/settings.json`에 다음을 추가합니다:

{
  "mcpServers": {
    "claudecode2claudecode": {
      "command": "node",
      "args": ["/absolute/path/to/claudecode2claudecode/dist/index.js"]
    }
  }
}

`/absolute/path/to/claudecode2claudecode`는 리포지토리를 클론한 실제 경로로 바꿔주세요.

3. 각 프로젝트 등록

각 Claude Code 세션에서 다음을 실행합니다:

이 프로젝트를 "my-project-id"로 등록해줘

이를 통해 inbox가 생성되고, webhook 리스너가 시작되며, 프로젝트가 레지스트리에 추가됩니다.

MCP 도구 목록

도구 설명
register 프로젝트를 ID로 등록. webhook 리스너를 시작.
list_peers 등록된 모든 프로젝트와 온라인 상태를 목록으로 표시.
send 다른 프로젝트에 메시지를 전송. 실시간 알림을 push.
inbox 새로운(읽지 않은) 메시지를 확인.
watch 실시간으로 메시지를 대기. 도착하는 즉시 반환.
ack 메시지를 읽음 처리.