gh-agent-task - Man Page
Work with agent tasks (preview)
Examples (TL;DR)
- List the most recent agent tasks:
gh [agent|agent-task] list - Create a new agent task for the current repository:
gh [agent|agent-task] create "Improve the performance of the data processing pipeline" - Create a new agent task from a file:
gh [agent|agent-task] create [-F|--from-file] path/to/file - View details about a specific agent task:
gh [agent|agent-task] view session_id|pr_number|url|branch - Show the log of a specific agent task:
gh [agent|agent-task] view --log session_id|pr_number|url|branch
Synopsis
gh agent-task <command> [flags]
Description
Working with agent tasks in the GitHub CLI is in preview and subject to change without notice.
Available Commands
- gh-agent-task-create(1)
Create an agent task (preview)
- gh-agent-task-list(1)
List agent tasks (preview)
- gh-agent-task-view(1)
View an agent task session (preview)
Aliases
gh agent-tasks, gh agent, gh agents
Exit Codes
0: Successful execution
1: Error
2: Command canceled
4: Authentication required
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.
Example
# List your most recent agent tasks $ gh agent-task list # Create a new agent task on the current repository $ gh agent-task create "Improve the performance of the data processing pipeline" # View details about agent tasks associated with a pull request $ gh agent-task view 123 # View details about a specific agent task $ gh agent-task view 12345abc-12345-12345-12345-12345abc
See Also
Referenced By
gh(1), gh-agent-task-create(1), gh-agent-task-list(1), gh-agent-task-view(1).
Nov 2025 GitHub CLI manual