CLI-first multi-model orchestrator for Claude Code — route tasks to Codex, Antigravity, and Claude
$git clone https://github.com/tellang/trifluxInstalls into the current project.
Install triflux by running `git clone https://github.com/tellang/triflux`, then use it for the current task and follow its documentation at https://github.com/tellang/triflux.
| 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 | <h3 align="center">CLI-first multi-model orchestration for Claude Code, Codex, and Antigravity</h3> |
| 12 | |
| 13 | <p align="center"> |
| 14 | One front door for routing work, coordinating agents, running local/remote teams,<br> |
| 15 | and keeping Codex/Antigravity/Claude execution behind auditable guards. |
| 16 | </p> |
| 17 | |
| 18 | <p align="center"> |
| 19 | <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> |
| 20 | <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> |
| 21 | <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> |
| 22 | <img src="https://img.shields.io/badge/skill_files-34-F5C242?style=flat-square" alt="34 skill files"> |
| 23 | <sub>11 compatibility aliases are deprecated</sub> |
| 24 | <img src="https://img.shields.io/badge/node-%3E%3D18-374151?style=flat-square" alt="Node >= 18"> |
| 25 | <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-374151?style=flat-square" alt="License: MIT"></a> |
| 26 | </p> |
| 27 | |
| 28 | <p align="center"> |
| 29 | <img alt="triflux demo" src="docs/assets/demo-multi.gif" width="680"> |
| 30 | </p> |
| 31 | |
| 32 | <p align="center"> |
| 33 | <a href="#quick-start">Quick Start</a> · |
| 34 | <a href="#current-surface">Current Surface</a> · |
| 35 | <a href="#canonical-workflows">Canonical Workflows</a> · |
| 36 | <a href="#architecture">Architecture</a> · |
| 37 | <a href="#operations">Operations</a> · |
| 38 | <a href="#security-and-guards">Security</a> |
| 39 | </p> |
| 40 | |
| 41 | --- |
| 42 | |
| 43 | ## What is triflux? |
| 44 | |
| 45 | triflux is a **Claude Code plugin + npm CLI** for routing AI coding work across |
| 46 | Claude, Codex, and Antigravity without letting ad-hoc shell commands or stale skill |
| 47 | aliases become the control plane. |
| 48 | |
| 49 | The current design is intentionally simpler than the old README implied: |
| 50 | |
| 51 | - **`/tfx-auto` is the canonical Claude Code skill front door.** Use flags to |
| 52 | express quick/deep/consensus/parallel/retry behavior. |
| 53 | - **`tfx` is the shell CLI.** Use it for setup, diagnostics, hub lifecycle, |
| 54 | MCP sync, team/swarm orchestration, and handoffs. |
| 55 | - **Compatibility aliases still exist, but they are not the primary API.** They |
| 56 | are documented in [`docs/legacy-skill-aliases.md`](https://github.com/tellang/triflux/blob/main/docs/legacy-skill-aliases.md) |
| 57 | so the main README stays focused on the supported path. |
| 58 | - **Host-local Codex harnesses are out of package scope.** For example, a local |
| 59 | `~/.codex/skills/tfx-harness` can recommend workflows on one machine, but it |
| 60 | is not shipped in this repository, npm package, or Claude plugin. |
| 61 | |
| 62 | --- |
| 63 | |
| 64 | ## Quick Start |
| 65 | |
| 66 | ### 1. Install |
| 67 | |
| 68 | Claude Code plugin install: |
| 69 | |
| 70 | ```text |
| 71 | /plugin marketplace add tellang/triflux |
| 72 | /plugin install triflux@tellang |
| 73 | ``` |
| 74 | |
| 75 | npm install: |
| 76 | |
| 77 | ```bash |
| 78 | npm install -g triflux |
| 79 | ``` |
| 80 | |
| 81 | Then run the setup/diagnostic path from a terminal: |
| 82 | |
| 83 | ```bash |
| 84 | tfx setup |
| 85 | tfx doctor |
| 86 | ``` |
| 87 | |
| 88 | Use `tfx doctor --json` when you need machine-readable status for automation. |
| 89 | |
| 90 | ### 2. Use the canonical front doors |
| 91 | |
| 92 | Claude Code slash skills: |
| 93 | |
| 94 | ```text |
| 95 | /tfx-auto "review this change" --mode consensus |
| 96 | /tfx-auto "implement auth flow with tests" --mode deep --retry ralph |
| 97 | /tfx-auto "split this PRD across isolated shards" --parallel swarm --mode consensus --isolation worktree |
| 98 | /tfx-remote spawn ryzen5-7600 "run a security review" |
| 99 | /tfx-doctor |
| 100 | ``` |
| 101 | |
| 102 | Shell CLI: |
| 103 | |
| 104 | ```bash |
| 105 | tfx list |
| 106 | tfx hub ensure |
| 107 | tfx mcp list |
| 108 | tfx handoff --target remote --output .omx/handoff.md |
| 109 | tfx swarm preflight docs/prd/example.md --json |
| 110 | tfx codex-team "refactor auth + add tests" |
| 111 | ``` |
| 112 | |
| 113 | > Deep, consensus, team, and swarm paths need the relevant CLIs and a terminal |
| 114 | > multiplexer. Run `tfx doctor` first; it reports missing Codex/Antigravity/Claude, |
| 115 | > psmux/tmux, Hub, MCP, profile, and stale-skill issues. |
| 116 | |
| 117 | --- |
| 118 | |
| 119 | ## Current Surface |
| 120 | |
| 121 | ### Shell commands |
| 122 | |
| 123 | The `tfx` CLI currently exposes these primary commands: |
| 124 | |
| 125 | | Command | Use | |
| 126 | | --- | --- | |
| 127 | | `tfx setup` | Sync scripts, HUD, hooks, MCP, and profiles. Supports `--dry-run`. | |
| 128 | | `tfx doctor` | Diagnose and repair installation state. Supports `--fix`, `--reset`, `--diagnose`, `--json`. | |
| 129 | | `tfx auto` | Preview the `tfx-auto` routing decision. Supports `--cli`, `--mode`, `--parallel`, `--json`. | |
| 130 | | `tfx mcp` | Manage MCP registry targets with `list`, `sync`, `add`, and `remove`. | |
| 131 | | `tfx hub` | Start, stop, ensure, or inspect the local MCP message bus. | |
| 132 | | `tfx list` | Show installed package and user skills. | |
| 133 | | `tfx handoff` | Serialize the current context for local or remote continuation. | |
| 134 | | `tfx schema` | Print CLI and Hub delegator schemas. | |