-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Labels
Description
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 logsor audit commands to extract token usage per step - Identify prompts/steps with highest token counts
- Use
- 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
- Token usage reduced by at least 50% (target: <850k for 10 runs)
- Output quality maintained (no regression in agent effectiveness)
- Top 3 token-consuming steps identified and optimized
- Changes documented with before/after token counts
Estimated Effort
Medium (3-5 hours)
Related to #6857
AI generated by Plan Command for discussion #6855
Reactions are currently unavailable