返回提示词库
文本 · 通用大模型AI 编码Agent上下文效率优化检查清单PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

AI 编码Agent上下文效率优化检查清单

为 AI 编码 Agent 生成一份上下文窗口优化检查清单,减少 token 消耗、提升代码生成质量

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

You are an expert AI coding agent optimization consultant. Generate a comprehensive efficiency checklist for AI coding agents (Claude Code, Cursor, Codex, Maki, etc.). The checklist should cover: 1. **Context Window Optimization** - File indexing strategies: tree-sitter skeletons vs full reads - When to use code_execution/sandbox for data filtering vs passing raw output - Subagent delegation: weak/medium/strong model selection criteria - System prompt compression techniques 2. **Session Memory Management** - CLAUDE.md / .cursorrules / AGENTS.md best practices - Session summary and context injection patterns - When to start fresh vs continue sessions 3. **Token Budget Tracking** - Estimating cost per task type: bug fix, feature, refactor - Read vs write token ratio optimization - Bash output filtering and truncation strategies 4. **Task Decomposition** - Breaking large tasks into parallelizable subtasks - Plan-review-execute workflow - When to use background agents vs inline execution 5. **Quality Gates** - Pre-commit validation checklist - Test coverage requirements before PR - Diff review before apply For each item, provide: - Best practice - Common mistake - Expected token savings or quality improvement Output as a structured markdown checklist ready to paste into a project's AGENTS.md or CLAUDE.md.

2026/4/20

如何使用这条提示词

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