Remote and bridge
Remote execution, bridge transport, cross-process messaging, and session handoff.
68
Matched files
12
Top dirs
22,330
Lines in slice
270
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 |
|---|---|---|---|
| bridge/bridgeMain.ts | 3000 | high | BackoffConfig, runBridgeLoop, isConnectionError, isServerError |
| bridge/replBridge.ts | 2407 | high | ReplBridgeHandle, BridgeState, BridgeCoreParams, BridgeCoreHandle |
| bridge/remoteBridgeCore.ts | 1009 | high | EnvLessBridgeParams, initEnvLessBridgeCore, fetchRemoteCredentials, createCodeSession |
| components/tasks/RemoteSessionDetailDialog.tsx | 904 | high | formatToolUseSummary, RemoteSessionDetailDialog |
| tasks/RemoteAgentTask/RemoteAgentTask.tsx | 856 | high | RemoteAgentTaskState, RemoteTaskType, AutofixPrRemoteTaskMetadata, RemoteTaskMetadata |
| hooks/useReplBridge.tsx | 723 | high | BRIDGE_FAILURE_DISMISS_MS, useReplBridge |
| components/mcp/MCPRemoteServerMenu.tsx | 649 | high | MCPRemoteServerMenu |
| services/remoteManagedSettings/index.ts | 639 | high | initializeRemoteManagedSettingsLoadingPromise, computeChecksumFromSettings, isEligibleForRemoteManagedSettings, waitForRemoteManagedSettingsToLoad |
| hooks/useRemoteSession.ts | 606 | high | useRemoteSession |
| bridge/initReplBridge.ts | 570 | high | InitBridgeOptions, initReplBridge |
| bridge/sessionRunner.ts | 551 | high | safeFilenameId, PermissionRequest, createSessionSpawner, extractActivities |
| bridge/bridgeApi.ts | 540 | high | validateBridgeId, BridgeFatalError, createBridgeApiClient, isExpiredErrorType |
| bridge/bridgeUI.ts | 531 | high | createBridgeLogger |
| commands/bridge/bridge.tsx | 509 | high | call |
| bridge/bridgeMessaging.ts | 462 | high | isSDKMessage, isSDKControlResponse, isSDKControlRequest, isEligibleBridgeMessage |
| skills/bundled/scheduleRemoteAgents.ts | 448 | high | registerScheduleRemoteAgentsSkill |
| remote/SessionsWebSocket.ts | 405 | high | SessionsWebSocketCallbacks, SessionsWebSocket |
| components/BridgeDialog.tsx | 401 | high | BridgeDialog |
| bridge/createSession.ts | 385 | high | createBridgeSession, getBridgeSession, archiveBridgeSession, updateBridgeSessionTitle |
| bridge/replBridgeTransport.ts | 371 | high | ReplBridgeTransport, createV1ReplTransport, createV2ReplTransport |
| remote/RemoteSessionManager.ts | 344 | high | RemotePermissionResponse, RemoteSessionConfig, RemoteSessionCallbacks, RemoteSessionManager |
| components/RemoteEnvironmentDialog.tsx | 340 | high | RemoteEnvironmentDialog |
| commands/review/reviewRemote.ts | 317 | high | confirmOverage, OverageGate, checkOverageGate, launchRemoteReview |
| remote/sdkMessageAdapter.ts | 303 | high | ConvertedMessage, convertSDKMessage, isSessionEndMessage, isSuccessResult |
| bridge/types.ts | 263 | high | DEFAULT_SESSION_TIMEOUT_MS, BRIDGE_LOGIN_INSTRUCTION, BRIDGE_LOGIN_ERROR, REMOTE_CONTROL_DISCONNECTED_MSG |
| components/tasks/RemoteSessionProgress.tsx | 243 | high | formatReviewStageCounts, RemoteSessionProgress |
| utils/background/remote/preconditions.ts | 236 | high | checkNeedsClaudeAiLogin, checkIsGitClean, checkHasRemoteEnvironment, checkIsInGitRepo |
| bridge/bridgePointer.ts | 211 | high | BRIDGE_POINTER_TTL_MS, BridgePointer, getBridgePointerPath, writeBridgePointer |
| bridge/bridgeEnabled.ts | 203 | high | isBridgeEnabled, isBridgeEnabledBlocking, getBridgeDisabledReason, isEnvLessBridgeEnabled |
| commands/bridge-kick.ts | 201 | high | — |
| commands/remote-setup/remote-setup.tsx | 187 | high | call |
| commands/remote-setup/api.ts | 183 | high | RedactedGithubToken, ImportTokenResult, ImportTokenError, importGithubToken |
| bridge/inboundAttachments.ts | 176 | high | InboundAttachment, extractInboundAttachments, resolveInboundAttachments, prependPathRefs |
| bridge/codeSessionApi.ts | 169 | high | createCodeSession, RemoteCredentials, fetchRemoteCredentials |
| bridge/envLessBridgeConfig.ts | 166 | high | EnvLessBridgeConfig, DEFAULT_ENV_LESS_BRIDGE_CONFIG, getEnvLessBridgeConfig, checkEnvLessBridgeMinVersion |
| bridge/bridgeStatusUtil.ts | 164 | high | StatusState, TOOL_DISPLAY_EXPIRY_MS, SHIMMER_INTERVAL_MS, timestamp |
| tools/RemoteTriggerTool/RemoteTriggerTool.ts | 162 | high | Input, Output, RemoteTriggerTool |
| bridge/debugUtils.ts | 142 | high | redactSecrets, debugTruncate, debugBody, describeAxiosError |
| bridge/bridgeDebug.ts | 136 | high | BridgeDebugHandle, registerBridgeDebugHandle, clearBridgeDebugHandle, getBridgeDebugHandle |
| bridge/workSecret.ts | 128 | high | decodeWorkSecret, buildSdkUrl, sameSessionId, buildCCRv2SdkUrl |
| services/remoteManagedSettings/syncCache.ts | 113 | high | resetSyncCache, isRemoteManagedSettingsEligible |
| utils/background/remote/remoteSession.ts | 99 | high | BackgroundRemoteSession, BackgroundRemoteSessionPrecondition, checkBackgroundRemoteSessionEligibility |
| services/remoteManagedSettings/syncCacheState.ts | 97 | high | setSessionCache, resetSyncCache, setEligibility, getSettingsPath |
| remote/remotePermissionBridge.ts | 79 | high | createSyntheticAssistantMessage, createToolStub |
| components/RemoteCallout.tsx | 76 | high | RemoteCallout, shouldShowRemoteCallout |
| services/remoteManagedSettings/securityCheck.tsx | 74 | high | SecurityCheckResult, checkManagedSettingsSecurity, handleSecurityCheckResult |
| bridge/sessionIdCompat.ts | 58 | high | setCseShimGate, toCompatSessionId, toInfraSessionId |
| utils/swarm/leaderPermissionBridge.ts | 55 | high | SetToolUseConfirmQueueFn, SetToolPermissionContextFn, registerLeaderToolUseConfirmQueue, getLeaderToolUseConfirmQueue |
| bridge/bridgePermissionCallbacks.ts | 44 | high | isBridgePermissionResponse |
| services/remoteManagedSettings/types.ts | 32 | high | RemoteManagedSettingsResponseSchema, RemoteManagedSettingsResponse, RemoteManagedSettingsFetchResult |
| commands/bridge/index.ts | 27 | high | — |
| commands/remote-setup/index.ts | 21 | high | — |
| tools/RemoteTriggerTool/UI.tsx | 17 | high | renderToolUseMessage, renderToolResultMessage |
| commands/remote-env/index.ts | 16 | high | — |
| tools/RemoteTriggerTool/prompt.ts | 16 | high | REMOTE_TRIGGER_TOOL_NAME, DESCRIPTION, PROMPT |
| commands/remote-env/remote-env.tsx | 7 | high | call |
| bridge/jwtUtils.ts | 257 | medium | decodeJwtPayload, decodeJwtExpiry, createTokenRefreshScheduler |
| cli/remoteIO.ts | 256 | medium | RemoteIO |
| bridge/trustedDevice.ts | 211 | medium | getTrustedDeviceToken, clearTrustedDeviceTokenCache, clearTrustedDeviceToken, enrollTrustedDevice |
| bridge/pollConfig.ts | 111 | medium | getPollIntervalConfig |
| bridge/pollConfigDefaults.ts | 83 | medium | PollIntervalConfig, DEFAULT_POLL_CONFIG |
| bridge/inboundMessages.ts | 81 | medium | extractInboundMessageFields, normalizeImageBlocks |
| bridge/flushGate.ts | 72 | medium | FlushGate |
| bridge/capacityWake.ts | 57 | medium | CapacitySignal, CapacityWake, createCapacityWake |
| bridge/bridgeConfig.ts | 49 | medium | getBridgeTokenOverride, getBridgeBaseUrlOverride, getBridgeAccessToken, getBridgeBaseUrl |
| bridge/replBridgeHandle.ts | 37 | medium | setReplBridgeHandle, getReplBridgeHandle, getSelfBridgeCompatId |
| migrations/migrateReplBridgeEnabledToRemoteControlAtStartup.ts | 23 | medium | migrateReplBridgeEnabledToRemoteControlAtStartup |
| hooks/useMailboxBridge.ts | 22 | medium | useMailboxBridge |