Architecture

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

FileLinesImportanceExports
tools/AgentTool/AgentTool.tsx1398highinputSchema, outputSchema, RemoteLaunchedOutput, Progress
tools/shared/spawnMultiAgent.ts1094highresolveTeammateModel, SpawnOutput, SpawnTeammateConfig, generateUniqueTeammateName
tools/AgentTool/runAgent.ts974highfilterIncompleteToolCalls
tools/AgentTool/UI.tsx872highAgentPromptDisplay, AgentResponseDisplay, renderToolResultMessage, renderToolUseMessage
tasks/RemoteAgentTask/RemoteAgentTask.tsx856highRemoteAgentTaskState, RemoteTaskType, AutofixPrRemoteTaskMetadata, RemoteTaskMetadata
components/agents/AgentsMenu.tsx800highAgentsMenu
components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.tsx768highbuildPermissionUpdates, autoNameSessionFromPlan, ExitPlanModePermissionRequest, buildPlanApprovalOptions
tools/AgentTool/loadAgentsDir.ts756highAgentMcpServerSpec, BaseAgentDefinition, BuiltInAgentDefinition, CustomAgentDefinition
utils/forkedAgent.ts690highCacheSafeParams, saveCacheSafeParams, getLastCacheSafeParams, ForkedAgentParams
tools/AgentTool/agentToolUtils.ts687highResolvedAgentTools, filterToolsForAgent, resolveAgentTools, agentToolResultSchema
tasks/LocalAgentTask/LocalAgentTask.tsx683highToolActivity, AgentProgress, ProgressTracker, createProgressTracker
components/agents/ToolSelector.tsx562highToolSelector
tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts494highAllowedPrompt, _sdkInputSchema, outputSchema, Output
commands/ultraplan.tsx471highCCR_TERMS_URL, buildUltraplanPrompt, stopUltraplan, launchUltraplan
skills/bundled/scheduleRemoteAgents.ts448highregisterScheduleRemoteAgentsSkill
entrypoints/agentSdkTypes.ts444hightool, createSdkMcpServer, AbortError, query
components/agents/AgentsList.tsx440highAgentsList
utils/plans.ts398highgetPlanSlug, setPlanSlug, clearPlanSlug, clearAllPlanSlugs
components/agents/new-agent-creation/wizard-steps/ConfirmStep.tsx378highConfirmStep
utils/ultraplan/ccrSession.ts350highPollFailReason, UltraplanPollError, ULTRAPLAN_TELEPORT_SENTINEL, ScanResult
utils/plugins/loadPluginAgents.ts349highloadPluginAgents, clearPluginAgentCache
utils/hooks/execAgentHook.ts340highexecAgentHook
components/permissions/AskUserQuestionPermissionRequest/PreviewQuestionView.tsx328highPreviewQuestionView
commands/review/reviewRemote.ts317highconfirmOverage, OverageGate, checkOverageGate, launchRemoteReview
utils/agenticSessionSearch.ts308highagenticSessionSearch
tools/AgentTool/prompt.ts288highformatAgentLine, shouldInjectAgentListInMessages, getPrompt
components/CoordinatorAgentStatus.tsx273highgetVisibleAgentTasks, CoordinatorTaskPanel, useCoordinatorTaskCount
components/agents/agentFileUtils.ts273highformatAgentAsMarkdown, getNewAgentFilePath, getActualAgentFilePath, getNewRelativeAgentFilePath
components/permissions/PermissionExplanation.tsx272highusePermissionExplainerUI, PermissionExplainerContent
tools/AgentTool/resumeAgent.ts266highResumeAgentResult, resumeAgentBackground
commands/init-verifiers.ts263high
commands/security-review.ts244high
components/permissions/AskUserQuestionPermissionRequest/PreviewBox.tsx229highPreviewBox
components/tasks/AsyncAgentDetailDialog.tsx229highAsyncAgentDetailDialog
components/messages/PlanApprovalMessage.tsx222highPlanApprovalRequestDisplay, PlanApprovalResponseDisplay, tryRenderPlanApprovalMessage, formatTeammateMessageContent
components/agents/AgentDetail.tsx220highAgentDetail
tools/AgentTool/forkSubagent.ts211highisForkSubagentEnabled, FORK_SUBAGENT_TYPE, FORK_AGENT, isInForkChild
tools/AgentTool/built-in/claudeCodeGuideAgent.ts206highCLAUDE_CODE_GUIDE_AGENT_TYPE, CLAUDE_CODE_GUIDE_AGENT
components/agents/generateAgent.ts198highgenerateAgent
tools/AgentTool/agentMemorySnapshot.ts198highgetSnapshotDirForAgent, checkAgentMemorySnapshot, initializeFromSnapshot, replaceFromSnapshot
components/SessionPreview.tsx194highSessionPreview
components/mcp/MCPAgentServerMenu.tsx183highMCPAgentServerMenu
services/AgentSummary/agentSummary.ts180highstartAgentSummarization
utils/agentContext.ts179highSubagentContext, TeammateAgentContext, AgentContext, getAgentContext
components/agents/AgentEditor.tsx178highAgentEditor
tools/AgentTool/agentMemory.ts178highAgentMemoryScope, getAgentMemoryDir, isAgentMemoryPath, getAgentMemoryEntrypoint
tools/EnterPlanModeTool/prompt.ts171highgetEnterPlanModeToolPrompt
components/messages/AdvisorMessage.tsx158highAdvisorMessage
utils/model/agent.ts158highAGENT_MODEL_OPTIONS, AgentModelAlias, AgentModelOption, getDefaultSubagentModel
tools/AgentTool/built-in/verificationAgent.ts153highVERIFICATION_AGENT
utils/advisor.ts146highAdvisorServerToolUseBlock, AdvisorToolResultBlock, AdvisorBlock, isAdvisorBlock
tools/AgentTool/built-in/statuslineSetup.ts145highSTATUSLINE_SETUP_AGENT
components/agents/new-agent-creation/wizard-steps/GenerateStep.tsx143highGenerateStep
components/AgentProgressLine.tsx136highAgentProgressLine
components/agents/new-agent-creation/wizard-steps/PromptStep.tsx128highPromptStep
utils/ultraplan/keyword.ts128highfindUltraplanTriggerPositions, findUltrareviewTriggerPositions, hasUltraplanKeyword, hasUltrareviewKeyword
tools/EnterPlanModeTool/EnterPlanModeTool.ts127highOutput, EnterPlanModeTool
components/agents/new-agent-creation/wizard-steps/DescriptionStep.tsx123highDescriptionStep
commands/plan/plan.tsx122highcall
components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx122highEnterPlanModePermissionRequest
components/permissions/PermissionRuleExplanation.tsx121highPermissionRuleExplanationProps, PermissionRuleExplanation
components/agents/new-agent-creation/wizard-steps/MemoryStep.tsx113highMemoryStep
components/agents/ColorPicker.tsx112highColorPicker
commands/advisor.ts110high
components/agents/validateAgent.ts110highAgentValidationResult, validateAgentType, validateAgent
tools/AgentTool/agentDisplay.ts105highAgentSourceGroup, AGENT_SOURCE_GROUPS, ResolvedAgent, resolveAgentOverrides
components/agents/new-agent-creation/wizard-steps/TypeStep.tsx103highTypeStep
components/agents/new-agent-creation/CreateAgentWizard.tsx97highCreateAgentWizard
commands/review/UltrareviewOverageDialog.tsx96highUltrareviewOverageDialog
utils/planModeV2.ts96highgetPlanModeV2AgentCount, getPlanModeV2ExploreAgentCount, isPlanModeInterviewPhaseEnabled, PewterLedgerVariant
tools/AgentTool/built-in/planAgent.ts93highPLAN_AGENT
hooks/useApiKeyVerification.ts85highVerificationStatus, ApiKeyVerificationResult, useApiKeyVerification
components/agents/new-agent-creation/wizard-steps/ColorStep.tsx84highColorStep
tools/AgentTool/built-in/exploreAgent.ts84highEXPLORE_AGENT_MIN_QUERIES, EXPLORE_AGENT
components/messages/UserAgentNotificationMessage.tsx83highUserAgentNotificationMessage
tools/ExitPlanModeTool/UI.tsx82highrenderToolUseMessage, renderToolResultMessage, renderToolUseRejectedMessage
components/agents/new-agent-creation/wizard-steps/LocationStep.tsx80highLocationStep
components/agents/new-agent-creation/wizard-steps/MethodStep.tsx80highMethodStep
components/agents/new-agent-creation/wizard-steps/ConfirmStepWrapper.tsx74highConfirmStepWrapper
tools/AgentTool/builtInAgents.ts73highareExplorePlanAgentsEnabled, getBuiltInAgents
components/agents/ModelSelector.tsx68highModelSelector
tools/AgentTool/agentColorManager.ts67highAgentColorName, AGENT_COLORS, AGENT_COLOR_TO_THEME_COLOR, getAgentColor
components/agents/new-agent-creation/wizard-steps/ToolsStep.tsx61highToolsStep
commands/review.ts58highultrareview
commands/review/ultrareviewCommand.tsx58highcall
components/agents/new-agent-creation/wizard-steps/ModelStep.tsx52highModelStep
components/messages/UserPlanMessage.tsx42highUserPlanMessage
services/api/ultrareviewQuota.ts39highUltrareviewQuotaResponse, fetchUltrareviewQuota
tools/AgentTool/built-in/generalPurposeAgent.ts35highGENERAL_PURPOSE_AGENT
tools/EnterPlanModeTool/UI.tsx33highrenderToolUseMessage, renderToolResultMessage, renderToolUseRejectedMessage
components/messages/UserToolResultMessage/RejectedPlanMessage.tsx31highRejectedPlanMessage
tools/ExitPlanModeTool/prompt.ts30highEXIT_PLAN_MODE_V2_TOOL_PROMPT
components/agents/types.ts28highAGENT_PATHS, ModeState, AgentValidationResult
components/agents/AgentNavigationFooter.tsx26highAgentNavigationFooter
components/agents/utils.ts19highgetAgentSourceDisplayName
commands/review/ultrareviewEnabled.ts15highisUltrareviewEnabled
tools/AgentTool/constants.ts13highAGENT_TOOL_NAME, LEGACY_AGENT_TOOL_NAME, VERIFICATION_AGENT_TYPE, ONE_SHOT_BUILTIN_AGENT_TYPES
commands/agents/agents.tsx12highcall
commands/plan/index.ts12high
commands/agents/index.ts11high
tools/ExitPlanModeTool/constants.ts3highEXIT_PLAN_MODE_TOOL_NAME, EXIT_PLAN_MODE_V2_TOOL_NAME
tools/EnterPlanModeTool/constants.ts2highENTER_PLAN_MODE_TOOL_NAME
utils/agentId.ts100mediumformatAgentId, parseAgentId, generateRequestId, parseRequestId
cli/handlers/agents.ts71mediumagentsHandler
utils/agentSwarmsEnabled.ts45mediumisAgentSwarmsEnabled
skills/bundled/verify.ts31mediumregisterVerifySkill
utils/standaloneAgent.ts24mediumgetStandaloneAgentName
skills/bundled/verifyContent.ts14mediumSKILL_MD, SKILL_FILES
utils/userAgent.ts11mediumgetClaudeCodeUserAgent