Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tanbiralam/claude-code
/ functions
Functions
11,484 in github.com/tanbiralam/claude-code
⨍
Functions
11,484
◇
Types & classes
506
↓ 1 callers
Function
cleanupOldSessionFiles
()
src/utils/cleanup.ts:155
↓ 1 callers
Function
cleanupOldVersionsThrottled
()
src/utils/cleanup.ts:543
↓ 1 callers
Function
cleanupSessionTeams
()
src/utils/swarm/teamHelpers.ts:576
↓ 1 callers
Function
cleanupShellAliases
()
src/utils/nativeInstaller/installer.ts:1492
↓ 1 callers
Function
cleanupSingleDirectory
* Generic helper for cleaning up old files in a single directory * @param dirPath Path to the directory to clean * @param extension File extension t
src/utils/cleanup.ts:266
↓ 1 callers
Function
cleanupStaleAgentWorktrees
( cutoffDate: Date, )
src/utils/worktree.ts:1058
↓ 1 callers
Function
cleanupStaleIdeLockfiles
()
src/utils/ide.ts:522
↓ 1 callers
Function
cleanupStream
( stream: Stream<BetaRawMessageStreamEvent> | undefined, )
src/services/api/claude.ts:2898
↓ 1 callers
Function
clearAgentTranscriptSubdir
(agentId: string)
src/utils/sessionStorage.ts:243
↓ 1 callers
Function
clearAllDumpState
()
src/services/api/dumpPrompts.ts:44
↓ 1 callers
Function
clearAllLSPDiagnostics
()
src/services/lsp/LSPDiagnosticRegistry.ts:346
↓ 1 callers
Function
clearAllOutputStylesCache
()
src/constants/outputStyles.ts:177
↓ 1 callers
Function
clearAllPendingCallbacks
()
src/hooks/useSwarmPermissionPoller.ts:113
↓ 1 callers
Function
clearAllPlanSlugs
()
src/utils/plans.ts:71
↓ 1 callers
Function
clearAllPluginCaches
()
src/utils/plugins/cacheUtils.ts:26
↓ 1 callers
Function
clearAllSessions
()
src/services/api/sessionIngress.ts:511
↓ 1 callers
Function
clearAwsIniCache
()
src/utils/aws.ts:61
↓ 1 callers
Function
clearBetaHeaderLatches
()
src/bootstrap/state.ts:1744
↓ 1 callers
Function
clearBetaTracingState
()
src/utils/telemetry/betaSessionTracing.ts:65
↓ 1 callers
Function
clearBridgeDebugHandle
()
src/bridge/bridgeDebug.ts:61
↓ 1 callers
Function
clearCACertsCache
()
src/utils/caCerts.ts:112
↓ 1 callers
Function
clearClassifierApprovals
()
src/utils/classifierApprovals.ts:84
↓ 1 callers
Function
clearClaudeAIMcpConfigsCache
()
src/services/mcp/claudeai.ts:140
↓ 1 callers
Function
clearCliTeammateModeOverride
(newMode: TeammateMode)
src/utils/swarm/backends/teammateModeSnapshot.ts:43
↓ 1 callers
Function
clearCommandPrefixCaches
()
src/utils/bash/commands.ts:518
↓ 1 callers
Function
clearCommandQueue
()
src/utils/messageQueueManager.ts:322
↓ 1 callers
Function
clearCompactWarningSuppression
()
src/services/compact/compactWarningState.ts:16
↓ 1 callers
Function
clearCwdEnvFiles
()
src/utils/sessionEnvironment.ts:33
↓ 1 callers
Function
clearDynamicSkills
()
src/skills/loadSkillsDir.ts:1070
↓ 1 callers
Function
clearFileSuggestionCaches
()
src/hooks/fileSuggestions.ts:84
↓ 1 callers
Function
clearHeadlessMarks
* Clear all headless profiler marks from performance timeline
src/utils/headlessProfiler.ts:48
↓ 1 callers
Function
clearInternalWrites
()
src/utils/settings/internalWrites.ts:35
↓ 1 callers
Function
clearInvokedSkills
( preservedAgentIds?: ReadonlySet<string>, )
src/bootstrap/state.ts:1543
↓ 1 callers
Function
clearLeaderTeamName
()
src/utils/tasks.ts:43
↓ 1 callers
Function
clearMTLSCache
()
src/utils/mtls.ts:157
↓ 1 callers
Function
clearMcpClientConfig
( serverName: string, serverConfig: McpSSEServerConfig | McpHTTPServerConfig, )
src/services/mcp/auth.ts:2416
↓ 1 callers
Function
clearMockEarlyWarning
()
src/services/mockRateLimits.ts:312
↓ 1 callers
Function
clearMockHeaders
()
src/services/mockRateLimits.ts:678
↓ 1 callers
Function
clearPendingHint
()
src/utils/claudeCodeHints.ts:162
↓ 1 callers
Function
clearPluginCacheExclusions
()
src/utils/plugins/orphanedPluginFilter.ts:90
↓ 1 callers
Function
clearPluginSettingsBase
()
src/utils/settings/settingsCache.ts:78
↓ 1 callers
Function
clearPluginSkillsCache
()
src/utils/plugins/loadPluginCommands.ts:944
↓ 1 callers
Function
clearProxyCache
()
src/utils/proxy.ts:423
↓ 1 callers
Function
clearRepositoryCaches
()
src/utils/detectRepository.ts:13
↓ 1 callers
Function
clearResolveGitDirCache
()
src/utils/git/gitFilesystem.ts:31
↓ 1 callers
Function
clearSessionEnvVars
()
src/utils/sessionEnvVars.ts:20
↓ 1 callers
Function
clearSessionMessagesCache
()
src/utils/sessionStorage.ts:3854
↓ 1 callers
Function
clearStoredImagePaths
()
src/utils/imageStore.ts:111
↓ 1 callers
Function
clearStreamAccumulatorForMessage
( state: StreamAccumulatorState, assistant: { session_id: string parent_tool_use_id: string | null
src/cli/transports/ccrClient.ts:210
↓ 1 callers
Function
clearSystemPromptSectionState
()
src/bootstrap/state.ts:1652
↓ 1 callers
Function
clearTeammateColors
()
src/utils/swarm/teammateLayoutManager.ts:48
↓ 1 callers
Function
clearToolSearchDescriptionCache
()
src/tools/ToolSearchTool/ToolSearchTool.ts:102
↓ 1 callers
Function
clearTrackedMagicDocs
()
src/services/MagicDocs/magicDocs.ts:44
↓ 1 callers
Function
clearTrustedDeviceToken
()
src/bridge/trustedDevice.ts:72
↓ 1 callers
Function
clearTrustedDeviceTokenCache
()
src/bridge/trustedDevice.ts:61
↓ 1 callers
Function
clearWebFetchCache
()
src/tools/WebFetchTool/utils.ts:80
↓ 1 callers
Function
clearYogaNodeReferences
(node: DOMElement | TextNode)
src/ink/dom.ts:446
↓ 1 callers
Method
clientInformation
()
src/services/mcp/auth.ts:1482
↓ 1 callers
Function
clipsBothAxes
(node: DOMElement)
src/ink/render-node-to-output.ts:1296
↓ 1 callers
Function
cloneContentReplacementState
( source: ContentReplacementState, )
src/utils/toolResultStorage.ts:405
↓ 1 callers
Method
close
()
src/cli/transports/WebSocketTransport.ts:556
↓ 1 callers
Method
close
()
src/cli/transports/SSETransport.ts:679
↓ 1 callers
Method
close
Clean up uploaders and timers.
src/cli/transports/ccrClient.ts:982
↓ 1 callers
Function
closeOpenDiffs
( ideClient: ConnectedMCPServer, )
src/utils/ide.ts:1270
↓ 1 callers
Function
collapseBackgroundBashNotifications
( messages: RenderableMessage[], verbose: boolean, )
src/utils/collapseBackgroundBashNotifications.ts:41
↓ 1 callers
Function
collapseHookSummaries
( messages: RenderableMessage[], )
src/utils/collapseHookSummaries.ts:21
↓ 1 callers
Function
collapseReadSearchGroups
( messages: RenderableMessage[], tools: Tools, )
src/utils/collapseReadSearch.ts:762
↓ 1 callers
Function
collapseTeammateShutdowns
( messages: RenderableMessage[], )
src/utils/collapseTeammateShutdowns.ts:18
↓ 1 callers
Function
collectCandidatesFromMessage
* Extract candidate tool_result blocks from a single user message: blocks * that are non-empty, non-image, and not already compacted by tag (i.e. by
src/utils/toolResultStorage.ts:557
↓ 1 callers
Function
collectFilesForZip
* Recursively collect files from a directory for zipping. * Uses lstat to detect symlinks and tracks visited inodes for cycle detection.
src/utils/plugins/zipCache.ts:235
↓ 1 callers
Function
collectLayoutChildren
(node: Node, flow: Node[], abs: Node[])
src/native-ts/yoga-layout/index.ts:2406
↓ 1 callers
Function
collectListeners
* Collect all listeners for an event in dispatch order. * * Uses react-dom's two-phase accumulation pattern: * - Walk from target to root * - Capt
src/ink/events/dispatcher.ts:46
↓ 1 callers
Function
collectMarkdown
* Recursively collect .md files under a directory. Uses withFileTypes to * avoid a stat per entry. Returns absolute paths so error messages stay * r
src/utils/plugins/validatePlugin.ts:718
↓ 1 callers
Function
collectMarkdownFiles
* Recursively collects all markdown files from a directory
src/utils/plugins/loadPluginCommands.ts:102
↓ 1 callers
Function
collectQuoteSpans
* Single-pass collection of all quote-related spans. * Previously this was 5 separate tree walks (one per type-set plus * allQuoteTypes plus heredoc
src/utils/bash/treeSitterAnalysis.ts:88
↓ 1 callers
Function
collectReadToolFilePaths
* Scan messages for Read tool_use blocks and collect their file_path inputs * (normalized via expandPath). Used to dedup post-compact file restoratio
src/services/compact/compact.ts:1610
↓ 1 callers
Function
collectRecentAssistantTexts
(messages: Message[])
src/commands/copy/copy.tsx:50
↓ 1 callers
Function
collectRecentSuccessfulTools
( messages: ReadonlyArray<Message>, lastUserMessage: Message, )
src/utils/attachments.ts:2465
↓ 1 callers
Function
collectRemovedRects
( parent: DOMElement, removed: DOMNode, underAbsolute = false, )
src/ink/dom.ts:225
↓ 1 callers
Function
collectReplIds
(messages: readonly Message[])
src/utils/sessionStorage.ts:4369
↓ 1 callers
Function
collectSurfacedMemories
(messages: ReadonlyArray<Message>)
src/utils/attachments.ts:2251
↓ 1 callers
Function
collectTabbable
(root: DOMElement)
src/ink/focus.ts:134
↓ 1 callers
Function
combineUsage
* Combine usage from two classifier stages into a single total.
src/utils/permissions/yoloClassifier.ts:633
↓ 1 callers
Function
commandHasAnyGit
* Checks if a compound command contains any git command. * * @param command The full command string to check * @returns true if any subcommand is a
src/tools/BashTool/readOnlyValidation.ts:1760
↓ 1 callers
Function
commandListDisplay
(commands: string[])
src/components/permissions/shellPermissionHelpers.tsx:7
↓ 1 callers
Function
commandWritesToGitInternalPaths
* Checks if a compound command writes to any git-internal paths. * This is used to detect potential sandbox escape attacks where a command * creates
src/tools/BashTool/readOnlyValidation.ts:1840
↓ 1 callers
Function
compactBoundaryMarker
()
src/utils/sessionStoragePortable.ts:485
↓ 1 callers
Function
compactViaReactive
( messages: Message[], context: ToolUseContext, customInstructions: string, reactive: NonNullable<type
src/commands/compact/compact.ts:139
↓ 1 callers
Function
companionIntroText
(name: string, species: string)
src/buddy/prompt.ts:7
↓ 1 callers
Function
companionReservedColumns
(terminalColumns: number, speaking: boolean)
src/buddy/CompanionSprite.tsx:167
↓ 1 callers
Function
companionUserId
()
src/buddy/companion.ts:119
↓ 1 callers
Function
compareStatsAndContent
* Shared stat/content comparison logic for sync and async change checks. * Returns true if the file has changed relative to the backup.
src/utils/fileHistory.ts:640
↓ 1 callers
Function
compileTermPatterns
* Pre-compile word-boundary regexes for all search terms. * Called once per search instead of tools×terms×2 times.
src/tools/ToolSearchTool/ToolSearchTool.ts:167
↓ 1 callers
Function
completeDreamTask
( taskId: string, setAppState: SetAppState, )
src/tasks/DreamTask/DreamTask.ts:106
↓ 1 callers
Function
completeOnboarding
()
src/interactiveHelpers.tsx:32
↓ 1 callers
Function
compressImageBlock
( imageBlock: ImageBlockParam, maxBytes: number = IMAGE_TARGET_RAW_SIZE, )
src/utils/imageResizer.ts:600
↓ 1 callers
Function
compressImageBufferWithTokenLimit
( imageBuffer: Buffer, maxTokens: number, originalMediaType?: string, )
src/utils/imageResizer.ts:583
↓ 1 callers
Function
computeChecksum
* Compute a checksum from restrictions content for HTTP caching
src/services/policyLimits/index.ts:152
↓ 1 callers
Function
computeChecksumFromSettings
(settings: SettingsJson)
src/services/remoteManagedSettings/index.ts:131
↓ 1 callers
Function
computeContentHash
(content: string)
src/utils/commitAttribution.ts:244
← previous
next →
4,601–4,700 of 11,484, ranked by callers