with one click
ecomode
Token-efficient execution modifier with budget-aware routing
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Token-efficient execution modifier with budget-aware routing
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Kimi-native team worker protocol (ACK, mailbox, task lifecycle)
Persistence loop until task completion with verification
Architecture planning and plan approval workflow
Parallel agent execution via Kimi-native multi-worker runtime
Full autonomous execution from idea to working code
Stateful validator-gated research loop with native-hook persistence
| name | ecomode |
| description | Token-efficient execution modifier with budget-aware routing |
| trigger | $ecomode |
| flags | [{"name":"--eco","description":"Aggressive cost optimization (25% budget)"},{"name":"--quick","description":"Fast execution with reduced depth (50% budget)"},{"name":"--strict","description":"Block non-essential tool use (read/search only)"}] |
| phases | ["starting","routing","executing","verifying","completing"] |
| gates | [{"type":"prompt_specificity","description":"Prompt must reference a specific task or feature","blocking":true},{"type":"flag_semantic_check","description":"Flags should match task complexity","blocking":false},{"type":"no_shortcut_keywords","description":"Avoid minimising language that leads to shallow solutions","blocking":false}] |
Token-efficient execution modifier. This is a MODIFIER, not a standalone execution mode.
Ecomode integrates with the OMK Token Efficiency System to minimize token consumption while maintaining output quality.
| Flag | Budget Multiplier | Use Case |
|---|---|---|
| (none) | 100% | Standard execution |
--quick | 50% | Fast turnaround, reduced depth |
--eco | 25% | Maximum cost optimization |
Ecomode uses the OMK routeTask() system to select the optimal agent configuration:
| Task Signal | Route | reasoning_effort | maxTokens | Tools |
|---|---|---|---|---|
review/explain/find | LOW | low | 8K | read, search |
implement/refactor/test | MEDIUM | medium | 32K | all |
design/architect/migrate | HIGH | high | 128K | all |
ALWAYS prefer lower tiers. Only escalate when the task genuinely requires it.
starting ──► routing ──► executing ──► verifying ──► completing
│ │ │
▼ ▼ ▼
routeTask() trackBudget() pruneContext()
selectAgent consume tokens reclaim tokens
budget_calculated — Token budget computed with flag multipliersroute_selected — Agent config chosen via complexity assessmentcontext_pruned — Large evidence compressed if >70% budget usedtools_restricted — Non-essential tools blocked (with --strict)tests_passed — npm test exited 0 (if code changes)budget_report — Efficiency score ≥ 60 (faster + more remaining = better)audit_report — Full token audit with recommendations| Combination | Effect |
|---|---|
eco ralph | Ralph loop with cost-optimized agents |
eco ultrawork | Parallel execution with budget caps |
eco autopilot | Full autonomous with token monitoring |
Use omk_write_state MCP tools for ecomode lifecycle state.
omk_write_state({skill: "ecomode", phase: "starting", active: true})omk_write_state({skill: "ecomode", phase: "completing", active: false})$cancel to clear active state--strict to block write/execute tools for read-only analysis--eco over --quick for truly simple tasks