tfx-doctor
Skill7 starsChanged 6 months agoMITView on GitHub
triflux 진단 및 수리 도구. AskUserQuestion 기반 인터랙티브 선택지로 CLI 미발견, HUD 미표시, 캐시 오류, 스킬 미설치 등을 진단하고 자동 수정합니다. tfx-hub(MCP 메시지 버스) 시작·중지·상태 확인도 여기서 안내합니다. Use when: not working, broken, error, 안 돼, 이상해, 에러, 캐시, reset, doctor, hub 상태, 허브 시작, 메시지 버스
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- genusarvicolabathos238/trifluxedited, first seen Apr 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- genusarvicolabathos238/triflux★ 192% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- merge-worktreeSkill
- star-promptSkill
- tfx-autoSkill
- tfx-harnessSkill
- tfx-interviewSkill
- tfx-liveSkill
- tfx-planSkill
- tfx-profileSkill
- tfx-remoteSkill
- tfx-researchSkill
- tfx-reviewSkill
- tfx-setupSkill
- tfx-shipSkill
- tfx-wtSkill
The file
Files
tfx-doctor — triflux 진단 및 수리
뭔가 안 될 때, HUD가 이상할 때, CLI가 안 보일 때 실행하세요.
워크플로우
Step 1: 모드 선택 (AskUserQuestion)
인자 없이 호출된 경우 모드를 선택한다:
question: "어떤 진단 모드를 실행하시겠습니까?"
header: "모드"
options:
- label: "진단 (Diagnose)"
description: "읽기 전용 전체 검사 — 아무것도 수정하지 않음"
- label: "수정 (Fix)"
description: "파일 동기화 + 캐시 정리 후 진단 실행"
- label: "캐시 관리 (Cache)"
description: "캐시 파일별 상태 조회, 선택적 삭제"
- label: "전체 초기화 (Reset)"
description: "모든 캐시 삭제 + 재생성 (위험)"--fix, --reset 인자가 있으면 바로 해당 모드로 실행. hub ... 인자가 있으면 tfx-hub 관리 절로 바로 간다.
Step 2: 모드별 실행
진단 모드
Bash("triflux doctor --json")JSON 결과를 파싱하여 마크다운 테이블로 표시:
| 항목 | 상태 | 비고 |
|------|------|------|
| tfx-route.sh | ✅ | v2.0 |
| HUD | ✅ | 설치됨 |
| Codex CLI | ✅ | found |
| Antigravity CLI | ⚠ | 미설치 (선택) |
| ... | ... | ... |이슈가 발견되면 AskUserQuestion:
question: "N개 이슈가 발견되었습니다. 자동 수정을 시도하시겠습니까?"
header: "수정"
options:
- label: "자동 수정 실행 (Recommended)"
description: "triflux doctor --fix 실행"
- label: "건너뛰기"
description: "수정 없이 결과만 확인"수정 모드
Bash("triflux doctor --fix")결과를 보고한다.
캐시 관리
~/.claude/cache/ 디렉토리의 캐시 파일들을 Read/Glob으로 조회:
| 캐시 파일 | 설명 |
| claude-usage-cache.json | Claude 사용량 |
| codex-rate-limits-cache.json | Codex 레이트 리밋 |
| gemini-quota-cache.json | Antigravity 쿼터 |
| sv-accumulator.json | 절약량 누적 |
| mcp-inventory.json | MCP 서버 인벤토리 |
| cli-issues.jsonl | CLI 이슈 로그 |
| triflux-update-check.json | 업데이트 체크 |
| .omc/cache/codex-skills.json | Codex 스킬 인덱스 |
| .omc/state/tier-environment.json | Tier 환경 스냅샷 |
| .omc/cache/project-meta.json | 프로젝트 메타 |
| .omc/state/search-engines.json | 검색 엔진 상태 |
존재하는 캐시 파일 목록과 크기를 테이블로 표시 후 AskUserQuestion:
question: "어떻게 삭제하시겠습니까?"
header: "삭제"
options:
- label: "전체 삭제"
description: "모든 캐시 파일 삭제"
- label: "에러 캐시만 삭제"
description: "파싱 에러가 있는 파일만 삭제"
- label: "선택 삭제"
description: "파일 하나씩 선택하여 삭제"
- label: "취소"
description: "삭제하지 않음""선택 삭제" 시 각 파일에 대해 AskUserQuestion으로 삭제 여부 확인.
전체 초기화
위험 확인:
question: "전체 캐시를 초기화하시겠습니까? 다음 세션에서 재생성됩니다."
header: "확인"
options:
- label: "초기화 실행"
description: "모든 캐시 삭제 + MCP/사용량 캐시 재생성"
- label: "취소"
description: "아무것도 하지 않음"확인 시:
Bash("triflux doctor --reset")Step 3: 후속 조치
실행 완료 후 AskUserQuestion:
question: "다른 작업을 하시겠습니까?"
header: "계속"
options:
- label: "다른 모드 실행"
description: "진단/수정/캐시/초기화 메뉴로 돌아감"
- label: "종료"
description: "doctor 종료"진단 항목
- tfx-route.sh 설치 상태
- HUD 설치 및 설정 상태
- Codex/Antigravity/Claude CLI 경로 (크로스 셸)
- psmux 버전 / capability preflight
new-session,attach-session,kill-session,capture-pane,detach-client- 권장 버전 이상인지 여부
- Codex Profiles (필수 프로파일 존재 여부)
- 스킬 설치 상태
- 플러그인 등록 상태
- MCP 인벤토리 캐시
- Phase 1 웜업 캐시 무결성 (
node scripts/cache-doctor.mjs) - 잔존 팀(orphan teams) 감지
- Docs 동기화 —
docs/design/,docs/research/→~/.claude/docs/레퍼런스 문서 동기화 상태 - Antigravity MCP 안전성 —
~/.gemini/settings.json의 stdio MCP 감지 (spawn EPERM 방지) - Route Script 정합성 — 프로젝트 소스
scripts/tfx-route.sh와~/.claude/scripts/tfx-route.sh일치 여부
tfx-hub 관리
tfx-hub는 CLI 에이전트(Codex/Antigravity/Claude) 사이의 MCP 메시지 버스다. 이 절은 허브
프로세스 제어만 다룬다. tfx-hub MCP 서버 이름, tfx hub CLI, hub/ 코드는 그대로다.
| 작업 | 명령 | 비고 |
| 상태 확인 | Bash("tfx hub status --json") | 미실행이면 그 사실을 그대로 보고한다 |
| 시작 | Bash("tfx hub start") | 포트 지정은 --port N |
| 헬스체크 + 자동 시작 | Bash("tfx hub ensure --json") | 이미 떠 있으면 아무것도 하지 않는다 |
| 중지 | Bash("tfx hub stop") |
- 기본 엔드포인트:
http://127.0.0.1:27888/mcp(Streamable HTTP), 상태는/status - 상태 DB
~/.claude/cache/tfx-hub/state.db, PID 파일~/.claude/cache/tfx-hub/hub.pid - 환경 변수:
TFX_HUB_PORT(포트),TFX_HUB_DB(DB 경로) - 포트가 이미 쓰이면
tfx hub stop후 다시 시작한다. PID는 살아 있는데 status가 응답하지 않으면tfx hub start가 오래된 PID 파일을 정리한다.
각 CLI 등록 방법
triflux setup이 설정을 자동 관리한다. 수동으로 등록할 때만 아래를 쓴다.
# Codex: 사전 등록은 disabled로 두고 `tfx hub start` 이후에만 enabled로 전환된다.
codex mcp add tfx-hub --url http://127.0.0.1:27888/mcp
# Claude
claude mcp add --transport http tfx-hub http://127.0.0.1:27888/mcp
# Antigravity: settings.json 의 mcpServers.tfx-hub.urlhub MCP 도구
| 묶음 | 도구 |
| Core | register, status, publish, ask, handoff, poll_messages(폐기 예정) |
| Assign | assign_async, assign_result, assign_status |
| Team | team_info, team_task_list, team_task_update, team_send_message |
| Pipeline | pipeline_init, pipeline_state, pipeline_advance, pipeline_advance_gated, pipeline_list |
| HITL | request_human_input, submit_human_input |
브릿지 REST 엔드포인트: POST /bridge/register, /bridge/result, /bridge/context, /bridge/deregister.
에러 처리
| 상황 | 처리 |
| 캐시 디렉토리 없음 | 정상 — 삭제할 파일 없음 보고 |
| 파일 삭제 권한 없음 | 수동 삭제 안내 |
| --fix 후에도 이슈 남음 | Codex/Antigravity 설치는 수동 필요 안내 |
standalone TUI
터미널에서 직접 실행도 가능: node tui/doctor.mjs (arrow key 방식)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

