Skip to main content

This page is under review and therefore should not be read as official guidance

Tooling

Modern rebuild combines feature decomposition with Copilot Ralph for iterative autonomous implementation. Both activities must operate within the project’s approved information-governance and security controls.

Toolchain

flowchart TD
	PRD["Approved PRD"]
	Decomposition["Feature decomposition"]
	Specifications["Feature specifications"]
	Ralph["Copilot Ralph run loop"]
	Feature["Implemented feature"]

	PRD --> Decomposition
	Decomposition --> Specifications
	Specifications --> Ralph
	Ralph --> Feature

	classDef startPoint stroke:#2e7d32
	classDef termination stroke:#c62828
	class PRD startPoint
	class Feature termination

Feature decomposition

The PRD to Features agent turns the approved PRD into independently deliverable feature specifications, verifying full coverage and emitting a traceability manifest, with individual specifications written by the Feature Writer agent. Use the Process guidance to review the proposed feature plan, confirm dependencies and priorities, and obtain approval before implementation begins.

Copilot Ralph autonomous build loop

Copilot Ralph runs GitHub Copilot through repeated iterations, feeding a prompt to the agent so each pass builds on the previous one until the task is complete. It implements the “Ralph Wiggum” loop pattern using the GitHub Copilot SDK.

Prerequisites

Before use, ensure that the following are installed and approved for the project:

  • Go 1.24 or later
  • Git
  • authenticated GitHub Copilot access

Install the command line tool with Go:

go install github.com/JanDeDobbeleer/copilot-ralph/cmd/ralph@latest

Confirm current installation steps and supported models in the Copilot Ralph documentation. Tool versions, model availability and organisational approval requirements can change.

Running the loop

Run the loop with a prompt, or with a Markdown file such as an approved feature specification:

ralph run "Implement the next feature specification in specs/"
ralph run specs/FT-001-feature-name.md

Common options:

Option Purpose
--max-iterations Maximum loop iterations before stopping (default 10)
--timeout Maximum runtime before stopping, for example 30m or 1h
--model The AI model to use
--promise The completion phrase that signals the task is done
--dry-run Show the configuration and planned run without executing it

The loop exits when the task reports completion, the maximum iterations are reached, the timeout is exceeded, an error occurs, or you cancel it. Set --max-iterations and --timeout deliberately: unattended iteration budgets must be understood and appropriately governed.

Project artefacts

Artefact Purpose
AGENTS.md Operational instructions, commands, conventions and guardrails maintained by the team
specs/ Approved feature specifications that drive the current build
rules/ Detailed project standards used by the agent when making implementation decisions

Working across the two projects

Modern rebuild normally uses a source project containing the PRD and feature specifications, and a separate target application project where the replacement is built.

modern-rebuild-project/
	output/
		PRD.md
		features/
			FT-001-feature-name.md

target-application-project/
	AGENTS.md
	rules/
	specs/
		FT-001-feature-name.md
	src/
	test/

Copy one approved feature specification into the target project’s specs/ directory at a time. Complete the build and implementation-review cycle before progressing to the next feature.