compute-ladder

compute-ladder is a skill for Claude Code, Codex from open-gitagent/opengap. It costs 48 tokens per session (677 once invoked), scanned C, original, MIT.

A set of rules for choosing an AI coding model based on whether available services are healthy. It starts with local models and uses other models only when a service is rate-limited or times out.

In plain words
What is it for?
Use it to check model availability, choose a primary model, and switch models after rate limits, timeouts, or incomplete responses.
Why use it?
It avoids paying for a more expensive model just because a task seems difficult, while still providing backups when a model service fails.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to check model availability, choose a primary model, and switch models after rate limits, timeouts, or incomplete responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/open-gitagent/opengap/compute-ladder
About the project

OpenGAP is a framework-independent standard for defining AI agents as Git repositories, using files such as an agent manifest and identity document. It is intended for portable, version-controlled agents that can be adapted to systems such as Claude Code, OpenAI, LangChain, CrewAI, and AutoGen. The catalogue skills represent workflows and extensions built around this agent format.

open-gitagent/opengap · 3,192 stars · on GitHub · gitagent.sh

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add open-gitagent/opengap --skill compute-ladder
Clone the repo
git clone --depth 1 https://github.com/open-gitagent/opengap

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compute-ladder

README.md
[![agentmods](https://agentmods.dev/badge/skills/open-gitagent/opengap/compute-ladder/github.svg)](https://agentmods.dev/skills/open-gitagent/opengap/compute-ladder)
Your own site
<a href="https://agentmods.dev/skills/open-gitagent/opengap/compute-ladder"><img src="https://agentmods.dev/badge/skills/open-gitagent/opengap/compute-ladder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compute-ladder

Your own site · 80×15
<a href="https://agentmods.dev/skills/open-gitagent/opengap/compute-ladder"><img src="https://agentmods.dev/badge/skills/open-gitagent/opengap/compute-ladder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 677 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00677
Opus 5.5 $0.00019 $0.00271
Sonnet 5.5 $0.00010 $0.00135
Haiku 4.5 $0.00005 $0.00068

Measured 3mo ago against content hash 63151cc4c69c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

compute-ladder scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s localhost:11434/api/tags | python3 -c "import json,sys; d=json.load(sys.stdin); print('TIER-0 OK:', len(d['models']), 'models')"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s localhost:11434/api/tags | python3 -c "import json,sys; d=json.load(sys.stdin); print('TIER-0 OK:', len(d['models']), 'models')"
examples/jason-my-claw-is-the-law-deebee-4567b4/skills/compute-ladder/SKILL.md · 79 lines

What it actually says

Compute Ladder

Tier Definitions

Tier 0 — Local (never dies, zero cost)
  ollama/qwen3-coder:latest    primary, MoE, 128 TPS, 64k ctx
  ollama/gpt-oss:20b           fallback, 32k ctx HARD LIMIT

Tier 1 — Fast Free Cloud (up to 2100 TPS)
  cerebras/qwen-3-235b-a22b-instruct-2507   235B MoE, fast free
  cerebras/llama3.1-8b                      8B, ultra-fast light tasks

Tier 2 — Free Cloud (normal latency)
  openrouter/z-ai/glm-4.5-air
  openrouter/qwen/qwen3-coder

Tier 3 — Free Cloud Deep Reasoning
  openrouter/nousresearch/hermes-3-llama-3.1-405b:free

Tier 4 — Break-Glass (paid, restricted use)
  openrouter/anthropic/claude-opus-4.6  [narco-check and audit ONLY]

Fallback Rules

DO fallback when:

  • HTTP 429 (rate limited)
  • Connection timeout (> 90s)
  • Stream death / incomplete response

DO NOT fallback when:

  • Task seems "complex" or "important"
  • You want "better" output quality
  • Previous attempt gave a poor answer

Use the primary model. Iterate. Fallback is for infrastructure failure, not preference.

Health Check

# Tier 0
curl -s localhost:11434/api/tags | python3 -c "import json,sys; d=json.load(sys.stdin); print('TIER-0 OK:', len(d['models']), 'models')"

# Tier 1
curl -s -o /dev/null -w "%{http_code}" \
  -H "Authorization: Bearer $CEREBRAS_API_KEY" \
  https://api.cerebras.ai/v1/models

# Tier 4
curl -s -o /dev/null -w "%{http_code}" \
  https://openrouter.ai/api/v1/models

Cost Guard

# Check today's OpenRouter spend
curl -s "https://openrouter.ai/api/v1/auth/key" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  | python3 -c "
import json,sys
d=json.load(sys.stdin)['data']
print(f'today: \${d[\"usage_daily\"]:.2f} | week: \${d[\"usage_weekly\"]:.2f} | month: \${d[\"usage_monthly\"]:.2f}')
"

Daily > $5: flag to Ludo. Weekly > $50: flag immediately — tier-4 model is likely being over-used.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 79 lines · 48 tokens per session scan C 63151cc4c69c

Subscribe to this mod's changes

compute-ladder is a skill published in the GitHub repository open-gitagent/opengap (3,192 stars, last pushed 5mo ago), licensed MIT. It adds 48 tokens to every session and 677 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

compute-ladder compared with skills from other repositories

compute-ladder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
compute-ladderopen-gitagent/opengapSkill3.2k5mo agoMITC48Claude Code, Codex
a0-create-agentagent0ai/agent-zeroSkill20kyesterdaynoneA20Claude Code, Codex
csv-analyzereverruns/everrunsSkill72todayMITA22Claude Code
everrunseverruns/everrunsSkill72todayMITA104Claude Code, Codex
resendeverruns/everrunsSkill72todayMITA42Claude Code
hello-worldeverruns/everrunsSkill72todayMITA24Claude Code, Codex
sql-styleeverruns/everrunsSkill72todayMITA17Claude Code, Codex