Skip to content

fix: branch param description was dangerously misleading#101

Merged
Gonzih merged 2 commits into
mainfrom
fix/branch-param-docs
May 5, 2026
Merged

fix: branch param description was dangerously misleading#101
Gonzih merged 2 commits into
mainfrom
fix/branch-param-docs

Conversation

@Gonzih
Copy link
Copy Markdown
Owner

@Gonzih Gonzih commented May 5, 2026

Summary

  • The branch parameter of spawn_agent said "agent will create it with git checkout -b" but the harness actually passes it to git clone --depth 1 --branch <name>, which immediately fails with fatal: Remote branch not found in upstream origin if the branch doesn't exist.
  • The description was the exact opposite of the real behaviour, causing AI coordinators to pass new branch names and get silent clone failures.

Changes

  • branch param description (line 105): now explicitly says "Existing remote branch to checkout after cloning. DO NOT pass a new branch name here — it will cause clone failure."
  • Top-level spawn_agent description: added a BRANCH PARAM WARNING block visible before any parameter is chosen, directing coordinators to omit branch and use git checkout -b in the task for new branches.

Test plan

  • Build passes (npm run build — ✅)
  • No logic changes — description strings only

🤖 Generated with Claude Code

Gonzih and others added 2 commits May 5, 2026 16:14
…w ones

The branch param description said 'agent will create it with git checkout -b'
but the harness actually uses it for git clone --depth 1 --branch, killing
the clone immediately if the branch doesn't exist on remote.

- branch param: now warns DO NOT pass new branch names, clone will fail
- spawn_agent description: added BRANCH PARAM WARNING block to top-level
  description so AI coordinators see it before choosing parameters

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Gonzih Gonzih merged commit c151799 into main May 5, 2026
1 check failed
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