Skip to main content
Field note · ghost protocolPublished April 1, 2026 · 12 min read

Ghost Protocol: Multi-Agent Engineering Framework for GitHub Copilot

Ghost Protocol gives GitHub Copilot a team of 8 named specialist agents running 9 disciplined execution patterns. One installer script. Agents execute, leave clean results, disappear.

ghost protocolgithub copilotmulti agentai codingcopilot frameworkagent orchestration
One installer script
Ghost Protocol gives GitHub Copilot 8 named specialist agents and 9 execution patterns. Agents execute autonomously, leave clean results, disappear. No trace left behind.
Source: Ghost Protocol v1.0.0, March 2026

GitHub Copilot Is Powerful. Unstructured Copilot Is Chaos.

GitHub Copilot can write code, refactor systems, and build features end to end. But without structure, it fails in four predictable ways: scope creep (it expands beyond what you asked), lost context (it forgets decisions from 20 messages ago), no visibility (you never see what it decided or why), and no quality gate (work ships without review). The fix is structure, the same thread-based engineering discipline applied to Copilot.

Ghost Protocol solves all four. It gives Copilot a team of 8 named specialist agents, each with defined expertise, boundaries, and opinions. It gives every task a structured execution pattern with human checkpoints built in. And it connects the two with dual routing: every task gets assigned both an agent (who does the work) and a pattern (how the work is structured).

The result: you describe the work, Copilot routes to the right specialist and execution pattern, executes within guardrails, and presents structured output for your review. Then it disappears.

Failure ModeWhat HappensGhost Protocol Fix
Scope creepAgent expands beyond what you askedThread patterns enforce scope limits and escalation triggers
Lost contextAgent forgets decisions from 20 messages agoAgent history files and team decisions persist across sessions
No visibilityYou don't know what the agent decided or whyStructured output, decision logging, Scribe session archive
No quality gateWork ships without structured reviewCore Four framework, Review Thread, agent-specific quality checks

How It Works with Copilot

Ghost Protocol ships with a .github/copilot-instructions.md file. When Copilot reads this file, it knows all 8 agents, all 9 thread patterns, and the routing rules that connect them. No plugins, no extensions, no configuration. Just markdown that teaches Copilot the framework.

Here is what that looks like in practice:

> Build the payment system   (typed in Copilot chat)

# Routing to EECOM + Chain Thread...
C-THREAD: Payment System | Phase 1/4 | Agent: EECOM
CURRENT PHASE: Stripe integration
STATUS: Complete
HANDOFF TO: CAPCOM -- webhook contracts ready
# CHECKPOINT: Approve and continue to Phase 2? [Y/n]

You describe the work. Copilot identifies the right specialist and execution pattern. It executes the first phase, presents a checkpoint, and waits for your approval before continuing. Each phase can hand off to a different specialist. Every handoff is explicit. No implicit context transfer.

Installation

git clone https://github.com/lloydpilapil/ghost-protocol.git
cd ghost-protocol
chmod +x install.sh
./install.sh /path/to/your/project

This copies .ghost-protocol/ (agents, patterns, routing, ceremonies) and .github/copilot-instructions.md into your project. Open Copilot and the framework is active.

The 8 Agents

Ghost Protocol defines 8 named specialist agents. Not generic bots wearing hats. Each agent has a charter (behavioral contract), persistent history, defined boundaries, and a voice that shapes how it approaches work. Names follow the NASA Mission Control convention from Squad by Brady Gaster.

THE 8 AGENTS

Named specialists with charters, boundaries, and persistent memory

F

Flight

Architect

E

EECOM

Developer

Q

FIDO

Quality

P

Procedures

Prompts

D

PAO

Docs

C

CAPCOM

Integration

R

RETRO

Security

S

Scribe

Logger

Coordinator routes tasks to agents. Does not write code. Selects both the specialist and the thread pattern.

Scribe runs silently in the background after every thread. Logs sessions, archives decisions.

“The one who sees the whole board. Refuses to let tactical wins create strategic debt. Every choice has a cost. Flight makes sure the team knows what they are paying.”

Flight: Lead / Architect

“Ships working code. Treats "it works on my machine" as a bug, not a status. Three lines of duplicated code beats a premature abstraction.”

EECOM: Core Developer

“The gatekeeper. 80% coverage is the floor, not the ceiling. Prefers integration tests over mocks. Will block a merge if tests are missing.”

FIDO: Quality Owner

“The paranoid one. Justifiably so. Assumes every input is hostile until proven otherwise. Will block a merge over a missing CSRF token.”

RETRO: Security
AgentRoleWhat They OwnThread Affinity
FlightLead / ArchitectArchitecture decisions, code review, scope evaluationFusion, Big
EECOMCore DeveloperImplementation, runtime, core modules, bug fixesBase, Chain, Long, Zero
FIDOQuality OwnerTests, coverage, CI/CD, quality gatesReview, Zero verification
ProceduresPrompt EngineerAgent charters, coordination logic, spawn templatesBig (sub-agent design)
PAODocs / DevRelREADME, API docs, user-facing messagingBase (docs), Chain (docs phase)
CAPCOMIntegration SpecialistExternal APIs, SDK usage, platform patternsChain, Big
RETROSecuritySecurity review, PII, compliance, auth patternsReview (security checks)
ScribeSession LoggerSession logs, decision archival, historyBackground after all threads

Each agent has a charter.md that defines identity and behavioral rules, a history.md that persists learnings across Copilot sessions, and clear boundaries about what they handle and what they escalate. When an agent finishes work, their learnings persist. When a team decision affects multiple agents, it goes to decisions.md. Agents remember past patterns, decisions, and failures instead of starting blank.

Dual Routing: Every Task Gets a Who and a How

This is the core innovation. Every task is assigned both a specialist agent (who) and a thread pattern (how). Not one or the other. Both.

DUAL ROUTING

Every task is routed to who (agent) and how (thread pattern)

TASK

"Build payment system: schema, API, checkout, tests"

COORDINATOR

WHO

E

EECOM

Phase 1-3

C

CAPCOM

Phase 2

F

FIDO

Phase 4

R

RETRO

Phase 4

HOW

CHAIN THREAD (C-Thread)

1

Schema

checkpoint
2

Stripe API

checkpoint
3

Checkout UI

checkpoint
4

Tests + Security

Result: 4 specialists execute 4 sequential phases with human checkpoints between each

Agent + Pattern
Dual routing is what neither Squad nor Thread-Based Engineering provides alone. Squad answers who. Thread Engineering answers how. Ghost Protocol answers both for every task.
Source: Ghost Protocol Architecture

Here is how routing works in real Copilot conversations:

You say: "Fix the pagination bug. Off-by-one error returning 9 items instead of 10."

Copilot routes to EECOM + Base Thread. EECOM executes a scoped fix, presents for review. Done.

You say: "Build the auth system. Phase 1: database schema. Phase 2: API routes. Phase 3: frontend. Phase 4: tests and security."

Copilot routes to EECOM + CAPCOM + FIDO via Chain Thread. Sequential phases with explicit handoffs. EECOM writes the schema, hands off to CAPCOM for API integration, back to EECOM for frontend, then FIDO and RETRO for testing and security review. Human checkpoint between every phase.

You say: "Evaluate WebSocket vs SSE vs polling for real-time dashboard updates."

Copilot routes to Flight + Fusion Thread. Three strategies compete. Flight evaluates trade-offs. You pick the winner.

You say: "Add Zod validation to all 12 API routes."

Copilot routes to EECOM + Zero Thread. Fully autonomous. FIDO must approve test coverage first. Max 3 self-fix attempts before escalation. You review at the end.

The 9 Thread Patterns

Every thread pattern defines how work is structured: checkpoints, parallelism, phases, verification. The right pattern prevents scope creep before it starts. Ghost Protocol inherits all patterns from Thread-Based Engineering, extended with agent-awareness.

Execution Threads

PatternWhen to UseHuman CheckpointsTypical Lead
BaseSingle, scoped task (bug fix, small feature)Start + EndEECOM
Parallel (P-Thread)3-5 independent sub-tasks, no shared filesStart + EndMultiple agents
Chain (C-Thread)Multi-phase, early decisions affect later phasesBetween every phaseEECOM + FIDO
Long (L-Thread)Extended autonomous work with task trackingOptional self-checkpointsEECOM
Big (B-Thread)Hierarchical sub-agent coordinationStart + EndFlight coordinates
Fusion (F-Thread)Uncertain approach, compare 2-3 strategiesStart + Selection + EndFlight evaluates
Zero (Z-Thread)Well-tested, low-risk, fully autonomousEnd onlyEECOM + FIDO verifies

Quality Threads

PatternWhen to UseLead
ReviewPost-execution evaluation using Core FourFIDO + RETRO
StatusMetrics dashboard and optimization suggestionsCoordinator

How Threads Work with Agents

Thread patterns interact with agent charters. In a Chain Thread, different agents own different phases with explicit handoffs. In a Big Thread, Flight coordinates a hierarchy of specialists. In a Fusion Thread, Flight designs competing strategies and assigns them to different agents.

A Chain Thread for building a payment system:

C-THREAD: Payment System | Phases: 4
Phase 1: Database schema    -> Agent: EECOM   -> Checkpoint
Phase 2: Stripe integration -> Agent: CAPCOM  -> Checkpoint
Phase 3: Frontend checkout  -> Agent: EECOM   -> Checkpoint
Phase 4: Tests + security   -> Agent: FIDO + RETRO -> Final Review

Each phase handoff is explicit. EECOM writes a summary for CAPCOM before Phase 2 starts. No implicit context transfer.

The Core Four Quality Framework

Every completed thread is evaluated against four dimensions. No hand-waving. Scored 1-5 with evidence.

THE CORE FOUR

Every thread is evaluated against four quality dimensions

C
Context

Does the work show understanding of the codebase?

Existing patterns followed
Agent stayed within charter
M
Model

Right capability level applied?

Not over-engineered
Right agent assigned
P
Prompt

Work aligns with original request?

No scope drift
Handoffs were clean
T
Tools

Appropriate tools and tests used?

Tests written
Right thread pattern

GREEN

Merge

YELLOW

Minor fixes

RED

Redo

DimensionWhat It MeasuresKey Questions
ContextCodebase understandingWere existing patterns followed? Did agents stay within charter?
ModelRight capability appliedOver-engineered? Under-engineered? Right agent assigned?
PromptAlignment with requestScope drift? Ambiguities resolved? Handoffs clean?
ToolsAppropriate tools usedTests written? Linting checked? Right thread pattern?

Each dimension scores 1-5. The overall thread receives a rating:

  • GREEN: Clean, correct, ready to merge
  • YELLOW: Minor issues, fixable without redoing the thread
  • RED: Significant problems, triggers a Retrospective ceremony

A RED rating is not punishment. It is a signal to stop, analyze what went wrong, and route the fix through the correct agent and thread pattern.

“Be honest. A green rating on bad code costs more later. Focus on correctness and maintainability over style preferences. If the review reveals RED, trigger a Retrospective and suggest the appropriate thread type to fix it.”

FIDO Charter (Quality Owner)

Ceremonies: Automated Team Rituals

Ghost Protocol defines two ceremonies that trigger automatically.

Design Review

Triggers before any multi-agent task where 2+ agents will modify shared systems. Flight facilitates. All involved agents agree on interfaces, contracts, file ownership boundaries, and risk areas before any code is written. This prevents the most common multi-agent failure: two agents writing conflicting code.

Retrospective

Triggers after build failure, test failure, or RED review rating. Flight facilitates root cause analysis. What happened? Root cause? Right thread pattern used? Right agent assigned? What changes? Findings go to decisions.md so all agents learn from failures.

Why Ghost Protocol Exists

Thread-Based Engineering solved execution discipline: seven thread types with human checkpoints that prevent scope creep, lost context, and unreviewed code. But it was silent on who should do the work. Every task went to the same generalist agent.

Squad by Brady Gaster solved agent specialization: named agents with charters, persistent memory, and defined boundaries. But it was silent on how work should be structured. Agents had roles but no execution discipline.

Ghost Protocol is the synthesis.

CapabilitySquadThread EngineeringGhost Protocol
Named specialist agentsYesNoYes
Structured execution patternsNo9 patterns9 patterns
Persistent agent memoryYesStatelessYes
Human checkpointsAd hocPer-patternPer-pattern
Quality frameworkReviewer gatesCore FourCore Four + agent review
Dual routing (who + how)Who onlyHow onlyWho + How
Ceremonies (retros, reviews)YesNoYes, auto-triggered
GitHub Copilot nativeYesNoYes

When to Use Ghost Protocol

Ghost Protocol is not always the right choice.

Use Ghost Protocol when:

  • Your project has multiple concern areas (frontend, backend, security, integrations, docs)
  • You want Copilot to specialize instead of being a generalist
  • You need persistent memory across Copilot sessions (decisions, learnings, patterns)
  • Quality gates and structured review matter to your workflow
  • Multiple people work on the same codebase with Copilot

Use plain Thread-Based Engineering when:

  • You are working solo on a focused project
  • The project has one primary concern area
  • You want execution discipline without agent specialization
  • You use Claude Code, Cursor, or another agent with its own instruction format

Use neither when:

  • The task is a quick one-off fix
  • You are prototyping and speed matters more than structure

Open Source

Ghost Protocol is MIT licensed and open source.

The repository includes the full framework (agents, patterns, routing, ceremonies), an installer script, and .github/copilot-instructions.md for GitHub Copilot.

Thread execution patterns are adapted from Thread Engineering Kit by Pixelmojo. The multi-agent coordination model is inspired by Squad by Brady Gaster.

Ghost Protocol for GitHub Copilot: Questions Developers Ask

Common questions about this topic, answered.

What is Ghost Protocol for GitHub Copilot?

Ghost Protocol is a multi-agent engineering framework built specifically for GitHub Copilot. It gives Copilot 8 named specialist agents and 9 disciplined execution patterns. Every task is dual-routed to both an agent (who does the work) and a thread pattern (how the work is structured). One installer script. Agents execute, leave clean results, disappear.

How do I install Ghost Protocol for GitHub Copilot?

Clone the repo and run the installer: git clone github.com/lloydpilapil/ghost-protocol, chmod +x install.sh, then ./install.sh /path/to/your/project. This copies .ghost-protocol/ and .github/copilot-instructions.md into your project. Copilot reads the instructions automatically.

How does Ghost Protocol work with GitHub Copilot agent mode?

Ghost Protocol ships with a .github/copilot-instructions.md file that teaches Copilot all 8 agents, 9 thread patterns, and routing rules. You describe work in Copilot, it routes to the right specialist and execution pattern automatically. No plugins or extensions needed.

What are the 8 Ghost Protocol agents?

Flight (Lead/Architect), EECOM (Core Developer), FIDO (Quality Owner), Procedures (Prompt Engineer), PAO (Docs/DevRel), CAPCOM (Integration Specialist), RETRO (Security), and Scribe (Session Logger). Names follow NASA Mission Control convention. Each has a charter, persistent history, and defined boundaries.

What is dual routing in Ghost Protocol?

Every task is assigned both a specialist agent (who) and a thread pattern (how). A bug fix routes to EECOM + Base Thread. A multi-phase feature routes to EECOM + CAPCOM + FIDO via Chain Thread. An architecture decision routes to Flight + Fusion Thread. This is the core innovation.

What is the Core Four quality framework?

The Core Four evaluates every completed thread against four dimensions: Context (codebase understanding), Model (right capability applied), Prompt (alignment with request), and Tools (appropriate verification used). Each dimension is rated 1-5. The overall thread receives GREEN (merge), YELLOW (minor fixes), or RED (redo).

Is Ghost Protocol open source?

Yes. MIT licensed and available on GitHub at github.com/lloydpilapil/ghost-protocol. One installer script, and it works with any project that uses GitHub Copilot.

When should I use Ghost Protocol vs plain Thread-Based Engineering?

Use Ghost Protocol when your project has multiple concern areas and you want Copilot to specialize. Use plain Thread-Based Engineering when you work solo on a focused project or use a different AI coding agent like Claude Code or Cursor.

What are Ghost Protocol ceremonies?

Two auto-triggered rituals. Design Review fires before multi-agent work where 2+ agents will modify shared systems. Retrospective fires after build failures, test failures, or RED review ratings. Both are facilitated by Flight. Findings persist in decisions.md so all agents learn.

How does persistent agent memory work in Ghost Protocol?

Each agent has a history.md that persists learnings across Copilot sessions. Team decisions go to decisions.md, which all agents read before starting work. Scribe logs every session. Agents remember past patterns, decisions, and failures instead of starting blank.

What Comes Next

Ghost Protocol v1.0.0 ships today with the full framework: 8 agents, 9 thread patterns, dual routing, Core Four, ceremonies, and persistent memory. The roadmap includes SDK-first mode (programmatic team definition via TypeScript config), session replay from execution logs, and agent performance analytics.

Silent agents. Clean code. No trace left behind.

Next insightRadar v2: From Technical Audit to AI Intelligence Platform
Lloyd Pilapil
About the author
Lloyd PilapilFounder & AI Product Architect · Pixelmojo

Lloyd Pilapil is the founder of Pixelmojo and a senior UI/UX and growth designer with 20+ years of digital product experience and more than 30 years across visual and graphic design. His work includes projects for Salesforce, Parsons, Egis, and other public- and private-sector organizations. He builds production AI systems for B2B companies and writes about agentic AI, multi-agent orchestration, AX (Agentic Experience) design, GEO, and Thread-Based Engineering, focused on shipping AI products that generate revenue, not prototypes.

Agentic AI SystemsMulti-Agent OrchestrationAX DesignGEO & AI SearchThread-Based EngineeringAI Product DevelopmentGrowth MarketingUI/UX Design

Related reading

All field notes
thread based engineering · 17 min

Thread-Based Engineering: The Framework for Scaling AI Development

The definitive guide to Thread-Based Engineering: 7 thread types, governance alignment, a production case study (Lakbay AI), and the research on AI code quality, including the Veracode finding that models failed to write XSS-safe code 86% of the time.

Building AIRead article →
context engineering · 15 min

Context Engineering Beyond CLAUDE.md: The 5-Layer Hierarchy

CLAUDE.md is just layer one. The five-layer context hierarchy, memory patterns, and subagent strategies that separate productive AI coding from prompt guessing. With working examples.

Building AIRead article →
Read enough? Check your own
Does AI get your business?

Run Radar's six free technical checks on your domain, then follow the evidence behind each finding.