Skip to main content

Agents

Specialized agents that handle distinct responsibilities in your development workflow. Each agent is defined in the canonical agents/ content (shipped in the bundled npm package) and adapted to your coding tool's native format.

Agent Reference

AgentDescription
architectSystem architect who designs architecture, creates ADRs, analyzes dependencies, designs APIs and database schemas, and evaluates architectural trade-offs.
brownfield-specBrownfield spec agent -- produces a codebase map, existing-pattern detection, integration-surface analysis, and a migration-aware plan with a non-destructive-adoption check.
ci-watcherCI/CD specialist who monitors pipeline runs, reads failure logs to diagnose root causes, and suggests focused fixes with local verification commands.
context-rulesContext-aware rules engine that applies coding standards based on file type, location, and project conventions, on save or during review.
creatorUser-content authoring agent invoked by /hatch3r-create. Authors one user-tier artifact under .hatch3r/overrides/, runs strict + gentle quality gates, and writes only when all strict gates pass.
dependency-drafterDependency-analysis specialist who drafts version-bump and dependency-change proposals with upgrade-impact, advisory, and breaking-change assessment. Drafts only; never installs or edits a manifest.
devopsDevOps engineer who manages CI/CD pipelines, infrastructure as code, deployment strategies, monitoring setup, container configuration, and environment management.
docs-writerTechnical writer who maintains specs, ADRs, and documentation, keeping them in sync with code changes.
edge-case-analystDomain edge-case + error-handling correctness specialist who enumerates functional edge cases (identity collisions, state transitions, null/boundary, concurrency, partial failure) and verifies none were dropped between Plan, Implement, and Review.
enhancabilityEnhancability quality specialist who reviews generated code for feature-flag adoption, config externalization, versioned APIs, forward-compatibility, and extension-point definition.
fixerTargeted fix agent that takes structured reviewer output and implements fixes for Critical and Warning findings. Does not handle git, branches, commits, or PRs.
greenfield-specGreenfield spec agent -- produces market research, competitive analysis, user personas, tech-stack picks, PRD, acceptance criteria, risk inventory, and test plan for new projects.
handoff-loaderSession-start agent that surfaces active handoff documents from .hatch3r/handoffs/active/ to detect in-progress work for resumption.
handoff-preparerPrepares a canonical handoff document capturing mid-work session state, invoked by the on-context-switch hook and by /hatch3r-handoff prepare.
implementerFocused implementation agent for a single issue. Receives issue context, delivers code changes and tests. Does not handle git, branches, commits, PRs, or board operations.
incident-responderIncident-response specialist who drives a live production incident through structured triage, bounded-autonomy mitigation, stakeholder communication, and a blameless post-mortem.
learnings-loaderSession-start agent that surfaces relevant project learnings, recent decisions, and context from previous sessions.
lint-fixerCode quality enforcer who fixes style, formatting, and TypeScript strict mode violations without changing logic.
maintainabilityMaintainability quality specialist who reviews generated code for duplication index, pattern reuse, cyclomatic complexity, expand-contract migrations, and API breaking-change discipline.
pack-installerInstalls a community pack into the consumer repo after the trust-model gate clears -- verifies trust tier + signing method, dry-runs the write set, applies atomically, and rolls back on any failure.
performancePerformance quality specialist who reviews generated code for Core Web Vitals budgets (LCP/INP/CLS), backend p95/p99 latency, bundle size, and N+1 query elimination.
reliabilityReliability quality specialist who reviews generated services for OpenTelemetry instrumentation, SLO definition, RED+USE metrics, RFC 9457 error responses, and circuit-breaker/retry patterns.
researcherComposable context researcher. Receives a research brief with mode selections and depth level, gathers context following the tooling hierarchy, and returns structured findings. Does not create or modify files.
reviewerExpert code reviewer who checks for quality, security, privacy invariants, performance, accessibility, and adherence to specs. Outputs structured feedback by priority (critical, warning, suggestion).
scalabilityScalability quality specialist who reviews generated services for stateless handlers, back-pressure patterns, idempotency-key adoption, queue-based offloading, and connection-pool sizing.
securitySecurity quality specialist who reviews generated code for OAuth 2.1 + OIDC + DPoP + WebAuthn server-side, supply-chain integrity (SBOM + provenance + SHA-pin + cosign), and OWASP ASI controls.
testabilityTestability quality specialist who reviews generated code for the per-feature test-class mandate, real-deal-first testing, coverage thresholds, and AI feature eval coverage.
uiUI quality specialist who reviews generated UI for WCAG 2.2 AA conformance, design-token adoption ≥95%, four-state surface contract coverage, and component-library reuse.
uxUX quality specialist who reviews generated UX flows for error-recovery clarity, first-run success, decisions-per-flow discipline, focus management, and screen-reader announcement.

Default Model Assignments

Some agents ship with a default model in their canonical frontmatter, tuned for their cognitive profile.

AgentDefault ModelRationale
hatch3r-lint-fixerhaikuMechanical pattern fixes; speed and low cost matter most
hatch3r-ci-watcherhaikuLog parsing and pattern recognition; fast feedback loops
hatch3r-docs-writersonnetWriting quality and technical accuracy need a capable model
hatch3r-securitysonnetOAuth/OIDC/supply-chain analysis requires solid reasoning
hatch3r-uisonnetWCAG 2.2 AA + design-token interpretation requires solid reasoning
hatch3r-testabilitysonnetEdge-case identification and test design need reasoning depth

Agents without a default use the platform's own default. Override any agent's model via Model Selection.

Canonical Location

Agent definitions live in the canonical agents/hatch3r-{id}.md content (bundled npm package; user-tier overrides mirror this layout under .hatch3r/overrides/agents/) with YAML frontmatter:

---
id: hatch3r-implementer
description: Focused implementation agent for a single issue.
model: opus
---

Customization

Override agent behavior per-project using .hatch3r/agents/{id}.customize.yaml. See Customization.

Agent Modes

Modes are orchestration-depth profiles that hatch3r-researcher selects per task. Each mode constrains the researcher's output structure and tool usage to a single research dimension. Files live in the canonical agents/modes/{mode}.md content (bundled npm package).

ModePurposeUsed by
root-causeRank candidate root causes by likelihood using static analysis patterns (race conditions, null checks, anti-patterns).hatch3r-researcher (bug-plan flows)
feature-designBreak a subject into implementable sub-tasks with user stories, acceptance criteria, edge cases, and effort estimates.hatch3r-researcher (feature-plan flows)
complexity-riskIdentify complexity hotspots and mutation-prone areas to prioritize testing effort.hatch3r-researcher (hatch3r-test-plan flows)
requirements-elicitationDetect ambiguities and generate structured user questions across 10 dimensions before implementation.hatch3r-researcher (triggered by hatch3r-deep-context rule)
user-flowsDecompose a user story into Happy Path, Alternative Paths, and Error-Recovery Path with four-state mapping and microcopy before implementation.hatch3r-researcher (gates hatch3r-feature-plan and hatch3r-implementer)
risk-assessmentIdentify technical risks, security implications, performance concerns, and breaking changes.hatch3r-researcher (planning and review flows)
coverage-analysisMap existing test coverage, identify gaps, and surface critical untested paths.hatch3r-researcher (hatch3r-test-plan flows)
boundary-analysisMap integration boundaries, external dependencies, and data-flow seams for integration and contract test targeting.hatch3r-researcher (hatch3r-test-plan flows)
architectureDesign the architectural approach: data model, API contracts, component design, and ADR-worthy decisions.hatch3r-researcher (planning and refactor flows)
migration-pathDesign a phased execution plan with safe ordering, rollback points, and parallel lanes mapped to execution skills.hatch3r-researcher (planning and refactor flows)
regressionInvestigate when an issue was introduced by analyzing git history, dependency updates, and configuration changes.hatch3r-researcher (bug-plan flows)
impact-analysisMap the blast radius of an issue across flows, modules, data, and downstream consumers.hatch3r-researcher (bug-plan and review flows)
codebase-impactAnalyze the current codebase to map what exists in the areas a subject touches (files, modules, coupling).hatch3r-researcher (planning flows)
current-stateMap the current state of code under analysis — complexity, coupling, cohesion, coverage — across structural, logical, visual, and migration dimensions.hatch3r-researcher (refactor-plan flows)
library-docsLook up current API documentation for a named library via Context7 MCP (resolve-library-id plus query-docs).hatch3r-researcher (any flow needing external library facts)
prior-artResearch best practices, known issues, and ecosystem trends via web search for novel problems or security advisories.hatch3r-researcher (any flow without local docs coverage)
refactoring-strategyDesign the refactoring approach: transformations (extract/inline/rename/restructure), invariants, and patterns.hatch3r-researcher (refactor-plan flows)
risk-prioritizationProduce a risk-ranked prioritization of testing effort by business impact, security exposure, change frequency, and coverage.hatch3r-researcher (hatch3r-test-plan flows)
similar-implementationSearch the codebase for analogous features and extract implementation conventions for the implementer to follow.hatch3r-researcher (feature-plan and implementation flows)
symptom-traceTrace reported symptoms through the codebase to find where expected behavior diverges from observed behavior.hatch3r-researcher (bug-plan flows)
test-patternExtract existing test conventions, framework usage, mock patterns, and helper libraries so new tests align with project infrastructure.hatch3r-researcher (hatch3r-test-plan flows)

Shared Agent Resources

Reference documents under the canonical agents/shared/ content (bundled npm package) provide cross-agent canonical authority. Agents include them via frontmatter fields such as quality_charter: and efficiency_patterns: rather than copying content.

FilePurpose
quality-charter.mdCanonical quality authority referenced by every agent: confidence levels, current-information tooling hierarchy, root-cause orientation, measurable criteria. The single source of truth for agent conduct.
prompt-structure.mdXML-tag structuring pattern (<task>, <context>, <rules>) for agent prompts per Anthropic Claude 4.x guidance. Applied to agents over 200 lines or with mixed content types.
efficiency-patterns.mdThe 8 P7 efficiency patterns referenced via efficiency_patterns: frontmatter (static-first prompts, parallel-tool-by-default, triage-first orchestration, plan/act split, structured outputs, lazy loading, conditional loading, diff-only outputs).
external-knowledge.mdTooling hierarchy for external lookups: specs first, then codebase, Context7 MCP, web research, and the platform CLI (gh / az / glab) for issue and PR operations.
injection-patterns.mdCanonical catalog of prompt-injection patterns kept in lockstep with src/pipeline/promptGuard.ts and src/content/learningsValidation.ts. OWASP ASI01/ASI06/ASI07 coverage.
user-content-templates.mdBody and frontmatter skeletons for the 5 user-authored content types (agent, skill, rule, command, hook). Consumed by hatch3r-creator.
user-question-protocol.mdProtocol for surfacing clarifying questions across the 3 supported platforms (Claude Code, Cursor, Copilot): when to ask, native-tool preference, and plain-text fallback shape.