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.
- 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/backend.mjs +3 -1
- 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 +118 -118
- package/hub/team/cli/services/runtime-mode.mjs +62 -62
- package/hub/team/cli/services/state-store.mjs +48 -48
- package/hub/team/dashboard.mjs +274 -274
- package/hub/team/headless.mjs +1 -1
- package/hub/team/native.mjs +649 -649
- package/hub/team/tui-viewer.mjs +2 -2
- package/hub/team/tui.mjs +12 -1
- package/hub/tools.mjs +554 -554
- package/package.json +1 -1
- package/scripts/claude-logged.ps1 +54 -0
- 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 +27 -1
- package/scripts/token-snapshot.mjs +575 -575
- package/skills/remote-spawn/SKILL.md +63 -0
package/README.ko.md
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
[English](README.md) | [한국어](README.ko.md)
|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<picture>
|
|
5
|
-
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-dark.svg">
|
|
6
|
-
<source media="(prefers-color-scheme: light)" srcset="docs/assets/logo-light.svg">
|
|
7
|
-
<img alt="triflux" src="docs/assets/logo-dark.svg" width="200">
|
|
8
|
-
</picture>
|
|
9
|
-
</p>
|
|
10
|
-
|
|
11
|
-
<p align="center">
|
|
12
|
-
<strong>Claude Code를 위한 멀티모델 오케스트레이션 허브</strong><br>
|
|
13
|
-
<em>Claude 토큰 절약의 핵심. 고성능 Hub IPC를 통해 모든 작업을 Codex와 Gemini로 라우팅하세요.</em>
|
|
14
|
-
</p>
|
|
15
|
-
|
|
16
|
-
<p align="center">
|
|
17
|
-
<a href="https://www.npmjs.com/package/triflux"><img src="https://img.shields.io/npm/v/triflux?style=flat-square&color=FFAF00&label=npm" alt="npm version"></a>
|
|
18
|
-
<a href="https://www.npmjs.com/package/triflux"><img src="https://img.shields.io/npm/dm/triflux?style=flat-square&color=F5C242" alt="npm downloads"></a>
|
|
19
|
-
<a href="https://github.com/tellang/triflux/stargazers"><img src="https://img.shields.io/github/stars/tellang/triflux?style=flat-square&color=FFAF00" alt="GitHub stars"></a>
|
|
20
|
-
<a href="https://github.com/tellang/triflux/actions"><img src="https://img.shields.io/github/actions/workflow/status/tellang/triflux/ci.yml?style=flat-square&label=CI" alt="CI"></a>
|
|
21
|
-
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-374151?style=flat-square" alt="License: MIT"></a>
|
|
22
|
-
</p>
|
|
23
|
-
|
|
24
|
-
<p align="center">
|
|
25
|
-
<picture>
|
|
26
|
-
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/demo-dark.gif">
|
|
27
|
-
<source media="(prefers-color-scheme: light)" srcset="docs/assets/demo-light.gif">
|
|
28
|
-
<img alt="triflux 데모" src="docs/assets/demo-dark.gif" width="680">
|
|
29
|
-
</picture>
|
|
30
|
-
</p>
|
|
31
|
-
|
|
32
|
-
<p align="center">
|
|
33
|
-
<a href="#빠른-시작">빠른 시작</a> ·
|
|
34
|
-
<a href="#아키텍처">아키텍처</a> ·
|
|
35
|
-
<a href="#파이프라인-thorough-모드">파이프라인</a> ·
|
|
36
|
-
<a href="#위임delegator-mcp">위임 MCP</a> ·
|
|
37
|
-
<a href="#에이전트-타입-21">에이전트 타입</a> ·
|
|
38
|
-
<a href="#보안">보안</a>
|
|
39
|
-
</p>
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
1
|
+
[English](README.md) | [한국어](README.ko.md)
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<picture>
|
|
5
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-dark.svg">
|
|
6
|
+
<source media="(prefers-color-scheme: light)" srcset="docs/assets/logo-light.svg">
|
|
7
|
+
<img alt="triflux" src="docs/assets/logo-dark.svg" width="200">
|
|
8
|
+
</picture>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<strong>Claude Code를 위한 멀티모델 오케스트레이션 허브</strong><br>
|
|
13
|
+
<em>Claude 토큰 절약의 핵심. 고성능 Hub IPC를 통해 모든 작업을 Codex와 Gemini로 라우팅하세요.</em>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://www.npmjs.com/package/triflux"><img src="https://img.shields.io/npm/v/triflux?style=flat-square&color=FFAF00&label=npm" alt="npm version"></a>
|
|
18
|
+
<a href="https://www.npmjs.com/package/triflux"><img src="https://img.shields.io/npm/dm/triflux?style=flat-square&color=F5C242" alt="npm downloads"></a>
|
|
19
|
+
<a href="https://github.com/tellang/triflux/stargazers"><img src="https://img.shields.io/github/stars/tellang/triflux?style=flat-square&color=FFAF00" alt="GitHub stars"></a>
|
|
20
|
+
<a href="https://github.com/tellang/triflux/actions"><img src="https://img.shields.io/github/actions/workflow/status/tellang/triflux/ci.yml?style=flat-square&label=CI" alt="CI"></a>
|
|
21
|
+
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-374151?style=flat-square" alt="License: MIT"></a>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<picture>
|
|
26
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/demo-dark.gif">
|
|
27
|
+
<source media="(prefers-color-scheme: light)" srcset="docs/assets/demo-light.gif">
|
|
28
|
+
<img alt="triflux 데모" src="docs/assets/demo-dark.gif" width="680">
|
|
29
|
+
</picture>
|
|
30
|
+
</p>
|
|
31
|
+
|
|
32
|
+
<p align="center">
|
|
33
|
+
<a href="#빠른-시작">빠른 시작</a> ·
|
|
34
|
+
<a href="#아키텍처">아키텍처</a> ·
|
|
35
|
+
<a href="#파이프라인-thorough-모드">파이프라인</a> ·
|
|
36
|
+
<a href="#위임delegator-mcp">위임 MCP</a> ·
|
|
37
|
+
<a href="#에이전트-타입-21">에이전트 타입</a> ·
|
|
38
|
+
<a href="#보안">보안</a>
|
|
39
|
+
</p>
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
43
|
## v5의 새로운 기능
|
|
44
44
|
|
|
45
45
|
**triflux v5**는 v4의 오케스트레이션 기반을 유지하면서 파이프라인을 더 똑똑하고, 더 phase-aware하게, 더 협업적으로 발전시켰습니다. 멀티태스크 오케스트레이션에서는 이제 `--thorough`가 기본 경로이므로, 계획, 승인, 검증, 복구가 기본값으로 활성화됩니다.
|
|
@@ -57,50 +57,50 @@
|
|
|
57
57
|
- **위임(Delegator) MCP** — 에이전트와 유연하게 상호작용할 수 있는 전용 MCP 도구(`delegate`, `reply`, `status`).
|
|
58
58
|
- **psmux / Windows 네이티브** — `tmux` (WSL)와 `psmux` (Windows Terminal 네이티브)를 모두 지원하는 하이브리드 세션 관리.
|
|
59
59
|
- **QoS 대시보드** — AIMD 기반 동적 배치 사이징 및 실시간 상태 모니터링.
|
|
60
|
-
- **21종 이상의 전문 에이전트** — `scientist-deep`부터 `spark_fast`까지, 작업에 최적화된 에이전트 라인업.
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## 아키텍처
|
|
65
|
-
|
|
66
|
-
triflux는 **Hub-and-Spoke** 아키텍처를 사용합니다. 상주형 허브가 상태, 인증, 작업 라우팅을 총괄하며 고성능 네임드 파이프를 통해 통신합니다.
|
|
67
|
-
|
|
68
|
-
```mermaid
|
|
69
|
-
graph TD
|
|
70
|
-
User([사용자 / Claude Code]) <-->|슬래시 명령어| TFX_CLI[tfx CLI]
|
|
71
|
-
TFX_CLI <-->|Named Pipe / HTTP| HUB[triflux Hub 서버]
|
|
72
|
-
|
|
73
|
-
subgraph "오케스트레이션 허브"
|
|
74
|
-
HUB <--> STORE[(SQLite 저장소)]
|
|
75
|
-
HUB <--> DASH[QoS 대시보드]
|
|
76
|
-
HUB <--> DELEGATOR[위임 서비스]
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
DELEGATOR <-->|Spawn| CODEX[Codex CLI]
|
|
80
|
-
DELEGATOR <-->|Spawn| GEMINI[Gemini CLI]
|
|
81
|
-
DELEGATOR <-->|Native| CLAUDE[Claude Code]
|
|
82
|
-
|
|
83
|
-
HUB -.->|MCP 브리지| External[외부 MCP 클라이언트]
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## 빠른 시작
|
|
89
|
-
|
|
90
|
-
### 1. 설치
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
npm install -g triflux
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### 2. 설정 (필수)
|
|
97
|
-
|
|
98
|
-
스크립트를 동기화하고 Claude Code에 스킬을 등록하며 HUD를 설정합니다.
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
tfx setup
|
|
102
|
-
```
|
|
103
|
-
|
|
60
|
+
- **21종 이상의 전문 에이전트** — `scientist-deep`부터 `spark_fast`까지, 작업에 최적화된 에이전트 라인업.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## 아키텍처
|
|
65
|
+
|
|
66
|
+
triflux는 **Hub-and-Spoke** 아키텍처를 사용합니다. 상주형 허브가 상태, 인증, 작업 라우팅을 총괄하며 고성능 네임드 파이프를 통해 통신합니다.
|
|
67
|
+
|
|
68
|
+
```mermaid
|
|
69
|
+
graph TD
|
|
70
|
+
User([사용자 / Claude Code]) <-->|슬래시 명령어| TFX_CLI[tfx CLI]
|
|
71
|
+
TFX_CLI <-->|Named Pipe / HTTP| HUB[triflux Hub 서버]
|
|
72
|
+
|
|
73
|
+
subgraph "오케스트레이션 허브"
|
|
74
|
+
HUB <--> STORE[(SQLite 저장소)]
|
|
75
|
+
HUB <--> DASH[QoS 대시보드]
|
|
76
|
+
HUB <--> DELEGATOR[위임 서비스]
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
DELEGATOR <-->|Spawn| CODEX[Codex CLI]
|
|
80
|
+
DELEGATOR <-->|Spawn| GEMINI[Gemini CLI]
|
|
81
|
+
DELEGATOR <-->|Native| CLAUDE[Claude Code]
|
|
82
|
+
|
|
83
|
+
HUB -.->|MCP 브리지| External[외부 MCP 클라이언트]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 빠른 시작
|
|
89
|
+
|
|
90
|
+
### 1. 설치
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
npm install -g triflux
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 2. 설정 (필수)
|
|
97
|
+
|
|
98
|
+
스크립트를 동기화하고 Claude Code에 스킬을 등록하며 HUD를 설정합니다.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
tfx setup
|
|
102
|
+
```
|
|
103
|
+
|
|
104
104
|
### 3. 사용 방법
|
|
105
105
|
|
|
106
106
|
```bash
|
|
@@ -134,65 +134,65 @@ v5 파이프라인은 복잡한 엔지니어링 작업에서 기본이 되는 th
|
|
|
134
134
|
Phase-aware MCP 필터링으로 `plan`, `prd`, `verify`는 읽기 중심으로 제한되며, `prd` → `exec` 전이는 `pipeline_advance_gated`로 승인 대기를 걸 수 있습니다.
|
|
135
135
|
|
|
136
136
|
---
|
|
137
|
-
|
|
138
|
-
## 위임(Delegator) MCP
|
|
139
|
-
|
|
140
|
-
MCP 도구를 통해 허브와 직접 상호작용하세요.
|
|
141
|
-
|
|
142
|
-
- **`delegate`**: 프롬프트를 특정 프로바이더로 라우팅하거나 허브에 판단을 맡깁니다. `sync`(동기) 및 `async`(비동기) 모드를 지원합니다.
|
|
143
|
-
- **`reply`**: 실행 중인 에이전트와 대화를 이어갑니다 (현재 Gemini 직접 실행 모드 지원).
|
|
144
|
-
- **`status`**: 비동기 백그라운드 작업의 진행 상황을 확인합니다.
|
|
145
|
-
|
|
146
|
-
---
|
|
147
|
-
|
|
148
|
-
## 에이전트 타입 (21종+)
|
|
149
|
-
|
|
150
|
-
| 에이전트 | CLI | 용도 |
|
|
151
|
-
|---------|-----|------|
|
|
152
|
-
| **executor** | Codex | 표준적인 코드 구현 및 리팩터링. |
|
|
153
|
-
| **build-fixer** | Codex/Gemini | 빌드 및 타입 에러 즉시 수정. |
|
|
154
|
-
| **architect** | Codex | 상위 레벨 시스템 설계 및 계획. |
|
|
155
|
-
| **scientist-deep** | Codex | 철저한 조사 및 심층 분석. |
|
|
156
|
-
| **code-reviewer** | Codex | 보안 및 로직 중심의 코드 리뷰. |
|
|
157
|
-
| **security-reviewer**| Codex | 취약점 및 권한 설정 감사. |
|
|
158
|
-
| **quality-reviewer** | Codex | 로직 결함 및 유지보수성 감사. |
|
|
159
|
-
| **designer** | Gemini | UI/UX 및 문서 디자인. |
|
|
160
|
-
| **writer** | Gemini | 기술 문서 작성 및 설명. |
|
|
161
|
-
| **spark** | Gemini | 가벼운 프로토타이핑 및 빠른 처리. |
|
|
162
|
-
| **verifier** | Claude | 최종 검증 및 유효성 확인. |
|
|
163
|
-
| **test-engineer** | Claude | 포괄적인 테스트 스위트 생성. |
|
|
164
|
-
| *...기타* | | `debugger`, `planner`, `critic`, `analyst`, `scientist`, `explore`, `qa-tester` |
|
|
165
|
-
|
|
166
|
-
---
|
|
167
|
-
|
|
137
|
+
|
|
138
|
+
## 위임(Delegator) MCP
|
|
139
|
+
|
|
140
|
+
MCP 도구를 통해 허브와 직접 상호작용하세요.
|
|
141
|
+
|
|
142
|
+
- **`delegate`**: 프롬프트를 특정 프로바이더로 라우팅하거나 허브에 판단을 맡깁니다. `sync`(동기) 및 `async`(비동기) 모드를 지원합니다.
|
|
143
|
+
- **`reply`**: 실행 중인 에이전트와 대화를 이어갑니다 (현재 Gemini 직접 실행 모드 지원).
|
|
144
|
+
- **`status`**: 비동기 백그라운드 작업의 진행 상황을 확인합니다.
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## 에이전트 타입 (21종+)
|
|
149
|
+
|
|
150
|
+
| 에이전트 | CLI | 용도 |
|
|
151
|
+
|---------|-----|------|
|
|
152
|
+
| **executor** | Codex | 표준적인 코드 구현 및 리팩터링. |
|
|
153
|
+
| **build-fixer** | Codex/Gemini | 빌드 및 타입 에러 즉시 수정. |
|
|
154
|
+
| **architect** | Codex | 상위 레벨 시스템 설계 및 계획. |
|
|
155
|
+
| **scientist-deep** | Codex | 철저한 조사 및 심층 분석. |
|
|
156
|
+
| **code-reviewer** | Codex | 보안 및 로직 중심의 코드 리뷰. |
|
|
157
|
+
| **security-reviewer**| Codex | 취약점 및 권한 설정 감사. |
|
|
158
|
+
| **quality-reviewer** | Codex | 로직 결함 및 유지보수성 감사. |
|
|
159
|
+
| **designer** | Gemini | UI/UX 및 문서 디자인. |
|
|
160
|
+
| **writer** | Gemini | 기술 문서 작성 및 설명. |
|
|
161
|
+
| **spark** | Gemini | 가벼운 프로토타이핑 및 빠른 처리. |
|
|
162
|
+
| **verifier** | Claude | 최종 검증 및 유효성 확인. |
|
|
163
|
+
| **test-engineer** | Claude | 포괄적인 테스트 스위트 생성. |
|
|
164
|
+
| *...기타* | | `debugger`, `planner`, `critic`, `analyst`, `scientist`, `explore`, `qa-tester` |
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
168
|
## 보안
|
|
169
169
|
|
|
170
170
|
triflux v5는 안전한 전문 개발 환경을 위해 설계되었습니다.
|
|
171
|
-
|
|
172
|
-
- **허브 토큰 인증** — `TFX_HUB_TOKEN`을 이용한 보안 IPC (Bearer 인증).
|
|
173
|
-
- **Localhost 전용** — 허브가 기본적으로 `127.0.0.1`에만 바인딩되어 외부 접근을 차단합니다.
|
|
174
|
-
- **CORS 잠금** — QoS 대시보드에 대한 엄격한 오리진(Origin) 체크.
|
|
175
|
-
- **인젝션 방어** — `psmux` 및 `tmux` 실행 시 쉘 명령어 새니타이징(Sanitizing).
|
|
176
|
-
|
|
177
|
-
---
|
|
178
|
-
|
|
179
|
-
## QoS 대시보드
|
|
180
|
-
|
|
181
|
-
`http://localhost:27888/dashboard`에서 오케스트레이션 상태를 모니터링하세요.
|
|
182
|
-
|
|
183
|
-
- **AIMD 배치 사이징** — 작업 성공률에 따라 병렬 작업 수(3 → 10)를 자동으로 조절합니다.
|
|
184
|
-
- **토큰 절약량** — Codex/Gemini 라우팅을 통해 절약된 Claude 토큰을 실시간으로 추적합니다.
|
|
185
|
-
- **할당량 추적** — Codex 및 Gemini의 속도 제한(Rate Limit)을 실시간으로 확인합니다.
|
|
186
|
-
|
|
187
|
-
---
|
|
188
|
-
|
|
189
|
-
## 플랫폼 지원
|
|
190
|
-
|
|
191
|
-
- **Linux / macOS**: 네이티브 `tmux` 통합 지원.
|
|
192
|
-
- **Windows**: **psmux** (PowerShell Multiplexer)와 Windows Terminal을 활용한 네이티브 윈도우 환경 지원.
|
|
193
|
-
|
|
194
|
-
---
|
|
195
|
-
|
|
196
|
-
<p align="center">
|
|
197
|
-
<sub>MIT License · Made with ❤️ by <a href="https://github.com/tellang">tellang</a></sub>
|
|
198
|
-
</p>
|
|
171
|
+
|
|
172
|
+
- **허브 토큰 인증** — `TFX_HUB_TOKEN`을 이용한 보안 IPC (Bearer 인증).
|
|
173
|
+
- **Localhost 전용** — 허브가 기본적으로 `127.0.0.1`에만 바인딩되어 외부 접근을 차단합니다.
|
|
174
|
+
- **CORS 잠금** — QoS 대시보드에 대한 엄격한 오리진(Origin) 체크.
|
|
175
|
+
- **인젝션 방어** — `psmux` 및 `tmux` 실행 시 쉘 명령어 새니타이징(Sanitizing).
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## QoS 대시보드
|
|
180
|
+
|
|
181
|
+
`http://localhost:27888/dashboard`에서 오케스트레이션 상태를 모니터링하세요.
|
|
182
|
+
|
|
183
|
+
- **AIMD 배치 사이징** — 작업 성공률에 따라 병렬 작업 수(3 → 10)를 자동으로 조절합니다.
|
|
184
|
+
- **토큰 절약량** — Codex/Gemini 라우팅을 통해 절약된 Claude 토큰을 실시간으로 추적합니다.
|
|
185
|
+
- **할당량 추적** — Codex 및 Gemini의 속도 제한(Rate Limit)을 실시간으로 확인합니다.
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## 플랫폼 지원
|
|
190
|
+
|
|
191
|
+
- **Linux / macOS**: 네이티브 `tmux` 통합 지원.
|
|
192
|
+
- **Windows**: **psmux** (PowerShell Multiplexer)와 Windows Terminal을 활용한 네이티브 윈도우 환경 지원.
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
<p align="center">
|
|
197
|
+
<sub>MIT License · Made with ❤️ by <a href="https://github.com/tellang">tellang</a></sub>
|
|
198
|
+
</p>
|
package/README.md
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
[English](README.md) | [한국어](README.ko.md)
|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<picture>
|
|
5
|
-
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-dark.svg">
|
|
6
|
-
<source media="(prefers-color-scheme: light)" srcset="docs/assets/logo-light.svg">
|
|
7
|
-
<img alt="triflux" src="docs/assets/logo-dark.svg" width="200">
|
|
8
|
-
</picture>
|
|
9
|
-
</p>
|
|
10
|
-
|
|
11
|
-
<p align="center">
|
|
12
|
-
<strong>The Multi-Model Orchestration Hub for Claude Code</strong><br>
|
|
13
|
-
<em>Vanish Claude tokens. Route tasks to Codex and Gemini via high-performance Hub IPC.</em>
|
|
14
|
-
</p>
|
|
15
|
-
|
|
16
|
-
<p align="center">
|
|
17
|
-
<a href="https://www.npmjs.com/package/triflux"><img src="https://img.shields.io/npm/v/triflux?style=flat-square&color=FFAF00&label=npm" alt="npm version"></a>
|
|
18
|
-
<a href="https://www.npmjs.com/package/triflux"><img src="https://img.shields.io/npm/dm/triflux?style=flat-square&color=F5C242" alt="npm downloads"></a>
|
|
19
|
-
<a href="https://github.com/tellang/triflux/stargazers"><img src="https://img.shields.io/github/stars/tellang/triflux?style=flat-square&color=FFAF00" alt="GitHub stars"></a>
|
|
20
|
-
<a href="https://github.com/tellang/triflux/actions"><img src="https://img.shields.io/github/actions/workflow/status/tellang/triflux/ci.yml?style=flat-square&label=CI" alt="CI"></a>
|
|
21
|
-
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-374151?style=flat-square" alt="License: MIT"></a>
|
|
22
|
-
</p>
|
|
23
|
-
|
|
24
|
-
<p align="center">
|
|
25
|
-
<picture>
|
|
26
|
-
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/demo-dark.gif">
|
|
27
|
-
<source media="(prefers-color-scheme: light)" srcset="docs/assets/demo-light.gif">
|
|
28
|
-
<img alt="triflux demo" src="docs/assets/demo-dark.gif" width="680">
|
|
29
|
-
</picture>
|
|
30
|
-
</p>
|
|
31
|
-
|
|
32
|
-
<p align="center">
|
|
33
|
-
<a href="#quick-start">Quick Start</a> ·
|
|
34
|
-
<a href="#architecture">Architecture</a> ·
|
|
35
|
-
<a href="#pipeline-thorough">Pipeline</a> ·
|
|
36
|
-
<a href="#delegator-mcp">Delegator MCP</a> ·
|
|
37
|
-
<a href="#agent-types">Agent Types</a> ·
|
|
38
|
-
<a href="#security">Security</a>
|
|
39
|
-
</p>
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
1
|
+
[English](README.md) | [한국어](README.ko.md)
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<picture>
|
|
5
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-dark.svg">
|
|
6
|
+
<source media="(prefers-color-scheme: light)" srcset="docs/assets/logo-light.svg">
|
|
7
|
+
<img alt="triflux" src="docs/assets/logo-dark.svg" width="200">
|
|
8
|
+
</picture>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<strong>The Multi-Model Orchestration Hub for Claude Code</strong><br>
|
|
13
|
+
<em>Vanish Claude tokens. Route tasks to Codex and Gemini via high-performance Hub IPC.</em>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://www.npmjs.com/package/triflux"><img src="https://img.shields.io/npm/v/triflux?style=flat-square&color=FFAF00&label=npm" alt="npm version"></a>
|
|
18
|
+
<a href="https://www.npmjs.com/package/triflux"><img src="https://img.shields.io/npm/dm/triflux?style=flat-square&color=F5C242" alt="npm downloads"></a>
|
|
19
|
+
<a href="https://github.com/tellang/triflux/stargazers"><img src="https://img.shields.io/github/stars/tellang/triflux?style=flat-square&color=FFAF00" alt="GitHub stars"></a>
|
|
20
|
+
<a href="https://github.com/tellang/triflux/actions"><img src="https://img.shields.io/github/actions/workflow/status/tellang/triflux/ci.yml?style=flat-square&label=CI" alt="CI"></a>
|
|
21
|
+
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-374151?style=flat-square" alt="License: MIT"></a>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<picture>
|
|
26
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/demo-dark.gif">
|
|
27
|
+
<source media="(prefers-color-scheme: light)" srcset="docs/assets/demo-light.gif">
|
|
28
|
+
<img alt="triflux demo" src="docs/assets/demo-dark.gif" width="680">
|
|
29
|
+
</picture>
|
|
30
|
+
</p>
|
|
31
|
+
|
|
32
|
+
<p align="center">
|
|
33
|
+
<a href="#quick-start">Quick Start</a> ·
|
|
34
|
+
<a href="#architecture">Architecture</a> ·
|
|
35
|
+
<a href="#pipeline-thorough">Pipeline</a> ·
|
|
36
|
+
<a href="#delegator-mcp">Delegator MCP</a> ·
|
|
37
|
+
<a href="#agent-types">Agent Types</a> ·
|
|
38
|
+
<a href="#security">Security</a>
|
|
39
|
+
</p>
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
43
|
## What's New in v5?
|
|
44
44
|
|
|
45
45
|
**triflux v5** keeps the v4 orchestration foundation intact while making the pipeline smarter, more phase-aware, and more collaborative. For multi-task orchestration, `--thorough` is now the default path, so planning, approval, verification, and recovery stay on by default instead of being bolted on later.
|
|
@@ -57,50 +57,50 @@
|
|
|
57
57
|
- **Delegator MCP** — Native MCP tools (`delegate`, `reply`, `status`) for seamless agent interaction.
|
|
58
58
|
- **psmux / Windows Native** — Hybrid support for `tmux` (WSL) and `psmux` (Windows Terminal native).
|
|
59
59
|
- **QoS Dashboard** — Real-time health monitoring with AIMD-based dynamic batch sizing.
|
|
60
|
-
- **21+ specialized agents** — From `scientist-deep` to `spark_fast`, each optimized for specific tasks.
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## Architecture
|
|
65
|
-
|
|
66
|
-
triflux uses a **Hub-and-Spoke** architecture. The resident Hub manages state, authentication, and task routing via high-performance Named Pipes.
|
|
67
|
-
|
|
68
|
-
```mermaid
|
|
69
|
-
graph TD
|
|
70
|
-
User([User / Claude Code]) <-->|Slash Commands| TFX_CLI[tfx CLI]
|
|
71
|
-
TFX_CLI <-->|Named Pipe / HTTP| HUB[triflux Hub Server]
|
|
72
|
-
|
|
73
|
-
subgraph "Orchestration Hub"
|
|
74
|
-
HUB <--> STORE[(SQLite Store)]
|
|
75
|
-
HUB <--> DASH[QoS Dashboard]
|
|
76
|
-
HUB <--> DELEGATOR[Delegator Service]
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
DELEGATOR <-->|Spawn| CODEX[Codex CLI]
|
|
80
|
-
DELEGATOR <-->|Spawn| GEMINI[Gemini CLI]
|
|
81
|
-
DELEGATOR <-->|Native| CLAUDE[Claude Code]
|
|
82
|
-
|
|
83
|
-
HUB -.->|MCP Bridge| External[External MCP Clients]
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## Quick Start
|
|
89
|
-
|
|
90
|
-
### 1. Install
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
npm install -g triflux
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### 2. Setup (Required)
|
|
97
|
-
|
|
98
|
-
Synchronize scripts, register skills to Claude Code, and configure the HUD.
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
tfx setup
|
|
102
|
-
```
|
|
103
|
-
|
|
60
|
+
- **21+ specialized agents** — From `scientist-deep` to `spark_fast`, each optimized for specific tasks.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Architecture
|
|
65
|
+
|
|
66
|
+
triflux uses a **Hub-and-Spoke** architecture. The resident Hub manages state, authentication, and task routing via high-performance Named Pipes.
|
|
67
|
+
|
|
68
|
+
```mermaid
|
|
69
|
+
graph TD
|
|
70
|
+
User([User / Claude Code]) <-->|Slash Commands| TFX_CLI[tfx CLI]
|
|
71
|
+
TFX_CLI <-->|Named Pipe / HTTP| HUB[triflux Hub Server]
|
|
72
|
+
|
|
73
|
+
subgraph "Orchestration Hub"
|
|
74
|
+
HUB <--> STORE[(SQLite Store)]
|
|
75
|
+
HUB <--> DASH[QoS Dashboard]
|
|
76
|
+
HUB <--> DELEGATOR[Delegator Service]
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
DELEGATOR <-->|Spawn| CODEX[Codex CLI]
|
|
80
|
+
DELEGATOR <-->|Spawn| GEMINI[Gemini CLI]
|
|
81
|
+
DELEGATOR <-->|Native| CLAUDE[Claude Code]
|
|
82
|
+
|
|
83
|
+
HUB -.->|MCP Bridge| External[External MCP Clients]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Quick Start
|
|
89
|
+
|
|
90
|
+
### 1. Install
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
npm install -g triflux
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 2. Setup (Required)
|
|
97
|
+
|
|
98
|
+
Synchronize scripts, register skills to Claude Code, and configure the HUD.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
tfx setup
|
|
102
|
+
```
|
|
103
|
+
|
|
104
104
|
### 3. Usage
|
|
105
105
|
|
|
106
106
|
```bash
|
|
@@ -134,65 +134,65 @@ The v5 pipeline is the default thorough execution loop for complex engineering w
|
|
|
134
134
|
Phase-aware MCP filtering keeps `plan`, `prd`, and `verify` read-heavy, while the `prd` → `exec` handoff can be gated through `pipeline_advance_gated`.
|
|
135
135
|
|
|
136
136
|
---
|
|
137
|
-
|
|
138
|
-
## Delegator MCP
|
|
139
|
-
|
|
140
|
-
Interact with the Hub directly through MCP tools.
|
|
141
|
-
|
|
142
|
-
- **`delegate`**: Route a prompt to a specific provider or let the Hub decide. Supports `sync` and `async` modes.
|
|
143
|
-
- **`reply`**: Continue multi-turn conversations with a running agent (currently Gemini direct).
|
|
144
|
-
- **`status`**: Check the progress of asynchronous background tasks.
|
|
145
|
-
|
|
146
|
-
---
|
|
147
|
-
|
|
148
|
-
## Agent Types (21+)
|
|
149
|
-
|
|
150
|
-
| Agent | CLI | Purpose |
|
|
151
|
-
|-------|-----|---------|
|
|
152
|
-
| **executor** | Codex | Standard implementation & refactoring. |
|
|
153
|
-
| **build-fixer** | Codex/Gemini | Instant fixes for build/type errors. |
|
|
154
|
-
| **architect** | Codex | High-level system design & planning. |
|
|
155
|
-
| **scientist-deep** | Codex | Exhaustive research & deep analysis. |
|
|
156
|
-
| **code-reviewer** | Codex | Security & Logic focused code review. |
|
|
157
|
-
| **security-reviewer**| Codex | Vulnerability & Permission audit. |
|
|
158
|
-
| **quality-reviewer** | Codex | Logic & Maintainability audit. |
|
|
159
|
-
| **designer** | Gemini | UI/UX & documentation design. |
|
|
160
|
-
| **writer** | Gemini | Technical writing & explanations. |
|
|
161
|
-
| **spark** | Gemini | Lightweight, fast prototyping. |
|
|
162
|
-
| **verifier** | Claude | Final verification & validation. |
|
|
163
|
-
| **test-engineer** | Claude | Comprehensive test suite generation. |
|
|
164
|
-
| *...and more* | | `debugger`, `planner`, `critic`, `analyst`, `scientist`, `explore`, `qa-tester` |
|
|
165
|
-
|
|
166
|
-
---
|
|
167
|
-
|
|
137
|
+
|
|
138
|
+
## Delegator MCP
|
|
139
|
+
|
|
140
|
+
Interact with the Hub directly through MCP tools.
|
|
141
|
+
|
|
142
|
+
- **`delegate`**: Route a prompt to a specific provider or let the Hub decide. Supports `sync` and `async` modes.
|
|
143
|
+
- **`reply`**: Continue multi-turn conversations with a running agent (currently Gemini direct).
|
|
144
|
+
- **`status`**: Check the progress of asynchronous background tasks.
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Agent Types (21+)
|
|
149
|
+
|
|
150
|
+
| Agent | CLI | Purpose |
|
|
151
|
+
|-------|-----|---------|
|
|
152
|
+
| **executor** | Codex | Standard implementation & refactoring. |
|
|
153
|
+
| **build-fixer** | Codex/Gemini | Instant fixes for build/type errors. |
|
|
154
|
+
| **architect** | Codex | High-level system design & planning. |
|
|
155
|
+
| **scientist-deep** | Codex | Exhaustive research & deep analysis. |
|
|
156
|
+
| **code-reviewer** | Codex | Security & Logic focused code review. |
|
|
157
|
+
| **security-reviewer**| Codex | Vulnerability & Permission audit. |
|
|
158
|
+
| **quality-reviewer** | Codex | Logic & Maintainability audit. |
|
|
159
|
+
| **designer** | Gemini | UI/UX & documentation design. |
|
|
160
|
+
| **writer** | Gemini | Technical writing & explanations. |
|
|
161
|
+
| **spark** | Gemini | Lightweight, fast prototyping. |
|
|
162
|
+
| **verifier** | Claude | Final verification & validation. |
|
|
163
|
+
| **test-engineer** | Claude | Comprehensive test suite generation. |
|
|
164
|
+
| *...and more* | | `debugger`, `planner`, `critic`, `analyst`, `scientist`, `explore`, `qa-tester` |
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
168
|
## Security
|
|
169
169
|
|
|
170
170
|
triflux v5 is designed for secure, professional environments:
|
|
171
|
-
|
|
172
|
-
- **Hub Token Auth** — Secure IPC using `TFX_HUB_TOKEN` (Bearer Auth).
|
|
173
|
-
- **Localhost Only** — Default Hub binding to `127.0.0.1` prevents external access.
|
|
174
|
-
- **CORS Lockdown** — Strict origin checking for the QoS Dashboard.
|
|
175
|
-
- **Injection Protection** — Sanitized shell command execution in `psmux` and `tmux`.
|
|
176
|
-
|
|
177
|
-
---
|
|
178
|
-
|
|
179
|
-
## QoS Dashboard
|
|
180
|
-
|
|
181
|
-
Monitor your orchestration health at `http://localhost:27888/dashboard`.
|
|
182
|
-
|
|
183
|
-
- **AIMD Batch Sizing** — Automatically scales parallel tasks (3 → 10) based on success rates.
|
|
184
|
-
- **Token Savings** — Real-time tracking of Claude tokens saved by routing to Codex/Gemini.
|
|
185
|
-
- **Rate Limit Tracking** — Live monitoring of Codex and Gemini quotas.
|
|
186
|
-
|
|
187
|
-
---
|
|
188
|
-
|
|
189
|
-
## Platform Support
|
|
190
|
-
|
|
191
|
-
- **Linux / macOS**: Native `tmux` integration.
|
|
192
|
-
- **Windows**: **psmux** (PowerShell Multiplexer) + Windows Terminal hybrid for a native Windows experience.
|
|
193
|
-
|
|
194
|
-
---
|
|
195
|
-
|
|
196
|
-
<p align="center">
|
|
197
|
-
<sub>MIT License · Made with ❤️ by <a href="https://github.com/tellang">tellang</a></sub>
|
|
198
|
-
</p>
|
|
171
|
+
|
|
172
|
+
- **Hub Token Auth** — Secure IPC using `TFX_HUB_TOKEN` (Bearer Auth).
|
|
173
|
+
- **Localhost Only** — Default Hub binding to `127.0.0.1` prevents external access.
|
|
174
|
+
- **CORS Lockdown** — Strict origin checking for the QoS Dashboard.
|
|
175
|
+
- **Injection Protection** — Sanitized shell command execution in `psmux` and `tmux`.
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## QoS Dashboard
|
|
180
|
+
|
|
181
|
+
Monitor your orchestration health at `http://localhost:27888/dashboard`.
|
|
182
|
+
|
|
183
|
+
- **AIMD Batch Sizing** — Automatically scales parallel tasks (3 → 10) based on success rates.
|
|
184
|
+
- **Token Savings** — Real-time tracking of Claude tokens saved by routing to Codex/Gemini.
|
|
185
|
+
- **Rate Limit Tracking** — Live monitoring of Codex and Gemini quotas.
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Platform Support
|
|
190
|
+
|
|
191
|
+
- **Linux / macOS**: Native `tmux` integration.
|
|
192
|
+
- **Windows**: **psmux** (PowerShell Multiplexer) + Windows Terminal hybrid for a native Windows experience.
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
<p align="center">
|
|
197
|
+
<sub>MIT License · Made with ❤️ by <a href="https://github.com/tellang">tellang</a></sub>
|
|
198
|
+
</p>
|