GitHub CLI 2.80.0
New 1
gh adds an agent-task command group to hand code work to the coding agent from your terminal
You've got a chunk of code that needs cleaning up but you're busy with something else, so you hand it to GitHub's coding agent — an automated assistant that edits code for you. gh's new agent-task command group is how you dispatch and track that work right from the terminal.
``` gh agent-task create "refactor the codebase" # send off a task gh agent-task list # list all your tasks gh agent-task view 1234 # see details on one gh agent-task view 1234 --log --follow # watch it run live ```
That last form streams the log in real time as the task runs. The same command group ships with three handy aliases — gh agent-tasks, gh agent, and gh agents all work the same way. ⟦You go by your given name, but the people who know you well call you by a nickname too — whichever one gets used, it's still you who shows up.⟧ The command group is still in preview, so its behavior can change without notice.
Original changelog
Create tasks: gh agent-task create "refactor the codebase"
List all your tasks: gh agent-task list
View task details: gh agent-task view 1234
View the task log in real-time: gh agent-task view 1234 --log --follow
gh agent-tasks
gh agent
gh agents