triflux: Instructions file for Claude Code

CLAUDE.md

triflux CLAUDE.md is an instructions file for Claude Code from tellang/triflux. It costs 3,017 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 Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is tellang/triflux's own configuration. It tells Claude Code 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.

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,017 This file is loaded in full into every session.
When invoked 3,017 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.03017 $0.03017
Opus 5 $0.01509 $0.01509
Sonnet 5 $0.00603 $0.00603
Haiku 4.5 $0.00302 $0.00302

Measured 6d ago against content hash 4a1111262686, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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 · 196 lines

How it starts

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

triflux — Claude Code 운영 가이드

이 프로젝트는 3개의 스킬 시스템을 동시에 사용한다. 어떤 작업이든 해당 시스템의 스킬이 있는지 먼저 확인한다.

시스템 접두사 용도 스킬 수
triflux /tfx-* CLI 라우팅·다중 모델 조정·스웜·원격 실행 ~40개
gstack / (접두사 없음) QA·출시·조사·설계·검토·점검 지점 ~35개
omc /oh-my-claudecode:* autopilot·ralph·team·ultrawork·ccg ~25개

스킬을 모르면 자연어 라우팅(.claude/rules/tfx-routing.md)으로 자동 매핑된다. 세션 종료 전 메모리 파일이 3개+ 변경됐으면 /memory-hygiene 제안을 검토한다.

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

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

terminal-opener.mjs 3단계 대체 경로(hub/team/terminal-opener.mjs:124~149)

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

우선순위 조건 동작 API
1 platform === "win32" wt-manager.createTab hub/team/wt-manager.mjs
2 isTmuxLikeMux(mux, platform) (detectMultiplexer()getMultiplexerType()/hasMultiplexer()/hasTmux() + 리터럴 psmux 검사) tmux new-window -n <title> <command> 셸 직접 호출
3 platform === "darwin" (대체 경로) open -a Terminal macOS open 명령
Linux(멀티플렉서 없음) 미지원(false 반환)

별도 mac 매니저 불필요

후보 필요성 이유
iTerm2 관리자 불필요 hub/lib/env-detect.mjs:96TERM_PROGRAM === "iTerm.app"을 감지하지만 별도 GUI 패인 조작은 tmux/psmux로 처리한다. 새 창은 open -a Terminal 대체 경로로 충분하다.
tmux 관리자 불필요 psmux 자체가 tmux 포크다. terminal-opener.mjstmux new-window로 직접 호출한다.
psmux 관리자 이미 있음 hub/team/psmux.mjsIS_WINDOWS/IS_MAC으로 플랫폼을 분기한다.

참고 사례: OMC(oh-my-claudecode)도 운영체제별 관리자를 만들지 않고 Tmux 관리자·워크트리 관리자·Claude 실행기 세 구성 요소로 정리한다. 이 저장소 결정의 외부 근거가 아니라 비교 참고로만 본다.

플랫폼 보호기 위치(참고)

파일 보호기
hub/team/wt-manager.mjs 199 if (platform() !== "win32") return createNonWindowsStubManager();
hub/team/headless.mjs 1725-1726 if (process.platform !== "win32") return false; + WT_SESSION 체크
tfx-route.sh 86, 1662, 1681 case "$(uname -s)" 분기

Read the full file on GitHub · 196 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. 6d 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 4d ago), licensed MIT. It adds 3,017 tokens to every session, about $0.0151 per session on Opus 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

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens