Agents
Agents are autonomous workers that execute specific tasks in agentful. Each agent has a specialized role, tools, and knowledge base.
Core Concept
Three-Tier Architecture
agentful organizes agents into three categories based on lifecycle and purpose:
- Core Agents - Universal specialists (orchestrator, reviewer, fixer, etc.) included in every installation. Same for all projects.
- Domain Agents - Generated by Architect based on your product's business logic (payment-processor, order-fulfillment, etc.). Project-specific.
- Ephemeral Agents - Temporary agents for one-off tasks (2-hour DB migration) or longer-term work (multi-week refactor). Deleted when done.
This pattern applies to skills too - see our philosophy for details.
Agent Types
1. Core Agents
Built-in agents that ship with agentful.
| Agent | Purpose | Tools | Model |
|---|---|---|---|
| Orchestrator | Coordinates work, delegates to specialists | Read, Write, Edit, Glob, Grep, Task | Opus |
| Architect | Analyzes tech stack, generates domain agents and skills | Read, Write, Edit, Glob, Grep, Task | Opus |
| Backend | Implements server-side code | Read, Write, Edit, Glob, Grep, Bash | Sonnet |
| Frontend | Implements client-side code | Read, Write, Edit, Glob, Grep, Bash | Sonnet |
| Tester | Writes tests, ensures 80% coverage | Read, Write, Edit, Glob, Grep, Bash | Sonnet |
| Reviewer | Validates code quality (6 core gates) | Read, Glob, Grep, Bash, Write, Edit | Sonnet |
| Fixer | Fixes issues found by Reviewer | Read, Write, Edit, Glob, Grep, Bash | Sonnet |
| Product Analyzer | Analyzes product specs, identifies gaps | Read, Write, Edit, Glob, Grep | Opus |
Location: .claude/agents/*.md
2. Domain Agents
Business-specific agents for your product's domain needs, generated by Architect.
E-commerce example:payment-processor.md- Handles payments, refunds, billing (usesstripe-integration,payment-webhooksskills)order-fulfillment.md- Order processing, shipping, tracking (usesshipping-api,order-state-machineskills)inventory-manager.md- Stock tracking, restocking alerts (usesinventory-sync,stock-alertsskills)
subscription-manager.md- Plans, upgrades, billing cycles (usessubscription-billing,plan-migrationskills)workspace-coordinator.md- Team creation, permissions, sharing (usesrbac-patterns,team-provisioningskills)analytics-collector.md- Event tracking, metrics, reports (usesevent-schema,metrics-aggregationskills)
Location: .claude/agents/domain/*.md
Generation: Architect analyzes your product spec and creates domain agents matching your business logic.
How Generated Skills Work With Agents
Generated tech stack skills are used by core agents (backend, frontend, tester).
Auto-generation workflow:Run /agentful-generate and Architect will:
- 🔍 Scan your codebase for tech stack and conventions
- 📝 Generate skills documenting your specific patterns (not generic framework docs)
- ✨ Core agents automatically find and use these skills - zero modification
- 🏗️ Optionally create domain agents for business workflows
3. Ephemeral Agents
Temporary agents for one-off tasks. Created on-demand, destroyed after completion.
Use cases:- Database migrations
- Large-scale refactoring
- Security audits
- Data imports
- One-time cleanup
Location: .claude/agents/ephemeral/
Lifecycle: Created → Execute → Report → Archive/Delete
Using Agents
Manual Invocation
Tag agents with @agent-name in chat:
@backend Implement user authentication with JWT
@frontend Create login page with form validation
@tester Write tests for auth service
@reviewer Check all changesAutomatic Delegation
The Orchestrator automatically delegates work:
User: "Build authentication"
↓
Orchestrator → @backend (API routes)
Orchestrator → @frontend (login page)
Orchestrator → @tester (tests)
Orchestrator → @reviewer (validation)
Orchestrator → @fixer (fix issues)Agent Workflow
Standard development cycle:
1. Orchestrator reads product spec
2. Delegates to Backend/Frontend for implementation
3. Delegates to Tester for test coverage
4. Delegates to Reviewer for validation
5. If issues found → Fixer → Reviewer again
6. Updates completion tracking
7. Continues to next featureKey Distinctions
Reviewer vs Fixer
- Reviewer = DETECTS issues (runs 6 core quality gates)
- Fixer = FIXES issues (reads
.agentful/last-validation.json)
Reviewer finds problems, Fixer solves them.
Backend vs Frontend
- Backend = API routes, services, repositories, database
- Frontend = UI components, pages, hooks, state, styling
Agents never cross domains. Backend doesn't modify UI; Frontend doesn't touch APIs.
Core vs Domain
- Core agents = General roles (backend, frontend, tester, reviewer)
- Domain agents = Business-specific roles (payment-processor, order-fulfillment, subscription-manager)
Core agents handle generic implementation. Domain agents understand your business logic and workflows.
Agent Communication
Agents communicate through:
- State files -
.agentful/state.json,completion.json,decisions.json - Task tool - Spawn other agents:
Task("backend", "implement X") - File system - Shared codebase
- Review reports -
.agentful/last-validation.json
See Background Agent Patterns for detailed information on how agents delegate work, execution patterns, and future parallelization plans.
Model Selection
Opus (Highest Reasoning)
- Orchestrator - Complex coordination
- Architect - Tech stack analysis
Sonnet (Balanced)
- Backend, Frontend, Tester, Reviewer, Fixer - Implementation work
Opus = expensive but smarter. Sonnet = fast and capable for most tasks.
Creating Custom Agents
See Custom Agents for:
- Creating specialized agents
- Supporting new technologies
- Building ephemeral agents
- Agent templates and patterns
Monitoring Agents
Check agent activity:
# View state
cat .agentful/state.json
# View completion
cat .agentful/completion.json
# View pending decisions
cat .agentful/decisions.json
# View last review
cat .agentful/last-validation.jsonNext Steps
- Background Agent Patterns - How agent delegation works
- Orchestrator - Understand the coordinator
- Backend - Server-side implementation patterns
- Frontend - Client-side implementation patterns
- Reviewer - Quality validation process
- Custom Agents - Build your own agents