Skip to content

refactor(agent-selection): Update act-mode.json hardcoding + reorder intent patterns #567

@JeremyDev87

Description

@JeremyDev87

Parent Issue

Closes part of #560

Scope Note: DEFAULT_ACT_AGENT change is handled by #568. This issue focuses on act-mode.json documentation, intent pattern reordering, and pattern expansion.

Changes Required

1. Update act-mode.json documentation

Depends on #568 (must complete first — delegates_to value will be software-engineer)

Current (misleading — code ignores this):

"delegate_agent": {
  "primary": "frontend-developer",
  "description": "This Mode Agent utilizes the Frontend Developer Agent's implementation workflow"
}

Target (accurate documentation, after #568 completes):

"delegate_agent": {
  "primary": "software-engineer",
  "description": "ACT mode selects agent dynamically. Resolution order: explicit request > PLAN context recommendation > project config > intent patterns > default",
  "resolution_order": [
    "1. Explicit agent request in prompt",
    "2. recommendedActAgent from PLAN mode context document",
    "3. Project primaryAgent config (codingbuddy.config.json)",
    "4. Intent pattern matching",
    "5. Default: software-engineer"
  ]
}

2. Reorder INTENT_PATTERN_CHECKS after new agents added

Final priority order (after all Phase 2 agents added):

1.  agent-architect      (MCP, AI agents, workflows)
2.  test-engineer        (NEW — test before backend/frontend steal keywords)
3.  tooling-engineer     (build tools, linters, bundlers)
4.  platform-engineer    (IaC, K8s, cloud infra)
5.  security-engineer    (NEW — security implementation)
6.  systems-developer    (NEW — Rust, C, C++, low-level)
7.  data-engineer        (DB, schema, ETL pipelines)
8.  data-scientist       (NEW — analysis, visualization, notebooks)
9.  ai-ml-engineer       (ML frameworks, LLM, embeddings — now reachable)
10. backend-developer    (APIs, servers, auth)
11. frontend-developer   (React, Vue, Angular, UI)
12. devops-engineer      (CI/CD, Docker, deployment)
13. mobile-developer     (React Native, Flutter — greedy patterns last)

3. Expand intent patterns for generic prompts

Add patterns that currently fall to default:

backend.patterns.ts additions:

  • Refactoring: 리팩토링|refactor (when no domain keyword present)
  • General TypeScript: 타입.*추가|type.*definition

Acceptance Criteria

Files

  • packages/rules/.ai-rules/agents/act-mode.json
  • apps/mcp-server/src/keyword/patterns/intent-pattern-checks.ts
  • apps/mcp-server/src/keyword/patterns/backend.patterns.ts

Related

Metadata

Metadata

Assignees

Labels

mcp-serverapps/mcp-serverpriority:shouldShould Have - 중요하지만 필수는 아님refactorsub-issue상위 이슈의 하위 작업

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions