Repository navigation
Replies: 6 comments 2 replies
Weekly Update — 2026-05-15What ChangedCopilot code review will start consuming GitHub Actions minutes on June 1, 2026 GitHub announced (changelog) that Copilot code review — currently a "free" add-on — will begin consuming GitHub Actions minutes starting June 1, 2026. This is a significant cost signal for organizations like petry-projects that run Copilot review alongside Claude Code and CodeRabbit on every PR. Impact on this org:
Code with Claude SF 2026 pricing changes:
GitHub Actions pricing context:
Updated Assessment
RecommendationAdvance — prioritize before June 1. At minimum, establish baseline metrics for current Actions minute consumption per PR (across all AI review tools) so the Copilot minutes impact can be measured when it hits. A lightweight first step: add a step to |
🔬 Implementation Analysis: pr-review & dev-lead AgentsArchitecture OverviewBoth agents share a single invocation layer in
This is the perfect single seam for token instrumentation — instrument Token Capture StrategyClaude (primary engine): The
Gemini / Copilot fallback engines: Neither exposes token counts via CLI. We'll record ET Metric ImplementationGitHub's formula: Model cost multipliers (relative to haiku 4.5 = 1.0):
Files to Create / ModifyNew:
Modified:
JSONL Record Schema{
"ts": "2026-05-20T19:45:00Z",
"workflow": "pr-review",
"tier": "triage",
"engine": "claude",
"model": "claude-haiku-4-5-20251001",
"input_tokens": 2841,
"cache_read_tokens": 1200,
"output_tokens": 312,
"et": 3865.2,
"pr_url": "https://github.com/...",
"run_id": "12345678"
}Security DesignPR URLs are included for correlation but NO diff content, no prompt content, and no credentials appear in the JSONL. The log is a workflow artifact (ephemeral, scoped to the run) — not committed to the repo. Estimated Token Reduction via Pre-Agentic DownloadFor the pr-review agent, the triage tier currently calls Test Strategy (TDD)
|
Weekly UpdateWhat ChangedGitHub published detailed results from their own agentic workflow token optimization program (May 2026):
Source: Improving token efficiency in GitHub Agentic Workflows New Ideas discussions filed this week:
Updated Assessment
RecommendationAdvance — The ET metric should be adopted in |
Enhancement: Token Cost Observatory — Current State Gap Analysis & Quick WinsSharpened problem & goal Context
What is likely missing (to verify in the gap audit):
Note: GitHub's ET paper's 19-62% reduction claims come from context pruning (removing irrelevant issue history), not just pre-downloading via Impact / Effort
Suggested acceptance criteria
|
|
Hey @don-petry — how is Claude Code scaling on your .github-private repo? Do things start lagging and forcing you into annoying loop-and-reprompt cycles as the code grows, or is it keeping up? |
✅ Delivered — closing as shippedThe Token Cost Observatory (the named deliverable of this idea) is live in production:
Shipped across #334 → #456 → #460 → #465, with a reliability hardening pass in #955. Tests green ( Remaining work — promoted to dedicated discussionsThe two optimization layers from the original 3-layer proposal now live as their own tracked ideas, so the parent is closing to avoid duplication:
Closing #332 as delivered; follow-up optimization tracked in #563 and #565. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Implement GitHub's Effective Tokens (ET) metric across all agentic workflows, add structured token-usage logging, and introduce pre-agentic context download steps that fetch issue/PR data via
ghCLI before agent invocation. This reduces token consumption by 20-60% while providing cost visibility and budget alerting.Market Signal
GitHub published its token efficiency framework with the Effective Tokens (ET) metric:
ET = m × (1.0×I + 0.1×C + 4.0×O), showing 19-62% reductions across five internal workflows. TrueFoundry documented the "agentic token explosion" where costs grow O(n²) in the number of agent steps. Starting June 1, 2026, Copilot code review will consume GitHub Actions minutes under the new AI Credits billing model, adding a significant new cost vector. GitHub's approach of eliminating unused MCP tool registrations saved 8-12KB per turn (several thousand tokens per run).User Signal
Issue #206 explicitly requests token usage monitoring and optimization. The org runs 8+ agentic workflows (claude-code, agent-shield, feature-ideation, compliance-audit, org-status, dependabot-automerge, pr-review-mention, dependency-audit). No token tracking infrastructure currently exists — costs are invisible. With Copilot's June 2026 billing change imminent, this gap is becoming a budget risk.
Technical Opportunity
Three implementation layers, each independently valuable:
claude-code-reusable.ymlthat download issue/PR context viaghCLI before invoking Claude. This eliminates MCP tool overhead and keeps credentials out of the LLM context window (a security co-benefit).The weekly cost report can be appended to the existing daily-org-status report with minimal integration work.
Assessment
Adversarial Review
Strongest objection: The org is small with limited workflow runs. The cost isn't high enough to justify monitoring infrastructure. YAGNI applies.
Rebuttal: Issue #206 is an explicit user request, not speculative demand. The org runs 8+ agentic workflows, several daily. GitHub's own team achieved 62% reduction on their auto-triage workflow — similar in scope to this org's compliance-audit. The implementation is deliberately lightweight (logging wrapper + aggregation script, not a full observability platform). The pre-agentic download pattern provides a security benefit beyond cost savings by keeping GitHub tokens out of the LLM context.
Suggested Next Step
Add token-usage logging to
claude-code-reusable.ymlby capturing the Claude API response token counts and writing them to a JSONL artifact. Implement the ET metric formula in a small shell script (scripts/lib/token-metrics.sh). Create a weekly token report that aggregates costs by workflow and surfaces the top-3 optimization opportunities.All reactions