aliatx2017/reasonix-hermes/cost-aware-llm-pipeline
- community
Checking that the SKILL.md file is still in the repository.
Cost optimization for LLM API usage — flash-first routing, auxiliary offloading, budget thresholds, and compressor leverage.
Install
npx vskill@latest install aliatx2017/reasonix-hermes/cost-aware-llm-pipelineSKILL.md
Cost-Aware LLM Pipeline
The flash-first pipeline. Route cheap, escalate only on complexity, offload to auxiliaries. The cache architecture (immutable prefix, append-only log, volatile scratch) is covered by cache-first-architecture — load that one for cache mechanics; this skill covers the routing layer above it.
Flash-first routing
Default to the cheapest capable model. Escalate only when the task needs deeper reasoning:
| Task | Model | Why | |
|---|---|---|---|
| Simple edits, grep, read | flash | Low complexity | |
| Multi-file refactoring | pro | Needs reasoning depth | |
| Plan mode | pro | Strategic thinking | |
| Subagent review | pro | Code review depth | |
| Subagent explore | flash | Read-only survey | |
| Security review | pro | High-stakes analysis |
Auxiliary offloading
Route cheap sub-tasks to auxiliary providers — saves main-model tokens without sacrificing quality:
What gets offloaded: compaction summarization, image understanding, HTML-to-text conversion. These are high-volume, low-complexity tasks — the main model shouldn't pay for them.
Budget thresholds
Compaction is your budget enforcer. The compressor (internal/compress/) provides additional savings: SHA-256 content dedup, repeated-line collapse, JSON minification. Safe mode preserves errors and stack traces.
Cost tracking
Per-session atomic counters (sessTokensIn, sessTokensOut, sessCost) on Agent. Persisted in .sessionstats sidecar. Desktop StatusBar shows live cache% and cost chips. CLI /stats shows session totals.
Related
cache-first-architecture— immutable prefix, append-only log, volatile scratch (the cache mechanics beneath this routing layer)reasonix.example.toml—[agent.auxiliary]and compaction settingsinternal/compress/— token compressorinternal/agent/— session cost tracking
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.reasonix/skills/cost-aware-llm-pipeline/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aliatx2017/reasonix-hermes/cost-aware-llm-pipeline)