Home / Subdomain/ StateBootstrap — claude-code Architecture

StateBootstrap — claude-code Architecture

Initializes global session and directory state for the CLI process.

Entity Profile

Relationship Graph

Functions

  • addInvokedSkill()
  • addSessionCronTask()
  • addSlowOperation()
  • addToInMemoryErrorLog()
  • addToToolDuration()
  • addToTotalCostState()
  • addToTotalDurationState()
  • addToTotalLinesChanged()
  • addToTurnClassifierDuration()
  • addToTurnHookDuration()
  • clearBetaHeaderLatches()
  • clearInvokedSkills()
  • clearInvokedSkillsForAgent()
  • clearRegisteredHooks()
  • clearRegisteredPluginHooks()
  • clearSystemPromptSectionState()
  • consumePostCompaction()
  • flushInteractionTime()
  • flushInteractionTime_inner()
  • getActiveTimeCounter()
  • getAdditionalDirectoriesForClaudeMd()
  • getAfkModeHeaderLatched()
  • getAgentColorMap()
  • getAllowedChannels()
  • getAllowedSettingSources()
  • getApiKeyFromFd()
  • getBudgetContinuationCount()
  • getCacheEditingHeaderLatched()
  • getCachedClaudeMdContent()
  • getChromeFlagOverride()
  • getClientType()
  • getCodeEditToolDecisionCounter()
  • getCommitCounter()
  • getCostCounter()
  • getCurrentTurnTokenBudget()
  • getCwdState()
  • getDirectConnectServerUrl()
  • getEventLogger()
  • getFastModeHeaderLatched()
  • getFlagSettingsInline()
  • getFlagSettingsPath()
  • getHasDevChannels()
  • getInitJsonSchema()
  • getInitialMainLoopModel()
  • getInitialState()
  • getInlinePlugins()
  • getInvokedSkills()
  • getInvokedSkillsForAgent()
  • getIsInteractive()
  • getIsNonInteractiveSession()
  • getIsRemoteMode()
  • getIsScrollDraining()
  • getKairosActive()
  • getLastAPIRequest()
  • getLastAPIRequestMessages()
  • getLastApiCompletionTimestamp()
  • getLastClassifierRequests()
  • getLastEmittedDate()
  • getLastInteractionTime()
  • getLastMainRequestId()
  • getLocCounter()
  • getLoggerProvider()
  • getMainLoopModelOverride()
  • getMainThreadAgentType()
  • getMeter()
  • getMeterProvider()
  • getModelStrings()
  • getModelUsage()
  • getOauthTokenFromFd()
  • getOriginalCwd()
  • getParentSessionId()
  • getPlanSlugCache()
  • getPrCounter()
  • getProjectRoot()
  • getPromptCache1hAllowlist()
  • getPromptCache1hEligible()
  • getPromptId()
  • getQuestionPreviewFormat()
  • getRegisteredHooks()
  • getScheduledTasksEnabled()
  • getSdkAgentProgressSummariesEnabled()
  • getSdkBetas()
  • getSessionBypassPermissionsMode()
  • getSessionCounter()
  • getSessionCreatedTeams()
  • getSessionCronTasks()
  • getSessionId()
  • getSessionIngressToken()
  • getSessionProjectDir()
  • getSessionSource()
  • getSessionTrustAccepted()
  • getSlowOperations()
  • getStatsStore()
  • getStrictToolResultPairing()
  • getSystemPromptSectionCache()
  • getTeleportedSessionInfo()
  • getThinkingClearLatched()
  • getTokenCounter()
  • getTotalAPIDuration()
  • getTotalAPIDurationWithoutRetries()
  • getTotalCacheCreationInputTokens()
  • getTotalCacheReadInputTokens()
  • getTotalCostUSD()
  • getTotalDuration()
  • getTotalInputTokens()
  • getTotalLinesAdded()
  • getTotalLinesRemoved()
  • getTotalOutputTokens()
  • getTotalToolDuration()
  • getTotalWebSearchRequests()
  • getTracerProvider()
  • getTurnClassifierCount()
  • getTurnClassifierDurationMs()
  • getTurnHookCount()
  • getTurnHookDurationMs()
  • getTurnOutputTokens()
  • getTurnToolCount()
  • getTurnToolDurationMs()
  • getUsageForModel()
  • getUseCoworkPlugins()
  • getUserMsgOptIn()
  • handleAutoModeTransition()
  • handlePlanModeTransition()
  • hasExitedPlanModeInSession()
  • hasShownLspRecommendationThisSession()
  • hasUnknownModelCost()
  • incrementBudgetContinuationCount()
  • isSessionPersistenceDisabled()
  • markFirstTeleportMessageLogged()
  • markPostCompaction()
  • markScrollActivity()
  • needsAutoModeExitAttachment()
  • needsPlanModeExitAttachment()
  • preferThirdPartyAuthentication()
  • regenerateSessionId()
  • registerHookCallbacks()
  • removeSessionCronTasks()
  • resetCostState()
  • resetModelStringsForTestingOnly()
  • resetSdkInitState()
  • resetStateForTests()
  • resetTotalDurationStateAndCost_FOR_TESTS_ONLY()
  • resetTurnClassifierDuration()
  • resetTurnHookDuration()
  • resetTurnToolDuration()
  • setAdditionalDirectoriesForClaudeMd()
  • setAfkModeHeaderLatched()
  • setAllowedChannels()
  • setAllowedSettingSources()
  • setApiKeyFromFd()
  • setCacheEditingHeaderLatched()
  • setCachedClaudeMdContent()
  • setChromeFlagOverride()
  • setClientType()
  • setCostStateForRestore()
  • setCwdState()
  • setDirectConnectServerUrl()
  • setEventLogger()
  • setFastModeHeaderLatched()
  • setFlagSettingsInline()
  • setFlagSettingsPath()
  • setHasDevChannels()
  • setHasExitedPlanMode()
  • setHasUnknownModelCost()
  • setInitJsonSchema()
  • setInitialMainLoopModel()
  • setInlinePlugins()
  • setIsInteractive()
  • setIsRemoteMode()
  • setKairosActive()
  • setLastAPIRequest()
  • setLastAPIRequestMessages()
  • setLastApiCompletionTimestamp()
  • setLastClassifierRequests()
  • setLastEmittedDate()
  • setLastMainRequestId()
  • setLoggerProvider()
  • setLspRecommendationShownThisSession()
  • setMainLoopModelOverride()
  • setMainThreadAgentType()
  • setMeter()
  • setMeterProvider()
  • setModelStrings()
  • setNeedsAutoModeExitAttachment()
  • setNeedsPlanModeExitAttachment()
  • setOauthTokenFromFd()
  • setOriginalCwd()
  • setProjectRoot()
  • setPromptCache1hAllowlist()
  • setPromptCache1hEligible()
  • setPromptId()
  • setQuestionPreviewFormat()
  • setScheduledTasksEnabled()
  • setSdkAgentProgressSummariesEnabled()
  • setSdkBetas()
  • setSessionBypassPermissionsMode()
  • setSessionIngressToken()
  • setSessionPersistenceDisabled()
  • setSessionSource()
  • setSessionTrustAccepted()
  • setStatsStore()
  • setStrictToolResultPairing()
  • setSystemPromptSectionCacheEntry()
  • setTeleportedSessionInfo()
  • setThinkingClearLatched()
  • setTracerProvider()
  • setUseCoworkPlugins()
  • setUserMsgOptIn()
  • snapshotOutputTokensForTurn()
  • switchSession()
  • updateLastInteractionTime()
  • waitForScrollIdle()

Frequently Asked Questions

What is the StateBootstrap subdomain?
StateBootstrap is a subdomain in the claude-code codebase, part of the SystemInfrastructure domain. Initializes global session and directory state for the CLI process. It contains 0 source files.
Which domain does StateBootstrap belong to?
StateBootstrap belongs to the SystemInfrastructure domain.
What functions are in StateBootstrap?
The StateBootstrap subdomain contains 212 function(s): addInvokedSkill, addSessionCronTask, addSlowOperation, addToInMemoryErrorLog, addToToolDuration, addToTotalCostState, addToTotalDurationState, addToTotalLinesChanged, and 204 more.