Skip to main content

Agent System Migration Guide

Migration Summary (2025-09-21)​

Successfully consolidated 50+ agent files into 10 core agents.

What Changed​

Before: Scattered Agents​

  • 17 files in ./agents/ (UPPERCASE_NAMES.md)
  • 8 files in ./.codi/agents/ (YAML format)
  • 13 files in ./.claude/agents/ (specialized)
  • 40+ scripts in ./.codi/scripts/
  • Multiple formats, naming conventions, duplicates

After: Unified Structure​

agents/
├── coditect/ # 10 core CODITECT agents
├── claude-subagents/ # Claude specialists for delegation
├── tools/ # 3 consolidated tools
├── templates/ # Standardized template
├── guides/ # Usage guides
├── README.md # Complete documentation
└── migration-guide.md # This file

Agent Name Mapping​

Old NameNew NameLocation
ORCHESTRATOR_WORKFLOWorchestratoragents/coditect/
orchestrator-code-revieworchestrator(merged)
agent-orchestrator.yamlorchestrator(merged)
RUST_DEVELOPER_SPECIALISTrust-developeragents/coditect/
rust-expert-developerrust-developer(merged)
agent-coder-senior-architectrust-developer(merged)
FRONTEND_SPECIALISTfrontend-developeragents/coditect/
frontend-react-typescript-expertfrontend-developer(merged)
DATABASE_SPECIALISTdatabase-specialistagents/coditect/
database-schema-specialistdatabase-specialist(merged)
QA_REVIEWER_PRIMARYqa-revieweragents/coditect/
qa-documentation-reviewerqa-reviewer(merged)
SECURITY_SPECIALISTsecurity-specialistagents/coditect/
TESTING_SPECIALISTtesting-specialistagents/coditect/
CLOUD_SPECIALIST + DEPLOYMENT_SPECIALISTcloud-architectagents/coditect/
MONITORING_SPECIALISTmonitoring-specialistagents/coditect/
AI_SPECIALISTai-specialistagents/coditect/

Workflow Updates​

Starting Sessions​

Old Way:

# Multiple scripts to remember
source .codi/scripts/agent-session-start.sh
.codi/scripts/set-orchestrator-session.sh

New Way:

# Single interactive starter
agents/tools/start-session.sh

Viewing Agent Details​

Old Way:

# Hunt through multiple directories
cat ./agents/ORCHESTRATOR_WORKFLOW.md
cat .claude/agents/orchestrator-code-review.md

New Way:

# Single location, consistent names
cat agents/coditect/orchestrator.md

Quick Logging​

Old Way:

# Long paths
.codi/scripts/codi-log-ai.sh "message" "ACTION"

New Way:

# Short helper
agents/tools/agent-log.sh "message" "ACTION"

Archived Locations​

All old agent files have been archived to:

  • .archived/agent-consolidation-20250921/

You can still access them if needed, but they should not be used going forward.

Benefits Realized​

  1. 83% File Reduction: From 50+ files to ~13 total
  2. Consistent Naming: All lowercase-hyphenated
  3. Single Format: Standardized markdown template
  4. Clear Hierarchy: CODITECT primary, Claude as sub-agents
  5. Better Discovery: Everything in one place
  6. Simplified Tools: 3 scripts instead of 40+

Migration Checklist​

  • Update any personal scripts to use new paths
  • Review new agent definitions in agents/coditect/
  • Test session start with agents/tools/start-session.sh
  • Update any documentation referencing old agents
  • Remove references to archived directories

Questions?​

  • See agents/README.md for complete guide
  • Check agents/templates/agent-template.md for structure
  • Review CODITECT-CLAUDE-AGENT-INTEGRATION.md for delegation patterns