This directory contains custom subagents for the DevFlow autonomous development workflow.
Implements technical designs, reviews code, and debugs issues through specialized subagents with isolated contexts.
/plugin marketplace add ao-cyber-systems/devflow-claude/plugin install devflow@devflow-claudeThis directory contains custom subagents for the DevFlow autonomous development workflow.
| Agent | Purpose | Memory | Mode |
|---|---|---|---|
trd-implementer | Implements a single TRD | project | acceptEdits |
trd-designer | Designs TRDs by exploring codebase | project | plan (read-only) |
code-reviewer | Reviews code quality and security | project | plan (read-only) |
debugger | Investigates and fixes failures | project | acceptEdits |
Subagents run in isolated context windows, separate from the main conversation:
Main Conversation (Orchestrator)
├── TaskList, TaskCreate, TaskUpdate
├── High-level coordination
└── Spawns subagents for actual work
│
├── trd-implementer (isolated context)
│ ├── Reads TRD
│ ├── Implements feature
│ ├── Runs verification
│ └── Returns summary only
│
└── code-reviewer (isolated context)
├── Reviews changes
└── Returns findings only
Benefits:
Each subagent uses native Claude Code memory (not Memory MCP):
# In subagent frontmatter
memory: project # Persists in .claude/agent-memory/<agent-name>/
Memory locations:
project: .claude/agent-memory/<agent-name>/ (git-trackable)user: ~/.claude/agent-memory/<agent-name>/ (personal, all projects)local: .claude/agent-memory-local/<agent-name>/ (gitignored)MEMORY.md: First 200 lines auto-loaded into subagent's system promptFrom the orchestrator:
Task(subagent_type: "trd-implementer"):
Implement the TRD at .devflow/trds/TRD-001-feature.md
Follow all acceptance criteria.
The subagent:
agents/your-agent.md---
name: your-agent # Required: lowercase, hyphens
description: What this agent does # Required: used for auto-delegation
tools: Read, Edit, Bash # Optional: allowed tools
model: inherit # Optional: sonnet, opus, haiku, inherit
permissionMode: default # Optional: default, acceptEdits, plan, dontAsk
memory: project # Optional: project, user, local
skills: # Optional: preload skills
- verify
- regression
hooks: # Optional: agent-specific hooks
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: "./validate.sh"
---
If you were using Memory MCP (mcp__memory__* tools):
Before (Memory MCP):
mcp__memory__create_entities: [...]
mcp__memory__search_nodes: "keyword"
After (Native Memory):
# In subagent frontmatter
memory: project
Subagent can now:
.claude/agent-memory/<name>/MEMORY.md (auto-loaded)The Memory MCP is still available but deprecated. Native subagent memory provides better integration with Claude Code's architecture.
Agent for managing AI prompts on prompts.chat - search, save, improve, and organize your prompt library.