Objective
Reduce token consumption in workflow runs by trimming verbose prompts and enabling summarization where appropriate.
Context
Token usage spiked ~4x to 1.71M tokens across the last 10 runs, suggesting inefficient prompt construction or unnecessarily verbose outputs.
Approach
- Analyze the last 10 workflow runs to identify top token consumers:
- Use
gh aw logs or audit commands to extract token usage per step
- Identify prompts/steps with highest token counts
- Review prompt construction in high-cost steps:
- Look for redundant context or instructions
- Check for unnecessary verbosity in system prompts
- Identify opportunities for summarization
- Implement optimizations:
- Trim verbose instructions where possible
- Enable output summarization for intermediate steps
- Remove redundant context from prompts
- Validate changes don't reduce quality
Files to Modify
.github/workflows/*.md - Workflow source files with prompts
- Any agent configuration files affecting prompt construction
Acceptance Criteria
Estimated Effort
Medium (3-5 hours)
Related to #6857
AI generated by Plan Command for discussion #6855
Objective
Reduce token consumption in workflow runs by trimming verbose prompts and enabling summarization where appropriate.
Context
Token usage spiked ~4x to 1.71M tokens across the last 10 runs, suggesting inefficient prompt construction or unnecessarily verbose outputs.
Approach
gh aw logsor audit commands to extract token usage per stepFiles to Modify
.github/workflows/*.md- Workflow source files with promptsAcceptance Criteria
Estimated Effort
Medium (3-5 hours)
Related to #6857