Anonymous - 2026-04-23

Originally posted by: kumaakh

Technical direction: Before any implementation, the key research question is whether gh copilot supports a headless/non-interactive -p equivalent. The current execute_prompt architecture assumes a CLI flag for passing prompts programmatically (like claude -p or gemini -p).

Research checklist:

  • gh copilot suggest --help / gh copilot explain --help — do these support piped/scripted input?
  • Session/context persistence — equivalent to Claude's --session-id / --resume?
  • Structured output — equivalent to --output-format json?
  • Tool use / agentic execution — does gh copilot support multi-turn tool loops or is it single-shot?

If gh copilot is single-shot only, it is not viable as a fleet member backend — the doer-reviewer loop requires multi-turn agentic execution. In that case, the issue should be updated to 'blocked pending Copilot agentic CLI support.'

If it is viable: add CopilotStrategy in src/providers/copilot.ts following the same pattern as src/providers/claude.ts. provision_auth would check gh auth status and prompt gh auth login if needed.