Skip to main content

Module tasks

Module tasks 

Source
Expand description

Task management system for RustyClaw.

Tasks are first-class entities that can be:

  • Foregrounded (streaming output to user)
  • Backgrounded (running silently)
  • Paused/resumed
  • Cancelled

Task sources include:

  • Shell commands (exec)
  • Sub-agent sessions
  • Cron jobs
  • MCP tool calls
  • Long-running tools (browser, web_fetch, etc.)

Structs§

Task
A task with full metadata.
TaskHandle
Handle to a running task for control and monitoring.
TaskId
Unique identifier for a task.
TaskIndicator
Indicator style for chat display.
TaskManager
Manages all tasks across sessions.
TaskProgress
Progress information for a task.
TaskThread
A task thread — an independent conversation context.
ThreadInfo
Summary info about a thread for display (unified tasks + threads).
ThreadManager
Manager for task threads within a session.
ThreadMessage
A message in a task thread’s conversation.
ToolInteraction
A tool call and its result.

Enums§

MessageRole
Message roles.
TaskEvent
Events emitted by the task manager.
TaskIcon
Icon representation for task status.
TaskKind
Kind of task — determines behavior and display.
TaskStatus
Task status with progress tracking.

Functions§

format_task_icons
Format a set of tasks as icon bar (for status display).
format_task_indicators
Format tasks for chat indicator line.
format_task_status
Format a task status for display.

Type Aliases§

SharedThreadManager
Shared thread manager.