Planner and verifier agents
Planning, review, verification, advisor, and agent composition flows.
109
Matched files
10
Top dirs
24,741
Lines in slice
354
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 |
|---|---|---|---|
| tools/AgentTool/AgentTool.tsx | 1398 | high | inputSchema, outputSchema, RemoteLaunchedOutput, Progress |
| tools/shared/spawnMultiAgent.ts | 1094 | high | resolveTeammateModel, SpawnOutput, SpawnTeammateConfig, generateUniqueTeammateName |
| tools/AgentTool/runAgent.ts | 974 | high | filterIncompleteToolCalls |
| tools/AgentTool/UI.tsx | 872 | high | AgentPromptDisplay, AgentResponseDisplay, renderToolResultMessage, renderToolUseMessage |
| tasks/RemoteAgentTask/RemoteAgentTask.tsx | 856 | high | RemoteAgentTaskState, RemoteTaskType, AutofixPrRemoteTaskMetadata, RemoteTaskMetadata |
| components/agents/AgentsMenu.tsx | 800 | high | AgentsMenu |
| components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.tsx | 768 | high | buildPermissionUpdates, autoNameSessionFromPlan, ExitPlanModePermissionRequest, buildPlanApprovalOptions |
| tools/AgentTool/loadAgentsDir.ts | 756 | high | AgentMcpServerSpec, BaseAgentDefinition, BuiltInAgentDefinition, CustomAgentDefinition |
| utils/forkedAgent.ts | 690 | high | CacheSafeParams, saveCacheSafeParams, getLastCacheSafeParams, ForkedAgentParams |
| tools/AgentTool/agentToolUtils.ts | 687 | high | ResolvedAgentTools, filterToolsForAgent, resolveAgentTools, agentToolResultSchema |
| tasks/LocalAgentTask/LocalAgentTask.tsx | 683 | high | ToolActivity, AgentProgress, ProgressTracker, createProgressTracker |
| components/agents/ToolSelector.tsx | 562 | high | ToolSelector |
| tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts | 494 | high | AllowedPrompt, _sdkInputSchema, outputSchema, Output |
| commands/ultraplan.tsx | 471 | high | CCR_TERMS_URL, buildUltraplanPrompt, stopUltraplan, launchUltraplan |
| skills/bundled/scheduleRemoteAgents.ts | 448 | high | registerScheduleRemoteAgentsSkill |
| entrypoints/agentSdkTypes.ts | 444 | high | tool, createSdkMcpServer, AbortError, query |
| components/agents/AgentsList.tsx | 440 | high | AgentsList |
| utils/plans.ts | 398 | high | getPlanSlug, setPlanSlug, clearPlanSlug, clearAllPlanSlugs |
| components/agents/new-agent-creation/wizard-steps/ConfirmStep.tsx | 378 | high | ConfirmStep |
| utils/ultraplan/ccrSession.ts | 350 | high | PollFailReason, UltraplanPollError, ULTRAPLAN_TELEPORT_SENTINEL, ScanResult |
| utils/plugins/loadPluginAgents.ts | 349 | high | loadPluginAgents, clearPluginAgentCache |
| utils/hooks/execAgentHook.ts | 340 | high | execAgentHook |
| components/permissions/AskUserQuestionPermissionRequest/PreviewQuestionView.tsx | 328 | high | PreviewQuestionView |
| commands/review/reviewRemote.ts | 317 | high | confirmOverage, OverageGate, checkOverageGate, launchRemoteReview |
| utils/agenticSessionSearch.ts | 308 | high | agenticSessionSearch |
| tools/AgentTool/prompt.ts | 288 | high | formatAgentLine, shouldInjectAgentListInMessages, getPrompt |
| components/CoordinatorAgentStatus.tsx | 273 | high | getVisibleAgentTasks, CoordinatorTaskPanel, useCoordinatorTaskCount |
| components/agents/agentFileUtils.ts | 273 | high | formatAgentAsMarkdown, getNewAgentFilePath, getActualAgentFilePath, getNewRelativeAgentFilePath |
| components/permissions/PermissionExplanation.tsx | 272 | high | usePermissionExplainerUI, PermissionExplainerContent |
| tools/AgentTool/resumeAgent.ts | 266 | high | ResumeAgentResult, resumeAgentBackground |
| commands/init-verifiers.ts | 263 | high | — |
| commands/security-review.ts | 244 | high | — |
| components/permissions/AskUserQuestionPermissionRequest/PreviewBox.tsx | 229 | high | PreviewBox |
| components/tasks/AsyncAgentDetailDialog.tsx | 229 | high | AsyncAgentDetailDialog |
| components/messages/PlanApprovalMessage.tsx | 222 | high | PlanApprovalRequestDisplay, PlanApprovalResponseDisplay, tryRenderPlanApprovalMessage, formatTeammateMessageContent |
| components/agents/AgentDetail.tsx | 220 | high | AgentDetail |
| tools/AgentTool/forkSubagent.ts | 211 | high | isForkSubagentEnabled, FORK_SUBAGENT_TYPE, FORK_AGENT, isInForkChild |
| tools/AgentTool/built-in/claudeCodeGuideAgent.ts | 206 | high | CLAUDE_CODE_GUIDE_AGENT_TYPE, CLAUDE_CODE_GUIDE_AGENT |
| components/agents/generateAgent.ts | 198 | high | generateAgent |
| tools/AgentTool/agentMemorySnapshot.ts | 198 | high | getSnapshotDirForAgent, checkAgentMemorySnapshot, initializeFromSnapshot, replaceFromSnapshot |
| components/SessionPreview.tsx | 194 | high | SessionPreview |
| components/mcp/MCPAgentServerMenu.tsx | 183 | high | MCPAgentServerMenu |
| services/AgentSummary/agentSummary.ts | 180 | high | startAgentSummarization |
| utils/agentContext.ts | 179 | high | SubagentContext, TeammateAgentContext, AgentContext, getAgentContext |
| components/agents/AgentEditor.tsx | 178 | high | AgentEditor |
| tools/AgentTool/agentMemory.ts | 178 | high | AgentMemoryScope, getAgentMemoryDir, isAgentMemoryPath, getAgentMemoryEntrypoint |
| tools/EnterPlanModeTool/prompt.ts | 171 | high | getEnterPlanModeToolPrompt |
| components/messages/AdvisorMessage.tsx | 158 | high | AdvisorMessage |
| utils/model/agent.ts | 158 | high | AGENT_MODEL_OPTIONS, AgentModelAlias, AgentModelOption, getDefaultSubagentModel |
| tools/AgentTool/built-in/verificationAgent.ts | 153 | high | VERIFICATION_AGENT |
| utils/advisor.ts | 146 | high | AdvisorServerToolUseBlock, AdvisorToolResultBlock, AdvisorBlock, isAdvisorBlock |
| tools/AgentTool/built-in/statuslineSetup.ts | 145 | high | STATUSLINE_SETUP_AGENT |
| components/agents/new-agent-creation/wizard-steps/GenerateStep.tsx | 143 | high | GenerateStep |
| components/AgentProgressLine.tsx | 136 | high | AgentProgressLine |
| components/agents/new-agent-creation/wizard-steps/PromptStep.tsx | 128 | high | PromptStep |
| utils/ultraplan/keyword.ts | 128 | high | findUltraplanTriggerPositions, findUltrareviewTriggerPositions, hasUltraplanKeyword, hasUltrareviewKeyword |
| tools/EnterPlanModeTool/EnterPlanModeTool.ts | 127 | high | Output, EnterPlanModeTool |
| components/agents/new-agent-creation/wizard-steps/DescriptionStep.tsx | 123 | high | DescriptionStep |
| commands/plan/plan.tsx | 122 | high | call |
| components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx | 122 | high | EnterPlanModePermissionRequest |
| components/permissions/PermissionRuleExplanation.tsx | 121 | high | PermissionRuleExplanationProps, PermissionRuleExplanation |
| components/agents/new-agent-creation/wizard-steps/MemoryStep.tsx | 113 | high | MemoryStep |
| components/agents/ColorPicker.tsx | 112 | high | ColorPicker |
| commands/advisor.ts | 110 | high | — |
| components/agents/validateAgent.ts | 110 | high | AgentValidationResult, validateAgentType, validateAgent |
| tools/AgentTool/agentDisplay.ts | 105 | high | AgentSourceGroup, AGENT_SOURCE_GROUPS, ResolvedAgent, resolveAgentOverrides |
| components/agents/new-agent-creation/wizard-steps/TypeStep.tsx | 103 | high | TypeStep |
| components/agents/new-agent-creation/CreateAgentWizard.tsx | 97 | high | CreateAgentWizard |
| commands/review/UltrareviewOverageDialog.tsx | 96 | high | UltrareviewOverageDialog |
| utils/planModeV2.ts | 96 | high | getPlanModeV2AgentCount, getPlanModeV2ExploreAgentCount, isPlanModeInterviewPhaseEnabled, PewterLedgerVariant |
| tools/AgentTool/built-in/planAgent.ts | 93 | high | PLAN_AGENT |
| hooks/useApiKeyVerification.ts | 85 | high | VerificationStatus, ApiKeyVerificationResult, useApiKeyVerification |
| components/agents/new-agent-creation/wizard-steps/ColorStep.tsx | 84 | high | ColorStep |
| tools/AgentTool/built-in/exploreAgent.ts | 84 | high | EXPLORE_AGENT_MIN_QUERIES, EXPLORE_AGENT |
| components/messages/UserAgentNotificationMessage.tsx | 83 | high | UserAgentNotificationMessage |
| tools/ExitPlanModeTool/UI.tsx | 82 | high | renderToolUseMessage, renderToolResultMessage, renderToolUseRejectedMessage |
| components/agents/new-agent-creation/wizard-steps/LocationStep.tsx | 80 | high | LocationStep |
| components/agents/new-agent-creation/wizard-steps/MethodStep.tsx | 80 | high | MethodStep |
| components/agents/new-agent-creation/wizard-steps/ConfirmStepWrapper.tsx | 74 | high | ConfirmStepWrapper |
| tools/AgentTool/builtInAgents.ts | 73 | high | areExplorePlanAgentsEnabled, getBuiltInAgents |
| components/agents/ModelSelector.tsx | 68 | high | ModelSelector |
| tools/AgentTool/agentColorManager.ts | 67 | high | AgentColorName, AGENT_COLORS, AGENT_COLOR_TO_THEME_COLOR, getAgentColor |
| components/agents/new-agent-creation/wizard-steps/ToolsStep.tsx | 61 | high | ToolsStep |
| commands/review.ts | 58 | high | ultrareview |
| commands/review/ultrareviewCommand.tsx | 58 | high | call |
| components/agents/new-agent-creation/wizard-steps/ModelStep.tsx | 52 | high | ModelStep |
| components/messages/UserPlanMessage.tsx | 42 | high | UserPlanMessage |
| services/api/ultrareviewQuota.ts | 39 | high | UltrareviewQuotaResponse, fetchUltrareviewQuota |
| tools/AgentTool/built-in/generalPurposeAgent.ts | 35 | high | GENERAL_PURPOSE_AGENT |
| tools/EnterPlanModeTool/UI.tsx | 33 | high | renderToolUseMessage, renderToolResultMessage, renderToolUseRejectedMessage |
| components/messages/UserToolResultMessage/RejectedPlanMessage.tsx | 31 | high | RejectedPlanMessage |
| tools/ExitPlanModeTool/prompt.ts | 30 | high | EXIT_PLAN_MODE_V2_TOOL_PROMPT |
| components/agents/types.ts | 28 | high | AGENT_PATHS, ModeState, AgentValidationResult |
| components/agents/AgentNavigationFooter.tsx | 26 | high | AgentNavigationFooter |
| components/agents/utils.ts | 19 | high | getAgentSourceDisplayName |
| commands/review/ultrareviewEnabled.ts | 15 | high | isUltrareviewEnabled |
| tools/AgentTool/constants.ts | 13 | high | AGENT_TOOL_NAME, LEGACY_AGENT_TOOL_NAME, VERIFICATION_AGENT_TYPE, ONE_SHOT_BUILTIN_AGENT_TYPES |
| commands/agents/agents.tsx | 12 | high | call |
| commands/plan/index.ts | 12 | high | — |
| commands/agents/index.ts | 11 | high | — |
| tools/ExitPlanModeTool/constants.ts | 3 | high | EXIT_PLAN_MODE_TOOL_NAME, EXIT_PLAN_MODE_V2_TOOL_NAME |
| tools/EnterPlanModeTool/constants.ts | 2 | high | ENTER_PLAN_MODE_TOOL_NAME |
| utils/agentId.ts | 100 | medium | formatAgentId, parseAgentId, generateRequestId, parseRequestId |
| cli/handlers/agents.ts | 71 | medium | agentsHandler |
| utils/agentSwarmsEnabled.ts | 45 | medium | isAgentSwarmsEnabled |
| skills/bundled/verify.ts | 31 | medium | registerVerifySkill |
| utils/standaloneAgent.ts | 24 | medium | getStandaloneAgentName |
| skills/bundled/verifyContent.ts | 14 | medium | SKILL_MD, SKILL_FILES |
| utils/userAgent.ts | 11 | medium | getClaudeCodeUserAgent |