Modes
Behavior modes, effort settings, and execution shaping.
63
Matched files
9
Top dirs
9,326
Lines in slice
240
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 |
|---|---|---|---|
| components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.tsx | 768 | high | buildPermissionUpdates, autoNameSessionFromPlan, ExitPlanModePermissionRequest, buildPlanApprovalOptions |
| utils/model/model.ts | 619 | high | ModelShortName, ModelName, ModelSetting, getSmallFastModel |
| utils/model/modelOptions.ts | 541 | high | ModelOption, getDefaultOptionForUser, getSonnet46_1MOption, getOpus46_1MOption |
| utils/fastMode.ts | 533 | high | isFastModeEnabled, isFastModeAvailable, getFastModeUnavailableReason, FAST_MODE_MODEL_DISPLAY |
| tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts | 494 | high | AllowedPrompt, _sdkInputSchema, outputSchema, Output |
| components/ModelPicker.tsx | 448 | high | Props, ModelPicker |
| tools/PowerShellTool/modeValidation.ts | 405 | high | isSymlinkCreatingCommand, checkPermissionMode |
| coordinator/coordinatorMode.ts | 370 | high | isCoordinatorMode, matchSessionMode, getCoordinatorUserContext, getCoordinatorSystemPrompt |
| commands/model/model.tsx | 297 | high | call |
| utils/model/bedrock.ts | 266 | high | getBedrockInferenceProfiles, findFirstMatch, createBedrockRuntimeClient, getInferenceProfileBackingModel |
| utils/modelCost.ts | 232 | high | ModelCosts, COST_TIER_3_15, COST_TIER_15_75, COST_TIER_5_25 |
| components/hooks/ViewHookMode.tsx | 199 | high | ViewHookMode |
| tools/EnterPlanModeTool/prompt.ts | 171 | high | getEnterPlanModeToolPrompt |
| utils/model/agent.ts | 158 | high | AGENT_MODEL_OPTIONS, AgentModelAlias, AgentModelOption, getDefaultSubagentModel |
| components/hooks/SelectMatcherMode.tsx | 144 | high | SelectMatcherMode |
| components/AutoModeOptInDialog.tsx | 142 | high | AUTO_MODE_DESCRIPTION, AutoModeOptInDialog |
| utils/permissions/PermissionMode.ts | 142 | high | permissionModeSchema, externalPermissionModeSchema, isExternalPermissionMode, toExternalPermissionMode |
| components/hooks/SelectEventMode.tsx | 127 | high | SelectEventMode |
| tools/EnterPlanModeTool/EnterPlanModeTool.ts | 127 | high | Output, EnterPlanModeTool |
| components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx | 122 | high | EnterPlanModePermissionRequest |
| utils/model/configs.ts | 119 | high | ModelConfig, CLAUDE_3_7_SONNET_CONFIG, CLAUDE_3_5_V2_SONNET_CONFIG, CLAUDE_3_5_HAIKU_CONFIG |
| tools/BashTool/modeValidation.ts | 116 | high | checkPermissionMode, getAutoAllowedCommands |
| components/hooks/SelectHookMode.tsx | 112 | high | SelectHookMode |
| utils/permissions/getNextPermissionMode.ts | 102 | high | getNextPermissionMode, cyclePermissionMode |
| utils/planModeV2.ts | 96 | high | getPlanModeV2AgentCount, getPlanModeV2ExploreAgentCount, isPlanModeInterviewPhaseEnabled, PewterLedgerVariant |
| components/PromptInput/PromptInputModeIndicator.tsx | 93 | high | PromptInputModeIndicator |
| utils/swarm/backends/teammateModeSnapshot.ts | 88 | high | TeammateMode, setCliTeammateModeOverride, getCliTeammateModeOverride, clearCliTeammateModeOverride |
| components/BypassPermissionsModeDialog.tsx | 87 | high | BypassPermissionsModeDialog |
| tools/ExitPlanModeTool/UI.tsx | 82 | high | renderToolUseMessage, renderToolResultMessage, renderToolUseRejectedMessage |
| components/LogoV2/VoiceModeNotice.tsx | 68 | high | VoiceModeNotice |
| components/agents/ModelSelector.tsx | 68 | high | ModelSelector |
| utils/model/antModels.ts | 65 | high | AntModel, AntModelSwitchCalloutConfig, AntModelOverrideConfig, getAntModelOverrideConfig |
| components/BashModeProgress.tsx | 56 | high | BashModeProgress |
| components/agents/new-agent-creation/wizard-steps/ModelStep.tsx | 52 | high | ModelStep |
| utils/model/contextWindowUpgradeCheck.ts | 48 | high | getUpgradeMessage |
| components/MessageModel.tsx | 43 | high | MessageModel |
| utils/permissions/autoModeState.ts | 40 | high | setAutoModeActive, isAutoModeActive, setAutoModeFlagCli, getAutoModeFlagCli |
| components/PromptInput/inputModes.ts | 34 | high | prependModeCharacterToInput, getModeFromInput, getValueFromInput, isInputModeCharacter |
| tools/EnterPlanModeTool/UI.tsx | 33 | high | renderToolUseMessage, renderToolResultMessage, renderToolUseRejectedMessage |
| tools/ExitPlanModeTool/prompt.ts | 30 | high | EXIT_PLAN_MODE_V2_TOOL_PROMPT |
| utils/model/aliases.ts | 26 | high | MODEL_ALIASES, ModelAlias, isModelAlias, MODEL_FAMILY_ALIASES |
| commands/model/index.ts | 17 | 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 |
| cli/handlers/autoMode.ts | 171 | medium | autoModeDefaultsHandler, autoModeConfigHandler, autoModeCritiqueHandler |
| utils/model/modelAllowlist.ts | 171 | medium | isModelAllowed |
| utils/model/modelStrings.ts | 167 | medium | ModelStrings, resolveOverriddenModel, getModelStrings, ensureModelStringsInitialized |
| hooks/notifs/useFastModeNotification.tsx | 162 | medium | useFastModeNotification |
| utils/model/validateModel.ts | 160 | medium | validateModel |
| utils/model/modelCapabilities.ts | 119 | medium | ModelCapability, getModelCapability, refreshModelCapabilities |
| utils/model/deprecation.ts | 102 | medium | getModelDeprecationWarning |
| utils/model/check1mAccess.ts | 73 | medium | checkOpus1mAccess, checkSonnet1mAccess |
| hooks/notifs/useAutoModeUnavailableNotification.ts | 57 | medium | useAutoModeUnavailableNotification |
| voice/voiceModeEnabled.ts | 55 | medium | isVoiceGrowthBookEnabled, hasVoiceAuth, isVoiceModeEnabled |
| hooks/notifs/useModelMigrationNotifications.tsx | 52 | medium | useModelMigrationNotifications |
| migrations/resetAutoModeOptInForDefaultOffer.ts | 52 | medium | resetAutoModeOptInForDefaultOffer |
| utils/model/modelSupportOverrides.ts | 51 | medium | ModelCapabilityOverride, get3PModelCapabilityOverride |
| utils/model/providers.ts | 41 | medium | APIProvider, getAPIProvider, getAPIProviderForStatsig, isFirstPartyAnthropicBaseUrl |
| hooks/useMainLoopModel.ts | 35 | medium | useMainLoopModel |
| utils/autoModeDenials.ts | 27 | medium | AutoModeDenial, recordAutoModeDenial, getAutoModeDenials |
| utils/bundledMode.ts | 23 | medium | isRunningWithBun, isInBundledMode |
| utils/worktreeModeEnabled.ts | 12 | medium | isWorktreeModeEnabled |
| utils/swarm/teammateModel.ts | 11 | medium | getHardcodedTeammateModelFallback |