copilot-cli
copilot-cli copied to clipboard
The `--agent` flag should be compatible with standard input (stdin) usage through a pipe.
Describe the feature or problem you'd like to solve
The --agent flag should be compatible with standard input (stdin) usage through a pipe.
Proposed solution
When run copilot with this way:
$ cat PROMPT.md | copilot --agent review
The error shown:
The --agent option can only be used in prompt mode (with --prompt).
I think the --agent flag should accept standard input (stdin) usage through a pipe without --prompt flag.
Example prompts or workflows
This should work.
$ cat PROMPT.md | copilot --agent review
Additional context
No response
There is a related issue.
I have to use copilot --agent review -p (cat PROMPT.txt) at this moment. When the PROMPT.txt is too large. It will produce error.
/bin/bash: line 1: /usr/local/bin/copilot: Argument list too long
That's why I need to use standard input (stdin) usage through a pipe with a --agent flag.