Repository navigation
Description
Problem
Sequant's subagent patterns are defined inline within SKILL.md files as Task(subagent_type=..., model=..., mode=...) calls, duplicated across three directories (.claude/skills/, templates/skills/, skills/). This creates several problems:
- Maintenance burden — Every parameter change (model, permissions, maxTurns) must be synced to 3 directories × N skills. This is the root cause of past drift (e.g., fix(qa): Replace undefined subagent types with valid Claude Code types #170 invalid subagent types, fix: background QA sub-agents silently fail on Bash calls due to permission mode gap #352 permission mode mismatch).
- Stale naming — Skills still reference
Task()syntax; Claude Code renamed this toAgentin v2.1.63. The alias works but documentation is misleading. - Cannot leverage new features — Claude Code's
.claude/agents/*.mdformat supportsmemory,hooks,effort,maxTurns,skills, andmcpServersas declarative frontmatter. InlineTask()calls can't use most of these without verbose prompt engineering. - No reuse — The same agent configuration (e.g., "haiku + bypassPermissions + quality-check prompt preamble") is copy-pasted across QA type-safety, scope, and security checks.
Current Behavior
.claude/agents/directory does not exist- 12 subagent spawn sites use inline
Task()with hardcoded parameters subagent-types.mdreference documents 4 built-in types but no custom agents- Each spawn site repeats:
subagent_type,model,mode,run_in_background
Desired Behavior
Sequant defines reusable agent profiles in .claude/agents/*.md. Skill files reference agents by name via subagent_type="<agent-name>". Agent definitions centralize model, permissions, effort, maxTurns, and tool restrictions. The three skill directories reference agents by name rather than duplicating configuration.
Acceptance Criteria
1. Create agent definitions (P0)
- AC-1:
.claude/agents/sequant-explorer.md— Explore-type agent for/speccontext gathering. Tools:Read, Grep, Glob. Model:haiku. No Bash access. - AC-2:
.claude/agents/sequant-qa-checker.md— Quality check agent for/qaphase. Tools:Read, Grep, Glob, Bash, Edit. Model:haiku. Permission:bypassPermissions. Effort:low. - AC-3:
.claude/agents/sequant-implementer.md— Implementation agent for/execparallel groups. Tools: all. Model: inherits from parent (user-configurable). Permission:bypassPermissions. - AC-4:
.claude/agents/sequant-testgen.md— Test stub generator for/testgen. Tools:Read, Grep, Glob, Write. Model:haiku. No Bash access. - AC-5: Each agent definition has a clear
descriptionfield that explains when Claude should delegate to it
2. Update skill spawn sites (P0)
- AC-6:
/specSKILL.md spawn sites usesubagent_type="sequant-explorer"instead ofsubagent_type="Explore"with inline params - AC-7:
/qaSKILL.md spawn sites usesubagent_type="sequant-qa-checker"instead of inlineTask(subagent_type="general-purpose", model="haiku", mode="bypassPermissions") - AC-8:
/execSKILL.md parallel group spawn sites usesubagent_type="sequant-implementer" - AC-9:
/testgenSKILL.md spawn sites usesubagent_type="sequant-testgen" - AC-10: All
Task(references updated toAgent(in skill files - AC-11: All three directories synced:
.claude/skills/,templates/skills/,skills/
3. Preserve runtime behavior (P0)
- AC-12: Agent definitions produce identical permission behavior to current inline patterns — no new permission prompts for users
- AC-13:
/qaagents still getbypassPermissionsfor Bash access (regression guard for fix: background QA sub-agents silently fail on Bash calls due to permission mode gap #352 fix) - AC-14:
/specExplore agents remain read-only (no Edit, Write, or Bash tools) - AC-15: Parallel/sequential mode selection in skills still works (controlled by skill, not agent definition)
4. Update references and documentation (P1)
- AC-16:
.claude/skills/_shared/references/subagent-types.mdupdated to document custom agents alongside built-in types - AC-17: All
Task()→Agent()references updated insubagent-types.md - AC-18:
templates/skills/_shared/references/andskills/_shared/references/mirrors synced
5. Template support for sequant init (P1)
- AC-19:
templates/agents/directory created with agent definitions sosequant initcopies them to new projects - AC-20:
src/commands/init.ts(or equivalent init logic) copiestemplates/agents/*.mdto.claude/agents/
Design Notes
Agent Definition Format
---
name: sequant-qa-checker
description: Quality check agent for sequant QA phase. Runs type safety, scope/size, and security checks on diffs. Use when spawned by /qa skill.
model: haiku
permissionMode: bypassPermissions
effort: low
maxTurns: 15
tools: Read, Grep, Glob, Bash
---
You are a quality check agent for the sequant development workflow.
Your job is to run a specific quality check on a code diff and report results concisely.
Rules:
- Run only the check described in your prompt
- Report results in structured format: check name, pass/fail, issue count, details
- Send results back via SendMessage when complete
- Do not modify any files
- All grep commands must use `|| true` to prevent exit code 1 on zero matchesInvocation Change (Before/After)
Before (inline):
Agent(subagent_type="general-purpose", model="haiku", mode="bypassPermissions",
prompt="Run type safety checks on the diff...")
After (declarative):
Agent(subagent_type="sequant-qa-checker",
prompt="Run type safety checks on the diff...")
Model, permissions, effort, and maxTurns come from the agent definition. The skill only provides the task-specific prompt.
Agent Name → Filename Mapping
subagent_type maps directly to the name field in frontmatter (and the filename without .md):
sequant-explorer→.claude/agents/sequant-explorer.mdsequant-qa-checker→.claude/agents/sequant-qa-checker.mdsequant-implementer→.claude/agents/sequant-implementer.mdsequant-testgen→.claude/agents/sequant-testgen.md
Priority Order for Agent Resolution
Claude Code resolves agent names in this order:
- Managed settings
--agentsCLI flag.claude/agents/(project-level) — this is where sequant's agents live~/.claude/agents/(user-level)- Plugin agents
Users can override sequant's defaults by placing a same-named file in ~/.claude/agents/.
Key Constraint: Subagents Cannot Spawn Subagents
This is fine for sequant. The /fullsolve orchestration chain (/spec → /exec → /qa) uses skills, not nested subagents. Each skill independently spawns its own subagents, which is supported.
Background Flag Design Decision
Agent definitions support background: true in frontmatter, but sequant skills need control over parallel vs. sequential execution at runtime. Therefore:
- Agent definitions should NOT set
background: true - Skills continue to control
run_in_backgroundper-invocation based onagents.parallelsetting - This preserves the user's choice between parallel (faster, more tokens) and sequential (cheaper, slower)
Out of Scope
- Agent
memoryfield — experimental, unclear value; evaluate separately after migration - Agent
hookswithin definitions — covered by issue for lifecycle hooks - Agent
mcpServers— sequant doesn't use MCP in subagents currently - Refactoring skill orchestration to use
--agentmode — skills work well as-is - Agent teams — experimental, high token cost, premature
Files Affected
.claude/agents/sequant-explorer.md— new.claude/agents/sequant-qa-checker.md— new.claude/agents/sequant-implementer.md— new.claude/agents/sequant-testgen.md— newtemplates/agents/— new (mirrors forsequant init).claude/skills/spec/SKILL.md— update spawn sites.claude/skills/qa/SKILL.md— update spawn sites.claude/skills/exec/SKILL.md— update spawn sites.claude/skills/testgen/SKILL.md— update spawn sitestemplates/skills/— mirror spawn site changesskills/— mirror spawn site changes.claude/skills/_shared/references/subagent-types.md— update docssrc/commands/init.ts— copy agent templates on init
References
- Claude Code custom subagents: https://code.claude.com/docs/en/sub-agents
- Subagent types reference:
.claude/skills/_shared/references/subagent-types.md - Issue fix(qa): Replace undefined subagent types with valid Claude Code types #170: Invalid subagent types (original type validation fix)
- Issue fix: background QA sub-agents silently fail on Bash calls due to permission mode gap #352: Background agent Bash permissions (regression guard)
Task→Agentrename: Claude Code v2.1.63- Agent resolution priority: Managed settings > CLI > .claude/agents/ > ~/.claude/agents/ > plugins
Activity
admarble commentedon Apr 6, 2026
→ PROCEED — Agent migration from inline Task() to declarative .claude/agents/, clear ACs
spec → exec → qa · 20 ACs · -q (structural refactor across 3 skill dirs)
Chain first — #483, #485, #486 all touch files this issue rewrites.
admarble commentedon Apr 6, 2026
Spec Plan — #484: Migrate subagent patterns to declarative
.claude/agents/definitionsAC Quality Check
✅ All 20 acceptance criteria are clear and testable.
Scope Assessment
Non-Goals (from issue): ✅ Explicit "Out of Scope" section provided — agent memory, hooks, mcpServers, skill orchestration refactor, agent teams all deferred.
Verdict:⚠️ SCOPE_WARNING — High AC count but mechanical/repetitive (4 agents × 3 directories). Proceeding as-is; splitting would create artificial dependencies.
Acceptance Criteria with Verification
sequant-explorer.md— haiku, Read/Grep/Glob onlysequant-qa-checker.md— haiku, bypassPermissions, effort:lowsequant-implementer.md— inherits model, bypassPermissionssequant-testgen.md— haiku, Read/Grep/Glob/Write onlydescriptionfield on each agentsequant-explorergrep subagent_typesequant-qa-checkergrep subagent_typesequant-implementergrep subagent_typesequant-testgengrep subagent_typeTask(→Agent(grep -r 'Task(' = 0diffacross dirspermissionModetoolsfieldbackgroundin agent defssubagent-types.mddocuments custom agentsTask()→Agent()in subagent-types.mdgrep 'Task(' = 0diffacross dirstemplates/agents/createdls templates/agents/.claude/agents/copyTemplatesDerived ACs:
| AC-21 |
allowed-toolssections updatedTask→Agent|grepSKILL.md headers | Integration |Implementation Plan
Phase 1: Create Agent Definitions (AC-1–5)
.claude/agents/directory.mdfiles with Claude Code frontmatter formatPhase 2: Update Skill Spawn Sites (AC-6–11)
/specSKILL.md:Task(subagent_type="Explore", model="haiku")→Agent(subagent_type="sequant-explorer")/qaSKILL.md:Task(subagent_type="general-purpose", model="haiku", mode="bypassPermissions")→Agent(subagent_type="sequant-qa-checker")/execSKILL.md:Task(...)→Agent(subagent_type="sequant-implementer")/testgenSKILL.md:Task(...)→Agent(subagent_type="sequant-testgen")Task(→Agent(replacement in all SKILL.md filestemplates/skills/andskills/Phase 3: Update References (AC-16–18)
subagent-types.mdTask(→Agent(in examplesPhase 4: Template/Init Support (AC-19–20)
templates/agents/with agent file copiescopyDir("agents", ".claude/agents")tosrc/lib/templates.ts:284Phase 5: Verification Sweep (AC-10–15, AC-21)
Task(— must be zerobackground: truein agent definitionsDesign Review
.claude/agents/*.md(Claude Code native), SKILL.md (prompt layer),templates.ts(init). Each in its natural layer.copyDirline. No new abstractions.copyDir(join(templatesDir, X), ".claude/X")at templates.ts:284-290. Agent definitions follow Claude Code.claude/agents/*.mdspec.general-purpose.Open Questions
maxTurnsvalues — Recommend: 15 (explorer, qa-checker), 25 (testgen), omit (implementer inherits)efforton implementer — Recommend: omit (inherits from parent, complexity varies)Recommended Workflow
Phases: spec → exec → qa
Quality Loop: enabled (auto — refactor label + assess recommendation)
Reasoning: Structural refactor across 3 skill dirs, 20 ACs. No UI (no browser testing). Quality loop ensures directory sync correctness.
admarble commentedon Apr 6, 2026
QA Review for Issue #484
Implementation Status: NOT FOUND
No implementation detected for this issue:
Verdict: AC_NOT_MET
No code changes found to review. The acceptance criteria cannot be evaluated without an implementation.
Next Steps
/exec 484to implement the feature/qa 484after implementation is completeQA skipped: No implementation to review
admarble commentedon Apr 6, 2026
QA Review for Issue #484
Implementation Status: NOT FOUND
No implementation detected for this issue:
False-negative safety check:
git diff --name-only main..HEADreturned 0 files — confirmed no changes exist.Verdict: AC_NOT_MET
No code changes found to review. The 20 acceptance criteria cannot be evaluated without an implementation.
Next Steps
/exec 484to implement the feature/qa 484after implementation is completeQA skipped: No implementation to review
feat(#484): migrate subagent patterns to declarative .claude/agents/ …
admarble commentedon Apr 6, 2026
Exec Progress Update — #484
AC Coverage: 21/21 ✅
All 20 original ACs + 1 derived AC addressed. See PR #496 for full verification table.
Key Changes
.claude/agents/sequant-{explorer,qa-checker,implementer,testgen}.md.claude/skills/{spec,qa,exec,testgen}/SKILL.md.claude/skills/_shared/references/subagent-types.mdsrc/lib/templates.ts,templates/agents/.gitignore(whitelist.claude/agents/)Quality Gates
npm run buildnpm run lintnpm testQuality Plan Alignment
N/A — No quality plan in issue
PR Status
✅ Created: #496
Self-Evaluation
templates/skills/sync replaced shorter template versions with full.claude/skills/versions (large diff but correct per AC-11).claude/agents/*.md— needs manual verification via/specand/qarunsadmarble commentedon Apr 6, 2026
QA Review for Issue #484
Stale Branch Check
Size Gate
CI Status
build (20.x)build (22.x)validate-skillstypecheckvalidate-pluginPlugin Structure ValidationHooks ValidationSetup Directory CreationCI Summary: 5 passed, 2 failed (1 regression, 1 pre-existing)
Regression:
build (20.x)fails ontestgen-skill.test.ts:68— test asserts onTask(pattern that was migrated toAgent(. See details below.Pre-existing:
Plugin Structure Validationfails on version mismatch (marketplace.json vs package.json) — also fails on main.AC Coverage
sequant-explorer.md— haiku, Read/Grep/Globsequant-qa-checker.md— haiku, bypassPermissions, effort:lowsequant-implementer.md— inherits model, bypassPermissionssequant-testgen.md— haiku, Read/Grep/Glob/Writedescriptionfield on each agentsequant-explorersequant-qa-checkersequant-implementersequant-testgenTask(→Agent(grep -r 'Task(' *.mdreturns 0 matches across all 3 dirsskills/has pre-existing content divergence (893 lines for spec) — not introduced by this PRsequant-qa-checker.mdhaspermissionMode: bypassPermissions+ Bash in toolssequant-explorer.mdhas only Read/Grep/Glob — no Bash/Edit/Writebackground: truein any agent definitionsubagent-types.mddocuments custom agentsTask()→Agent()in subagent-types.mdAgent()syntaxsubagent-types.mdidentical across all 3 directoriestemplates/agents/created.claude/agents/exactly.claude/agents/copyDir(join(templatesDir, "agents"), ".claude/agents")at templates.ts:287Coverage: 20/20 AC items MET
Quality Metrics
any)Build Verification
tsc)Test Failure Analysis — REGRESSION
File:
src/lib/__tests__/testgen-skill.test.tsTests passing on main: 16/16
Tests passing on feature: 14/16
Failing tests:
Line 34:
expect(skillContent).toContain('subagent_type="general-purpose"')— FAILS because testgen SKILL.md now usessubagent_type="sequant-testgen"instead ofgeneral-purposeLine 68:
expect(haikuTaskCalls).toBeGreaterThanOrEqual(2)where regex is/Task\([^)]*model="haiku"[^)]*\)/g— FAILS because allTask(calls migrated toAgent(andmodel="haiku"moved to agent definition frontmatterRoot cause: The test file was not updated as part of the migration. The test asserts on the old inline patterns (
Task(,model="haiku",subagent_type="general-purpose") that this PR intentionally replaced.Fix required: Update test assertions to match new patterns:
subagent_type="general-purpose"→subagent_type="sequant-testgen"Task(regex →Agent(regex (or remove, since model is no longer inline)Test Coverage Analysis
src/lib/templates.ts.claude/agents/*.md.claude/skills/*/SKILL.mdtestgen-skill.test.ts(needs update)templates/agents/*.mdCoverage: 1/1 changed source files have tests
Code Review
Strengths:
templates/agents/mirrors.claude/agents/exactly (verified via diff).gitignorecorrectly whitelists.claude/agents/subagent-types.mdis comprehensive — documents both built-in and custom agents with examples and resolution priorityIssues:
testgen-skill.test.tsnot updated — 2 tests fail on patterns that were intentionally migrated. This blocks CI.Suggestions:
allowed-toolssections in SKILL.md headers. Current SKILL.md headers referenceTaskin someallowed-toolscomments. Not blocking.Anti-Pattern Detection
No anti-patterns detected. No dependency changes, no security-sensitive patterns in diff.
CHANGELOG Verification
Self-Evaluation
.claude/agents/*.md, subagent spawning would fail at runtime. This requires manual verification via actual/specor/qainvocation.Verdict: AC_NOT_MET
All 20 acceptance criteria are individually MET in terms of implementation, but CI fails due to an un-updated test file (
testgen-skill.test.ts). The test correctly catches that old patterns were removed but was not updated to assert on the new patterns. This is a regression that must be fixed before merge.Next Steps
src/lib/__tests__/testgen-skill.test.ts:subagent_type="general-purpose"→subagent_type="sequant-testgen"Task(regex toAgent(or remove the inline-model assertion (model is now in agent definition, not inline)model="haiku"may need removal since it's no longer in the SKILL.md (now in agent definition)/qa 484for final verdictDocumentation: Before merging, run
/docs 484to generate feature documentation.admarble commentedon Apr 7, 2026
QA Review for Issue #484 (Re-run)
Incremental QA Summary
Last QA: 2026-04-06T23:55:00Z (commit: 514745b)
Changes since last QA: 0 files
No new commits since prior QA. Re-validating same state.
Stale Branch Check
Size Gate
CI Status
build (20.x)build (22.x)validate-skillstypecheckvalidate-pluginPlugin Structure ValidationHooks ValidationSetup Directory CreationCI Summary: 5 passed, 2 failed (1 regression, 1 pre-existing)
Regression:
build (20.x)fails ontestgen-skill.test.ts— test asserts old inline patternsAC Coverage
sequant-explorer.md— haiku, Read/Grep/Globsequant-qa-checker.md— haiku, bypassPermissions, effort:lowsequant-implementer.md— inherits model, bypassPermissionssequant-testgen.md— haiku, Read/Grep/Glob/Writedescriptionfieldsequant-explorersequant-qa-checkersequant-implementersequant-testgenTask(→Agent(Task(matches across all SKILL.md filessequant-qa-checker.md: permissionMode bypassPermissions + Bashsequant-explorer.md: only Read/Grep/Globbackgroundin any agent definitionsubagent-types.mddocuments custom agentsTask()→Agent()in subagent-types.mdTask(referencestemplates/agents/created.claude/agents/exactly.claude/agents/copyDir(join(templatesDir, "agents"), ".claude/agents")at templates.ts:287Coverage: 20/20 AC items MET
Quality Metrics
any)Build Verification
tsc)testgen-skill.test.tsTest Failure Analysis — REGRESSION (unchanged from prior QA)
File:
src/lib/__tests__/testgen-skill.test.tsshould document model="haiku" patternmodel="haiku"andsubagent_type="general-purpose"— both removed from SKILL.md (now in agent definition)should contain Task call examples/Task\([^)]*model="haiku"[^)]*\)/gfinds 0 matches — allTask(migrated toAgent(Root cause: Test file not updated as part of the migration. Tests correctly detect the old patterns are gone but assert they should exist.
Test Coverage Analysis
src/lib/templates.ts.claude/agents/*.md.claude/skills/*/SKILL.mdtestgen-skill.test.ts(needs update)templates/agents/*.mdCoverage: 1/1 changed source files have tests
Code Review
Strengths:
.claude/agents/*.mdspec correctlytemplates/agents/mirrors.claude/agents/exactly (verified via diff).gitignorecorrectly whitelists.claude/agents/subagent-types.mdcomprehensive — documents both built-in and custom agentscopyDirfor agents follows established init patternIssues:
testgen-skill.test.tsnot updated — 2 tests fail, breaks CISuggestions:
Anti-Pattern Detection
No anti-patterns detected. No dependency changes, no security-sensitive patterns.
CHANGELOG Verification
Self-Evaluation
.claude/agents/*.md, subagent spawning would fail at runtime. This requires manual verification via actual/specor/qainvocation after merge.Verdict: AC_NOT_MET
All 20 ACs are individually MET in implementation, but CI fails due to un-updated test file (
testgen-skill.test.ts). Same state as prior QA — no new commits applied the fix.Next Steps
src/lib/__tests__/testgen-skill.test.ts:expect(skillContent).toContain('model="haiku"')(model is now in agent definition, not SKILL.md)subagent_type="general-purpose"→subagent_type="sequant-testgen"Task\(toAgent\(and removemodel="haiku"from the pattern (or assert onAgent(subagent_type="sequant-testgen"count instead)/qa 484for final verdictDocumentation: Before merging, run
/docs 484to generate feature documentation.m13v commentedon Apr 7, 2026
the inline-to-declarative migration is worth it. we went through a similar refactor moving agent configs out of prompt text into structured definitions. biggest win was being able to version and diff agent configurations independently from the prompt logic. one pattern that helped: keep a thin dispatch layer that maps task types to agent configs by name, so the calling code just says 'run the linter agent' and the dispatch layer resolves the current config from the definitions directory. makes testing trivial too since you can swap agent configs without touching any prompt.
m13v commentedon Apr 7, 2026
our tool execution layer with the dispatch pattern I described, where tool configs are resolved by name at runtime: https://github.com/m13v/fazm/blob/main/Desktop/Sources/Providers/ChatToolExecutor.swift
and the provider abstraction that routes between different backends: https://github.com/m13v/fazm/blob/main/Desktop/Sources/Providers/ChatProvider.swift
fix(#484): update testgen-skill tests for Task→Agent migration
admarble commentedon Apr 7, 2026
QA Review for Issue #484 (Re-run after test fix)
Incremental QA Summary
Last QA: 2026-04-06T23:55:00Z (commit: 514745b)
Changes since last QA: 1 file (
src/lib/__tests__/testgen-skill.test.ts)Summary: 2 cached, 4 re-evaluated, 2 always-fresh
Stale Branch Check
Size Gate
CI Status
build (20.x)build (22.x)validate-skillstypecheckvalidate-pluginHooks ValidationSetup Directory CreationPlugin Structure ValidationCI Summary: 7 passed, 1 failed (pre-existing)
AC Coverage
sequant-explorer.md— haiku, Read/Grep/Globsequant-qa-checker.md— haiku, bypassPermissions, effort:lowsequant-implementer.md— inherits model, bypassPermissionssequant-testgen.md— haiku, Read/Grep/Glob/Writedescriptionfield on each agentsequant-explorersequant-qa-checkersequant-implementersequant-testgenTask(→Agent(grep -r 'Task(' --include='*.md'returns 0 matches across all 3 skill directoriesskills/testgen/(575 vs 713 lines) not introduced by this PRsequant-qa-checker.mdhaspermissionMode: bypassPermissions+ Bash in toolssequant-explorer.mdhas only Read/Grep/Glob — no Bash/Edit/Writebackground: truein any agent definition; skills controlrun_in_backgroundper-invocationsubagent-types.mddocuments custom agentsTask()→Agent()in subagent-types.mdAgent()syntaxsubagent-types.mdidentical across all 3 directories (verified with diff)templates/agents/created.claude/agents/counterparts.claude/agents/copyDir(join(templatesDir, "agents"), ".claude/agents")at templates.ts:287Coverage: 20/20 AC items fully met
Quality Metrics
any)Quality Plan Verification
N/A — No quality plan found in issue comments
Cache Status
N/A — Fresh re-run after fix commit
Build Verification
tsc)tautology-detector-cli.test.tsfails in worktree context only, passes on main)Test Coverage Analysis
src/lib/templates.tssrc/lib/__tests__/testgen-skill.test.ts.claude/agents/*.md.claude/skills/*/SKILL.mdtestgen-skill.test.tscovers testgen patternstemplates/**/*.mdCoverage: 2/2 changed source files have tests
Critical paths without tests: None
Code Review
Strengths:
.claude/agents/andtemplates/agents/are byte-identical (verified with diff).gitignorecorrectly whitelists.claude/agents/alongside.claude/skills/and.claude/hooks/subagent-types.mdis comprehensive — documents both built-in and custom agents with examples and resolution priorityIssues:
Suggestions:
model="haiku"inline alongsidesequant-implementer— this is correct (implementer inherits, skill overrides) but a comment explaining why would help future maintainersTest Quality Review
Anti-Pattern Detection
No anti-patterns detected. No dependency changes, no security-sensitive patterns in diff.
Call-Site Review
N/A — No new exported TypeScript functions detected. The
copyDircall intemplates.ts:287uses an existing function.CLI Registration Verification
N/A — No option interface changes
CHANGELOG Verification
Result: CHANGELOG requirements met
Self-Evaluation
.claude/agents/*.mdat runtime, subagent spawning would fail silently or fall back to default behavior. This requires manual verification via actual/specor/qainvocation.Verdict: READY_FOR_MERGE
All 20 acceptance criteria are MET. The test regression identified in the prior QA run (commit 514745b) has been fixed in commit 3a691ea —
testgen-skill.test.tsnow asserts onAgent(subagent_type="sequant-testgen"instead of the oldTask(subagent_type="general-purpose"patterns. CI is green on all meaningful checks (build, typecheck, skills, hooks, plugin, setup). The only CI failure isPlugin Structure Validationwhich is pre-existing on main.Documentation
subagent-types.mdreference updated/docs 484for comprehensive feature documentationNext Steps
/specor/qaon a test issue to confirm custom agents resolve at runtime/docs 484to generate feature documentation before mergeadmarble commentedon Apr 7, 2026
fix(#484): tighten qa-checker tools, sync skills/testgen, clarify exe…
feat(#484): migrate subagent patterns to declarative .claude/agents/ …
admarble commentedon Apr 7, 2026
Documentation Generated
File:
docs/features/declarative-agents.mdSections Included:
Next Steps:
Ready to merge!
docs: add missing feature docs for #484 and #515; ignore nested .sequ…
feat(#733): graceful error_max_turns handling for subagents (#737)
feat(#484): migrate subagent patterns to declarative .claude/agents/ …
fix(#484): update testgen-skill tests for Task→Agent migration
fix(#484): tighten qa-checker tools, sync skills/testgen, clarify exe…