Skip to main content

TRI CLI Cheat Sheet

Все команды TRI CLI в одном месте


Command Categories


Essential Commands

Code Generation

CommandDescriptionExample
tri gen <spec.vibee>Generate code from VIBEE spectri gen specs/tri/todo.vibee
tri spec_create <name>Create new .vibee spectri spec_create my_feature

AI & Chat

CommandDescriptionExample
tri chat "message"Interactive AI chattri chat "Explain VSA"
tri code "prompt"Generate codetri code "Create Fibonacci"

Server Mode

CommandDescriptionExample
tri serve --port 8899Start HTTP API servertri serve --port 8080

Sacred Mathematics

Constants

tri constants

Output:

φ (PHI)        = 1.618033988749895
φ² (PHI_SQ) = 2.618033988749895
TRINITY = 3.000000000000000
π (PI) = 3.141592653589793

Golden Ratio Powers

tri phi 5    # φ⁵ = 11.090169943749474
tri phi 10 # φ¹⁰ = 122.99186938124505

Number Sequences

tri fib 20    # Fibonacci: F(20) = 6765
tri lucas 10 # Lucas: L(10) = 123

Formulas

tri formula "phi^2 + 1/phi^2"  # = 3
tri math sacred search 137 # Find formula for value

Development Workflow

System Diagnostics

tri doctor    # Full system health check
tri stats # Project statistics
tri clean # Clean build artifacts

Git Operations

tri status    # git status --short
tri diff # git diff
tri log # git log --oneline -10
tri commit "msg" # git add -A && commit

Code Quality

tri fmt       # Format Zig code
tri fix <file> # Detect and fix bugs
tri explain <file> # Explain code

VIBEE Compiler

Specification Commands

tri spec_create my_module          # Create spec template
tri vibee validate specs/tri/*.vibee # Validate specs
tri vibee koschei # Show Golden Chain

Autonomous Features

Auto-Commit

tri ac                               # Auto commit changes
tri safeguards-disable # Disable safety limits

Optimization

tri mlopt                            # ML-based optimization
tri deploy-dashboard # Deploy monitoring

Demo & Bench Commands

CycleDemoBench
Multi-Agenttri agents-demotri agents-bench
Long Contexttri context-demotri context-bench
RAGtri rag-demotri rag-bench
Voicetri voice-demotri voice-bench
Visiontri vision-demotri vision-bench
Unifiedtri unified-demotri unified-bench

Quick Reference Card

┌─────────────────────────────────────────────┐
│ TRI CLI - Essential Commands │
├─────────────────────────────────────────────┤
│ tri gen <spec.vibee> Code generation │
│ tri chat "msg" AI chat │
│ tri serve --port 8080 API server │
│ tri constants Sacred math │
│ tri doctor System check │
│ tri help All commands │
└─────────────────────────────────────────────┘

Command Aliases

AliasFull Command
drtri doctor
actri auto-commit
mlopttri ml-optimize
dashtri dashboard
scantri analyze
ctxtri context

Exit Codes

CodeMeaning
0Success
1General error
2Invalid arguments
127Command not found

See Also


φ² + 1/φ² = 3 = TRINITY