Skip to content

feat(ci): add feature agent workflow and rename labels to agent-fix/agent-feat#2081

Draft
peppescg wants to merge 1 commit intomainfrom
feat/agent-feat-workflow
Draft

feat(ci): add feature agent workflow and rename labels to agent-fix/agent-feat#2081
peppescg wants to merge 1 commit intomainfrom
feat/agent-feat-workflow

Conversation

@peppescg
Copy link
Copy Markdown
Collaborator

Summary

  • New feature agent (_feat-agent.yml + feat-on-label.yml): triggered by agent-feat label on Task/enhancement issues
    • Phase 1 (Opus): analyzes the issue, searches codebase, writes implementation-plan.md
    • Phase 2 (Sonnet): implements the feature following the plan, writes tests, runs checks
    • Hard gate: CI verifies all checks pass
    • Creates PR on success, comments on issue on failure
  • Rename labels: auto-fixagent-fix across bug-fix agent and triage cron

Feature Agent Flow

┌──────────────────────────────────────┐
│  TRIGGER (feat-on-label.yml)         │
│  if: "agent-feat" label              │
│  + "Task" or "enhancement" label     │
└─────────────────┬────────────────────┘
                  ▼
┌──────────────────────────────────────┐
│  FEATURE AGENT (45 min timeout)      │
│                                      │
│  GUARD: skip if PR exists or         │
│         agent already commented      │
│                                      │
│  PHASE 1 — Plan (Opus)              │
│  • Read feature request              │
│  • Search codebase for patterns      │
│  • Write implementation-plan.md      │
│  • No source modifications           │
│                                      │
│  PHASE 2 — Implement (Sonnet)       │
│  • Follow the plan                   │
│  • Write code + tests                │
│  • Suite + lint + types              │
│                                      │
│  HARD GATE: CI re-runs all checks    │
│                                      │
│  ✅ SUCCESS        ❌ FAILED          │
│  • feat/auto-N     • Comment with    │
│  • Open PR           plan            │
│  • agent-feat      • Remove label    │
│    label                             │
└──────────────────────────────────────┘

Test plan

  • Create a Task issue with a small feature request, add agent-feat label, verify agent creates PR
  • Verify label rename: add agent-fix to a Bug issue, verify bug-fix agent triggers
  • Verify triage cron uses agent-fix label

🤖 Generated with Claude Code

…gent-feat

- Add _feat-agent.yml: two-phase feature implementation
  (Opus plans, Sonnet implements + tests)
- Add feat-on-label.yml: triggers on agent-feat label
  for Task/enhancement issues
- Rename auto-fix label to agent-fix across bug-fix workflows
  and triage cron

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@peppescg peppescg self-assigned this Apr 23, 2026
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.

1 participant