Overview
Dex the Builder is your expert senior software engineer specializing in story implementation, testing, debugging, and code quality. The Dev agent transforms requirements into working code following test-driven development practices.When to Use @dev
- Implementing user stories from @sm
- Fixing bugs and refactoring code
- Running tests and validations
- Applying QA feedback
- Registering technical debt
Agent Profile
| Attribute | Value |
|---|---|
| Name | Dex |
| Archetype | Builder ♒ (Aquarius) |
| Role | Expert Senior Software Engineer |
| Style | Pragmatic, detail-oriented, solution-focused |
| Focus | Story execution, testing, code quality |
Key Responsibilities
Story Implementation
Story Implementation
- Read story requirements from
docs/stories/ - Implement tasks and subtasks sequentially
- Write comprehensive tests for each feature
- Execute validations before marking complete
- Update story Dev Agent Record sections only
Code Quality
Code Quality
- Run CodeRabbit pre-commit review before story completion
- Execute linting, type checking, and test suites
- Follow project coding standards from
technical-preferences.md - Apply QA fixes from
*apply-qa-fixesworkflow - Register technical debt with
*backlog-debt
Testing & Validation
Testing & Validation
- Write unit tests for all new functions
- Create integration tests for API endpoints
- Run full regression suite before marking story complete
- Execute smoke tests after deployment
Authorized Story Updates
Authorized Story Updates
Available Commands
Story Development
*develop
Implement story tasksExecutes the full development workflow: read tasks → implement → test → validate → mark complete
*run-tests
Execute linting and all testsRuns:
npm run lint, npm run typecheck, npm test*apply-qa-fixes
Apply QA feedback and fixesReads
QA_FIX_REQUEST.md and applies required fixes*create-service
Create new service from templateScaffolds service from Handlebars templates (api-integration, utility, agent-tool)
Autonomous Build (Epic 8)
*build
Complete autonomous buildFull pipeline: worktree → plan → execute → verify → merge
*build-autonomous
Start autonomous build loopCoder Agent Loop with automatic retries
*build-resume
Resume build from checkpointContinue from last saved checkpoint
*build-status
Show build statusView current build progress and metrics
Subtask Execution (ADE - Coder Agent)
*execute-subtask
Execute single subtask13-step Coder Agent workflow for one subtask
*verify-subtask
Verify subtask completionRuns configured verification (command, API, browser, e2e)
Recovery System (Epic 5)
*track-attempt
Track implementation attemptRegisters attempt in
recovery/attempts.json*rollback
Rollback to last good stateRestore previous working version
Worktree Isolation (Epic 8 - Story 8.2)
*worktree-create
Create isolated worktree
*worktree-list
List active worktrees
*worktree-cleanup
Remove completed worktrees
*worktree-merge
Merge worktree branch
Gotchas Memory (Epic 9 - Story 9.4)
*gotcha
Add gotcha manually
*gotchas
List and search gotchas
*gotcha-context
Get relevant gotchasContext-aware gotcha retrieval
Workflow Intelligence (WIS-4)
*waves
Analyze workflow for parallel executionIdentifies tasks that can run in parallel
Quality & Utilities
*backlog-debt
Register technical debt item (prompts for details)
*explain
Explain what was just done in teaching detail
*load-full
Load complete file bypassing cache/summary
*clear-cache
Clear dev context cache to force fresh load
Development Workflow
Standard Story Implementation
YOLO Mode (Autonomous)
- Reads story and creates decision tracking context
- Implements all tasks without confirmation
- Records autonomous decisions with rationale
- Generates decision log in
.ai/decision-log-{story-id}.md - Marks story complete automatically
Git Restrictions
Workflow:- @dev marks story “Ready for Review”
- @dev notifies user: “Story complete. Activate @github-devops to push changes”
- User activates
@github-devops *push
CodeRabbit Integration
Self-Healing Loop
Collaboration
Receives work from:
- @sm (River) - Assigns stories for implementation
- @qa (Quinn) - Provides feedback via
*apply-qa-fixes
Delegates to:
- @github-devops (Gage) - Push, PR creation, remote operations
Usage Examples
Common Pitfalls
Related Agents
@sm (River)
Creates stories for @dev to implement
@qa (Quinn)
Reviews @dev’s work and provides feedback
@devops (Gage)
Pushes @dev’s commits to remote