Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Heuristic:42 evey Hermes plugins Free First Routing

From Leeroopedia
Knowledge Sources
Domains Cost_Optimization, Task_Routing, LLM_Delegation
Last Updated 2026-10-29 00:00 GMT

Overview

Route tasks to free/local tools and models first, reserving paid model delegations for task types that genuinely require LLM capability, to minimize API spending without sacrificing output quality.

Description

The routing table in evey-autonomy assigns every task type a cost_tier: "free/local", "configured", or "free". Task types like bridge_check, health_check, cost_review, goal_review, and alert_user are routed with empty model lists and "free/local" cost — they use terminal, file I/O, or messaging tools without any LLM call. Only code_change, research_deep, project_work, and creative_writing route to the heavy model with "configured" cost. This ensures the agent never spends API tokens for tasks that can be done locally.

The cost-guard plugin reinforces this: at 80% budget, it recommends switching to free models; at 100%, it recommends pausing non-essential delegations entirely.

Usage

Use this heuristic when designing a task routing table for an autonomous agent. Assign "free/local" to any task type that can be completed with file I/O, terminal commands, or messaging — reserve model delegation for research, code generation, and creative tasks.

The Insight (Rule of Thumb)

  • Action: Set "models": [] and "cost": "free/local" for task types that don't need LLM capability (checks, reviews, alerts, goal management).
  • Value: 7 of 14 task types in the routing table are free/local; only 4 use the heavy model.
  • Trade-off: Some free/local tasks could benefit from LLM summarization, but the cost saving outweighs the marginal quality gain for routine checks.
  • Compatibility: Pairs with the budget enforcement heuristic — when budget is exhausted, the agent can still perform all "free/local" tasks.

Reasoning

An agent running 24/7 on free models has hardware costs of ~$69/mo but near-zero API costs. The routing table ensures this stays true: bridge checks, health checks, goal reviews, and cost reviews all happen without spending a single API token. Only when the agent identifies real work (code changes, deep research, creative writing) does it delegate to a model — and even then, the cost-guard monitors spending and recommends switching to local models when approaching budget limits.

The empirical evidence: the LOCAL_MODELS set (qwen35-4b, qwen35-9b, hermes3:8b, etc.) in cost_analytics triggers recommendations to use local models for small-prompt tasks, reinforcing the free-first principle.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment