Tasks and background jobs
Long-running work records, workflows, and asynchronous task handling.
38
Matched files
7
Top dirs
10,240
Lines in slice
187
Exports found
Heuristic
Classification style
Beginner explanation
This architecture page groups files that seem to solve the same type of problem. It is a good way to understand the repo as a system rather than as a list of folders.
Beginner mental model
Read the first few high-importance files here, then follow their related-file links.
Expert explanation
This slice is assembled with path heuristics, which makes it strong for navigation and code reading but not a replacement for runtime tracing. Use it to discover likely boundaries, then validate by reading imports, exports, and orchestrator files.
Related files
| File | Lines | Importance | Exports |
|---|---|---|---|
| utils/tasks.ts | 863 | high | setLeaderTeamName, clearLeaderTeamName, onTasksUpdated, notifyTasksUpdated |
| tasks/RemoteAgentTask/RemoteAgentTask.tsx | 856 | high | RemoteAgentTaskState, RemoteTaskType, AutofixPrRemoteTaskMetadata, RemoteTaskMetadata |
| tasks/LocalAgentTask/LocalAgentTask.tsx | 683 | high | ToolActivity, AgentProgress, ProgressTracker, createProgressTracker |
| components/tasks/BackgroundTasksDialog.tsx | 652 | high | BackgroundTasksDialog |
| tools/TaskOutputTool/TaskOutputTool.tsx | 584 | high | TaskOutputTool |
| tasks/LocalShellTask/LocalShellTask.tsx | 523 | high | BACKGROUND_BASH_SUMMARY_PREFIX, looksLikePrompt, LocalShellTask, spawnShellTask |
| tasks/LocalMainSessionTask.ts | 480 | high | LocalMainSessionTaskState, registerMainSessionTask, completeMainSessionTask, foregroundMainSessionTask |
| utils/cronTasks.ts | 459 | high | CronTask, getCronFilePath, readCronTasks, hasCronTasksSync |
| components/tasks/BackgroundTaskStatus.tsx | 429 | high | BackgroundTaskStatus |
| tools/TaskUpdateTool/TaskUpdateTool.ts | 407 | high | Output, TaskUpdateTool |
| utils/task/TaskOutput.ts | 391 | high | TaskOutput |
| components/TaskListV2.tsx | 378 | high | TaskListV2 |
| components/tasks/BackgroundTask.tsx | 345 | high | BackgroundTask |
| components/ResumeTask.tsx | 268 | high | ResumeTask |
| tasks/DreamTask/DreamTask.ts | 158 | high | DreamTurn, DreamPhase, DreamTaskState, isDreamTask |
| tools/TaskCreateTool/TaskCreateTool.ts | 139 | high | Output, TaskCreateTool |
| tools/TaskStopTool/TaskStopTool.ts | 132 | high | Output, TaskStopTool |
| tools/TaskGetTool/TaskGetTool.ts | 129 | high | Output, TaskGetTool |
| components/WorkflowMultiselectDialog.tsx | 128 | high | WorkflowMultiselectDialog |
| Task.ts | 126 | high | TaskType, TaskStatus, isTerminalTaskStatus, TaskHandle |
| tasks/InProcessTeammateTask/InProcessTeammateTask.tsx | 126 | high | InProcessTeammateTask, requestTeammateShutdown, appendTeammateMessage, injectUserMessageToTeammate |
| tasks/InProcessTeammateTask/types.ts | 122 | high | TeammateIdentity, InProcessTeammateTaskState, isInProcessTeammateTask, TEAMMATE_MESSAGES_UI_CAP |
| tools/TaskListTool/TaskListTool.ts | 117 | high | Output, TaskListTool |
| components/tasks/taskStatusUtils.tsx | 107 | high | isTerminalStatus, getTaskStatusIcon, getTaskStatusColor, describeTeammateActivity |
| commands/install-github-app/ExistingWorkflowStep.tsx | 103 | high | ExistingWorkflowStep |
| tasks/LocalShellTask/killShellTasks.ts | 77 | high | killTask, killShellTasksForAgent |
| components/messages/TaskAssignmentMessage.tsx | 76 | high | TaskAssignmentDisplay, tryRenderTaskAssignmentMessage, getTaskAssignmentSummary |
| tasks/LocalShellTask/guards.ts | 42 | high | BashTaskKind, LocalShellTaskState, isLocalShellTask |
| commands/tasks/tasks.tsx | 8 | high | call |
| hooks/useBackgroundTaskNavigation.ts | 252 | medium | useBackgroundTaskNavigation |
| hooks/useTasksV2.ts | 251 | medium | useTasksV2, useTasksV2WithCollapseEffect |
| hooks/useTaskListWatcher.ts | 222 | medium | useTaskListWatcher |
| utils/cronTasksLock.ts | 196 | medium | SchedulerLockOptions, tryAcquireSchedulerLock, releaseSchedulerLock |
| hooks/useScheduledTasks.ts | 140 | medium | useScheduledTasks |
| tasks/stopTask.ts | 101 | medium | StopTaskError, stopTask |
| tasks/pillLabel.ts | 83 | medium | getPillLabel, pillNeedsCta |
| tasks/types.ts | 47 | medium | TaskState, BackgroundTaskState, isBackgroundTask |
| tasks.ts | 40 | medium | getAllTasks, getTaskByType |