Skip to content

feat: smart branch naming for /implement#105

Merged
dean0x merged 1 commit intomainfrom
feature/smart-branch-naming
Mar 9, 2026
Merged

feat: smart branch naming for /implement#105
dean0x merged 1 commit intomainfrom
feature/smart-branch-naming

Conversation

@dean0x
Copy link
Owner

@dean0x dean0x commented Mar 9, 2026

Summary

  • Moves branch name derivation into the Git agent's setup-task operation, so /implement #42 automatically creates feature/42-add-jwt-auth instead of task-2025-01-15_1430
  • Issue input derives {type}/{number}-{slug} from labels and title (bug→fix, docs→docs, refactor→refactor, default→feature)
  • Free-text input infers type from keywords and slugifies as {type}/{slug}
  • Falls back to task-{YYYY-MM-DD_HHMM} when neither issue nor description is provided
  • Removes TASK_ID generation from both implement.md and implement-teams.md — the Git agent now owns and returns the branch name

Test plan

  • Run npm run build — verify clean build with agent distributed to plugins
  • /implement #<issue-with-bug-label> — verify branch: fix/{number}-{slug}
  • /implement #<issue-no-labels> — verify branch: feature/{number}-{slug}
  • /implement add JWT auth — verify branch: feature/add-jwt-auth
  • /implement fix login bug — verify branch: fix/login-bug
  • /implement (conversation context only) — verify fallback: task-{timestamp}

Move branch name derivation into Git agent's setup-task operation.
When given an issue number, derives {type}/{number}-{slug} from labels
and title. When given free text, infers type from keywords and slugifies.
Falls back to task-{timestamp} when neither is provided.

Removes TASK_ID generation from implement commands - the Git agent now
owns branch naming and returns the created branch name as output.
@dean0x dean0x merged commit ce11409 into main Mar 9, 2026
4 checks passed
@dean0x dean0x deleted the feature/smart-branch-naming branch March 9, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant