Skip to content

An Actions agent is told two branch names #1746

Description

@suleimansh

An agent on a GitHub Actions runner is told two branch names.

  • prompts/branch_yourself.md tells it: "Create and check out the branch agent-<SESSION_NAME> yourself (git checkout -b agent-<SESSION_NAME>), and commit your work to it."
  • The GitHub Actions driver asks the workflow to push to claude/<session id> (agent-driver's ActionsSession.runBranch, default prefix claude/ — we pass no branchPrefix in target-driver.ts), and dispatches every later turn from that branch.

So the same run has an agent-… branch the agent made and a claude/… branch the workflow pushes; which one carries the work depends on what the workflow does with the branch input, and the reclaim rule in @gemstack/skill-branches only ever looks at agent-* branches. Local and cloud agents end on one agent-<name> branch; Actions agents don't tell the same story.

Options I see: (a) pass branchPrefix: 'agent-' and have the workflow push the branch the agent created; (b) drop the branch instruction from branch_yourself.md for Actions and let the workflow's branch be the one; (c) leave it and document it. No code before Rom weighs in — this is the naming convention users see in their branch list.

Found by the stranger review of the two packages (#1743, #1744 follow-ups).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions