Skip to content
bradcstevensPublic

About

GitHub Copilot SDK Loop Engineering Harness — skills, agents, and sandboxed autonomous implementation runners.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

1,448 Commits

Folders and files

Repository files navigation

git-loopy — PRDs in. Issues out. Loops run.

git-loopy is a framework for encoding your engineering knowledge into repeatable workflows — and then running them, autonomously, against your issue tracker, your repository, and your own feedback loops.

Intro to Loop Engineering

Loop engineering is the practice of turning what a skilled engineer knows — how work is shaped, sliced, built, verified, reviewed, and shipped — into a system that executes that knowledge the same way every time. Humans keep intent, domain language, acceptance criteria, guardrails, and final judgment. The workflow keeps execution.

This matters because the leverage point has moved. The scarce skill is no longer producing every line by hand; it is designing a system in which an agent can make small, verifiable moves without drifting from the goal. A workflow you can trust runs tens, hundreds, or thousands of times and compounds. A one-off agent conversation ends when the terminal closes, and takes everything it learned with it.

That is meta-engineering: engineers move up a level, from editing the application to building — and improving — the system that repeatedly builds and operates it. The software development lifecycle does not disappear at that level. Planning, review, testing, isolation, integration, and release still hold; what changes is who performs each step.

Three actors, one workflow

Every step in a git-loopy workflow is owned by exactly one actor, chosen on purpose:

Actor Owns Why
Engineers Intent, domain language, issue slicing, acceptance criteria, final judgment Accountable and reliable, but scarce and expensive
Agents Reasoning, implementation, and flexible knowledge work Capable, but probabilistic and token-hungry — they need guardrails
Code Routing, state changes, validation, gates, accounting Fast, repeatable, testable, and free of model cost

The design rule follows directly: when a step can be made deterministic, code owns it. An agent that can be told "the linter failed, here is the output" beats an agent asked to double-check its own work.

Note

An army of agents and subagents is not the goal. Sprawl burns tokens, hides intent, multiplies the ways poor output reaches your branch, and leaves you nothing durable to improve. git-loopy spends an agent where judgment is genuinely required and deterministic code everywhere else.

What is git-loopy?

git-loopy is a GitHub Copilot SDK framework that runs the encoded workflow: it turns well-shaped issues into bounded, observable, autonomous delivery. It orchestrates a Runner family around one shared Wrapper contract. The Python Orchestrator is the active reference path across Linux, macOS, and Windows. See the Runner family guide for the status of the retained shell and PowerShell paths and the planned Rust Orchestrator.

Models produce code quickly, but an unstructured prompt-to-code process loses intent, overruns useful context, and hides whether the result is actually good. git-loopy makes that work explicit and reviewable: durable domain language, acceptance-tested issues, one Active issue per Iteration, your repository's own feedback loops as the gate, progress accounting, strikes, Checkpoints, pushed commits, and human judgment at the end.

flowchart LR
    Engineer["Loop engineer<br/>intent, guardrails, judgment"]
    Skills["Skills<br/>shape, slice, verify"]
    Tracker["Issue tracker<br/>spec and ready-for-agent issues"]
    Runner["git-loopy Runner family<br/>repeatable autonomous Iterations"]
    Repo["Repository<br/>validated commits and closed issues"]

    Engineer --> Skills --> Tracker --> Runner --> Repo --> Engineer
    Runner -. "Dashboard and Summary" .-> Engineer
Loading

From one loop to a software factory

A software factory is not one universal agent loop. It is a portfolio of specialized workflows, selected by task type, risk, urgency, and price. git-loopy gets you there one rung at a time — every capability below is optional until the work needs it.

Capability What it gives you Reference
Issue-driven Iterations One Active issue per Iteration, a fresh context each time, and durable state in commits and tracker history concepts, wrapper contract
Your feedback loops as the gate The loops declared in AGENTS.md — lint, tests, builds — are what a change must survive, run by code and returned to the agent as evidence AGENTS.md
Task-type routing Seven recognized task types have configurable model-and-effort routes. In current source, only execution Task types run; a ready issue typed planning or review is reported as a Pool exclusion customization, task-type exclusions
Measured routing (in progress) Routes calibrated from what Runs actually cost and deliver, rather than from a static opinion ADR-0027
Named Planner (current source) git-loopy plan launches the catalog-defined Planner profile in the loop engineer's own Copilot CLI, outside a Run and without approving its proposed ticket graph planning command, ADR-0087
Task-specific Agent profiles (current source) Installed profiles bind execution work to its Required and Permitted Skills; Reviewer sessions are read-only, and planning stays outside Runs Skill policy, ADR-0078
Parallel Lanes (current source) Issue-clone-isolated Lanes work several parallel-safe issues at once, with a serialized, bounded-green Integration stage. A Run with no Lane work uses the serial Iteration driver and says so parallel mode
Copilot Sandbox (current source) The Python Run honors Copilot's effective Sandbox policy and refuses when required enforcement is unavailable Local Copilot Sandbox, ADR-0093
Live interface Per-Iteration activity, context fill, observed tokens, and billed cost while the Run is happening — via the shared git-loopy-tui helper on a terminal, or the line printer everywhere else runners
Closed-world Skill policy Exactly the Skills a Run may load — no ambient context bloat from whatever is installed on the host skill policy

Get started

Prerequisites: git, the copilot CLI, gh signed in, Python ≥ 3.11, and uv. Full list in docs/skills-setup.md.

# Install the current published Release once, user-global.
uv tool install "git+https://github.com/bradcstevens/git-loopy@v0.11.2#subdirectory=git-loopy/python"

# In the repository you want it to work on:
cd ~/code/my-project

# First-run setup: scope, model + reasoning effort, Skill policy, config.toml.
git-loopy init

# Start a Run.
git-loopy

This installs the latest published stable v0.11.2 Release. The current source is at 0.11.3 and includes the named Planner, activated Agent profiles, Issue-clone Lanes, and Copilot Sandbox support; use an Edge install for those until v0.11.3 is published.

The terminal interface is included in the base installation. An older install command that names the removed [tui] extra still succeeds, but your package manager warns that the extra does not exist; omit it.

On a terminal, a Run detaches its worker and a client attaches to it — the shared git-loopy-tui helper when one is available, otherwise the line printer. Closing the terminal, or killing that client, does not stop the Run; attaching again is the same operation. A non-terminal Run prints with the line printer and never spawns a client. A Dashboard fault is not a Run event: wrapper.dashboard.fault and exit code 3 are retired.

Useful variations:

git-loopy 50                      # cap the Run at 50 Iterations
git-loopy --model claude-sonnet-5.5   # override the model for this Run
git-loopy config list             # the effective settings a Run would use

Important

git-loopy gates every change on the feedback loops your repository declares in its AGENTS.md table. A repository that declares no runnable loop cannot be gated, and autonomous work has nothing to prove itself against. Declare the commands you already trust before your first Run.

Python is required for the current active Release; see the Runner family status for the retained paths.

Installation identity and channels

The default command installs the published v0.11.2 Release. Its installation identity is therefore git-loopy 0.11.2: git-loopy --version and wrapper.run.start report that exact Release version.

To install another named, published Release, replace the tag with the Release you want. For example, this installs the published v0.8.0 Release:

uv tool install "git+https://github.com/bradcstevens/git-loopy@v0.8.0#subdirectory=git-loopy/python"

An unreleased commit is an explicit Edge install, not a Release install. Pin the full commit SHA deliberately and identify that installation by its SHA; do not treat its source VERSION output as proof of Release identity:

uv tool install "git+https://github.com/bradcstevens/git-loopy@<unreleased-commit-sha>#subdirectory=git-loopy/python"

Once installed, git-loopy upgrade moves between Releases for you: it resolves the newest published Release (or the one --to names, or the ref --edge names), requires an explicit or recorded global keep-or-migrate routing choice, hands the move to the Install channel that placed the artifact it is running from, and then runs git-loopy update --routing. Unattended use without a recorded choice must supply --routing keep or --routing migrate; Config is saved only after the installed Runner's readiness checks pass. A channel it cannot prove, or cannot pin to one Release, changes nothing and prints the exact command instead — see moving between Releases.

A local Python Run with saved Config also refuses before work until a routing choice is supplied or recorded. Use git-loopy update --routing keep or git-loopy update --routing migrate with --project/--global, or select --route-policy static/dynamic for one Run. Config is not rewritten by a Run; retained Static work needs no leaderboard access even when Dynamic prerequisites are missing; uncovered Dynamic work is refused, not run on a fallback. Non-local activation remains deferred, so unselected GitHub Actions Runs retain their legacy path.

Separately, Dynamic routing is the default for unpinned Python-local work. A fresh git-loopy init --yes records route_policy = "dynamic" without Static rows, and the Run that follows refuses until git-loopy init --routing migrate collects the Dynamic limits. A local Run with no Config and no named policy refuses before work instead of taking the legacy path; naming --route-policy unselected keeps that path for one Run. Shell and PowerShell routing remain deferred, and this does not imply Subagent or Integration routing. See routing migration.

git-loopy uninstall takes the same installation back off the machine through the same proven channel, together with the global config-home, the installed Skill catalog and the TUI helper. It prints the whole plan and waits for you to confirm it. Your repositories are never edited: tracked project files and Run logs are reported and kept unless you ask for them with --all — see removing an installation.

The skills and their purpose

These skills are small, composable disciplines rather than one monolithic process. Use only the skills the work needs; run /setup-git-loopy-skills once before the rest.

The catalog's source of record is bradcstevens/git-loopy-skills — every skill below links there. git-loopy init installs that catalog from a pinned revision into git-loopy's own config home and every Run refreshes the install, so a git-loopy installation carries no skills of its own and reads none from your repository (ADR-0025). To type these as slash commands yourself, install them into your agent with the catalog's own skills CLI — see docs/skills-setup.md.

Shape intent and gather evidence

Skill Purpose
/grill-me Interview a human until a general plan or design has no hidden decision branches.
/grill-with-docs Grill a repository change while sharpening GLOSSARY.md and recording non-obvious decisions in ADRs.
/grilling Supply the reusable interview discipline behind the grilling workflows.
/wayfinder Map work too large or unclear for one planning session into linked investigation tickets.
/research Resolve factual uncertainty from high-trust primary sources and save cited findings in the repository.
/prototype Build a throwaway logic or UI artifact when a runnable answer is cheaper than more discussion.
/domain-modeling Sharpen the project's shared language and capture architectural decisions.
/handoff Pass the runtime and prompt output of a /next run to a fresh background agent that picks the work up immediately.
/loop-me Grill an operator into workflow specs for the automation they want this workspace to run.
/wait-what Ask for a re-pitch, in plain language and the project's own vocabulary, when an explanation did not land.
/to-questionnaire Turn unresolved decisions into a questionnaire for the person who can answer them.
/mermaid-diagrams Draw software diagrams — flow, sequence, class, ERD, C4, state — in Mermaid syntax.
/show-me Explain the current topic with concise diagrams, code-shape sketches, or focused HTML artifacts.
/sync-model-roster Reconcile the pinned SDK model roster, then align one git-loopy configuration scope.

Turn intent into delivered work

Skill Purpose
/to-spec Synthesize the agreed destination into a durable spec on the configured issue tracker.
/to-tickets Slice a plan or spec into dependency-aware tracer-bullet tickets sized for focused execution.
/triage Verify issue readiness and move executable work into the ready-for-agent Pool.
/implement Implement a spec or ticket, or resolve a diverged branch and merge/rebase conflicts, closing with /code-review.
/implement-spec Coordinate a spec's ticket graph through worktree-isolated implementers onto one integration branch.
/tdd Build one behavior at a time with a red-to-green vertical slice at a public seam.
/diagnosing-bugs Reproduce, minimize, hypothesize, instrument, fix, and regression-test a difficult bug.
/codebase-design Design deep modules with small interfaces at clean, testable seams.
/narrow-react-prop-types Narrow React component props to states used by live call sites, then adapt stories, tests, and mocks.
/improve-codebase-architecture Find module-deepening opportunities and grill through a selected architectural change.
/code-review Review a diff in fresh contexts against both repository standards and the originating spec.
/codebase-audit Audit a codebase line by line for junk files, dead code, and security holes before a push.
/pr Write a pull-request body that explains the change and its review context.
/push Publish finished work: stage the intended changes, commit, push, and open a pull request when one is needed.
/release Publish one release for all unreleased issues git-loopy completed, using the target project's versioning and release gates. Install this user-invoked skill separately in your agent; it is not a Required Skill in a Run.
/release-assessment Show an advisory review packet in Copilot App, checking freshness before every follow-up. Offers only a re-run, never release authorization. Requires the Release assessment service; excluded from Runs.

Set up and extend the workflow

Skill Purpose
/setup-git-loopy-skills Configure the repository's issue tracker, triage labels, and domain-document layout.
/design-control-loop Interview an operator, design a codebase control loop, and build its local commands and scheduled workflow.
/set-task-models On explicit invocation, research available Copilot models and set the model, effort, context, and enforcement of every Copilot built-in subagent and git-loopy task type.
/model-scorecard On explicit invocation, score available Copilot models 1–100 for each Copilot built-in subagent and git-loopy task type from the live Artificial Analysis leaderboard.
/wizard Generate an interactive bash wizard for a manual procedure only a human can carry out.
/next Choose the skill or flow that fits, or route to the one action to take now from live work state.
/teach Teach a concept over multiple sessions using the repository as a stateful workspace.
/create-readme Write a project README from what the repository actually contains.
/writing-for-agents Write documents agents read — skills, AGENTS.md, and their siblings.
/retro Review a coding session with the user and suggest improvements to the agent's environment.
/playwright-cli Exercise browser behavior, capture screenshots, and automate web interactions.
/jev-ultrafast On explicit request, run fast goal-driven browser automation on visible web pages.
/microsoft-docs Ground Microsoft technology questions in official documentation.
/microsoft-code-reference Look up Microsoft API references and verify SDK code against working samples.
/microsoft-foundry Deploy, evaluate, optimize, and operate Microsoft Foundry agents.

The GitHub Copilot CLI marketplace carries additional skills for work outside this catalog; npx skills find <query> searches it.

The pinned catalog includes /release, but a Run does not invoke it: publishing a completed batch requires a separate user invocation. The catalog also retires writing-great-skills in favor of /writing-for-agents; see catalog upgrade guidance if a saved Skill policy still enables the retired name.

The complete workflow, start to finish

Version note: Step 4, the task-specific Agent session in Step 6, and the diagram below use current-source features added after v0.11.2. They require an Edge install until v0.11.3 is published. With v0.11.2, invoke /to-tickets directly in Copilot; issue binding at Pickup is already present.

  1. Start with the vague idea. Use /grill-with-docs for repository or domain work and /grill-me for a general plan. When the answers live in someone else's head, /to-questionnaire pulls them out in one pass. If planning itself is too large for one useful context, use /wayfinder to turn the fog into a shared map of investigation tickets.
  2. Buy evidence where discussion is not enough. Use /research for factual questions and /prototype for behavior or visual questions. Feed the evidence back into the grill instead of guessing.
  3. Record the destination. Keep the shared vocabulary in GLOSSARY.md (or context glossaries reached through GLOSSARY-MAP.md), record consequential decisions in docs/adr/, and run /to-spec once the human and agent agree on the outcome.
  4. Create the route. Launch the named Planner with git-loopy plan <planning-document> (or invoke /to-tickets directly) to produce small vertical slices with explicit acceptance criteria and blocking edges. Each ticket should fit inside one focused execution context; the proposed graph still needs the Loop engineer's approval.
  5. Open the execution gate. /triage checks that a ticket is actionable and applies ready-for-agent. That label is an explicit human decision, not a guess made by the runner.
  6. Start the Run. Launch git-loopy. At the start of an Iteration, the Orchestrator collects the current Pool and binds one eligible issue before opening its task-specific Agent session.
  7. Complete one Iteration. The Agent reads the issue and domain docs, works in vertical slices, and runs the repository's feedback loops. It commits with a close keyword and closes the issue. The Orchestrator captures leftover work in a Checkpoint when necessary, pushes new commits, updates the live interface and Summary, and charges the issue a Strike whenever its session reaches an ending: no progress, a timeout or crash, no more tasks, or a content filter. In the Python Runner, a session a terminal account refusal ended charges none: the Run stops or pauses instead.
  8. Repeat, then judge. The next Iteration receives a fresh Pool and context. An issue whose sessions keep ending badly is skipped once it holds its configured Strikes; the Run stops when work is exhausted, the configured limit is reached, every remaining issue has been skipped, or an account refusal ends it. The loop engineer reviews the pushed result against the spec and repository standards, accepts it, reopens it, or creates a new sliced issue. Closed issues and commits preserve the state between Iterations.
  9. Improve the workflow, not just the code. Every red gate, wasted Iteration, and mis-routed task is evidence about the system. Fixing it there is what makes the next hundred Runs cheaper — the meta-engineering step that a one-off conversation never offers.
flowchart TD
    Idea["Vague idea"] --> Scope{"Fits one planning context?"}
    Scope -- "No" --> Wayfinder["/wayfinder<br/>investigation map"]
    Scope -- "Yes" --> Grill["/grill-with-docs or /grill-me"]
    Wayfinder --> Evidence{"Need more evidence?"}
    Grill --> Evidence
    Evidence -- "Primary-source facts" --> Research["/research"] --> Agreed["Shared understanding"]
    Evidence -- "Runnable answer" --> Prototype["/prototype"] --> Agreed
    Evidence -- "No" --> Agreed
    Agreed --> Spec["/to-spec<br/>durable destination"]
    Spec --> Tickets["git-loopy plan<br/>/to-tickets: vertical slices and dependencies"]
    Tickets --> Triage["/triage<br/>ready-for-agent"]
    Triage --> Pool["Issue Pool"]

    subgraph Iteration["One git-loopy Iteration"]
        Collect["Collect the Pool"] --> Bind["Bind one eligible issue<br/>at Pickup"]
        Bind --> Execute["Open its task-specific Agent<br/>execute one vertical slice"]
        Execute --> Verify["Run feedback loops"]
        Verify --> Close["Commit with close keyword<br/>close the issue"]
        Close --> Account["Checkpoint if needed<br/>push and account for progress"]
    end

    Pool --> Collect
    Account --> Continue{"More ready work<br/>not yet skipped?"}
    Continue -- "Yes" --> Collect
    Continue -- "No" --> Review["Loop engineer review<br/>spec and standards"]
    Review --> Value["Accepted value<br/>or a new sliced issue"]
    Value -. "evidence about the system" .-> Improve["Improve the workflow"]
    Improve -. "cheaper next hundred Runs" .-> Pool
Loading

Documentation

Guide What it covers
Workflow The full path from vague idea to accepted value
Concepts The context model behind small issues and fresh Iterations
Wrapper contract The behavior every Orchestrator must implement
Runner family The active Python path and the dormant shell and PowerShell baselines
Installation lifecycle Choosing Python Runner update, upgrade, or uninstall and their safeguards
Parallel mode Lanes, parallel-safe, and the Integration stage
Skill policy The closed world of Skills a Run may load
Skills setup Prerequisites and installing the skill catalog
Customization Prompt, config, routing, and repository-specific defaults
Decision records Why the system is built the way it is

Acknowledgments

git-loopy's skill-driven workflow was inspired by Matt Pocock's work on agent skills. Several of his skills form the foundation of the shape, slice, implement, and review workflow that this project builds into a repeatable loop.

Licensed under the MIT License.

About

GitHub Copilot SDK Loop Engineering Harness — skills, agents, and sandboxed autonomous implementation runners.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages