Back to list
开发工具AI编码效率优化Claude Codetoken优化开发者工具
AI 编码Agent上下文效率优化检查清单
为 AI 编码 Agent 生成一份上下文窗口优化检查清单,减少 token 消耗、提升代码生成质量
9 views4/20/2026
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:
-
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
-
Session Memory Management
- CLAUDE.md / .cursorrules / AGENTS.md best practices
- Session summary and context injection patterns
- When to start fresh vs continue sessions
-
Token Budget Tracking
- Estimating cost per task type: bug fix, feature, refactor
- Read vs write token ratio optimization
- Bash output filtering and truncation strategies
-
Task Decomposition
- Breaking large tasks into parallelizable subtasks
- Plan-review-execute workflow
- When to use background agents vs inline execution
-
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.