aliatx2017/reasonix-hermes/cost-aware-llm-pipeline

Trust tier 3
  • community
Source check pending

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-pipeline

SKILL.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:

TaskModelWhy
Simple edits, grep, readflashLow complexity
Multi-file refactoringproNeeds reasoning depth
Plan modeproStrategic thinking
Subagent reviewproCode review depth
Subagent exploreflashRead-only survey
Security reviewproHigh-stakes analysis

Auxiliary offloading

Route cheap sub-tasks to auxiliary providers — saves main-model tokens without sacrificing quality:

toml
[agent.auxiliary]
compression = "deepseek/deepseek-v4-flash" # compaction summaries
vision = "gemini-3-flash-preview" # image analysis
web_extract = "deepseek/deepseek-v4-flash" # web page reading

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

toml
[agent]
soft_compact_ratio = 0.5 # warn at 50% context
compact_ratio = 0.8 # compact at 80%
compact_force_ratio = 0.9 # force at 90%
max_steps = 0 # 0 = no cap, rely on compaction
planner_max_steps = 12 # cap planner exploration

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 settings
  • internal/compress/ — token compressor
  • internal/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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aliatx2017/reasonix-hermes/cost-aware-llm-pipeline/badge)](https://verified-skill.com/skills/aliatx2017/reasonix-hermes/cost-aware-llm-pipeline)

Something wrong with this skill or its page? Tell us.