Linux command
gh-agent-task 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Run agent task
gh agent task "[task description]"
Run with specific agent
gh agent task -a [agent_name] "[task]"
说明
gh agent task runs a task using GitHub Copilot agents. Agents can perform specialized tasks based on their capabilities, such as code analysis, refactoring suggestions, documentation generation, or domain-specific problem solving. Tasks are processed by the specified agent, which applies its specialized knowledge to provide relevant assistance. This allows developers to leverage agent expertise without leaving the command line interface.
参数
- -a, --agent _name_
- Specify agent to use.
FAQ
What is the gh-agent-task command used for?
gh agent task runs a task using GitHub Copilot agents. Agents can perform specialized tasks based on their capabilities, such as code analysis, refactoring suggestions, documentation generation, or domain-specific problem solving. Tasks are processed by the specified agent, which applies its specialized knowledge to provide relevant assistance. This allows developers to leverage agent expertise without leaving the command line interface.
How do I run a basic gh-agent-task example?
Run `gh agent task "[task description]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --agent _name_ do in gh-agent-task?
Specify agent to use.