Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codeaashu/claude-code
/ functions
Functions
13,048 in github.com/codeaashu/claude-code
⨍
Functions
13,048
◇
Types & classes
657
↓ 2 callers
Function
fmt
(n: number)
src/utils/tokenBudget.ts:71
↓ 2 callers
Function
focusable
()
web/components/a11y/FocusTrap.tsx:35
↓ 2 callers
Method
forceFlush
()
src/services/analytics/firstPartyEventLoggingExporter.ts:773
↓ 2 callers
Function
formatAgent
(agent: ResolvedAgent)
src/cli/handlers/agents.ts:20
↓ 2 callers
Function
formatAgentAsMarkdown
( agentType: string, whenToUse: string, tools: string[] | undefined, systemPrompt: string, color?: s
src/components/agents/agentFileUtils.ts:20
↓ 2 callers
Function
formatAutoUpdaterDisabledReason
( reason: AutoUpdaterDisabledReason, )
src/utils/config.ts:1722
↓ 2 callers
Function
formatBashOutput
( stdout: string, stderr: string, inline = false, )
src/utils/promptShellExecution.ts:145
↓ 2 callers
Function
formatBriefTimestamp
( isoString: string, now: Date = new Date(), )
src/utils/formatBriefTimestamp.ts:16
↓ 2 callers
Function
formatCallHierarchyItem
* Formats a CallHierarchyItem with its location * Validates URI before formatting to handle malformed LSP data
src/tools/LSPTool/formatters.ts:428
↓ 2 callers
Function
formatCommandLoadingMetadata
* Formats the loading metadata for a command (skill or slash command). * User-invocable skills use slash command format (/name), while model-only *
src/utils/processUserInput/processSlashCommand.tsx:803
↓ 2 callers
Function
formatGoToDefinitionResult
( result: Location | Location[] | LocationLink | LocationLink[] | null, cwd?: string, )
src/tools/LSPTool/formatters.ts:127
↓ 2 callers
Function
formatInstallCount
(count: number)
src/utils/plugins/installCounts.ts:273
↓ 2 callers
Function
formatMemoryManifest
(memories: MemoryHeader[])
src/memdir/memoryScan.ts:84
↓ 2 callers
Function
formatPastedTextRef
(id: number, numLines: number)
src/history.ts:51
↓ 2 callers
Function
formatPrice
(price: number)
src/utils/modelCost.ts:204
↓ 2 callers
Function
formatReleaseNotes
(notes: Array<[string, string[]]>)
src/commands/release-notes/release-notes.ts:9
↓ 2 callers
Function
formatResolutionError
( r: ResolutionResult & { ok: false }, )
src/utils/plugins/pluginInstallationHelpers.ts:304
↓ 2 callers
Function
formatReverseDependentsSuffix
( rdeps: string[] | undefined, )
src/utils/plugins/dependencyResolver.ts:300
↓ 2 callers
Function
formatReviewStageCounts
(stage: ReviewStage | undefined, found: number, verified: number, refuted: number)
src/components/tasks/RemoteSessionProgress.tsx:22
↓ 2 callers
Function
formatSetupNotes
* Formats setup notes as a bulleted Heads-up block. Shared between the * initial AskUserQuestion dialog text (no-args path) and the prompt-body * se
src/skills/bundled/scheduleRemoteAgents.ts:118
↓ 2 callers
Function
formatShellPrefixCommand
( prefix: string, command: string, )
src/utils/bash/shellPrefix.ts:15
↓ 2 callers
Function
formatSkillLoadingMetadata
(skillName: string, _progressMessage: string = 'loading')
src/utils/processUserInput/processSlashCommand.tsx:786
↓ 2 callers
Function
formatSlashCommandLoadingMetadata
* Formats the metadata for a slash command loading message.
src/utils/processUserInput/processSlashCommand.tsx:794
↓ 2 callers
Function
formatTimelineLine
( totalMs: number, deltaMs: number, name: string, memory: NodeJS.MemoryUsage | undefined, totalPad:
src/utils/profilerBase.ts:33
↓ 2 callers
Function
formatValidationPath
* Formats a Zod validation path into a readable string * e.g., ['todos', 0, 'activeForm'] => 'todos[0].activeForm'
src/utils/toolErrors.ts:47
↓ 2 callers
Function
formatWarning
(warning: KeybindingWarning)
src/keybindings/validate.ts:456
↓ 2 callers
Function
formatWorkspaceFolders
(folders: string[], maxLength: number = 100)
src/commands/ide/ide.tsx:612
↓ 2 callers
Function
formatWorkspaceSymbolResult
( result: SymbolInformation[] | null, cwd?: string, )
src/tools/LSPTool/formatters.ts:371
↓ 2 callers
Function
formatX402Cost
()
src/services/x402/tracker.ts:48
↓ 2 callers
Function
forwardMessagesToBridge
()
src/cli/print.ts:1517
↓ 2 callers
Function
forwardToWs
(ws: WebSocketLike, data: Buffer)
src/upstreamproxy/relay.ts:436
↓ 2 callers
Function
fromArray
(values: T[])
src/utils/generators.ts:84
↓ 2 callers
Function
fromJsonTimestamp
(o: any)
src/types/generated/events_mono/claude_code/v1/claude_code_internal_event.ts:846
↓ 2 callers
Function
fromSDKCompactMetadata
( meta: SDKCompactMetadata, )
src/utils/messages/mappers.ts:98
↓ 2 callers
Function
generateAndPatch
(input: string, bridgeSessionId: string)
src/bridge/initReplBridge.ts:333
↓ 2 callers
Function
generateCommandSuggestions
( input: string, commands: Command[], )
src/utils/suggestions/commandSuggestions.ts:292
↓ 2 callers
Function
generateFileAttachment
( filename: string, toolUseContext: ToolUseContext, successEventName: string, errorEventName: string,
src/utils/attachments.ts:3020
↓ 2 callers
Function
generateFileSuggestions
( partialPath: string, showOnEmpty = false, )
src/hooks/fileSuggestions.ts:715
↓ 2 callers
Function
generateFixSuggestion
* Generate a fix suggestion based on the shadow type.
src/utils/permissions/shadowedRuleDetection.ts:79
↓ 2 callers
Function
generateFunFactoid
(stats: ClaudeCodeStats, totalTokens: number)
src/components/Stats.tsx:688
↓ 2 callers
Function
generateHeatmap
( dailyActivity: DailyActivity[], options: HeatmapOptions = {}, )
src/utils/heatmap.ts:39
↓ 2 callers
Function
generateKittyId
()
src/services/notifier.ts:106
↓ 2 callers
Function
generateLoremIpsum
(targetTokens: number)
src/skills/bundled/loremIpsum.ts:202
↓ 2 callers
Function
generatePlaceholders
* Generates placeholder strings with random salt to prevent injection attacks. * The salt prevents malicious commands from containing literal placeho
src/utils/bash/commands.ts:20
↓ 2 callers
Function
generateSectionInsight
( section: InsightSection, dataContext: string, )
src/commands/insights.ts:1572
↓ 2 callers
Function
generateSessionName
( messages: Message[], signal: AbortSignal, )
src/commands/rename/generateSessionName.ts:10
↓ 2 callers
Function
generateSettingsJSONSchema
()
src/utils/settings/schemaOutput.ts:5
↓ 2 callers
Function
generateShellSuggestionsLabel
(suggestions: PermissionUpdate[], shellToolName: string, commandTransform?: (command: string) => string)
src/components/permissions/shellPermissionHelpers.tsx:65
↓ 2 callers
Function
generateSuggestion
( abortController: AbortController, promptId: PromptVariant, cacheSafeParams: CacheSafeParams, )
src/services/PromptSuggestion/promptSuggestion.ts:294
↓ 2 callers
Function
generateTaskAttachments
(state: AppState)
src/utils/task/framework.ts:158
↓ 2 callers
Function
generateTmuxSessionName
( repoPath: string, branch: string, )
src/utils/worktree.ts:171
↓ 2 callers
Function
generateTokenChart
(dailyTokens: DailyModelTokens[], models: string[], terminalWidth: number)
src/components/Stats.tsx:940
↓ 2 callers
Function
generateUnifiedSuggestions
( query: string, mcpResources: Record<string, ServerResource[]>, agents: AgentDefinition[], showOnEmpt
src/hooks/unifiedSuggestions.ts:111
↓ 2 callers
Function
generateWordSlug
()
src/utils/words.ts:785
↓ 2 callers
Method
get
(e3)
src/server/web/public/terminal.js:2378
↓ 2 callers
Function
get256Color
(n: number)
web/components/tools/AnsiRenderer.tsx:45
↓ 2 callers
Function
get256Color
(n: number)
web/lib/ansi-to-html.ts:39
↓ 2 callers
Function
get3PModelFallbackSuggestion
* For 3P users, suggest a fallback model when the selected model is unavailable. * Returns a model name suggestion, or undefined if no suggestion is
src/services/api/errors.ts:940
↓ 2 callers
Function
getAWSClientProxyConfig
()
src/utils/proxy.ts:394
↓ 2 callers
Method
getAbortReason
* Determine why a tool should be cancelled.
src/services/tools/StreamingToolExecutor.ts:210
↓ 2 callers
Function
getActiveAgentForInput
( appState: AppState, )
src/state/selectors.ts:59
↓ 2 callers
Function
getAgentColorMap
()
src/bootstrap/state.ts:1128
↓ 2 callers
Function
getAgentMetadataPath
(agentId: AgentId)
src/utils/sessionStorage.ts:260
↓ 2 callers
Function
getAgentModelDisplay
(model: string | undefined)
src/utils/model/agent.ts:124
↓ 2 callers
Method
getAll
Returns all raw StoredSession objects (used internally by SessionManager).
src/server/web/session-store.ts:184
↓ 2 callers
Function
getAllCommands
( parsed: ParsedPowerShellCommand, )
src/utils/powershell/parser.ts:1486
↓ 2 callers
Function
getAllHooks
(appState: AppState)
src/utils/hooks/hooksSettings.ts:92
↓ 2 callers
Function
getAllReleaseNotes
( changelogContent: string = getStoredChangelogFromMemory(), )
src/utils/releaseNotes.ts:249
↓ 2 callers
Function
getAllSessionFiles
* Get all session files from all project directories. * Includes both main session files and subagent transcript files.
src/utils/stats.ts:374
↓ 2 callers
Method
getAllSessions
All sessions in the shape expected by the admin dashboard.
src/server/web/session-manager.ts:104
↓ 2 callers
Method
getAllowUnixSockets
()
src/utils/sandbox/sandbox-adapter.ts:900
↓ 2 callers
Function
getAnalysisModel
()
src/commands/insights.ts:41
↓ 2 callers
Function
getAntModels
()
src/utils/model/antModels.ts:44
↓ 2 callers
Function
getApiKeyFromApiKeyHelperCached
()
src/utils/auth.ts:581
↓ 2 callers
Function
getApiKeyFromFileDescriptor
()
src/utils/authFileDescriptor.ts:188
↓ 2 callers
Function
getAskRuleForTool
( context: ToolPermissionContext, tool: Pick<Tool, 'name' | 'mcpInfo'>, )
src/utils/permissions/permissions.ts:297
↓ 2 callers
Function
getAssistantMessageContentLength
( message: AssistantMessage, )
src/utils/tokens.ts:183
↓ 2 callers
Function
getAssistantMessageId
* Get the API response id for an assistant message with real (non-synthetic) usage. * Used to identify split assistant records that came from the sam
src/utils/tokens.ts:28
↓ 2 callers
Function
getAttributionHeader
(fingerprint: string)
src/constants/system.ts:73
↓ 2 callers
Function
getAutoMemEntrypoint
()
src/memdir/paths.ts:257
↓ 2 callers
Function
getAutoMemPathOverride
* Direct override for the full auto-memory directory path via env var. * When set, getAutoMemPath()/getAutoMemEntrypoint() return this path directly
src/memdir/paths.ts:161
↓ 2 callers
Function
getAutoModeDenials
()
src/utils/autoModeDenials.ts:24
↓ 2 callers
Function
getAutoModeEnabledState
()
src/utils/permissions/permissionSetup.ts:1328
↓ 2 callers
Function
getAutoModeEnabledStateIfCached
()
src/utils/permissions/permissionSetup.ts:1344
↓ 2 callers
Function
getAutoToolSearchTokenThreshold
* Get the token threshold for auto-enabling tool search for a given model.
src/utils/toolSearch.ts:104
↓ 2 callers
Function
getBaseFileNames
* Get list of base file names (without .md extension) from a directory * @param dirPath The directory path to list files from * @returns Array of ba
src/commands/plugin/ManagePlugins.tsx:129
↓ 2 callers
Function
getBashPromptDenyDescriptions
(_context: unknown)
src/utils/permissions/bashClassifier.ts:28
↓ 2 callers
Function
getBatchConfig
()
src/services/analytics/firstPartyEventLogger.ts:97
↓ 2 callers
Function
getBestCommandMatch
( partialCommand: string, commands: Command[], )
src/utils/suggestions/commandSuggestions.ts:164
↓ 2 callers
Method
getBg
(e3)
src/server/web/public/terminal.js:4084
↓ 2 callers
Method
getBgColor
()
src/server/web/public/terminal.js:3783
↓ 2 callers
Method
getBgColorMode
()
src/server/web/public/terminal.js:3748
↓ 2 callers
Function
getBinaryBlobSavedMessage
( filepath: string, mimeType: string | undefined, size: number, sourceDescription: string, )
src/utils/mcpOutputStorage.ts:181
↓ 2 callers
Function
getBindingDisplayText
( action: string, context: KeybindingContextName, bindings: ParsedBinding[], )
src/keybindings/resolver.ts:67
↓ 2 callers
Function
getBlockedMarketplaces
()
src/utils/plugins/marketplaceHelpers.ts:171
↓ 2 callers
Function
getBorderColor
()
src/components/PromptInput/PromptInput.tsx:2214
↓ 2 callers
Function
getBranchFromSession
( session: SessionResource, )
src/utils/teleport/api.ts:334
↓ 2 callers
Function
getBridgeSession
( sessionId: string, opts?: { baseUrl?: string; getAccessToken?: () => string | undefined }, )
src/bridge/createSession.ts:190
↓ 2 callers
Function
getBridgeStatus
({ error, connected, sessionActive, reconnecting, }: { error: string | undefined connected: boolea
src/bridge/bridgeStatusUtil.ts:124
↓ 2 callers
Function
getBuildAgeMinutes
()
src/services/api/logging.ts:164
← previous
next →
3,401–3,500 of 13,048, ranked by callers