triflux 0.0.1 → 2.0.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.
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
3
+ "name": "triflux",
4
+ "description": "CLI-first multi-model orchestrator — Codex/Gemini/Claude routing with DAG execution, auto-triage, and cost optimization",
5
+ "owner": {
6
+ "name": "tellang"
7
+ },
8
+ "plugins": [
9
+ {
10
+ "name": "triflux",
11
+ "description": "CLI-first multi-model orchestrator for Claude Code. Routes tasks to Codex, Gemini, and Claude CLIs with automatic triage (Sonnet classification + Opus decomposition), DAG-based parallel execution, and cost-optimized routing. Includes 16 skills, HUD status bar, and shell-based CLI routing wrapper.",
12
+ "version": "1.0.0",
13
+ "author": {
14
+ "name": "tellang"
15
+ },
16
+ "source": "./",
17
+ "category": "productivity",
18
+ "homepage": "https://github.com/tellang/triflux",
19
+ "tags": [
20
+ "multi-model",
21
+ "codex",
22
+ "gemini",
23
+ "cli-routing",
24
+ "orchestration",
25
+ "cost-optimization",
26
+ "dag-execution"
27
+ ]
28
+ }
29
+ ],
30
+ "version": "1.0.0"
31
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "triflux",
3
+ "version": "1.0.0",
4
+ "description": "CLI-first multi-model orchestrator for Claude Code — route tasks to Codex, Gemini, and Claude",
5
+ "author": {
6
+ "name": "tellang"
7
+ },
8
+ "repository": "https://github.com/tellang/triflux",
9
+ "homepage": "https://github.com/tellang/triflux",
10
+ "license": "MIT",
11
+ "keywords": [
12
+ "claude-code",
13
+ "plugin",
14
+ "codex",
15
+ "gemini",
16
+ "cli-routing",
17
+ "orchestration",
18
+ "multi-model"
19
+ ],
20
+ "skills": "./skills/",
21
+ "hooks": "./hooks/hooks.json",
22
+ "mcpServers": "./.mcp.json"
23
+ }
package/.mcp.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "mcpServers": {}
3
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 tellang
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.ko.md ADDED
@@ -0,0 +1,276 @@
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>CLI 기반 멀티모델 오케스트레이터</strong><br>
13
+ <em>Codex, Gemini, Claude에 작업을 라우팅 — 무료 티어로 할 수 있는 일에 토큰을 낭비하지 마세요</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
+ <a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E%3D18-374151?style=flat-square" alt="Node.js >= 18"></a>
23
+ </p>
24
+
25
+ <p align="center">
26
+ <picture>
27
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/demo-dark.gif">
28
+ <source media="(prefers-color-scheme: light)" srcset="docs/assets/demo-light.gif">
29
+ <img alt="triflux 데모" src="docs/assets/demo-dark.gif" width="680">
30
+ </picture>
31
+ </p>
32
+
33
+ <p align="center">
34
+ <a href="#빠른-시작">빠른 시작</a> ·
35
+ <a href="#스킬">스킬</a> ·
36
+ <a href="#아키텍처">아키텍처</a> ·
37
+ <a href="#설정-가이드">설정 가이드</a>
38
+ </p>
39
+
40
+ ---
41
+
42
+ ## 왜 triflux인가?
43
+
44
+ - **비용 지능형 라우팅** — Codex(무료)와 Gemini(무료)에 먼저 작업을 보내고, Claude 토큰은 최소화
45
+ - **DAG 기반 병렬 실행** — 복잡한 작업을 의존 그래프로 분해하여 동시 실행
46
+ - **자동 트리아지** — Codex가 분류 + Opus가 분해, 수동 에이전트 선택 불필요
47
+ - **16가지 에이전트** — executor부터 architect까지, 각각 최적의 CLI와 effort 레벨에 매핑
48
+ - **HUD 상태 표시줄** — CLI 상태, 토큰 절약량, 속도 제한 실시간 모니터링
49
+ - **제로 설정** — 설치 후 Claude Code에서 바로 슬래시 명령어 사용
50
+
51
+ <details>
52
+ <summary><strong>설치</strong></summary>
53
+
54
+ ### 플러그인 (권장)
55
+
56
+ ```bash
57
+ /plugin marketplace add https://github.com/tellang/triflux
58
+ /plugin install triflux
59
+ ```
60
+
61
+ ### npm (전역)
62
+
63
+ ```bash
64
+ npm install -g triflux
65
+ ```
66
+
67
+ ### npx (일회성)
68
+
69
+ ```bash
70
+ npx triflux doctor
71
+ ```
72
+
73
+ ### 설치 확인
74
+
75
+ ```bash
76
+ tfx doctor
77
+ ```
78
+
79
+ </details>
80
+
81
+ ## 빠른 시작
82
+
83
+ ```bash
84
+ # 자동 모드 — AI가 분류 + 분해 + 병렬 실행
85
+ /tfx-auto "인증 모듈 리팩터링 + 로그인 UI 개선 + 테스트 추가"
86
+
87
+ # 수동 모드 — 에이전트 수와 타입 직접 지정
88
+ /tfx-auto 3:codex "src/api, src/auth, src/payment 각각 리뷰"
89
+
90
+ # 커맨드 숏컷 — 단일 에이전트 즉시 실행
91
+ /implement "JWT 인증 미들웨어 추가"
92
+ /analyze "결제 모듈 보안 리뷰"
93
+ /research "최신 React Server Components 패턴"
94
+
95
+ # 단일 CLI 모드
96
+ /tfx-codex "리팩터링 + 리뷰" # Codex만 사용
97
+ /tfx-gemini "구현 + 문서화" # Gemini만 사용
98
+ ```
99
+
100
+ ## 스킬
101
+
102
+ | 스킬 | 모드 | 설명 |
103
+ |------|------|------|
104
+ | `/tfx-auto` | 자동 | 트리아지 → 분해 → DAG 병렬 실행 |
105
+ | `/tfx-codex` | Codex 전용 | 모든 CLI 작업을 Codex로 라우팅 |
106
+ | `/tfx-gemini` | Gemini 전용 | 모든 CLI 작업을 Gemini로 라우팅 |
107
+ | `/tfx-setup` | 설정 | 파일 동기화, HUD 설정, CLI 진단 |
108
+
109
+ ### 커맨드 숏컷
110
+
111
+ 트리아지 없이 즉시 단일 에이전트 실행:
112
+
113
+ | 커맨드 | 에이전트 | CLI | 용도 |
114
+ |--------|---------|-----|------|
115
+ | `/implement` | executor | Codex | 코드 구현 |
116
+ | `/build` | build-fixer | Codex | 빌드/타입 에러 수정 |
117
+ | `/research` | document-specialist | Codex | 문서 조사 |
118
+ | `/brainstorm` | analyst | Codex | 요구사항 분석 |
119
+ | `/design` | architect | Codex | 아키텍처 설계 |
120
+ | `/troubleshoot` | debugger | Codex | 버그 분석 |
121
+ | `/cleanup` | executor | Codex | 코드 정리 |
122
+ | `/analyze` | quality + security | Codex | 병렬 리뷰 (2 에이전트) |
123
+ | `/spec-panel` | architect + analyst + critic | Codex | 스펙 리뷰 (3 에이전트) |
124
+ | `/explain` | writer | Gemini | 코드 설명 |
125
+ | `/document` | writer | Gemini | 문서 작성 |
126
+ | `/test` | test-engineer | Claude | 테스트 전략 |
127
+ | `/reflect` | verifier | Claude | 검증 |
128
+
129
+ ## 아키텍처
130
+
131
+ ```
132
+ 사용자: "/tfx-auto 인증 리팩터링 + UI 개선 + 테스트 추가"
133
+ |
134
+ v
135
+ [Phase 1: 파싱] ─── 자동 모드 감지
136
+ |
137
+ v
138
+ [Phase 2a: 분류] ─── Codex (무료)
139
+ │ 인증 리팩터링 → codex
140
+ │ UI 개선 → gemini
141
+ │ 테스트 추가 → claude
142
+ |
143
+ v
144
+ [Phase 2b: 분해] ─── Opus (인라인, Agent 스폰 없음)
145
+ │ t1: executor (implement, src/auth/) Level 0
146
+ │ t2: designer (docs, src/components/) Level 0
147
+ │ t3: test-engineer (Claude 네이티브) Level 1 ← t1 의존
148
+ |
149
+ v
150
+ [Phase 3: 실행] ─── DAG 병렬
151
+ │ Level 0: t1(Codex) + t2(Gemini) ← 병렬
152
+ │ Level 1: t3(Claude) ← t1 완료 후
153
+ |
154
+ v
155
+ [Phase 4-6: 수집 → 재시도 → 보고]
156
+ ```
157
+
158
+ ### 에이전트 라우팅 테이블
159
+
160
+ | 에이전트 | CLI | Effort | 타임아웃 | 모드 |
161
+ |---------|-----|--------|---------|------|
162
+ | executor | Codex | high | 360s | fg |
163
+ | build-fixer | Codex | fast | 180s | fg |
164
+ | debugger | Codex | high | 300s | bg |
165
+ | deep-executor | Codex | xhigh | 1200s | bg |
166
+ | architect | Codex | xhigh | 1200s | bg |
167
+ | planner | Codex | xhigh | 1200s | fg |
168
+ | critic | Codex | xhigh | 1200s | bg |
169
+ | analyst | Codex | xhigh | 1200s | fg |
170
+ | code-reviewer | Codex | thorough | 600s | bg |
171
+ | security-reviewer | Codex | thorough | 600s | bg |
172
+ | quality-reviewer | Codex | thorough | 600s | bg |
173
+ | scientist | Codex | high | 480s | bg |
174
+ | document-specialist | Codex | high | 480s | bg |
175
+ | designer | Gemini Pro 3.1 | — | 600s | bg |
176
+ | writer | Gemini Flash 3 | — | 600s | bg |
177
+ | explore | Claude Haiku | — | 300s | fg |
178
+ | verifier | Claude Sonnet | — | 300s | fg |
179
+ | test-engineer | Claude Sonnet | — | 300s | bg |
180
+
181
+ ### 실패 처리
182
+
183
+ 1. **1차 실패** → Claude 네이티브 에이전트로 fallback
184
+ 2. **2차 실패** → 해당 서브태스크 실패 보고, 나머지 결과 종합
185
+ 3. **타임아웃** → 부분 결과 보고
186
+
187
+ <details>
188
+ <summary><strong>설정 가이드</strong></summary>
189
+
190
+ ### 사전 조건
191
+
192
+ - **Node.js** >= 18
193
+ - **Claude Code** (필수)
194
+ - **Codex CLI** (선택): `npm install -g @openai/codex`
195
+ - **Gemini CLI** (선택): `npm install -g @google/gemini-cli`
196
+
197
+ > Codex/Gemini 없이도 동작합니다. 자동으로 Claude 네이티브 에이전트로 fallback됩니다.
198
+
199
+ ### 설치 후
200
+
201
+ ```bash
202
+ # 파일 동기화 + HUD 설정
203
+ tfx setup
204
+
205
+ # 진단 실행
206
+ tfx doctor
207
+ ```
208
+
209
+ ### CLI 명령어
210
+
211
+ | 명령어 | 설명 |
212
+ |--------|------|
213
+ | `tfx setup` | 스크립트 + HUD + 스킬 동기화 |
214
+ | `tfx doctor` | CLI 진단 + 이슈 추적 |
215
+ | `tfx update` | 최신 버전으로 업데이트 |
216
+ | `tfx list` | 설치된 스킬 목록 |
217
+ | `tfx version` | 버전 표시 |
218
+
219
+ 축약: `tfx` = `triflux`, `tfl` = `triflux`
220
+
221
+ ### HUD 상태 표시줄
222
+
223
+ Claude Code 상태줄에서 실시간 모니터링:
224
+
225
+ - Claude / Codex / Gemini 토큰 사용량 및 속도 제한
226
+ - CLI 상태 (설치 여부, API 키 상태)
227
+ - 세션 비용 추적 및 절약 보고서
228
+
229
+ `tfx setup`으로 자동 설정됩니다.
230
+
231
+ </details>
232
+
233
+ <details>
234
+ <summary><strong>oh-my-claudecode 통합</strong></summary>
235
+
236
+ triflux는 단독으로 동작하거나 [oh-my-claudecode](https://github.com/nicepkg/oh-my-claudecode)와 함께 사용할 수 있습니다:
237
+
238
+ - OMC 플러그인 시스템을 통한 스킬 자동 등록
239
+ - `cli-route.sh`가 OMC 에이전트 카탈로그와 통합
240
+ - HUD가 OMC 상태줄을 확장
241
+ - OMC autopilot, ralph, team, ultrawork 모드와 호환
242
+
243
+ </details>
244
+
245
+ <details>
246
+ <summary><strong>변경 이력</strong></summary>
247
+
248
+ ### 2.0.0
249
+
250
+ - `cx-skills`에서 `triflux`로 리브랜딩
251
+ - 새 CLI 명령어: `tfx`, `triflux`, `tfl`
252
+ - 스킬 업데이트: `/tfx-auto`, `/tfx-codex`, `/tfx-gemini`, `/tfx-setup`
253
+ - amber 브랜딩 시각적 리뉴얼
254
+ - 내부 참조 전면 업데이트 (`CX_CLI_MODE` → `TFX_CLI_MODE`)
255
+
256
+ ### 이전 버전 (cx-skills)
257
+
258
+ v1.x 이력은 [cx-skills releases](https://github.com/tellang/cx-skills/releases) 참조.
259
+
260
+ </details>
261
+
262
+ ---
263
+
264
+ <p align="center">
265
+ <a href="https://github.com/tellang/triflux">
266
+ <picture>
267
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=tellang/triflux&type=Date&theme=dark">
268
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=tellang/triflux&type=Date">
269
+ <img alt="Star History" src="https://api.star-history.com/svg?repos=tellang/triflux&type=Date" width="600">
270
+ </picture>
271
+ </a>
272
+ </p>
273
+
274
+ <p align="center">
275
+ <sub>MIT License · Made by <a href="https://github.com/tellang">tellang</a></sub>
276
+ </p>
package/README.md CHANGED
@@ -1 +1,276 @@
1
- # triflux\n\nCLI-first multi-model orchestrator for Claude Code.\n\nComing soon.
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>CLI-first multi-model orchestrator</strong><br>
13
+ <em>Route tasks to Codex, Gemini, and Claude — don't pay tokens for what free tiers can do</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
+ <a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E%3D18-374151?style=flat-square" alt="Node.js >= 18"></a>
23
+ </p>
24
+
25
+ <p align="center">
26
+ <picture>
27
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/demo-dark.gif">
28
+ <source media="(prefers-color-scheme: light)" srcset="docs/assets/demo-light.gif">
29
+ <img alt="triflux demo" src="docs/assets/demo-dark.gif" width="680">
30
+ </picture>
31
+ </p>
32
+
33
+ <p align="center">
34
+ <a href="#quick-start">Quick Start</a> ·
35
+ <a href="#skills">Skills</a> ·
36
+ <a href="#architecture">Architecture</a> ·
37
+ <a href="#setup-guide">Setup Guide</a>
38
+ </p>
39
+
40
+ ---
41
+
42
+ ## Why triflux?
43
+
44
+ - **Cost-intelligent routing** — Automatically routes tasks to Codex (free) and Gemini (free) before spending Claude tokens
45
+ - **DAG-based parallel execution** — Decomposes complex tasks into dependency graphs and runs them concurrently
46
+ - **Auto-triage** — Codex classifies + Opus decomposes, no manual agent selection needed
47
+ - **16 agent types** — From executor to architect, each mapped to the optimal CLI and effort level
48
+ - **HUD status bar** — Real-time CLI health, token savings, and rate limit monitoring
49
+ - **Zero config** — Install and start using slash commands in Claude Code immediately
50
+
51
+ <details>
52
+ <summary><strong>Install</strong></summary>
53
+
54
+ ### Plugin (recommended)
55
+
56
+ ```bash
57
+ /plugin marketplace add https://github.com/tellang/triflux
58
+ /plugin install triflux
59
+ ```
60
+
61
+ ### npm (global)
62
+
63
+ ```bash
64
+ npm install -g triflux
65
+ ```
66
+
67
+ ### npx (one-off)
68
+
69
+ ```bash
70
+ npx triflux doctor
71
+ ```
72
+
73
+ ### Verify
74
+
75
+ ```bash
76
+ tfx doctor
77
+ ```
78
+
79
+ </details>
80
+
81
+ ## Quick Start
82
+
83
+ ```bash
84
+ # Auto mode — AI classifies + decomposes + executes in parallel
85
+ /tfx-auto "refactor auth module + improve login UI + add tests"
86
+
87
+ # Manual mode — specify agent count and type
88
+ /tfx-auto 3:codex "review src/api, src/auth, src/payment"
89
+
90
+ # Command shortcuts — single agent, instant execution
91
+ /implement "add JWT auth middleware"
92
+ /analyze "security review of payment module"
93
+ /research "latest React Server Components patterns"
94
+
95
+ # Single-CLI modes
96
+ /tfx-codex "refactor + review" # Codex only
97
+ /tfx-gemini "implement + document" # Gemini only
98
+ ```
99
+
100
+ ## Skills
101
+
102
+ | Skill | Mode | Description |
103
+ |-------|------|-------------|
104
+ | `/tfx-auto` | Auto | Triage → decompose → parallel execute via DAG |
105
+ | `/tfx-codex` | Codex-only | All CLI tasks routed to Codex |
106
+ | `/tfx-gemini` | Gemini-only | All CLI tasks routed to Gemini |
107
+ | `/tfx-setup` | Setup | File sync, HUD config, CLI diagnostics |
108
+
109
+ ### Command Shortcuts
110
+
111
+ Bypass triage — instant single-agent execution:
112
+
113
+ | Command | Agent | CLI | Use Case |
114
+ |---------|-------|-----|----------|
115
+ | `/implement` | executor | Codex | Code implementation |
116
+ | `/build` | build-fixer | Codex | Build/type error fixes |
117
+ | `/research` | document-specialist | Codex | Documentation lookup |
118
+ | `/brainstorm` | analyst | Codex | Requirements analysis |
119
+ | `/design` | architect | Codex | Architecture design |
120
+ | `/troubleshoot` | debugger | Codex | Bug analysis |
121
+ | `/cleanup` | executor | Codex | Code cleanup |
122
+ | `/analyze` | quality + security | Codex | Parallel review (2 agents) |
123
+ | `/spec-panel` | architect + analyst + critic | Codex | Spec review (3 agents) |
124
+ | `/explain` | writer | Gemini | Code explanation |
125
+ | `/document` | writer | Gemini | Documentation |
126
+ | `/test` | test-engineer | Claude | Test strategy |
127
+ | `/reflect` | verifier | Claude | Verification |
128
+
129
+ ## Architecture
130
+
131
+ ```
132
+ User: "/tfx-auto refactor auth + improve UI + add tests"
133
+ |
134
+ v
135
+ [Phase 1: Parse] ─── Auto mode detected
136
+ |
137
+ v
138
+ [Phase 2a: Classify] ─── Codex (free)
139
+ │ auth refactor → codex
140
+ │ UI improvement → gemini
141
+ │ test addition → claude
142
+ |
143
+ v
144
+ [Phase 2b: Decompose] ─── Opus (inline, no agent spawn)
145
+ │ t1: executor (implement, src/auth/) Level 0
146
+ │ t2: designer (docs, src/components/) Level 0
147
+ │ t3: test-engineer (Claude native) Level 1 ← depends on t1
148
+ |
149
+ v
150
+ [Phase 3: Execute] ─── DAG parallel
151
+ │ Level 0: t1(Codex) + t2(Gemini) ← parallel
152
+ │ Level 1: t3(Claude) ← after t1 completes
153
+ |
154
+ v
155
+ [Phase 4-6: Collect → Retry → Report]
156
+ ```
157
+
158
+ ### Agent Routing Table
159
+
160
+ | Agent | CLI | Effort | Timeout | Mode |
161
+ |-------|-----|--------|---------|------|
162
+ | executor | Codex | high | 360s | fg |
163
+ | build-fixer | Codex | fast | 180s | fg |
164
+ | debugger | Codex | high | 300s | bg |
165
+ | deep-executor | Codex | xhigh | 1200s | bg |
166
+ | architect | Codex | xhigh | 1200s | bg |
167
+ | planner | Codex | xhigh | 1200s | fg |
168
+ | critic | Codex | xhigh | 1200s | bg |
169
+ | analyst | Codex | xhigh | 1200s | fg |
170
+ | code-reviewer | Codex | thorough | 600s | bg |
171
+ | security-reviewer | Codex | thorough | 600s | bg |
172
+ | quality-reviewer | Codex | thorough | 600s | bg |
173
+ | scientist | Codex | high | 480s | bg |
174
+ | document-specialist | Codex | high | 480s | bg |
175
+ | designer | Gemini Pro 3.1 | — | 600s | bg |
176
+ | writer | Gemini Flash 3 | — | 600s | bg |
177
+ | explore | Claude Haiku | — | 300s | fg |
178
+ | verifier | Claude Sonnet | — | 300s | fg |
179
+ | test-engineer | Claude Sonnet | — | 300s | bg |
180
+
181
+ ### Failure Handling
182
+
183
+ 1. **First failure** → Claude native agent fallback
184
+ 2. **Second failure** → Report failed subtask, continue with remaining results
185
+ 3. **Timeout** → Partial results reported
186
+
187
+ <details>
188
+ <summary><strong>Setup Guide</strong></summary>
189
+
190
+ ### Prerequisites
191
+
192
+ - **Node.js** >= 18
193
+ - **Claude Code** (required)
194
+ - **Codex CLI** (optional): `npm install -g @openai/codex`
195
+ - **Gemini CLI** (optional): `npm install -g @google/gemini-cli`
196
+
197
+ > Without Codex or Gemini, triflux automatically falls back to Claude native agents.
198
+
199
+ ### Post-install
200
+
201
+ ```bash
202
+ # Sync files + configure HUD
203
+ tfx setup
204
+
205
+ # Run diagnostics
206
+ tfx doctor
207
+ ```
208
+
209
+ ### CLI Commands
210
+
211
+ | Command | Description |
212
+ |---------|-------------|
213
+ | `tfx setup` | Sync scripts + HUD + skills |
214
+ | `tfx doctor` | CLI diagnostics + issue tracker |
215
+ | `tfx update` | Update to latest version |
216
+ | `tfx list` | List installed skills |
217
+ | `tfx version` | Show version info |
218
+
219
+ Shortcuts: `tfx` = `triflux`, `tfl` = `triflux`
220
+
221
+ ### HUD Status Bar
222
+
223
+ Real-time monitoring in Claude Code's status line:
224
+
225
+ - Claude / Codex / Gemini token usage and rate limits
226
+ - CLI health indicators (installed, API key status)
227
+ - Session cost tracking and savings report
228
+
229
+ Configured automatically via `tfx setup`.
230
+
231
+ </details>
232
+
233
+ <details>
234
+ <summary><strong>oh-my-claudecode Integration</strong></summary>
235
+
236
+ triflux works standalone or as part of [oh-my-claudecode](https://github.com/nicepkg/oh-my-claudecode):
237
+
238
+ - Skills auto-registered via OMC's plugin system
239
+ - `cli-route.sh` integrates with OMC's agent catalog
240
+ - HUD extends OMC's status line
241
+ - Compatible with OMC autopilot, ralph, team, and ultrawork modes
242
+
243
+ </details>
244
+
245
+ <details>
246
+ <summary><strong>Changelog</strong></summary>
247
+
248
+ ### 2.0.0
249
+
250
+ - Rebranded from `cx-skills` to `triflux`
251
+ - New CLI commands: `tfx`, `triflux`, `tfl`
252
+ - Updated skills: `/tfx-auto`, `/tfx-codex`, `/tfx-gemini`, `/tfx-setup`
253
+ - Visual refresh with amber branding
254
+ - All internal references updated (`CX_CLI_MODE` → `TFX_CLI_MODE`)
255
+
256
+ ### Previous (cx-skills)
257
+
258
+ See [cx-skills releases](https://github.com/tellang/cx-skills/releases) for v1.x history.
259
+
260
+ </details>
261
+
262
+ ---
263
+
264
+ <p align="center">
265
+ <a href="https://github.com/tellang/triflux">
266
+ <picture>
267
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=tellang/triflux&type=Date&theme=dark">
268
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=tellang/triflux&type=Date">
269
+ <img alt="Star History" src="https://api.star-history.com/svg?repos=tellang/triflux&type=Date" width="600">
270
+ </picture>
271
+ </a>
272
+ </p>
273
+
274
+ <p align="center">
275
+ <sub>MIT License · Made by <a href="https://github.com/tellang">tellang</a></sub>
276
+ </p>
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ // tfx-doctor — triflux doctor 바로가기
3
+ import { dirname } from "path";
4
+ import { fileURLToPath } from "url";
5
+
6
+ const __dirname = dirname(fileURLToPath(import.meta.url));
7
+ process.argv = [process.argv[0], process.argv[1], "doctor", ...process.argv.slice(2)];
8
+ await import("./triflux.mjs");
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ // tfx-setup — triflux setup 바로가기
3
+ import { dirname } from "path";
4
+ import { fileURLToPath } from "url";
5
+
6
+ const __dirname = dirname(fileURLToPath(import.meta.url));
7
+ process.argv = [process.argv[0], process.argv[1], "setup", ...process.argv.slice(2)];
8
+ await import("./triflux.mjs");