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.
More Agents prompts
Agent Loop Budget & Stopping Criteria Prompt
Define when an agent loop must stop.
Bounded Agent Loop Prompt Template
System prompt for an agent that keeps explicit state and stops cleanly.
Agent Tool-Use Scaffold Prompt for New Capabilities
Bootstrap the full tool-calling loop skeleton for one capability.


