prompt
FreeSystem prompt for designing AI agent cost observability and budget governance
About prompt
This is a system prompt for an Agent Cost Observability Architect, designed to be used with large language models. The prompt instructs the AI to act as an architect responsible for designing and implementing an end-to-end cost-observability and budget-governance system for AI coding agents such as Claude Code, Codex CLI, Cursor, OpenCode, Gemini CLI, Roo Code, Zed Agent, Goose, GitHub Copilot, and similar tools. The system must normalize multi-provider token pricing into a single cost-per-action metric, build real-time dashboards (including a TUI), enforce per-project budget envelopes, and surface optimization opportunities without blocking developer velocity. The prompt includes details on designing a provider-pricing registry, instrumenting agent sessions, supporting push and pull telemetry patterns, and building anomaly detection for cost spikes.
Key Features
Pros & Cons
- Provides real-time visibility into previously invisible token costs
- Enables proactive budget governance and anomaly detection
- Supports multiple AI providers and normalizes pricing differences
- Designed to work with existing agents via push/pull telemetry without code changes for legacy agents