triflux 7.4.0 → 7.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: remote-spawn
3
+ description: 로컬/원격 머신에 Claude 세션을 WT 탭으로 spawn합니다. 핸드오프 전달 지원.
4
+ triggers:
5
+ - remote-spawn
6
+ argument-hint: "[--host <ssh-host>] [--dir <path>] <prompt>"
7
+ ---
8
+
9
+ # remote-spawn — 원격/로컬 Claude 세션 Spawn
10
+
11
+ > 새 WT 탭에서 Claude 세션을 시작하고, 선택적으로 핸드오프 컨텍스트를 전달합니다.
12
+
13
+ ## 사용법
14
+
15
+ ```
16
+ /remote-spawn 리팩터링 작업 이어서 해줘
17
+ /remote-spawn --host ultra4 보안 리뷰 진행해
18
+ /remote-spawn --host ultra4 --dir ~/Desktop/Projects/gamma API 점검
19
+ ```
20
+
21
+ ## 동작
22
+
23
+ 1. **인자 파싱**: `--host`, `--dir`, 나머지는 prompt
24
+ 2. **핸드오프 생성** (선택): 현재 세션 컨텍스트에서 최소 핸드오프 생성
25
+ 3. **세션 Spawn**: `scripts/remote-spawn.mjs` 호출
26
+
27
+ ## 실행 규칙
28
+
29
+ ### 로컬 (--host 미지정)
30
+
31
+ ```bash
32
+ node scripts/remote-spawn.mjs --local --dir "${DIR}" --prompt "${PROMPT}"
33
+ ```
34
+ - 새 WT 탭에서 Claude 실행
35
+ - `--dir` 미지정 시 현재 디렉토리
36
+
37
+ ### 원격 (--host 지정)
38
+
39
+ ```bash
40
+ node scripts/remote-spawn.mjs --host "${HOST}" --dir "${DIR}" --prompt "${PROMPT}"
41
+ ```
42
+ - WT 탭에서 SSH 세션 열고 원격 Claude 실행
43
+ - `--dir` 미지정 시 `~`
44
+ - 원격 Claude는 자기 환경(CLAUDE.md, 훅, MCP)을 이미 알고 있으므로 태스크만 전달
45
+
46
+ ### 핸드오프 모드
47
+
48
+ 현재 세션에서 핸드오프를 생성한 뒤 전달하려면:
49
+
50
+ 1. `/mp`로 핸드오프 파일 생성
51
+ 2. `/remote-spawn --host ultra4 --handoff .omc/handoff-xxx.md`
52
+
53
+ 또는 Claude가 직접 핸드오프를 인라인으로 구성:
54
+
55
+ ```bash
56
+ node scripts/remote-spawn.mjs --host ultra4 --prompt "이전 세션에서 JWT 미들웨어 구현 완료. 남은 작업: 테스트 커버리지 80% 달성"
57
+ ```
58
+
59
+ ## 전제 조건
60
+
61
+ - `remoteControlAtStartup: true` 가 settings.json에 설정됨 (`triflux setup`으로 자동)
62
+ - 원격 호스트: SSH config에 등록 + Claude Code 설치
63
+ - 로컬: Windows Terminal 설치