Skip to content

Agentic Engineering on GitHub: One Ticket Through Plan, Build, Verify, Observe

GitHub says it took in more than 1.2 billion commits in one week this October — up over 400% year on year, and more than all of 20251. Meanwhile Faros AI's telemetry shows median time in PR review up 441.5% when the same teams go from low to high AI adoption2.

Agents made typing free and review expensive. This post walks one real-sized ticket through GitHub's four-stage loop — Plan, Build, Verify, Observe — with the exact commands, files, and settings for each stage, plus the fine print the launch post skips.


The bottleneck moved from writing to reviewing

Faros compared the lowest and highest AI-adoption periods inside the same organizations: 22,000 developers, 4,000+ teams, two years of telemetry2.

Metric (low → high AI adoption) Change
Task throughput per developer +33.7%
Median time in PR review +441.5%
PRs merged with no review at all +31.3%
Bugs per developer +54%
Incidents per PR +242.7%

Two caveats. This is a before/after comparison, so it's correlation, not proof. And the 1.2 billion commit figure is GitHub's own number, which I couldn't check against a second source.

Still, the shape is hard to argue with: 33.7% more tasks, 441.5% longer in review. Every stage below is about getting that review time back.

The ticket we'll follow

One example runs through the whole post (it's illustrative — swap in your own):

Add cursor pagination to GET /orders. Existing clients that use ?page= must keep working.

Stage What you produce Main tools
Plan 3 scoped issues with acceptance criteria Copilot issue creation, Agentic Workflows, plan mode
Build 3 branches moving in parallel Cloud sandboxes, /resume, AGENTS.md, Fusion
Verify 3 small PRs, pre-checked gh stack, Code Quality, code review, Agent Merge
Observe 1 follow-up issue with a regression test Connectors (Sentry, Grafana Cloud), Dreaming

Plan: turn scattered context into 3 scoped issues

The output of planning is issues an agent can execute without asking you anything. That means acceptance criteria, not a vibe.

1. Let Copilot draft the issues

Go to github.com/copilot and prompt it. Copilot drafts each task as a separate issue, and can break an epic into sub-issues3:

In acme/shop-api, plan cursor pagination for GET /orders.
Break it down into an epic, and create sub-issues for:
1) add an indexed (created_at, id) cursor to the orders query
2) accept ?cursor= and ?limit= while keeping ?page= working
3) update the OpenAPI spec and the client docs
Each sub-issue needs acceptance criteria and the test command.

Review the drafts, then click Review and create → Create issues. Issue creation is in public preview3.

If the requirement lives in a Slack thread, start there instead: research → plan → iterate works in Copilot on GitHub.com and in the Slack and Teams integrations. Jira, Linear, and Azure Boards integrations can only open a PR directly4.

2. Automate triage with a Markdown workflow

GitHub Agentic Workflows (gh-aw) runs an agent inside GitHub Actions from a Markdown file. Install it and add a sample5:

gh extension install github/gh-aw
gh aw add-wizard githubnext/agentics/repo-status
gh aw run repo-status

A triage workflow is frontmatter plus a prompt. This sketch uses the documented on, permissions, engine, and safe-outputs keys6 — the label names are mine, so adjust them:

---
on:
  issues:
    types: [opened]
permissions:
  contents: read
  issues: read
engine: copilot
safe-outputs:
  add-labels:
    allowed: [bug, feature, docs, complexity/low, complexity/high]
    max: 3
  add-comment:
    max: 1
---
Read the new issue. Add one type label and one complexity label.
Use complexity/low only if the change touches one module and has
clear acceptance criteria. Comment with one sentence explaining why.

Save it as .github/workflows/triage.md, then:

gh aw compile   # generates triage.lock.yml
git add .github/workflows/triage.md .github/workflows/triage.lock.yml

Commit both files — Actions runs the .lock.yml, not the Markdown5. The agent has read-only permissions; it can only write through the safe-outputs you list, which is why the label allowlist matters.

Now complexity/low issues are your "assign straight to Copilot" queue.

3. Use plan mode for the hard one

Sub-issue 2 (keeping ?page= working) has real trade-offs. Don't let an agent start coding it. In Copilot CLI7:

copilot
# press Shift+Tab to cycle: standard → plan → autopilot
/plan Add ?cursor= and ?limit= to GET /orders. ?page= must return identical results for existing clients.

Plan mode asks clarifying questions, writes a checkbox plan to plan.md in the session folder, blocks edits to project files, and waits for your approval7.

  • Every issue has acceptance criteria and a test command
  • Low-complexity issues are labeled and assigned to Copilot
  • The risky issue has a plan you read and approved

Build: run 3 tasks without babysitting 3 terminals

1. Move execution off your laptop

A cloud sandbox is an isolated Linux environment GitHub creates per session. It can't touch files on your machine, and a stopped session keeps a snapshot so you can resume later8.

copilot --cloud    # CLI sessions are local by default; this runs in a sandbox

Billing is metered: $0.000024 per vCPU-second and $0.000003 per GiB-second of memory8. For an illustrative 4 vCPU / 16 GiB sandbox, that's about $0.52 an hour — before model costs.

2. Pick the session up anywhere

The same cloud session shows up in every client9:

Client Where to find it
github.com/copilot Pick up where you left off
GitHub Mobile Copilot icon → Agent sessions
Copilot CLI /resume or the Sessions tab
Copilot app Sidebar

So: start sub-issue 1 in the app, redirect it from your phone when someone raises an edge case in a meeting, finish in the terminal.

3. Write your conventions down once

An agent that doesn't know your test command will invent one. Put the rules in AGENTS.md at the repo root (cross-tool) or .github/copilot-instructions.md (Copilot-only)17:

# AGENTS.md

## Validate before you open a PR
- `make lint` and `make test` must pass.
- API changes: run `make openapi-check`.

## Conventions
- No breaking changes to `/v1/*` responses. Add fields, never rename.
- One logical change per PR. Keep diffs under 400 lines.
- New query → add the index in the same PR and paste the `EXPLAIN` output.

Two features keep this fresh:

  • Copilot Memory stores repository facts (build commands, conventions) shared with collaborators. They expire after 90 days by default and are checked against the current branch before use10.
  • Copilot Dreaming (public preview) reads eligible sessions and merged-PR feedback, then updates memories automatically and opens PRs proposing changes to AGENTS.md and .github/skills/**. Files don't change until you merge11.

Dreaming isn't available on Copilot Pro in the initial preview11.

4. Match the model effort to the task

Pick Copilot Fusion in the model picker and it routes each prompt for you12:

Level Use it for Plans
Fusion Standard Everyday work, one model per task All plans
Fusion High Complex bugs, multi-file changes Pro+, Max, Business, Enterprise
Fusion Max Most thorough analysis Pro+, Max, Business, Enterprise

At High and Max, Fusion can have an efficient model draft and a judge escalate (cascade), or have several models critique a draft in parallel. You pay each model's standard rate, so those levels can burn more AI credits12.

For our ticket: Standard for the docs sub-issue, High for the ?page= compatibility work.

One gotcha from the docs: if Fusion discards a draft that already edited files, those edits aren't rolled back. Read the diff before you commit12.

  • Long tasks run in cloud sandboxes, not on your laptop
  • AGENTS.md has your validation commands
  • Memory is on; Dreaming PRs get reviewed like any other PR

Verify: make the PR cheap to review

The fix for a 47-file "small refactor" isn't a faster reviewer. It's three PRs.

1. Stack the PRs

Stacked PRs split one change into a chain of dependent PRs, each reviewed alone. You need GitHub CLI 2.90.0+ and Git 2.20+13:

gh extension install github/gh-stack

gh stack init                      # name it: orders-cursor-query
git add . && git commit -m "Add (created_at, id) cursor index and query"

gh stack add orders-cursor-api
git add . && git commit -m "Accept ?cursor= and ?limit=, keep ?page="

gh stack add orders-cursor-docs
git add . && git commit -m "Update OpenAPI spec and client docs"

gh stack push
gh stack submit                    # opens 3 linked PRs with correct bases
gh stack view

After review changes on the bottom PR, one command cascades the rebase and pushes14:

gh stack sync
gh stack merge --squash            # merges bottom-up, all-or-nothing

PRs must merge from the bottom up, branch protection and CI apply to every PR in the stack, and agents can build stacks themselves through the gh-stack skill15.

2. Let machines take the first pass

Check What it catches Fine print
Code Quality Known anti-patterns via CodeQL rules, coverage drops; inline PR comments with one-click fixes Rules cover C#, Go, Java, JS/TS, Python, Ruby; per-committer license16
Copilot code review Logic and design feedback Est. $0.25 Lite, $1.50 Balanced, $10 Max per review17
AI Scan Vulnerabilities in languages CodeQL doesn't cover on PRs, such as PHP and Terraform Repository scans are public preview18
License compliance Dependencies outside your license allowlist GitHub Enterprise Cloud + Code Security license19
Package firewall Malware, critical advisories, packages under 1 day old Public preview, npm only, enterprise-level20

For code review, set the default effort to Adaptive (public preview) and Copilot picks Lite, Balanced, or Max per PR based on complexity and risk17. A typo fix doesn't deserve a $10 review.

The package firewall is two lines of .npmrc20:

registry=https://package-firewall.githubapp.com/npm/enterprises/ENTERPRISE
//package-firewall.githubapp.com/npm/enterprises/ENTERPRISE/:_authToken=${GITHUB_TOKEN}

That matters more with agents: a sandbox running npm install on a package published 3 hours ago is exactly the supply-chain hole the 1-day minimum age closes.

3. Let Copilot keep the PR green

Agent Merge watches a PR and starts fixing when a blocker appears21:

  1. Open the PR → in the merge box, click Watch and fix.
  2. Select Fix failed Actions workflows, Resolve merge conflicts, or both.

Agent Merge doesn't merge anything. Pair it with auto-merge so GitHub merges once required reviews and checks pass:

gh pr merge --auto --squash

For security alerts, assign them to Copilot from the code scanning backlog. Agentic Autofix investigates, validates the fix by re-running CodeQL, and opens a draft PR22.

The fine print GitHub's post skips

  • Agent Merge doesn't support stacked PRs or PRs from forks21. Today you pick: stack the change, or let Agent Merge babysit it.
  • GitHub's post says Agent Merge handles review comments1. The docs page only lists failed Actions workflows and merge conflicts21.
  • Agent Merge bills AI credits to whoever enabled it, not the PR author21.
  • Agentic Autofix can't validate fixes for custom CodeQL queries or third-party scanner alerts22.

  • No PR over ~400 lines; dependent work is stacked

  • Code Quality and code review run before a human is requested
  • Auto-merge is on only where required checks are meaningful

Observe: close the loop from production

The cursor change ships. Next morning: intermittent timeouts on /orders for a few large customers.

1. Bring the evidence into the session

Copilot connectors are GitHub-verified MCP servers — sign in once and the tools work across surfaces. The docs name Slack, Work IQ, Atlassian Rovo, Sentry, and Grafana Cloud23. Then ask a question that has an answer:

Using Sentry and Grafana Cloud: which /orders requests timed out since
yesterday's 14:00 deploy? Group by customer and by whether the request
used ?page= or ?cursor=. Compare p95 latency to the 7 days before.

Connectors are in public preview and don't work in sessions that run on GitHub Actions (for example, an issue assigned to Copilot)23. GitHub's post also mentions a Fabric connector for business data1; it isn't on the connectors concept page, so check the supported-connectors list first.

2. Turn the finding into an issue with a failing test

Say the answer is: ?page= requests with deep offsets from accounts with 1M+ orders skip the new index. Capture it:

In acme/shop-api, log a bug: GET /orders?page=N times out for accounts
with more than 1M orders since PR #482. Attach the latency comparison.
Acceptance criteria: a regression test that seeds 1M orders and asserts
?page=500 returns in under 300 ms. Assign this issue to Copilot.

"Assign this issue to Copilot" in the prompt starts the agent as soon as the issue exists3. You're back at Plan, with the acceptance criteria already written.

3. Feed the lesson back

This incident should become a rule. Either add it to AGENTS.md yourself ("pagination changes need a load test at 1M rows") or review the PR Dreaming proposes from the session and the merged-PR feedback11.

  • Every incident ends in an issue with a regression test as acceptance criteria
  • Every repeated review comment ends up in AGENTS.md

Summary

Don't adopt all four stages at once. Fix the stage that hurts most this week.

If this is your pain Start here Time to try
PRs sit in review for days gh stack + Code Quality + Adaptive code review 1 afternoon
Agents keep ignoring your conventions AGENTS.md with validation commands, then Memory 30 minutes
Issue backlog nobody triages One gh-aw triage workflow with a label allowlist 1 hour
You're tied to one terminal copilot --cloud + /resume 10 minutes
CI flakes and merge conflicts eat your day Watch and fix + gh pr merge --auto 5 minutes per PR
Incidents repeat Connector + "issue with regression test" prompt Next incident

Rules I'd keep regardless of tooling:

  1. No acceptance criteria, no agent. If you can't write the test command, the task isn't ready.
  2. One logical change per PR. Agents write 47-file diffs happily; humans can't review them.
  3. Machines review first, humans review intent. Lint, quality, security, and license checks finish before a person is requested.
  4. Auto-merge only behind checks you trust. Faros saw PRs merged with zero review rise 31.3%2 — don't add to that number by accident.
  5. Every incident writes a rule. Otherwise the agent repeats the mistake at agent speed.

Check the preview status before you build a process on any of this: issue creation, Dreaming, connectors, Adaptive and Max review, AI Scan for repositories, and the package firewall were all public preview as of 2026-11-18.


Questions or discussion? Connect on LinkedIn, X or reach out via email.


  1. GitHub Blog, Beyond code generation: A developer's guide to agentic engineering (Nick Liffen & Philip Holleran, 2026-11-06) — source of the 1.2 billion commits figure and the four-stage framing. ↩↩↩

  2. Faros AI, Ten takeaways from the AI Engineering Report 2026: The Acceleration Whiplash — two years of telemetry, 22,000 developers, 4,000+ teams; observational comparison of lowest vs. highest AI-adoption periods. ↩↩↩

  3. GitHub Docs, Using Copilot to create or update issues — public preview. ↩↩↩

  4. GitHub Docs, Research, plan, and iterate with Copilot. ↩

  5. GitHub Agentic Workflows, Quick start. ↩↩

  6. GitHub Agentic Workflows, Frontmatter reference and Safe outputs reference. ↩

  7. GitHub Docs, Best practices for GitHub Copilot CLI and CLI command reference. ↩↩

  8. GitHub Docs, About cloud sandboxes — the 4 vCPU / 16 GiB hourly figure is my own arithmetic on the published per-second rates, not a GitHub number. ↩↩

  9. GitHub Docs, Managing and tracking agents. ↩

  10. GitHub Docs, Copilot Memory. ↩

  11. GitHub Docs, Copilot Dreaming — public preview. ↩↩↩

  12. GitHub Docs, Copilot Fusion. ↩↩↩

  13. GitHub Docs, Stacked pull requests quickstart. ↩

  14. GitHub Docs, Stacked pull requests CLI commands. ↩

  15. GitHub Docs, About stacked pull requests. ↩

  16. GitHub Docs, GitHub Code Quality. ↩

  17. GitHub Docs, Copilot code review — cost figures are GitHub's per-review estimates; Max and Adaptive are public preview. ↩↩↩

  18. GitHub Docs, AI Scan. ↩

  19. GitHub Docs, Open source license compliance. ↩

  20. GitHub Docs, Protecting endpoints with package firewall — public preview. ↩↩

  21. GitHub Docs, Watch and fix pull requests. ↩↩↩↩

  22. GitHub Docs, Autofix for code scanning. ↩↩

  23. GitHub Docs, Copilot connectors — public preview. ↩↩

Discussion

Have thoughts on this post? Share them below — questions, corrections, or your own experience are all welcome.