Skip to main content

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

Key Responsibilities

  • 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
  • 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-fixes workflow
  • Register technical debt with *backlog-debt
  • 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
ONLY update these story sections:
  • Tasks/Subtasks checkboxes ([ ] → [x])
  • Dev Agent Record section
  • Debug Log References
  • Completion Notes
  • File List (add/modify/delete source files)
  • Change Log
  • Status (Draft → In Progress → Ready for Review)
DO NOT modify: Story description, Acceptance Criteria, Dev Notes, Testing sections

Available Commands

Story Development

*develop

Implement story tasks
Executes the full development workflow: read tasks → implement → test → validate → mark complete

*run-tests

Execute linting and all tests
Runs: npm run lint, npm run typecheck, npm test

*apply-qa-fixes

Apply QA feedback and fixes
Reads QA_FIX_REQUEST.md and applies required fixes

*create-service

Create new service from template
Scaffolds service from Handlebars templates (api-integration, utility, agent-tool)

Autonomous Build (Epic 8)

*build

Complete autonomous build
Full pipeline: worktree → plan → execute → verify → merge

*build-autonomous

Start autonomous build loop
Coder Agent Loop with automatic retries

*build-resume

Resume build from checkpoint
Continue from last saved checkpoint

*build-status

Show build status
View current build progress and metrics

Subtask Execution (ADE - Coder Agent)

*execute-subtask

Execute single subtask
13-step Coder Agent workflow for one subtask

*verify-subtask

Verify subtask completion
Runs configured verification (command, API, browser, e2e)

Recovery System (Epic 5)

*track-attempt

Track implementation attempt
Registers attempt in recovery/attempts.json

*rollback

Rollback to last good state
Restore 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 gotchas
Context-aware gotcha retrieval

Workflow Intelligence (WIS-4)

*waves

Analyze workflow for parallel execution
Identifies 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)

Autonomous workflow:
  1. Reads story and creates decision tracking context
  2. Implements all tasks without confirmation
  3. Records autonomous decisions with rationale
  4. Generates decision log in .ai/decision-log-{story-id}.md
  5. Marks story complete automatically

Git Restrictions

@dev CANNOT push to remote repositoryOnly local git operations are allowed:
  • git add, git commit, git status, git diff
  • git branch, git checkout, git merge (local)
  • git push (ONLY @github-devops)
  • gh pr create (ONLY @github-devops)
Workflow:
  1. @dev marks story “Ready for Review”
  2. @dev notifies user: “Story complete. Activate @github-devops to push changes”
  3. 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

Avoid these common mistakes:
  • ❌ Starting before story is approved
  • ❌ Skipping tests (“I’ll add them later”)
  • ❌ Not updating File List in story
  • ❌ Attempting git push directly (use @github-devops)
  • ❌ Modifying non-authorized story sections
  • ❌ Forgetting CodeRabbit pre-commit review

@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