Skip to content

feat: add flag passthrough for agent harnesses#135

Draft
bdougie wants to merge 1 commit intomainfrom
feat/agent-flag-passthrough
Draft

feat: add flag passthrough for agent harnesses#135
bdougie wants to merge 1 commit intomainfrom
feat/agent-flag-passthrough

Conversation

@bdougie
Copy link
Contributor

@bdougie bdougie commented Feb 25, 2026

Summary

  • Adds support for passing flags directly to agent binaries using the standard -- separator
  • tapes start claude -- --dangerously-skip-permissions --worktree now forwards those flags to the claude binary
  • Works for all agents (claude, opencode, codex) — internal args (like opencode's --model) are preserved before passthrough flags
  • Custom cobra args validator allows unlimited args after -- while still enforcing max 1 positional arg

Note

This feature needs documentation — CLI help text is updated but user-facing docs should cover the -- passthrough convention with examples for each agent.

Test plan

  • parseStartArgs unit tests covering: no args, agent only, agent + passthrough, dash-at-0 edge case, trimming/lowercasing
  • All 48 existing tests pass
  • Manual smoke test: tapes start claude -- --dangerously-skip-permissions

Allow users to pass flags directly to agent binaries using the standard
-- separator convention (e.g. tapes start claude -- --dangerously-skip-permissions).
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