Skip to content

chore: refactor agent definitions with factory pattern - #747

Merged
avoidwork merged 1 commit into
mainfrom
chore/refactor-agent-definitions
Aug 10, 2026
Merged

chore: refactor agent definitions with factory pattern#747
avoidwork merged 1 commit into
mainfrom
chore/refactor-agent-definitions

Conversation

@avoidwork

Copy link
Copy Markdown
Owner

Summary

Refactor the src/agent/agents/ directory to eliminate DRY violations using a factory pattern.

What Changes

  • Create src/agent/definitions/factory.js with createAgentDefinition() factory function
  • Rename src/agent/agents/src/agent/definitions/
  • Refactor all 9 agent files to use the factory (~37 lines → ~5 lines each)
  • Update all import paths referencing the old location

OpenSpec

Full spec available at openspec/changes/refactor-agent-definitions/

Related

Fixes #738

- Create proposal, design, tasks, and spec artifacts
- Define factory pattern for agent definitions
- Rename agents/ → definitions/ directory structure
@avoidwork avoidwork self-assigned this Aug 10, 2026
@avoidwork
avoidwork enabled auto-merge (squash) August 10, 2026 04:54
@avoidwork
avoidwork merged commit 12b90a2 into main Aug 10, 2026
3 checks passed
@avoidwork
avoidwork deleted the chore/refactor-agent-definitions branch August 10, 2026 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: restructure src/agent for better cohesion and DRY principles

1 participant