triflux: Instructions file for Claude Code

CLAUDE.md

triflux CLAUDE.md is an instructions file for Claude Code, Codex from tellang/triflux. It costs 2,737 tokens per session, scanned A, original, MIT.

Project instructions for Triflux that explain its three skill systems, command routing, multi-model coordination, swarm work, and terminal rules across Windows, macOS, and Linux.

In plain words
What is it for?
Use them when working on Triflux, especially for routing tasks, running multiple agents, opening terminals, handling memory files, and following platform-specific commands.
Why use it?
They tell coding agents which project-specific workflow and safety rules to follow when using different tools and operating systems.

Instructions file for Claude CodeCodex

Written for Codex and Claude Code: reads $CODEX_HOME, but also the file is CLAUDE.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is tellang/triflux's own configuration. It tells Claude Code and Codex how to work on triflux itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything triflux configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tellang/triflux. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tellang/triflux/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/tellang/triflux

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for triflux CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tellang/triflux/claude-md/github.svg)](https://agentmods.dev/instructions/tellang/triflux/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/tellang/triflux/claude-md"><img src="https://agentmods.dev/badge/instructions/tellang/triflux/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for triflux CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tellang/triflux/claude-md"><img src="https://agentmods.dev/badge/instructions/tellang/triflux/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,737 This file is loaded in full into every session.
When invoked 2,737 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02737 $0.02737
Opus 5.5 $0.01095 $0.01095
Sonnet 5.5 $0.00547 $0.00547
Haiku 4.5 $0.00274 $0.00274

Measured 16d ago against content hash a8e7e7d78edb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

triflux CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

triflux Claude Code 운영 가이드

이 프로젝트는 gstack, superpowers, triflux 3계층을 동시에 사용한다(공존 규칙은 .claude/rules/tfx-stack-coexistence.md). OMC는 호스트 스킬(deep-interview, ai-slop-cleaner 등)과 ralph·autopilot을 제공하는 보조 도구다. 어떤 작업이든 해당 시스템의 스킬이 있는지 먼저 확인한다.

시스템 접두사 용도
triflux /tfx-* CLI 라우팅·다중 모델 조정·원격 실행
gstack /gstack-* QA·출시·조사·설계·검토·점검 지점
superpowers /superpowers:* 계획 작성·디버깅·TDD·리뷰 응답·완료 검증
omc /oh-my-claudecode:* autopilot·ralph·team·execute·ultragoal

주석은 한국어로 쓴다. 제거 여부는 해당 파일을 끝까지 직접 읽고 판단한다.

macOS/Linux는 플랫폼 보호기가 아무 작업도 하지 않게 처리하므로 이 항목 자체를 건너뛰어도 된다. mac 인프라는 아래 <macos-terminal>을 참조한다. 정책·래퍼 API·Codex 호출 형태는 모두 .claude/rules/tfx-psmux.md의 규칙 1~8이 정본이다. paths에 맞는 파일을 다룰 때 로드된다.

위 <psmux-wt> 룰셋은 Windows 전용이다. macOS/Linux 환경에서 triflux가 터미널/세션을 다루는 방식.

터미널 실행 경로

openCommand() 가 순차 평가하는 분기:

우선순위 조건 동작 API
1 platform === "win32" wt-manager.createTab hub/team/wt-manager.mjs
2 isTmuxLikeMux(mux) (detectMultiplexer() → getMultiplexerType()/hasMultiplexer()/hasTmux()) tmux new-window -n <title> <command> 셸 직접 호출
없음 멀티플렉서 없음(macOS, Linux) 미지원(false 반환) 없음

터미널 관리 방식

후보 필요성 이유
iTerm2 관리자 불필요 hub/lib/env-detect.mjs의 detectTerminal이 TERM_PROGRAM === "iTerm.app"을 감지하지만 별도 GUI 패인 조작은 tmux로 처리한다.
tmux 관리자 불필요 terminal-opener.mjs가 tmux new-window로 직접 호출한다.
psmux 관리자 이미 있음 hub/team/psmux.mjs가 Windows에서는 psmux, macOS/Linux에서는 tmux를 사용한다.

플랫폼 보호기

파일 함수 보호기
hub/team/wt-manager.mjs createWtManager if (platform() !== "win32") return createNonWindowsStubManager();
hub/team/headless.mjs autoAttachTerminal if (process.platform !== "win32") return false; + WT_SESSION 체크
scripts/tfx-route.sh resolve_machine_profile_path, heartbeat_monitor case "$(uname -s)" 분기

Read the full file on GitHub · 185 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · +55 tokens per session a8e7e7d78edb
  2. 19d ago Changed · -11 lines · -97 tokens per session e4400c4bf4c9
  3. 20d ago Changed · -284 tokens per session 6ff9605035f6
  4. 1mo ago Changed · +46 tokens per session c972a7ce3ec6
  5. 1mo ago First seen · 196 lines · 3,017 tokens per session scan A 4a1111262686

Subscribe to this mod's changes

triflux CLAUDE.md is an instructions file published in the GitHub repository tellang/triflux (7 stars, last pushed today), licensed MIT. It adds 2,737 tokens to every session, about $0.0109 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories