agent-task-cost-estimatorlisted
Install: claude install-skill Yifeng123589/AgentCostEstimator
# Agent Task Cost & Time Estimator
Estimate the likely token consumption, API cost, and wall-clock time of an agent task **before** it is executed. Provide clear, conservative ranges rather than single numbers, and explain the assumptions.
## When to invoke
- The user asks for a cost/token/time estimate before running an agent task.
- The user wants to know "how expensive will this be?", "how many tokens will this use?", or "how long will this take?".
- The user is deciding whether to proceed with a complex agent workflow.
## Inputs to collect
1. **Task description** — what the agent is asked to do.
2. **Target model** — e.g. `claude-sonnet-4`, `gpt-4o`, `claude-3-5-sonnet`, `gemini-2.5-pro`.
3. **Context size** — approximate tokens already in the conversation or repo context:
- System prompt size
- Relevant files / codebase tokens
- Existing conversation history
4. **Complexity class** — choose one:
- `simple` — single file edit, one-step answer, short explanation.
- `medium` — multi-file read/modify, 2���4 tool calls, moderate reasoning.
- `complex` — large refactor, multi-step debugging, agent loop with many tool calls.
5. **Expected output** — approximate length of the final response or code change.
6. **Tooling environment** — e.g. local CLI, cloud API, agent framework with built-in retries, parallel sub-agents.
7. **Currency** — default to USD unless the user asks otherwise.
## Estimation method
### 1. Base prompt tokens
Sum the fixed context t