Skip to content

Support GitHub Copilot CLI as an execution engine #36

Description

@nonz250

Summary

Add support for GitHub Copilot CLI as an alternative execution engine alongside Claude Code CLI.

Research: Copilot CLI Permission Flags

Note: Re-verified from official docs and changelog on 2026-04-05. Some flags from initial research could not be confirmed.

Permission control flags (verified)

Flag Exists Effect
--yolo Yes Alias for --allow-all. Auto-approve all permissions
--allow-all Yes Auto-approve all permissions. Same as --yolo
--allow-all-tools Yes Auto-approve all tool usage
--allow-all-paths Yes Auto-approve all file path access
--allow-tool Yes Allow specific tool (e.g., --allow-tool 'shell(git)')
--deny-tool Yes Deny specific tool (takes priority over allow)
--allow-all-urls Not confirmed Not found in docs or changelog
--autopilot Not confirmed as CLI flag Exists as interactive mode feature (Shift+Tab), not as a CLI flag

Non-interactive execution

# Full autonomous execution
copilot -p "prompt" --yolo

# Restricted tool access
copilot -p "prompt" --allow-tool 'shell(git)' --allow-tool 'write'

Flag mapping with Claude Code

Claude Code Copilot CLI
claude -p copilot -p
--dangerously-skip-permissions --yolo (alias: --allow-all)
(no equivalent) --allow-all-tools (tools only, not paths)
(no equivalent) --allow-tool (granular per-tool control)

Key differences from Codex

  • Copilot's --yolo is an alias for --allow-all (permission-focused)
  • Codex's --yolo is an alias for --dangerously-bypass-approvals-and-sandbox (approval + sandbox bypass)
  • Same name, different semantics — they were defined independently
  • Copilot has no sandbox concept; Codex does

Considerations

  • Copilot offers granular tool-level control (--allow-tool, --deny-tool) that others lack
  • --autopilot may not be usable as a CLI flag for non-interactive execution — needs further investigation
  • --headless --stdio was recently removed (Issue #1606)
  • Source: GitHub Copilot CLI docs, changelog

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions