Skip to content

mheadd/my-agent-team

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Agent Team

A four-agent chain that takes a software specification from planning to pull request. An Orchestrator governs the workflow, a Builder writes the code, a Reviewer evaluates it, and a Shipper prepares the PR.

Setup

Copy the contents of this repository into your own project, placing files in the matching directory structure:

  • .github/agents/ — Agent definitions (orchestrator, builder, reviewer, shipper)
  • .github/instructions/ — Instruction files referenced by agents
  • .github/skills/ — Skill definitions for specialized tasks (ADR writing, changelog updates, PR writing)
  • docs/adr/ — Directory for Architecture Decision Records
  • AGENTS.md — Top-level conventions shared across all agents

The agent and skill files use relative references, so the directory structure must be preserved.

This repo comes with agent definitions in .github/agents/ - you can supplement the behavior of the agents by adding relevant instructions and skills files in .github/instructions/ and .github/skills/ respectively.

How It Works

  1. Start with the Orchestrator — it reviews the spec for ambiguity, declares scope, and drives the process.
  2. The Orchestrator runs the Builder as a subagent to implement the spec.
  3. The Orchestrator runs the Reviewer as a subagent to evaluate the output (PASS or FAIL).
  4. On PASS, the Orchestrator runs the Shipper as a subagent to prepare the pull request.

The chain includes human checkpoints for spec clarification and architectural decisions. See AGENTS.md for full details on conventions and agent behavior.

Usage

The Orchestrator uses VS Code's subagent pattern to invoke the Builder, Reviewer, and Shipper automatically — no manual switching required. Only the Orchestrator appears in the agent picker; the other agents run as subagents within the Orchestrator's session.

VS Code

Select Orchestrator from the agent picker and give it a spec:

Selecting the Orchestrator from the VS Code agent picker

Implement the spec in docs/specs/user-registration.md

The Orchestrator reviews the spec for ambiguity, asks clarifying questions, then automatically drives the Builder → Reviewer → Shipper chain. You'll see each subagent appear as a collapsible tool call in the chat — expand to view details.

You can also point it at an issue or inline requirements:

Implement the requirements in issue #42

Copilot CLI

You can also run the Orchestrator from the GitHub Copilot CLI. In interactive mode, type /agent to see available agents:

Selecting a custom agent in the Copilot CLI

Select Orchestrator from the list. The CLI confirms the active agent and you can enter your prompt:

The Orchestrator agent selected and active in the Copilot CLI

You can also invoke it directly from the command line:

copilot --agent orchestrator --prompt "Implement the spec in docs/specs/user-registration.md"

⚠️ Experimental: The subagent pattern used by the Orchestrator (the agents frontmatter field) is not yet fully supported in the Copilot CLI. The CLI will load the Orchestrator as a custom agent, but may report warnings about unknown fields. The agents will still run, but this integration should be considered experimental.

Human checkpoints

The chain pauses for your input at three points:

  1. Spec ambiguity — before work begins, if the Orchestrator finds requirement-level gaps.
  2. Branch confirmation — before the Builder starts, verifying the active branch is correct.
  3. ADR confirmation — before the Shipper runs, if a major architectural decision was made.

If the build loop fails

If the Reviewer returns FAIL, the Orchestrator re-runs the Builder with the issue list. After two consecutive failures on the same issues, it escalates to you for guidance.

Note: Always start with the Orchestrator. The Builder, Reviewer, and Shipper are not directly selectable — they run only as subagents of the Orchestrator.

About

An agent chain to take a software specification from planning to pull request

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors