From 01ff50f3a68cd7e51f0fab4d7f897cd7ba904e64 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 18:45:06 +0000 Subject: [PATCH 1/5] Initial plan From 4a94ae5afcb7d9f1202f32ec23a13a9bef3b4acd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 18:47:44 +0000 Subject: [PATCH 2/5] docs: strengthen agentic-ops README Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com> --- README.md | 42 +++++++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9328499..f0582ad 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,48 @@ -# agentic-ops +# agentic-ops — audit Copilot token spend, surface waste, and optimize agentic workflows with confidence [![CI](https://github.com/githubnext/agentic-ops/actions/workflows/ci.yml/badge.svg)](https://github.com/githubnext/agentic-ops/actions/workflows/ci.yml) -This repo contains a small set of GitHub Agentic Workflows for auditing Copilot token usage and highlighting workflows that should be optimized. +`agentic-ops` is a focused bundle of GitHub Agentic Workflows for teams adopting Copilot-powered automation and wanting better visibility into cost, usage, and optimization opportunities. Instead of guessing which workflows are expensive or where token waste is hiding, this package gives you an audit trail, historical reporting, and conservative recommendations you can review before making changes. -## Usage +## Introduction -To add one of these workflows to your repo, use `gh aw add //`. +It is built for platform engineers, developer productivity teams, and repository maintainers who are scaling agentic workflows and need a practical way to keep them efficient. The bundle helps solve a common problem with AI automation: token usage grows quickly, but the signals for where to improve are scattered across workflow runs and logs. With `agentic-ops`, you get repeatable workflows that make usage measurable, optimization opportunities actionable, and efficiency work easier to operationalize. + +## Key Features + +- **Clear operational visibility** with a daily Copilot token audit that captures usage, cost, trends, and workflow-level hotspots. +- **Actionable optimization guidance** that identifies high-token workflows and proposes safe, conservative improvements. +- **Faster cost control** by helping teams find waste before it becomes a recurring operational expense. +- **Built for real GitHub workflows** using GitHub Agentic Workflows, so installation and adoption fit naturally into existing repositories. +- **Useful historical context** through shared snapshots that support trend analysis instead of one-off debugging. +- **A focused bundle** that gives you both measurement and optimization, not just another standalone report. + +## Quick Start + +Install the bundle with `gh aw add`: ```bash gh aw add githubnext/agentic-ops/copilot-token-audit githubnext/agentic-ops/copilot-token-optimizer + +# Then compile the installed workflows in your repository +gh aw compile ``` -This adds the workflow to `.github/workflows/`. For guided setup, use `gh aw add-wizard githubnext/agentic-ops/copilot-token-audit`. +After installation, you can use the included workflows to: -Release history lives in [CHANGELOG.md](CHANGELOG.md). +- run a daily audit of Copilot token usage +- identify the workflows consuming the most tokens +- generate optimization recommendations grounded in recent run data -## Workflows +Included workflows: | Workflow | What it does | | ----- | --- | -| [`Daily Copilot Token Usage Audit`](https://github.com/githubnext/agentic-ops/blob/main/workflows/copilot-token-audit.md?plain=1) | Collects recent Copilot workflow usage and creates a daily audit snapshot. | -| [`Copilot Token Usage Optimizer`](https://github.com/githubnext/agentic-ops/blob/main/workflows/copilot-token-optimizer.md?plain=1) | Analyzes expensive workflows and proposes conservative token-reduction changes. | +| [`Daily Copilot Token Usage Audit`](https://github.com/githubnext/agentic-ops/blob/main/workflows/copilot-token-audit.md?plain=1) | Collects recent Copilot workflow usage, stores historical snapshots, and publishes a daily audit summary. | +| [`Copilot Token Usage Optimizer`](https://github.com/githubnext/agentic-ops/blob/main/workflows/copilot-token-optimizer.md?plain=1) | Analyzes high-token workflows and recommends conservative efficiency improvements backed by recent run data. | + +Release history lives in [CHANGELOG.md](CHANGELOG.md). + +## License + +MIT From 02063f94dfb33e26f637c94c242018217eb30ed8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 18:58:07 +0000 Subject: [PATCH 3/5] docs: plan agent-agnostic README follow-up Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com> --- .github/workflows/agentics-maintenance.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/agentics-maintenance.yml b/.github/workflows/agentics-maintenance.yml index 00651d5..a92b313 100644 --- a/.github/workflows/agentics-maintenance.yml +++ b/.github/workflows/agentics-maintenance.yml @@ -174,7 +174,7 @@ jobs: await main(); - name: Install gh-aw - uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1 + uses: github/gh-aw-actions/setup-cli@v0.72.1 with: version: v0.72.1 @@ -309,7 +309,7 @@ jobs: await main(); - name: Install gh-aw - uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1 + uses: github/gh-aw-actions/setup-cli@v0.72.1 with: version: v0.72.1 @@ -355,7 +355,7 @@ jobs: await main(); - name: Install gh-aw - uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1 + uses: github/gh-aw-actions/setup-cli@v0.72.1 with: version: v0.72.1 @@ -489,7 +489,7 @@ jobs: await main(); - name: Install gh-aw - uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1 + uses: github/gh-aw-actions/setup-cli@v0.72.1 with: version: v0.72.1 From dd5dbc0b8ad88d4d6569f7d7fa7b49cb9e36ee38 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 18:58:46 +0000 Subject: [PATCH 4/5] docs: make README positioning agent-agnostic Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com> --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f0582ad..e796d10 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# agentic-ops — audit Copilot token spend, surface waste, and optimize agentic workflows with confidence +# agentic-ops — audit token spend, surface waste, and optimize agentic workflows with confidence [![CI](https://github.com/githubnext/agentic-ops/actions/workflows/ci.yml/badge.svg)](https://github.com/githubnext/agentic-ops/actions/workflows/ci.yml) -`agentic-ops` is a focused bundle of GitHub Agentic Workflows for teams adopting Copilot-powered automation and wanting better visibility into cost, usage, and optimization opportunities. Instead of guessing which workflows are expensive or where token waste is hiding, this package gives you an audit trail, historical reporting, and conservative recommendations you can review before making changes. +`agentic-ops` is a focused bundle of GitHub Agentic Workflows for teams scaling agentic automation and wanting better visibility into cost, usage, and optimization opportunities. Instead of guessing which workflows are expensive or where token waste is hiding, this package gives you an audit trail, historical reporting, and conservative recommendations you can review before making changes. ## Introduction @@ -10,7 +10,7 @@ It is built for platform engineers, developer productivity teams, and repository ## Key Features -- **Clear operational visibility** with a daily Copilot token audit that captures usage, cost, trends, and workflow-level hotspots. +- **Clear operational visibility** with a daily token audit that captures usage, cost, trends, and workflow-level hotspots. - **Actionable optimization guidance** that identifies high-token workflows and proposes safe, conservative improvements. - **Faster cost control** by helping teams find waste before it becomes a recurring operational expense. - **Built for real GitHub workflows** using GitHub Agentic Workflows, so installation and adoption fit naturally into existing repositories. @@ -30,7 +30,7 @@ gh aw compile After installation, you can use the included workflows to: -- run a daily audit of Copilot token usage +- run a daily audit of workflow token usage - identify the workflows consuming the most tokens - generate optimization recommendations grounded in recent run data @@ -38,7 +38,7 @@ Included workflows: | Workflow | What it does | | ----- | --- | -| [`Daily Copilot Token Usage Audit`](https://github.com/githubnext/agentic-ops/blob/main/workflows/copilot-token-audit.md?plain=1) | Collects recent Copilot workflow usage, stores historical snapshots, and publishes a daily audit summary. | +| [`Daily Copilot Token Usage Audit`](https://github.com/githubnext/agentic-ops/blob/main/workflows/copilot-token-audit.md?plain=1) | Collects recent workflow token usage, stores historical snapshots, and publishes a daily audit summary. | | [`Copilot Token Usage Optimizer`](https://github.com/githubnext/agentic-ops/blob/main/workflows/copilot-token-optimizer.md?plain=1) | Analyzes high-token workflows and recommends conservative efficiency improvements backed by recent run data. | Release history lives in [CHANGELOG.md](CHANGELOG.md). From 147603096a743efea32d0657903090f988eeef6f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 18:59:58 +0000 Subject: [PATCH 5/5] docs: keep README and branch agent-agnostic Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com> --- .github/workflows/agentics-maintenance.yml | 8 ++++---- README.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/agentics-maintenance.yml b/.github/workflows/agentics-maintenance.yml index a92b313..00651d5 100644 --- a/.github/workflows/agentics-maintenance.yml +++ b/.github/workflows/agentics-maintenance.yml @@ -174,7 +174,7 @@ jobs: await main(); - name: Install gh-aw - uses: github/gh-aw-actions/setup-cli@v0.72.1 + uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1 with: version: v0.72.1 @@ -309,7 +309,7 @@ jobs: await main(); - name: Install gh-aw - uses: github/gh-aw-actions/setup-cli@v0.72.1 + uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1 with: version: v0.72.1 @@ -355,7 +355,7 @@ jobs: await main(); - name: Install gh-aw - uses: github/gh-aw-actions/setup-cli@v0.72.1 + uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1 with: version: v0.72.1 @@ -489,7 +489,7 @@ jobs: await main(); - name: Install gh-aw - uses: github/gh-aw-actions/setup-cli@v0.72.1 + uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1 with: version: v0.72.1 diff --git a/README.md b/README.md index e796d10..653aeeb 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ Included workflows: | Workflow | What it does | | ----- | --- | -| [`Daily Copilot Token Usage Audit`](https://github.com/githubnext/agentic-ops/blob/main/workflows/copilot-token-audit.md?plain=1) | Collects recent workflow token usage, stores historical snapshots, and publishes a daily audit summary. | -| [`Copilot Token Usage Optimizer`](https://github.com/githubnext/agentic-ops/blob/main/workflows/copilot-token-optimizer.md?plain=1) | Analyzes high-token workflows and recommends conservative efficiency improvements backed by recent run data. | +| [`Daily Token Usage Audit`](https://github.com/githubnext/agentic-ops/blob/main/workflows/copilot-token-audit.md?plain=1) | Collects recent workflow token usage, stores historical snapshots, and publishes a daily audit summary. | +| [`Token Usage Optimizer`](https://github.com/githubnext/agentic-ops/blob/main/workflows/copilot-token-optimizer.md?plain=1) | Analyzes high-token workflows and recommends conservative efficiency improvements backed by recent run data. | Release history lives in [CHANGELOG.md](CHANGELOG.md).