Skip to main content
Claude Code includes a task system for managing longer-running work that may span multiple steps or need to run in the background.

Task tools

ToolDescription
TaskCreateToolCreate a new named task
TaskUpdateToolUpdate task status or output
TaskGetToolRetrieve a specific task’s details
TaskListToolList all tasks and their statuses
TaskOutputToolGet the output from a completed task
TaskStopToolStop a running task

Creating tasks

Claude uses the task system automatically for long-running work. You can also ask explicitly:
> Create a background task to analyze all the TypeScript errors across the codebase
> Start a task that monitors the test suite and reports failures

Viewing tasks

> /tasks
The /tasks command opens the task management UI showing all active, pending, and completed tasks with their current status and output.

Scheduled tasks

The ScheduleCronTool (also shown as CronCreateTool in some contexts) lets Claude create scheduled triggers:
> Set up a daily task that runs the test suite at 9am and reports results
Scheduled tasks use cron-style scheduling and run via the background task runner.

Background task monitoring

Use /tasks to monitor task progress:
  • pending — Task is queued but not yet started
  • running — Task is actively executing
  • completed — Task finished successfully
  • failed — Task encountered an error
> /tasks
> Show me the output from the last completed task
> Stop the running analysis task
Tasks persist across REPL sessions. Use /resume to reconnect to a previous session and check on tasks that were running when you closed Claude Code.

Build docs developers (and LLMs) love