Architecture

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

FileLinesImportanceExports
utils/tasks.ts863highsetLeaderTeamName, clearLeaderTeamName, onTasksUpdated, notifyTasksUpdated
tasks/RemoteAgentTask/RemoteAgentTask.tsx856highRemoteAgentTaskState, RemoteTaskType, AutofixPrRemoteTaskMetadata, RemoteTaskMetadata
tasks/LocalAgentTask/LocalAgentTask.tsx683highToolActivity, AgentProgress, ProgressTracker, createProgressTracker
components/tasks/BackgroundTasksDialog.tsx652highBackgroundTasksDialog
tools/TaskOutputTool/TaskOutputTool.tsx584highTaskOutputTool
tasks/LocalShellTask/LocalShellTask.tsx523highBACKGROUND_BASH_SUMMARY_PREFIX, looksLikePrompt, LocalShellTask, spawnShellTask
tasks/LocalMainSessionTask.ts480highLocalMainSessionTaskState, registerMainSessionTask, completeMainSessionTask, foregroundMainSessionTask
utils/cronTasks.ts459highCronTask, getCronFilePath, readCronTasks, hasCronTasksSync
components/tasks/BackgroundTaskStatus.tsx429highBackgroundTaskStatus
tools/TaskUpdateTool/TaskUpdateTool.ts407highOutput, TaskUpdateTool
utils/task/TaskOutput.ts391highTaskOutput
components/TaskListV2.tsx378highTaskListV2
components/tasks/BackgroundTask.tsx345highBackgroundTask
components/ResumeTask.tsx268highResumeTask
tasks/DreamTask/DreamTask.ts158highDreamTurn, DreamPhase, DreamTaskState, isDreamTask
tools/TaskCreateTool/TaskCreateTool.ts139highOutput, TaskCreateTool
tools/TaskStopTool/TaskStopTool.ts132highOutput, TaskStopTool
tools/TaskGetTool/TaskGetTool.ts129highOutput, TaskGetTool
components/WorkflowMultiselectDialog.tsx128highWorkflowMultiselectDialog
Task.ts126highTaskType, TaskStatus, isTerminalTaskStatus, TaskHandle
tasks/InProcessTeammateTask/InProcessTeammateTask.tsx126highInProcessTeammateTask, requestTeammateShutdown, appendTeammateMessage, injectUserMessageToTeammate
tasks/InProcessTeammateTask/types.ts122highTeammateIdentity, InProcessTeammateTaskState, isInProcessTeammateTask, TEAMMATE_MESSAGES_UI_CAP
tools/TaskListTool/TaskListTool.ts117highOutput, TaskListTool
components/tasks/taskStatusUtils.tsx107highisTerminalStatus, getTaskStatusIcon, getTaskStatusColor, describeTeammateActivity
commands/install-github-app/ExistingWorkflowStep.tsx103highExistingWorkflowStep
tasks/LocalShellTask/killShellTasks.ts77highkillTask, killShellTasksForAgent
components/messages/TaskAssignmentMessage.tsx76highTaskAssignmentDisplay, tryRenderTaskAssignmentMessage, getTaskAssignmentSummary
tasks/LocalShellTask/guards.ts42highBashTaskKind, LocalShellTaskState, isLocalShellTask
commands/tasks/tasks.tsx8highcall
hooks/useBackgroundTaskNavigation.ts252mediumuseBackgroundTaskNavigation
hooks/useTasksV2.ts251mediumuseTasksV2, useTasksV2WithCollapseEffect
hooks/useTaskListWatcher.ts222mediumuseTaskListWatcher
utils/cronTasksLock.ts196mediumSchedulerLockOptions, tryAcquireSchedulerLock, releaseSchedulerLock
hooks/useScheduledTasks.ts140mediumuseScheduledTasks
tasks/stopTask.ts101mediumStopTaskError, stopTask
tasks/pillLabel.ts83mediumgetPillLabel, pillNeedsCta
tasks/types.ts47mediumTaskState, BackgroundTaskState, isBackgroundTask
tasks.ts40mediumgetAllTasks, getTaskByType