Add token usage analysis to subagent-driven-development test

- Rewrote analyze-token-usage.py to parse main session file correctly
- Extracts usage from toolUseResult fields for each subagent
- Shows breakdown by agent with descriptions
- Integrated into test-subagent-driven-development-integration.sh
- Displays token usage automatically after each test run
This commit is contained in:
Jesse Vincent
2025-11-29 20:51:18 -08:00
parent 24ca8cd9d5
commit faa65e7163
2 changed files with 176 additions and 0 deletions

View File

@@ -277,6 +277,14 @@ else
fi
echo ""
# Token Usage Analysis
echo "========================================="
echo " Token Usage Analysis"
echo "========================================="
echo ""
python3 "$SCRIPT_DIR/analyze-token-usage.py" "$SESSION_FILE"
echo ""
# Summary
echo "========================================"
echo " Test Summary"