Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/T-Lab-CUHKSZ/claude-code
/ functions
Functions
11,522 in github.com/T-Lab-CUHKSZ/claude-code
⨍
Functions
11,522
◇
Types & classes
363
↓ 1 callers
Function
addToNeverSuggest
(pluginId: string)
src/utils/plugins/lspRecommendation.ts:316
↓ 1 callers
Function
addToPromptHistory
( command: HistoryEntry | string, )
src/history.ts:355
↓ 1 callers
Function
addToTotalCostState
( cost: number, modelUsage: ModelUsage, model: string, )
src/bootstrap/state.ts:557
↓ 1 callers
Function
addToTotalDurationState
( duration: number, durationWithoutRetries: number, )
src/bootstrap/state.ts:543
↓ 1 callers
Function
addToTotalLinesChanged
(added: number, removed: number)
src/bootstrap/state.ts:691
↓ 1 callers
Function
addToTotalModelUsage
( cost: number, usage: Usage, model: string, )
src/cost-tracker.ts:250
↓ 1 callers
Function
addToTurnClassifierDuration
(duration: number)
src/bootstrap/state.ts:627
↓ 1 callers
Method
addTool
* Add a tool to the execution queue. Will start executing immediately if conditions allow.
src/services/tools/StreamingToolExecutor.ts:76
↓ 1 callers
Function
addToolContentEvent
( eventName: string, attributes: Record<string, string | number | boolean>, )
src/utils/telemetry/sessionTracing.ts:747
↓ 1 callers
Function
adjustParamsForNonStreaming
(params: T, maxTokensCap: number)
src/services/api/claude.ts:3364
↓ 1 callers
Function
advanceScan
(target: number)
src/utils/bash/heredoc.ts:231
↓ 1 callers
Function
agentsHandler
()
src/cli/handlers/agents.ts:32
↓ 1 callers
Function
aggregateClaudeCodeStats
()
src/utils/stats.ts:640
↓ 1 callers
Function
aggregateData
( sessions: SessionMeta[], facets: Map<string, SessionFacets>, )
src/commands/insights.ts:1145
↓ 1 callers
Function
aliasesOf
(targets: ReadonlySet<string>)
src/utils/powershell/dangerousCmdlets.ts:72
↓ 1 callers
Function
allToolsResolved
(msg: RenderableMessage, resolvedToolUseIDs: Set<string>)
src/components/MessageRow.tsx:315
↓ 1 callers
Function
analyzeCommand
( rootNode: unknown, command: string, )
src/utils/bash/treeSitterAnalysis.ts:496
↓ 1 callers
Function
analyzeContext
(messages: Message[])
src/utils/contextAnalysis.ts:27
↓ 1 callers
Function
analyzeSectionSizes
* Parse the session memory file and analyze section sizes
src/services/SessionMemory/prompts.ts:134
↓ 1 callers
Function
animatedMove
* Port of Cowork's `animateMouseMovement` + `animatedMove`. Ease-out-cubic at * 60fps; distance-proportional duration at 2000 px/sec, capped at 0.5s.
src/utils/computerUse/executor.ts:217
↓ 1 callers
Method
annotateStderrWithSandboxFailures
(command: string, stderr: string)
src/utils/sandbox/sandbox-adapter.ts:918
↓ 1 callers
Function
ansi256FromRgb
(r: number, g: number, b: number)
src/native-ts/color-diff/index.ts:105
↓ 1 callers
Function
ansiToPng
( ansiText: string, options: AnsiToPngOptions = {}, )
src/utils/ansiToPng.ts:91
↓ 1 callers
Method
appendEventsToFile
( filePath: string, events: FirstPartyEventLoggingEvent[], )
src/services/analytics/firstPartyEventLoggingExporter.ts:194
↓ 1 callers
Function
appendMessageTagToUserMessage
* Appends a [id:...] message ID tag to the last text block of a user message. * Only mutates the API-bound copy, not the stored message. * This lets
src/utils/messages.ts:1620
↓ 1 callers
Function
appendMessageToLocalAgent
(taskId: string, message: Message, setAppState: (f: (prev: AppState) => AppState) => void)
src/tasks/LocalAgentTask/LocalAgentTask.tsx:175
↓ 1 callers
Function
appendSessionLogImpl
* Internal implementation of appendSessionLog with retry logic * Retries on transient errors (network, 5xx, 429). On 409, adopts the server's * last
src/services/api/sessionIngress.ts:63
↓ 1 callers
Function
appendSystemContext
( systemPrompt: SystemPrompt, context: { [k: string]: string }, )
src/utils/api.ts:437
↓ 1 callers
Function
appendTaskOutput
(taskId: string, content: string)
src/utils/task/diskOutput.ts:268
↓ 1 callers
Function
appendToFile
(filePath: string, entries: string[])
src/services/api/dumpPrompts.ts:67
↓ 1 callers
Function
appendToLog
(path: string, message: object)
src/utils/errorLogSink.ts:111
↓ 1 callers
Function
applyBackground
(h: Highlight, theme: Theme, ranges: Range[])
src/native-ts/color-diff/index.ts:768
↓ 1 callers
Function
applyBedrockRegionPrefix
( modelId: string, prefix: BedrockRegionPrefix, )
src/utils/model/bedrock.ts:248
↓ 1 callers
Function
applyBorderStyles
( node: LayoutNode, style: Styles, resolvedStyle?: Styles, )
src/ink/styles.ts:692
↓ 1 callers
Method
applyChanges
(input: TInput, modifiedEdits: FileEdit[])
src/components/permissions/FilePermissionDialog/ideDiffConfig.ts:22
↓ 1 callers
Function
applyCurlyDoubleQuotes
(str: string)
src/tools/FileEditTool/utils.ts:156
↓ 1 callers
Function
applyCurlySingleQuotes
(str: string)
src/tools/FileEditTool/utils.ts:173
↓ 1 callers
Function
applyDimensionStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:630
↓ 1 callers
Function
applyDisplayStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:684
↓ 1 callers
Function
applyExtraCACertsFromConfig
()
src/utils/caCertsConfig.ts:34
↓ 1 callers
Function
applyFlexStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:514
↓ 1 callers
Function
applyFormatOptimizations
( image: SharpInstance, format: string, )
src/utils/imageResizer.ts:682
↓ 1 callers
Function
applyGapStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:741
↓ 1 callers
Function
applyGrouping
( messages: MessageWithoutProgress[], tools: Tools, verbose: boolean = false, )
src/utils/groupToolUses.ts:54
↓ 1 callers
Function
applyMarginStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:454
↓ 1 callers
Function
applyMockHeaders
( headers: globalThis.Headers, )
src/services/mockRateLimits.ts:689
↓ 1 callers
Function
applyModalPagerAction
(s: ScrollBoxHandle, act: ModalPagerAction | null, onBeforeJump: (delta: number) => void)
src/components/ScrollKeybindingHandler.tsx:969
↓ 1 callers
Function
applyOverflowStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:434
↓ 1 callers
Function
applyPaddingStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:484
↓ 1 callers
Function
applyPaddingToText
( node: DOMElement, text: string, softWrap?: boolean[], )
src/ink/render-node-to-output.ts:365
↓ 1 callers
Function
applyPermissionRulesToPermissionContext
( toolPermissionContext: ToolPermissionContext, rules: PermissionRule[], )
src/utils/permissions/permissions.ts:1408
↓ 1 callers
Function
applyPositionStyles
(node: LayoutNode, style: Styles)
src/ink/styles.ts:406
↓ 1 callers
Function
applyPositionedHighlight
( screen: Screen, stylePool: StylePool, positions: MatchPosition[], rowOffset: number, currentIdx: n
src/ink/render-to-screen.ts:212
↓ 1 callers
Function
applyPreservedSegmentRelinks
* Splice the preserved segment back into the chain after compaction. * * Preserved messages exist in the JSONL with their ORIGINAL pre-compact * pa
src/utils/sessionStorage.ts:1839
↓ 1 callers
Function
applyPromptToMarkdown
( prompt: string, markdownContent: string, signal: AbortSignal, isNonInteractiveSession: boolean, is
src/tools/WebFetchTool/utils.ts:484
↓ 1 callers
Function
applyProp
(node: DOMElement, key: string, value: unknown)
src/ink/reconciler.ts:121
↓ 1 callers
Function
applyRemoteEntriesToLocal
* Apply remote entries to local files (CCR pull pattern). * Only writes files that match expected keys. * * After writing, invalidates relevant cac
src/services/settingsSync/index.ts:488
↓ 1 callers
Function
applySGR
(paramStr: string, style: TextStyle)
src/ink/termio/sgr.ts:127
↓ 1 callers
Function
applySafeConfigEnvironmentVariables
()
src/utils/managedEnv.ts:124
↓ 1 callers
Function
applySearchHighlight
( screen: Screen, query: string, stylePool: StylePool, )
src/ink/searchHighlight.ts:27
↓ 1 callers
Function
applySedEdit
* Applies a simulated sed edit directly instead of running sed. * This is used by the permission dialog to ensure what the user previews * is exactl
src/tools/BashTool/BashTool.tsx:360
↓ 1 callers
Function
applySedSubstitution
( content: string, sedInfo: SedEditInfo, )
src/tools/BashTool/sedEditParser.ts:244
↓ 1 callers
Function
applySelectionOverlay
( screen: Screen, selection: SelectionState, stylePool: StylePool, )
src/ink/selection.ts:893
↓ 1 callers
Function
applySingleMotion
* Apply a single motion step.
src/vim/motions.ts:30
↓ 1 callers
Function
applySkillImprovement
( skillName: string, updates: SkillUpdate[], )
src/utils/hooks/skillImprovement.ts:188
↓ 1 callers
Function
applySnapshot
* Applies the given file snapshot state to the tracked files (writes/deletes * on disk), returning the list of changed file paths. Async IO only.
src/utils/fileHistory.ts:537
↓ 1 callers
Function
applySnipRemovals
* Delete messages that Snip executions removed from the in-memory array, * and relink parentUuid across the gaps. * * Unlike compact_boundary which
src/utils/sessionStorage.ts:1982
↓ 1 callers
Function
applySortAndLimit
( candidates: Candidate[], limit: number | undefined, offset: number, )
src/utils/listSessionsImpl.ts:235
↓ 1 callers
Function
applyStylesToWrappedText
* Apply styles to wrapped text by mapping each character back to its original segment. * This preserves per-segment styles even when text wraps acros
src/ink/render-node-to-output.ts:211
↓ 1 callers
Function
applyToolResultBudget
( messages: Message[], state: ContentReplacementState | undefined, writeToTranscript?: (records: ToolRes
src/utils/toolResultStorage.ts:924
↓ 1 callers
Function
applyTruncation
(content: string)
src/utils/processUserInput/processUserInput.ts:274
↓ 1 callers
Function
approximateMessageTokens
( messages: Message[], )
src/utils/analyzeContext.ts:853
↓ 1 callers
Function
archiveBridgeSession
( sessionId: string, opts?: { baseUrl?: string getAccessToken?: () => string | undefined timeo
src/bridge/createSession.ts:263
↓ 1 callers
Method
areDiagnosticArraysEqual
(a: Diagnostic[], b: Diagnostic[])
src/services/diagnosticTracking.ts:309
↓ 1 callers
Function
areFileEditsEquivalent
( edits1: FileEdit[], edits2: FileEdit[], originalContent: string, )
src/tools/FileEditTool/utils.ts:664
↓ 1 callers
Function
areFileEditsInputsEquivalent
( input1: { file_path: string edits: FileEdit[] }, input2: { file_path: string edits: Fi
src/tools/FileEditTool/utils.ts:732
↓ 1 callers
Function
areMcpConfigsAllowedWithEnterpriseMcpConfig
( configs: Record<string, ScopedMcpServerConfig>, )
src/services/mcp/config.ts:1494
↓ 1 callers
Function
areMcpConfigsEqual
( a: ScopedMcpServerConfig, b: ScopedMcpServerConfig, )
src/services/mcp/client.ts:1710
↓ 1 callers
Function
areSourcesEqual
* Compare two MarketplaceSource objects for equality. * Sources are equal if they have the same type and all relevant fields match.
src/utils/plugins/marketplaceHelpers.ts:191
↓ 1 callers
Function
areSourcesEquivalentForBlocklist
* Check if two sources refer to the same GitHub repository, even if using * different source types (github vs git with GitHub URL). * * Blocklist m
src/utils/plugins/marketplaceHelpers.ts:391
↓ 1 callers
Function
asImageFilePath
(text: string)
src/utils/imagePaste.ts:335
↓ 1 callers
Function
asTerminalEscaped
( blocks: readonly Block[], mode: ColorMode, skipBackground: boolean, dim: boolean, )
src/native-ts/color-diff/index.ts:147
↓ 1 callers
Function
ask
({ commands, prompt, promptUuid, isMeta, cwd, tools, mcpClients, verbose = false, thinkingCo
src/QueryEngine.ts:1186
↓ 1 callers
Function
assertMinVersion
()
src/utils/autoUpdater.ts:70
↓ 1 callers
Function
assistantHasVisibleText
(m: Message)
src/components/FullscreenLayout.tsx:217
↓ 1 callers
Function
assistantMessageToMessageParam
( message: AssistantMessage, addCache = false, enablePromptCaching: boolean, querySource?: QuerySource
src/services/api/claude.ts:633
↓ 1 callers
Function
astRedirectsToOutputRedirections
* Convert AST-derived Redirect[] to the format expected by * validateOutputRedirections. Filters to output-only redirects (excluding * fd duplicatio
src/tools/BashTool/pathValidation.ts:1116
↓ 1 callers
Function
attachAnalyticsSink
(newSink: AnalyticsSink)
src/services/analytics/index.ts:95
↓ 1 callers
Function
attachErrorLogSink
(newSink: ErrorLogSink)
src/utils/log.ts:109
↓ 1 callers
Method
attachSession
()
src/utils/terminalPanel.ts:144
↓ 1 callers
Function
attemptReconnect
()
src/components/mcp/MCPReconnect.tsx:30
↓ 1 callers
Function
attributionRestoreStateFromLog
( attributionSnapshots: AttributionSnapshotMessage[], onUpdateState: (newState: AttributionState) => void,
src/utils/commitAttribution.ts:934
↓ 1 callers
Function
authLogin
({ email, sso, console: useConsole, claudeai, }: { email?: string sso?: boolean console?: boolea
src/cli/handlers/auth.ts:112
↓ 1 callers
Function
authLogout
()
src/cli/handlers/auth.ts:321
↓ 1 callers
Function
authStatus
(opts: { json?: boolean text?: boolean })
src/cli/handlers/auth.ts:232
↓ 1 callers
Function
autoModeConfigHandler
()
src/cli/handlers/autoMode.ts:35
↓ 1 callers
Function
autoModeCritiqueHandler
(options: { model?: string })
src/cli/handlers/autoMode.ts:73
↓ 1 callers
Function
autoModeDefaultsHandler
()
src/cli/handlers/autoMode.ts:24
↓ 1 callers
Function
autoNameSessionFromPlan
(plan: string, setAppState: (updater: (prev: AppState) => AppState) => void, isClearContext: boolean)
src/components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.tsx:83
↓ 1 callers
Function
autoUpdateMarketplacesAndPluginsInBackground
()
src/utils/plugins/pluginAutoupdate.ts:227
← previous
next →
4,301–4,400 of 11,522, ranked by callers