Estimate token cost for an Agent Triforce workflow based on the routing configuration
From agent-triforcenpx claudepluginhub artemiopadilla/agent-triforce --plugin agent-triforce/cost-estimateEstimate monthly cost for a Hetzner VPS before provisioning. Shows pricing comparison.
/cost-estimateEstimate infrastructure costs from Terraform configuration
/cost-estimateEstimate the token cost of a task before starting — provides cost range and recommended model tier
Estimate the token cost for running an Agent Triforce workflow. Reads the routing configuration from templates/agent-routing.json to determine which model is assigned to each skill and calculates estimated costs.
Step 1: Read routing configuration
Read templates/agent-routing.json from the project. If the file does not exist, use the default routing assumptions:
code-health: haikusecurity-audit: sonnetfeature-spec: sonnetimplement-feature: user's default model (assume sonnet for estimation)release-check: haikureview-findings: user's default model (assume sonnet for estimation)generate-tests: sonnetStep 2: Determine workflow type
Ask the user (or infer from context) which workflow they want to estimate. Common workflows:
| Workflow | Skills Involved |
|---|---|
| Full feature (PM -> Dev -> QA) | feature-spec + implement-feature + security-audit |
| Code health scan | code-health |
| Security audit only | security-audit |
| Release check | release-check |
| Implement + review | implement-feature + review-findings |
| Test generation | generate-tests |
Step 3: Calculate estimate
For each skill in the workflow:
averageTokensPerSkill in the config(input_tokens / 1M * inputPer1M) + (output_tokens / 1M * outputPer1M)Step 4: Present results
Display a table showing:
Workflow: [workflow type]
| Skill | Model | Est. Input | Est. Output | Est. Cost |
|-------|-------|-----------|------------|-----------|
| ... | ... | ... | ... | $X.XX |
Total estimated cost: $X.XX - $X.XX (+/- 30% margin)
Important notes:
--model opus applies to a single run onlyConfiguration file: templates/agent-routing.json