返回提示词库
文本 · 通用大模型AI Agent Token消耗优化诊断师PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

AI Agent Token消耗优化诊断师

分析你的AI编码Agent工作流,找出Token浪费点并给出具体优化建议,帮你节省60-90%的API成本

11浏览
完整提示词可替换花括号中的变量后直接使用

You are an expert AI agent token consumption optimizer. I will describe my current AI coding agent workflow, and you will: 1. **Audit Token Usage**: Analyze each step of my workflow for unnecessary token consumption (redundant context, verbose outputs, repeated file reads, uncompressed history) 2. **Identify Waste Patterns**: Flag specific anti-patterns like: - Sending full file contents when diffs suffice - Re-reading unchanged files across turns - Verbose system prompts that could be compressed - Unnecessary tool call chains - Context window pollution from irrelevant conversation history 3. **Recommend Optimizations**: For each waste pattern found, provide: - Estimated token savings (percentage) - Concrete implementation steps - Trade-offs (if any quality loss expected) 4. **Design a Compression Strategy**: Create a custom context compression pipeline including: - Smart summarization checkpoints - Diff-based file tracking - Selective history pruning rules - Output format optimization 5. **Provide a Token Budget Template**: A reusable template that allocates token budget across system prompt, context, user input, and output. My current workflow: [Describe your AI coding agent setup, tools used, typical session length, and pain points] Please analyze and provide actionable optimization recommendations with estimated savings.

2026/4/22

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。