Architecture

UI flow

Terminal or UI rendering, components, dialogs, prompts, and user interaction surfaces.

508
Matched files
8
Top dirs
110,859
Lines in slice
1115
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
screens/REPL.tsx5006highProps, Screen, REPL
components/PromptInput/PromptInput.tsx2339high
components/Settings/Config.tsx1822highConfig
ink/ink.tsx1723highOptions, Ink, drainStdin
components/LogSelector.tsx1575highLogSelectorProps, LogSelector
ink/screen.ts1487highCharPool, HyperlinkPool, StylePool, enum
ink/render-node-to-output.ts1463highresetLayoutShifted, didLayoutShift, ScrollHint, resetScrollHint
components/Stats.tsx1228highStats
components/permissions/rules/PermissionRuleList.tsx1179highPermissionRuleList
components/mcp/ElicitationDialog.tsx1169highElicitationDialog
components/VirtualMessageList.tsx1082highStickyPrompt, JumpHandle, VirtualMessageList
components/ScrollKeybindingHandler.tsx1012highshouldClearSelectionOnKey, selectionFocusMoveForKey, WheelAccelState, computeWheelStep
ink/selection.ts918highSelectionState, createSelectionState, startSelection, updateSelection
components/tasks/RemoteSessionDetailDialog.tsx904highformatToolUseSummary, RemoteSessionDetailDialog
components/Messages.tsx834highfilterForBriefTool, dropTextInBriefTurns, SliceAnchor, computeSliceStart
components/MessageSelector.tsx831highMessageSelector, selectableUserMessagesFilter, messagesAfterAreOnlySynthetic
components/messages/SystemTextMessage.tsx827highSystemTextMessage
ink/parse-keypress.ts802highDECRPM_STATUS, TerminalResponse, KeyParseState, INITIAL_STATE
components/agents/AgentsMenu.tsx800highAgentsMenu
ink/output.ts798highOperation, Clip, Output
ink/log-update.ts774highLogUpdate
ink/styles.ts772highRGBColor, HexColor, Ansi256Color, AnsiColor
components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.tsx768highbuildPermissionUpdates, autoNameSessionFromPlan, ExitPlanModePermissionRequest, buildPlanApprovalOptions
components/teams/TeamsDialog.tsx715highTeamsDialog
components/CustomSelect/select.tsx690highOptionWithDescription, SelectProps, Select
ink/components/App.tsx658highApp, handleMouseEvent
components/CustomSelect/use-select-navigation.ts654highUseSelectNavigationProps, SelectNavigation, useSelectNavigation
components/tasks/BackgroundTasksDialog.tsx652highBackgroundTasksDialog
components/mcp/MCPRemoteServerMenu.tsx649highMCPRemoteServerMenu
components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.tsx645highAskUserQuestionPermissionRequest
components/FullscreenLayout.tsx637highScrollChromeContext, useUnseenDivider, countUnseenAssistantTurns, UnseenDivider
components/ConsoleOAuthFlow.tsx631highConsoleOAuthFlow
components/Message.tsx627highProps, hasThinkingContent, areMessagePropsEqual, Message
components/Feedback.tsx592highredactSensitiveInfo, Feedback, createGitHubIssueUrl
components/hooks/HooksConfigMenu.tsx578highHooksConfigMenu
screens/Doctor.tsx575highDoctor
components/Spinner.tsx562highSpinnerWithVerb, BriefIdleStatus, Spinner
components/agents/ToolSelector.tsx562highToolSelector
utils/deepLink/terminalLauncher.ts558highTerminalInfo, detectTerminal, launchInTerminal
commands/thinkback/thinkback.tsx554highplayAnimation, call
components/LogoV2/LogoV2.tsx543highLogoV2
components/messages/AttachmentMessage.tsx536highAttachmentMessage
components/PromptInput/PromptInputFooterLeftSide.tsx517highPromptInputFooterLeftSide
ink/reconciler.ts513highgetOwnerChain, isDebugRepaintsEnabled, dispatcher, recordYogaMs
components/mcp/MCPListPanel.tsx504highMCPListPanel
ink/termio/osc.ts494highOSC_PREFIX, ST, osc, wrapForMultiplexer
components/ContextVisualization.tsx489highContextVisualization
components/CustomSelect/select-input-option.tsx488highSelectInputOption
components/StructuredDiff/Fallback.tsx487highLineObject, StructuredDiffFallback, transformLinesToObjects, processAdjacentLines
ink/dom.ts485highTextName, ElementNames, NodeNames, DOMElement
components/messages/CollapsedReadSearchContent.tsx484highCollapsedReadSearchContent
components/permissions/BashPermissionRequest/BashPermissionRequest.tsx482highBashPermissionRequest
components/permissions/AskUserQuestionPermissionRequest/QuestionView.tsx465highQuestionView
components/grove/Grove.tsx463highGroveDecision, GroveDialog, PrivacySettingsDialog
components/permissions/PermissionDecisionDebugInfo.tsx460highPermissionDecisionDebugInfo
components/messageActions.tsx450highNavigableType, NavigableOf, NavigableMessage, isNavigableMessage
components/ModelPicker.tsx448highProps, ModelPicker
components/permissions/ComputerUseApproval/ComputerUseApproval.tsx441highComputerUseApproval
components/agents/AgentsList.tsx440highAgentsList
components/memory/MemoryFileSelector.tsx438highMemoryFileSelector
components/LogoV2/WelcomeV2.tsx433highWelcomeV2
components/tasks/BackgroundTaskStatus.tsx429highBackgroundTaskStatus
components/CustomSelect/use-multi-select-state.ts415highUseMultiSelectStateProps, MultiSelectState, useMultiSelectState
components/tasks/ShellDetailDialog.tsx404highShellDetailDialog
components/BridgeDialog.tsx401highBridgeDialog
screens/ResumeConversation.tsx399highResumeConversation
components/mcp/MCPSettings.tsx398highMCPSettings
components/ui/TreeSelect.tsx397highTreeNode, TreeSelectProps, TreeSelect
ink/termio/parser.ts395highParser
components/MessageRow.tsx383highProps, hasContentAfterIndex, isMessageStreaming, allToolsResolved
components/diff/DiffDialog.tsx383highDiffDialog
components/TaskListV2.tsx378highTaskListV2
components/agents/new-agent-creation/wizard-steps/ConfirmStep.tsx378highConfirmStep
components/Settings/Usage.tsx377highUsage
components/permissions/SkillPermissionRequest/SkillPermissionRequest.tsx369highSkillPermissionRequest
components/messages/AssistantToolUseMessage.tsx368highAssistantToolUseMessage
components/PromptInput/PromptInputHelpMenu.tsx358highPromptInputHelpMenu
utils/deepLink/registerProtocol.ts349highMACOS_BUNDLE_ID, registerProtocolHandler, isProtocolHandlerCurrent, ensureDeepLinkProtocolRegistered
components/tasks/BackgroundTask.tsx345highBackgroundTask
components/GlobalSearchDialog.tsx343highGlobalSearchDialog, parseRipgrepLine
components/RemoteEnvironmentDialog.tsx340highRemoteEnvironmentDialog
components/design-system/Tabs.tsx340highTabs, Tab, useTabsWidth, useTabHeaderFocus
components/permissions/rules/AddWorkspaceDirectory.tsx340highAddWorkspaceDirectory
components/permissions/PermissionPrompt.tsx336highFeedbackType, PermissionPromptOption, ToolAnalyticsContext, PermissionPromptProps
components/ThemePicker.tsx333highThemePickerProps, ThemePicker
components/permissions/FallbackPermissionRequest.tsx333highFallbackPermissionRequest
components/PromptInput/Notifications.tsx332highFOOTER_TEMPORARY_STATUS_TIMEOUT, Notifications
components/Spinner/GlimmerMessage.tsx328highGlimmerMessage
components/permissions/AskUserQuestionPermissionRequest/PreviewQuestionView.tsx328highPreviewQuestionView
components/StatusLine.tsx324highstatusLineShouldDisplay, getLastAssistantMessageId, StatusLine
components/MarkdownTable.tsx322highMarkdownTable
ink/termio/csi.ts320highCSI_PREFIX, CSI_RANGE, isCSIParam, isCSIIntermediate
ink/termio/tokenize.ts320highToken, Tokenizer, createTokenizer
components/design-system/FuzzyPicker.tsx312highFuzzyPicker
ink/layout/yoga.ts309highYogaLayoutNode, createYogaLayoutNode
ink/termio/sgr.ts309highapplySGR
components/sandbox/SandboxSettings.tsx296highSandboxSettings
components/diff/DiffFileList.tsx292highDiffFileList
components/CoordinatorAgentStatus.tsx273highgetVisibleAgentTasks, CoordinatorTaskPanel, useCoordinatorTaskCount
components/agents/agentFileUtils.ts273highformatAgentAsMarkdown, getNewAgentFilePath, getActualAgentFilePath, getNewRelativeAgentFilePath
components/permissions/PermissionExplanation.tsx272highusePermissionExplainerUI, PermissionExplainerContent
components/ResumeTask.tsx268highResumeTask
components/permissions/WebFetchPermissionRequest/WebFetchPermissionRequest.tsx258highWebFetchPermissionRequest
ink/terminal.ts249highProgress, isProgressReportingAvailable, isSynchronizedOutputSupported, setXtversionName
components/TrustDialog/utils.ts246highgetHooksSources, getBashPermissionSources, formatListWithAnd, getOtelHeadersHelperSources
components/tasks/RemoteSessionProgress.tsx243highformatReviewStageCounts, RemoteSessionProgress
ink/termio/types.ts237highNamedColor, Color, UnderlineStyle, TextStyle
utils/errorLogSink.ts236highgetErrorsPath, getMCPLogsPath, _flushLogWritersForTesting, _clearLogWritersForTesting
components/permissions/NotebookEditPermissionRequest/NotebookEditToolDiff.tsx235highNotebookEditToolDiff
components/permissions/PowerShellPermissionRequest/PowerShellPermissionRequest.tsx235highPowerShellPermissionRequest
ink/colorize.ts232highCHALK_BOOSTED_FOR_XTERMJS, CHALK_CLAMPED_FOR_TMUX, ColorType, colorize
components/permissions/SedEditPermissionRequest/SedEditPermissionRequest.tsx230highSedEditPermissionRequest
components/permissions/AskUserQuestionPermissionRequest/PreviewBox.tsx229highPreviewBox
components/tasks/AsyncAgentDetailDialog.tsx229highAsyncAgentDetailDialog
components/messages/PlanApprovalMessage.tsx222highPlanApprovalRequestDisplay, PlanApprovalResponseDisplay, tryRenderPlanApprovalMessage, formatTeammateMessageContent
components/agents/AgentDetail.tsx220highAgentDetail
components/permissions/PermissionRequest.tsx217highPermissionRequestProps, ToolUseConfirm, PermissionRequest
components/FeedbackSurvey/useMemorySurvey.tsx213highuseMemorySurvey
components/mcp/McpParsingWarnings.tsx213highMcpParsingWarnings
components/permissions/FilePermissionDialog/useFilePermissionDialog.ts213highToolInput, UseFilePermissionDialogProps, UseFilePermissionDialogResult, useFilePermissionDialog
ink/terminal-querier.ts213highTerminalQuery, decrqm, da1, da2
components/mcp/MCPToolDetailView.tsx212highMCPToolDetailView
components/permissions/hooks.ts210highUnaryEvent, usePermissionRequestLogging
components/permissions/rules/RecentDenialsTab.tsx207highRecentDenialsTab
components/FeedbackSurvey/usePostCompactSurvey.tsx206highusePostCompactSurvey
components/permissions/FilePermissionDialog/FilePermissionDialog.tsx204highFilePermissionDialogProps, FilePermissionDialog
components/MCPServerDesktopImportDialog.tsx203highMCPServerDesktopImportDialog
components/hooks/ViewHookMode.tsx199highViewHookMode
components/agents/generateAgent.ts198highgenerateAgent
components/SessionPreview.tsx194highSessionPreview
components/sandbox/SandboxOverridesTab.tsx193highSandboxOverridesTab
components/permissions/FilePermissionDialog/usePermissionHandler.ts186highPermissionHandlerParams, PermissionHandlerOptions, PERMISSION_HANDLERS
ink/root.ts185highRenderOptions, Instance, Root, renderSync
components/mcp/MCPAgentServerMenu.tsx183highMCPAgentServerMenu
components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.tsx182highFileEditPermissionRequest
components/FileEditToolDiff.tsx181highFileEditToolDiff
components/permissions/AskUserQuestionPermissionRequest/use-multiple-choice-state.ts180highAnswerValue, QuestionState, MultipleChoiceState, useMultipleChoiceState
components/permissions/rules/AddPermissionRules.tsx180highoptionForPermissionSaveDestination, AddPermissionRules
components/agents/AgentEditor.tsx178highAgentEditor
components/permissions/AskUserQuestionPermissionRequest/QuestionNavigationBar.tsx178highQuestionNavigationBar
components/mcp/MCPStdioServerMenu.tsx177highMCPStdioServerMenu
components/permissions/FilePermissionDialog/permissionOptions.tsx177highisInClaudeFolder, isInGlobalClaudeFolder, PermissionOption, PermissionOptionWithLabel
components/FileEditToolUseRejectedMessage.tsx170highFileEditToolUseRejectedMessage
components/mcp/MCPReconnect.tsx167highMCPReconnect
components/messages/UserLocalCommandOutputMessage.tsx167highUserLocalCommandOutputMessage
components/LogoV2/OverageCreditUpsell.tsx166highisEligibleForOverageCreditGrant, shouldShowOverageCreditUpsell, maybeRefreshOverageCreditCache, useShowOverageCreditUpsell
components/permissions/NotebookEditPermissionRequest/NotebookEditPermissionRequest.tsx166highNotebookEditPermissionRequest
components/permissions/shellPermissionHelpers.tsx164highgenerateShellSuggestionsLabel
components/permissions/SandboxPermissionRequest.tsx163highSandboxPermissionRequestProps, SandboxPermissionRequest
utils/thinking.ts163highThinkingConfig, isUltrathinkEnabled, hasUltrathinkKeyword, findThinkingTriggerPositions
components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.tsx161highFileWritePermissionRequest
components/messages/AdvisorMessage.tsx158highAdvisorMessage
ink/layout/node.ts153highLayoutEdge, LayoutGutter, LayoutDisplay, LayoutFlexDirection
components/permissions/rules/WorkspaceTab.tsx150highWorkspaceTab
components/shell/ShellProgressMessage.tsx150highShellProgressMessage
components/permissions/useShellPermissionFeedback.ts149highuseShellPermissionFeedback
components/permissions/BashPermissionRequest/bashToolUseOptions.tsx147highBashToolUseOption, bashToolUseOptions
components/ManagedSettingsSecurityDialog/utils.ts145highDangerousSettings, extractDangerousSettings, hasDangerousSettings, hasDangerousSettingsChanged
components/hooks/SelectMatcherMode.tsx144highSelectMatcherMode
components/permissions/AskUserQuestionPermissionRequest/SubmitQuestionsView.tsx144highSubmitQuestionsView
components/agents/new-agent-creation/wizard-steps/GenerateStep.tsx143highGenerateStep
components/AutoModeOptInDialog.tsx142highAUTO_MODE_DESCRIPTION, AutoModeOptInDialog
components/mcp/MCPToolListView.tsx141highMCPToolListView
components/messages/SystemAPIErrorMessage.tsx141highSystemAPIErrorMessage
components/messages/teamMemCollapsed.tsx140highcheckHasTeamMemOps, TeamMemCountParts
components/permissions/rules/PermissionRuleInput.tsx138highPermissionRuleInputProps, PermissionRuleInput
components/AgentProgressLine.tsx136highAgentProgressLine
components/MCPServerMultiselectDialog.tsx133highMCPServerMultiselectDialog
components/WorkflowMultiselectDialog.tsx128highWorkflowMultiselectDialog
components/agents/new-agent-creation/wizard-steps/PromptStep.tsx128highPromptStep
components/hooks/SelectEventMode.tsx127highSelectEventMode
ink/frame.ts125highFrame, emptyFrame, FlickerReason, FrameEvent
components/FileEditToolUpdatedMessage.tsx124highFileEditToolUpdatedMessage
components/ApproveApiKey.tsx123highApproveApiKey
components/agents/new-agent-creation/wizard-steps/DescriptionStep.tsx123highDescriptionStep
components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx122highEnterPlanModePermissionRequest
components/permissions/PermissionRuleExplanation.tsx121highPermissionRuleExplanationProps, PermissionRuleExplanation
components/sandbox/SandboxDependenciesTab.tsx120highSandboxDependenciesTab
components/CompactSummary.tsx118highCompactSummary
components/HistorySearchDialog.tsx118highHistorySearchDialog