THE AGENT SIGNAL LAB

Try github/gh-aw forecast: estimate AI-credit cost

Read existing GitHub Agentic Workflows run history to estimate AI-credit spend without starting an agent.

10–15 minutesHands-on guideChecked 29 October 2026
Download the Markdown guide

Edition: 29 October 2026. Tested status: documentation reviewed only. Neither the commands below nor an Actions/model experiment were executed in this publication run.

Purpose and source

GitHub Agentic Workflows (github/gh-aw) compiles Markdown-based agent tasks into constrained GitHub Actions workflows. Its read-only gh aw forecast uses existing historical runs to project AI credits for future workflow activity. The 28 October general-availability announcement describes stronger isolation and stable cost forecasting.

Read GitHub's GA announcement, forecast specification, repository and MIT license.

Prerequisites and costs

  • GitHub CLI v2+, the github/gh-aw extension, Python 3, and network access if you choose to run this yourself.
  • GitHub authentication with authorized read access to Actions in a personal/public repository containing prior gh-aw runs. Do not use a work account.
  • The extension is open source; reading historical usage does not need a new model API key or trigger inference. GitHub API limits may apply. Do not buy credits, authorize billing or launch runs.
  • This publication does not require your local computer; the optional reader lab can be carried out separately.

Commands

sh
gh --version
python3 --version
gh auth status
gh extension list
gh extension install github/gh-aw
gh aw --help

Only install the extension if missing, and use an authorized personal repository:

sh
gh aw forecast --repo OWNER/REPO --period week --days 7
gh aw forecast --repo OWNER/REPO --period week --days 7 --json > forecast.json
python3 -m json.tool forecast.json > /dev/null

These are read-only inspections. Do not run gh aw run, gh workflow run, schedule a job, or launch an AI agent.

Expected output (illustrative, not measured)

The text table reports discovered workflows, historical samples and AI-credit projections, potentially with low/median/high uncertainty. It is not a token-count output table. JSON should contain a period and workflow entries including sampled runs and projected credits. Zero historical samples can give an insufficient-data result. Do not invent numeric costs.

Inspect the JSON:

sh
python3 - <<'PY'
import json
from pathlib import Path
data=json.loads(Path("forecast.json").read_text())
print("Period:", data.get("period"))
for row in data.get("workflows", []):
    print(row.get("workflow_id"), "samples:", row.get("sampled_runs"),
          "projected AI credits:", row.get("projected_aic"))
PY

Score (0–5)

Award one point each for (1) correct authorized repository/workflow identity; (2) historical sampled runs >0; (3) uncertainty ranges rather than a guaranteed quote; (4) AI-credit projection distinguished from Actions runner costs and any security-review credits; (5) a written spending-limit/no-go decision. A low score means poor evidence, not necessarily poor software.

Troubleshooting

  • gh: command not found: install GitHub CLI from https://cli.github.com/.
  • python3: command not found: install Python 3 before using the JSON inspection.
  • unknown command aw: check gh extension list and the maintained extension docs.
  • Auth/403: inspect authorization; do not expand work/organization permissions.
  • No historical gh-aw runs: report insufficient data and stop. Never create usage by running a paid model.
  • Invalid JSON: read stderr and compare the exact version's forecast documentation; do not silently claim success.

Verification status

Official release and forecast syntax were reviewed. Not executed here: installation, GitHub forecast, Actions run, token/credit calculation, model call or benchmark. No paid services were used, and no numerical experiment result is claimed.

Get Agent Signal in your inbox

A short daily briefing on AI models, coding agents and research, with a link to the full report and one practical experiment.

Subscribe free →

Confirm your email to subscribe. Unsubscribe at any time.