Agents and Subagents

July 17, 2026 · View on GitHub

Overview

NgAutoPilot ships 8 canonical agent roles under agents/ngautopilot/. These are reference Markdown files — not executable agents. An AI agent reads the role definition and adopts the persona for a focused task.

Invocation policy

1 task → 1 orchestrator → max 3 primary subagents → helpers only under trigger

Do not activate all subagents for every task.

Primary subagents

FileRoleTrigger
subagents/primary/01-spartan-contrarian-developer.mdSkeptical implementation reviewerProduction code changes, fragile tests, optimistic claims
subagents/primary/02-athenian-angular-architect.mdAngular architect and structure guardianAngular work, version detection, skill availability
subagents/primary/03-roman-consolidator.mdDelivery consolidator and validation closerEnd of a task with multiple subagents involved

Support subagents

FileRoleTrigger
subagents/support/04-stoic-typescript-guardian.mdTypeScript strictness and contractsTypeScript files modified, DTOs, casts, any
subagents/support/05-rxjs-oracle.mdRxJS and reactive flow reviewerRxJS code, subscriptions, memory leaks
subagents/support/06-testing-hoplite.mdJest and spec stability.spec.ts changes, TestBed, fakeAsync
subagents/support/07-compatibility-gatekeeper.mdVersion and migration riskpackage.json changes, upgrade hops
subagents/support/08-repo-cartographer.mdRepository structure and discoveryNew skills, catalog changes, missing SKILL.md

Integration

Each subagent file defines:

  • Identity and philosophical style
  • Mission
  • Activation triggers
  • Inputs expected
  • Responsibilities
  • Non-goals
  • Operating protocol (output format)
  • Required NgAutoPilot skills
  • Definition of done

How agents use them

An AI agent (Codex, Claude Code, OpenCode) loads the subagent Markdown when a trigger matches. The agent adopts the role for the scope of that task. NgAutoPilot routes the skills; the subagent provides oversight.

Pack Assignment

PackAgents included
ngautopilot-angularathenian-angular-architect
ngautopilot-angular-upgradescompatibility-gatekeeper
ngautopilot-typescriptstoic-typescript-guardian
ngautopilot-qualityspartan-contrarian-developer, roman-consolidator
ngautopilot-fullAll 8

Focused Angular packs include only matching specialist role: Foundations includes athenian-angular-architect, State includes rxjs-oracle, Testing includes testing-hoplite, and migration or upgrade-hop packs include compatibility-gatekeeper. All focused packs resolve Core automatically.