triflux 7.3.2 → 7.5.0
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.
- package/.claude-plugin/plugin.json +1 -1
- package/README.ko.md +145 -145
- package/README.md +145 -145
- package/hub/pipeline/index.mjs +318 -318
- package/hub/schema.sql +146 -146
- package/hub/team/agent-map.json +2 -1
- package/hub/team/backend.mjs +3 -3
- package/hub/team/cli/commands/kill.mjs +37 -37
- package/hub/team/cli/commands/start/parse-args.mjs +4 -2
- package/hub/team/cli/commands/stop.mjs +31 -31
- package/hub/team/cli/commands/task.mjs +30 -30
- package/hub/team/cli/services/hub-client.mjs +208 -208
- package/hub/team/cli/services/native-control.mjs +4 -1
- package/hub/team/cli/services/runtime-mode.mjs +62 -62
- package/hub/team/cli/services/state-store.mjs +48 -48
- package/hub/team/codex-compat.mjs +78 -0
- package/hub/team/dashboard.mjs +274 -274
- package/hub/team/native.mjs +649 -649
- package/hub/team/pane.mjs +154 -150
- package/hub/team/psmux.mjs +1041 -1023
- package/hub/team/tui-viewer.mjs +2 -2
- package/hub/team/tui.mjs +12 -1
- package/hub/tools.mjs +554 -554
- package/hud/constants.mjs +3 -0
- package/package.json +1 -1
- package/scripts/claude-logged.ps1 +54 -0
- package/scripts/headless-guard.mjs +94 -7
- package/scripts/lib/mcp-filter.mjs +720 -720
- package/scripts/preflight-cache.mjs +137 -137
- package/scripts/remote-spawn.mjs +222 -0
- package/scripts/setup.mjs +84 -1
- package/scripts/tfx-gate-activate.mjs +89 -0
- package/scripts/tfx-route-post.mjs +17 -13
- package/scripts/tfx-route.sh +118 -46
- package/scripts/token-snapshot.mjs +575 -575
- package/skills/remote-spawn/SKILL.md +63 -0
- package/skills/tfx-auto/SKILL.md +1 -1
- package/skills/tfx-multi/SKILL.md +1 -1
|
@@ -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 설치
|
package/skills/tfx-auto/SKILL.md
CHANGED
|
@@ -31,7 +31,7 @@ argument-hint: "<command|task> [args...]"
|
|
|
31
31
|
> 1. **실행**: CLI 에이전트는 반드시 `Bash("bash ~/.claude/scripts/tfx-route.sh ...")`. Claude 네이티브(explore/verifier/test-engineer/qa-tester)만 `Agent()`.
|
|
32
32
|
> 2. **비용**: Codex 우선 → Gemini → Claude 최후 수단. `claude` 선택 전 "Codex로 가능한가?" 재확인.
|
|
33
33
|
> 3. **DAG**: SEQUENTIAL/DAG이면 레벨 기반 순차 실행. `.omc/context/{sid}/` 생성, context_output 저장, 실패 시 후속 SKIP.
|
|
34
|
-
> 4. **트리아지**: Codex
|
|
34
|
+
> 4. **트리아지**: Codex `exec --full-auto` 분류 + Opus 인라인 분해. Agent 스폰 금지.
|
|
35
35
|
> 5. **thorough**: `-t`/`--thorough` 시 파이프라인 init 필수. 커맨드 숏컷은 항상 quick.
|
|
36
36
|
|
|
37
37
|
## 모드
|
|
@@ -62,7 +62,7 @@ preflight와 Agent 생성을 병렬로 실행하여 사용자 체감 지연을
|
|
|
62
62
|
### Phase 2: 트리아지 (tfx-auto와 동일)
|
|
63
63
|
|
|
64
64
|
**자동 모드:**
|
|
65
|
-
1. Codex
|
|
65
|
+
1. Codex `exec --skip-git-repo-check` 분류 → JSON `{parts: [{description, agent}]}`
|
|
66
66
|
2. Opus 인라인 분해 → 서브태스크 배열 `[{cli, subtask, role}]`
|
|
67
67
|
3. Codex 분류 실패 시 → Opus가 직접 분류+분해
|
|
68
68
|
|