Prompt LibraryAgents

Agent Token & Cost Budget Planner Prompt

Estimate token usage and cost before running an agent loop.

The prompt

Given the agent workflow below, estimate:
- Total input tokens per loop iteration (system prompt + context + tool results).
- Expected number of iterations.
- Estimated cost at $/1K tokens for the chosen model.
- Which step is the dominant cost driver.
- One change that would cut cost by >30% without losing quality.

Workflow: {{workflow}}
Model pricing: {{pricing}}

Replace the {{fields}} with your own context and tighten the rules to match your domain.

Share this prompt