Architecture

Commands

User-facing commands, command handlers, and interactive entry points.

235
Matched files
8
Top dirs
36,525
Lines in slice
282
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
commands/insights.ts3201highdeduplicateSessionBranches, detectMultiClauding, InsightsExport, buildExportData
commands/plugin/ManagePlugins.tsx2215highfilterManagedDisabledPlugins, ManagePlugins
utils/shell/readOnlyCommandValidation.ts1894highFlagArgType, ExternalCommandConfig, GIT_READ_ONLY_COMMANDS, GH_READ_ONLY_COMMANDS
utils/bash/commands.ts1340highsplitCommandWithOperators, filterControlOperators, splitCommand_DEPRECATED, isHelpCommand
commands/plugin/PluginSettings.tsx1072highPluginSettings
utils/plugins/loadPluginCommands.ts947highgetPluginCommands, clearPluginCommandCache, getPluginSkills, clearPluginSkillsCache
utils/processUserInput/processSlashCommand.tsx922highlooksLikeCommand, processSlashCommand, formatSkillLoadingMetadata, processPromptSlashCommand
commands/plugin/ManageMarketplaces.tsx838highManageMarketplaces
commands/plugin/BrowseMarketplace.tsx802highBrowseMarketplace
commands/plugin/DiscoverPlugins.tsx781highDiscoverPlugins
commands.ts755highINTERNAL_ONLY_COMMANDS, builtInCommandNames, meetsAvailabilityRequirement, getCommands
commands/ide/ide.tsx646highcall, formatWorkspaceFolders
commands/install-github-app/install-github-app.tsx587highcall
utils/suggestions/commandSuggestions.ts568highMidInputSlashCommand, findMidInputSlashCommand, getBestCommandMatch, isCommandInput
commands/plugin/UnifiedInstalledCell.tsx565highUnifiedInstalledCell
commands/thinkback/thinkback.tsx554highplayAnimation, call
commands/terminalSetup/terminalSetup.tsx531highgetNativeCSIuTerminalDisplayName, shouldOfferTerminalSetup, setupTerminal, isShiftEnterKeyBindingInstalled
commands/bridge/bridge.tsx509highcall
commands/ultraplan.tsx471highCCR_TERMS_URL, buildUltraplanPrompt, stopUltraplan, launchUltraplan
utils/ShellCommand.ts466highExecResult, ShellCommand, wrapSpawn, createAbortedCommand
commands/copy/copy.tsx371highcollectRecentAssistantTexts, fileExtension, call
commands/plugin/PluginOptionsDialog.tsx357highbuildFinalValues, PluginOptionsDialog
services/plugins/pluginCliCommands.ts345highinstallPlugin, uninstallPlugin, enablePlugin, disablePlugin
commands/context/context-noninteractive.ts326highcollectContextData, call
commands/install-github-app/setupGitHubActions.ts326highsetupGitHubActions
utils/bash/ParsedCommand.ts319highOutputRedirection, IParsedCommand, RegexParsedCommand_DEPRECATED, buildParsedCommandFromRoot
commands/review/reviewRemote.ts317highconfirmOverage, OverageGate, checkOverageGate, launchRemoteReview
commands/model/model.tsx297highcall
commands/compact/compact.ts288highcall
commands/mcp/addCommand.ts281highregisterMcpAddCommand
commands/install-github-app/OAuthFlowStep.tsx276highOAuthFlowStep
commands/mcp/xaaIdpCommand.ts267highregisterMcpXaaIdpCommand
tools/BashTool/bashCommandHelpers.ts266highCommandIdentityCheckers, checkCommandOperatorPermissions
commands/init-verifiers.ts263high
commands/security-review.ts244high
commands/install-github-app/ApiKeyStep.tsx231highApiKeyStep
types/command.ts217highLocalCommandResult, PromptCommand, LocalCommandCall, LocalCommandModule
commands/install-github-app/ChooseRepoStep.tsx211highChooseRepoStep
commands/bridge-kick.ts201high
commands/install-github-app/CheckExistingSecretStep.tsx190highCheckExistingSecretStep
commands/remote-setup/remote-setup.tsx187highcall
commands/remote-setup/api.ts183highRedactedGithubToken, ImportTokenResult, ImportTokenError, importGithubToken
components/messages/UserLocalCommandOutputMessage.tsx167highUserLocalCommandOutputMessage
tools/PowerShellTool/commandSemantics.ts143highCommandSemantic, interpretCommandResult
tools/BashTool/commandSemantics.ts141highCommandSemantic, interpretCommandResult
commands/session/session.tsx140highcall
commands/plan/plan.tsx122highcall
commands/plugin/pluginDetailsHelpers.tsx117highInstallablePlugin, PluginDetailsMenuOption, extractGitHubRepo, buildPluginDetailsMenuOptions
components/PromptInput/PromptInputQueuedCommands.tsx117highPromptInputQueuedCommands
commands/advisor.ts110high
tools/PowerShellTool/destructiveCommandWarning.ts110highgetDestructiveCommandWarning
components/messages/UserCommandMessage.tsx108highUserCommandMessage
commands/install-github-app/ExistingWorkflowStep.tsx103highExistingWorkflowStep
tools/BashTool/destructiveCommandWarning.ts103highgetDestructiveCommandWarning
commands/install-github-app/SuccessStep.tsx96highSuccessStep
commands/review/UltrareviewOverageDialog.tsx96highUltrareviewOverageDialog
commands/install-github-app/InstallAppStep.tsx94highInstallAppStep
commands/memory/memory.tsx90highcall
commands/install-github-app/ErrorStep.tsx85highErrorStep
commands/mcp/mcp.tsx85highcall
commands/sandbox-toggle/sandbox-toggle.tsx83highcall
components/HelpV2/Commands.tsx82highCommands
commands/install-github-app/WarningsStep.tsx73highWarningsStep
commands/rename/generateSessionName.ts68highgenerateSessionName
commands/install-github-app/CreatingStep.tsx65highCreatingStep
commands/context/context.tsx64highcall
commands/review.ts58highultrareview
commands/review/ultrareviewCommand.tsx58highcall
commands/sandbox-toggle/index.ts51high
commands/thinkback-play/thinkback-play.ts44highcall
commands/install-slack-app/install-slack-app.ts31highcall
commands/bridge/index.ts27high
commands/context/index.ts25highcontext, contextNonInteractive
commands/remote-setup/index.ts21high
commands/files/files.ts20highcall
commands/thinkback-play/index.ts18high
commands/model/index.ts17high
commands/session/index.ts17high
commands/compact/index.ts16high
commands/remote-env/index.ts16high
commands/install-github-app/CheckGitHubStep.tsx15highCheckGitHubStep
commands/review/ultrareviewEnabled.ts15highisUltrareviewEnabled
commands/install-github-app/index.ts14high
commands/thinkback/index.ts14high
commands/files/index.ts13high
commands/install-slack-app/index.ts13high
commands/mcp/index.ts13high
commands/agents/agents.tsx12highcall
commands/permissions/index.ts12high
commands/plan/index.ts12high
commands/agents/index.ts11high
commands/memory/index.ts11high
commands/permissions/permissions.tsx10highcall
commands/tasks/tasks.tsx8highcall
commands/remote-env/remote-env.tsx7highcall
commands/backfill-sessions/index.js2high
commands/debug-tool-call/index.js2high
commands/oauth-refresh/index.js2high
commands/summary/index.js2high
commands/install.tsx300mediuminstall
commands/branch/branch.ts297mediumderiveFirstPrompt, call
utils/bash/bashPipeCommand.ts295mediumrearrangePipeCommand
commands/chrome/chrome.tsx285mediumcall
commands/resume/resume.tsx275mediumfilterResumableSessions, call
commands/mobile/mobile.tsx274mediumcall
commands/fast/fast.tsx269mediumFastModePicker, call
commands/init.ts257medium
commands/clear/conversation.ts252mediumclearConversation
commands/btw/btw.tsx243mediumcall
commands/tag/tag.tsx215mediumcall
commands/rate-limit-options/rate-limit-options.tsx210mediumcall
utils/exampleCommands.ts185mediumcountAndSortItems, pickDiverseCoreFiles, getExampleCommandFromCache, refreshExampleCommands
commands/effort/effort.tsx183mediumshowCurrentEffort, executeEffort, call
commands/plugin/usePagination.ts172mediumusePagination
commands/plugin/AddMarketplace.tsx162mediumAddMarketplace
commands/commit-push-pr.ts159medium
commands/voice/voice.ts151mediumcall
commands/clear/caches.ts145mediumclearSessionCaches
utils/processUserInput/processBashCommand.tsx140mediumprocessBashCommand
commands/plugin/PluginOptionsFlow.tsx135mediumfindPluginOptionsTarget, PluginOptionsFlow
commands/brief.ts131medium
commands/add-dir/add-dir.tsx126mediumcall
commands/plugin/PluginErrors.tsx124mediumformatErrorMessage, getErrorGuidance
commands/extra-usage/extra-usage-core.ts119mediumrunExtraUsage
commands/add-dir/validation.ts111mediumAddDirectoryResult, validateDirectoryForWorkspace, addDirHelpMessage
hooks/useCommandKeybindings.tsx108mediumCommandKeybindingHandlers
commands/login/login.tsx104mediumcall, Login
commands/plugin/parseArgs.ts104mediumParsedCommand, parsePluginArgs
commands/plugin/ValidatePlugin.tsx98mediumValidatePlugin
commands/color/color.ts94mediumcall
commands/commit.ts93medium
commands/export/export.tsx91mediumextractFirstPrompt, sanitizeFilename, call
commands/rename/rename.ts88mediumcall
commands/logout/logout.tsx82mediumperformLogout, clearAuthRelatedCaches, call
commands/createMovedToPluginCommand.ts66mediumcreateMovedToPluginCommand
commands/reload-plugins/reload-plugins.ts62mediumcall
utils/slashCommandParsing.ts61mediumParsedSlashCommand, parseSlashCommand
commands/privacy-settings/privacy-settings.tsx58mediumcall
commands/theme/theme.tsx57mediumcall
commands/keybindings/keybindings.ts54mediumcall
commands/pr_comments/index.ts51medium
commands/release-notes/release-notes.ts51mediumcall
commands/vim/vim.ts39mediumcall
commands/upgrade/upgrade.tsx38mediumcall
commands/exit/exit.tsx33mediumcall
commands/extra-usage/index.ts32mediumextraUsage, extraUsageNonInteractive
commands/plugin/PluginTrustWarning.tsx32mediumPluginTrustWarning
commands/desktop/index.ts27medium
commands/fast/index.ts27medium
commands/feedback/index.ts27medium
commands/cost/cost.ts25mediumcall
commands/feedback/feedback.tsx25mediumrenderFeedbackComponent, call
commands/cost/index.ts24medium
commands/passes/passes.tsx24mediumcall
commands/statusline.tsx24medium
commands/terminalSetup/index.ts24medium
commands/passes/index.ts23medium
commands/version.ts23medium
utils/commandLifecycle.ts22mediumsetCommandLifecycleListener, notifyCommandLifecycle
commands/voice/index.ts21medium
commands/clear/index.ts20low
commands/rate-limit-options/index.ts20low
commands/reload-plugins/index.ts19low
commands/heapdump/heapdump.ts18mediumcall
commands/color/index.ts17low
commands/extra-usage/extra-usage-noninteractive.ts17mediumcall
commands/extra-usage/extra-usage.tsx17mediumcall
commands/stickers/stickers.ts17mediumcall
commands/upgrade/index.ts17low
commands/copy/index.ts16low
hooks/useCommandQueue.ts16mediumuseCommandQueue
hooks/useMergedCommands.ts16mediumuseMergedCommands
utils/immediateCommand.ts16mediumshouldInferenceConfigCommandBeImmediate
commands/branch/index.ts15low
commands/login/index.ts15low
commands/privacy-settings/index.ts15low
commands/btw/index.ts14low
commands/chrome/index.ts14low
commands/effort/index.ts14low
commands/keybindings/index.ts14low