Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Austin1serb/Anthropic-Leaked-Source-Code
/ functions
Functions
11,462 in github.com/Austin1serb/Anthropic-Leaked-Source-Code
⨍
Functions
11,462
◇
Types & classes
340
↓ 1 callers
Function
extractUserMessageText
* Extract plain text from a replayed SDKUserMessage NDJSON line. Returns the * trimmed text if this looks like a real human-authored message, otherwi
bridge/sessionRunner.ts:207
↓ 1 callers
Function
extractUserMessages
(messages: Message[])
skills/bundled/skillify.ts:6
↓ 1 callers
Function
extractWritePathsFromSubcommand
* Extracts write paths from a subcommand using PATH_EXTRACTORS. * Only returns paths for commands that can create new files/directories * (write/cre
tools/BashTool/readOnlyValidation.ts:1795
↓ 1 callers
Function
extractWrittenPaths
(agentMessages: Message[])
services/extractMemories/extractMemories.ts:251
↓ 1 callers
Function
failDreamTask
(taskId: string, setAppState: SetAppState)
tasks/DreamTask/DreamTask.ts:122
↓ 1 callers
Function
fetchAndStoreClaudeCodeFirstTokenDate
()
services/api/firstTokenDate.ts:12
↓ 1 callers
Function
fetchAndStoreUserRoles
( accessToken: string, )
services/oauth/client.ts:276
↓ 1 callers
Function
fetchBootstrapAPI
()
services/api/bootstrap.ts:42
↓ 1 callers
Function
fetchBootstrapData
()
services/api/bootstrap.ts:114
↓ 1 callers
Function
fetchChannels
( clients: MCPServerConnection[], query: string, )
utils/suggestions/slackChannelSuggestions.ts:29
↓ 1 callers
Function
fetchCodeSessionsFromSessionsAPI
()
utils/teleport/api.ts:204
↓ 1 callers
Function
fetchFastModeStatus
( auth: { accessToken: string } | { apiKey: string }, )
utils/fastMode.ts:367
↓ 1 callers
Function
fetchFromOrigin
* Fetches a specific branch from remote origin * @param branch The branch to fetch. If not specified, fetches all branches.
utils/teleport.tsx:187
↓ 1 callers
Function
fetchGitDiff
()
utils/gitDiff.ts:49
↓ 1 callers
Function
fetchGitDiffHunks
()
utils/gitDiff.ts:114
↓ 1 callers
Function
fetchInfo
()
components/RemoteEnvironmentDialog.tsx:48
↓ 1 callers
Function
fetchInstallCountsFromGitHub
* Fetch install counts from GitHub stats repository
utils/plugins/installCounts.ts:184
↓ 1 callers
Function
fetchLatestEvents
( ctx: HistoryAuthCtx, limit = HISTORY_PAGE_SIZE, )
assistant/sessionHistory.ts:73
↓ 1 callers
Function
fetchLogs
(limit?: number)
utils/sessionStorage.ts:2559
↓ 1 callers
Function
fetchOlderEvents
( ctx: HistoryAuthCtx, beforeId: string, limit = HISTORY_PAGE_SIZE, )
assistant/sessionHistory.ts:81
↓ 1 callers
Function
fetchOverageCreditGrant
* Fetch the current user's overage credit grant eligibility from the backend. * The backend resolves tier-specific amounts and role-based claim permi
services/api/overageCreditGrant.ts:29
↓ 1 callers
Function
fetchPolicyLimits
* Fetch policy limits (single attempt, no retries)
services/policyLimits/index.ts:300
↓ 1 callers
Function
fetchPrStatus
()
utils/ghPrStatus.ts:46
↓ 1 callers
Function
fetchProfileInfo
(accessToken: string)
services/oauth/client.ts:355
↓ 1 callers
Function
fetchReferralEligibility
( campaign: ReferralCampaign = 'claude_code_guest_pass', )
services/api/referral.ts:26
↓ 1 callers
Function
fetchReferralRedemptions
( campaign: string = 'claude_code_guest_pass', )
services/api/referral.ts:47
↓ 1 callers
Function
fetchRemoteManagedSettings
* Fetch the full remote settings (single attempt, no retries) * Optionally pass a cached checksum for ETag-based caching
services/remoteManagedSettings/index.ts:248
↓ 1 callers
Function
fetchResponse
()
commands/btw/btw.tsx:88
↓ 1 callers
Function
fetchSessionTitle
* One-shot fetch of a session's title via GET /v1/sessions/{id}. * * Uses `getBridgeSession` from createSession.ts (ccr-byoc headers + org UUID) *
bridge/bridgeMain.ts:1971
↓ 1 callers
Function
fetchTeamMemory
( state: SyncState, repoSlug: string, etag?: string | null, )
services/teamMemorySync/index.ts:387
↓ 1 callers
Function
fetchTeamMemoryHashes
* Fetch only per-key checksums + metadata (no entry bodies). * Used for cheap serverChecksums refresh during 412 conflict resolution — avoids * down
services/teamMemorySync/index.ts:315
↓ 1 callers
Function
fetchTeamMemoryOnce
( state: SyncState, repoSlug: string, etag?: string | null, )
services/teamMemorySync/index.ts:188
↓ 1 callers
Function
fetchUltrareviewQuota
()
services/api/ultrareviewQuota.ts:19
↓ 1 callers
Function
fetchUntrackedFiles
* Fetch untracked file names (no content reading). * Returns file paths only - they'll be displayed with a note to stage them. * * @param maxFiles
utils/gitDiff.ts:334
↓ 1 callers
Function
fetchUserSettingsOnce
()
services/settingsSync/index.ts:247
↓ 1 callers
Function
fetchWithRetry
* Fetch remote settings with retry logic and exponential backoff * Uses existing codebase retry utilities for consistency
services/remoteManagedSettings/index.ts:209
↓ 1 callers
Function
fetchWithRetry
* Fetch policy limits with retry logic and exponential backoff
services/policyLimits/index.ts:267
↓ 1 callers
Function
fileHistoryEnabledSdk
()
utils/fileHistory.ts:73
↓ 1 callers
Function
fileHistoryHasAnyChanges
( state: FileHistoryState, messageId: UUID, )
utils/fileHistory.ts:494
↓ 1 callers
Function
fileNameWords
(filePath: string)
services/voiceKeyterms.ts:48
↓ 1 callers
Function
fileSuffixForOauthConfig
()
constants/oauth.ts:18
↓ 1 callers
Function
fillBackground
(px: Uint8Array, bg: AnsiColor)
utils/ansiToPng.ts:162
↓ 1 callers
Function
filterAllowedSdkBetas
( sdkBetas: string[] | undefined, )
utils/betas.ts:64
↓ 1 callers
Function
filterAppsForDescription
( installed: readonly InstalledAppLike[], homeDir: string | undefined, )
utils/computerUse/appNames.ts:168
↓ 1 callers
Function
filterCdCwdSubcommands
* Filter out `cd ${cwd}` prefix subcommands, keeping astCommands aligned. * Extracted to keep bashToolHasPermission under Bun's feature() DCE * comp
tools/BashTool/bashPermissions.ts:1367
↓ 1 callers
Function
filterControlOperators
( commandsAndOperators: string[], )
utils/bash/commands.ts:251
↓ 1 callers
Function
filterDuplicateMemoryAttachments
( attachments: Attachment[], readFileState: FileStateCache, )
utils/attachments.ts:2520
↓ 1 callers
Function
filterForBriefTool
(messages: T[], briefToolNames: string[])
components/Messages.tsx:93
↓ 1 callers
Function
filterManagedDisabledPlugins
(plugins: LoadedPlugin[])
commands/plugin/ManagePlugins.tsx:391
↓ 1 callers
Function
filterOutHyperlinkStyles
(styles: AnsiCode[])
ink/screen.ts:1113
↓ 1 callers
Function
filterPermissionRelayClients
( clients: readonly T[], isInAllowlist: (name: string) => boolean, )
services/mcp/channelPermissions.ts:177
↓ 1 callers
Function
filterReservedShortcuts
* Filter out reserved shortcuts that cannot be rebound. * These would cause /doctor to warn, so we exclude them from the template.
keybindings/template.ts:18
↓ 1 callers
Function
filterResumableSessions
(logs: LogOption[], currentSessionId: string)
commands/resume/resume.tsx:191
↓ 1 callers
Function
filterSwarmFieldsFromSchema
* Filter swarm-related fields from a tool's input schema. * Called at runtime when isAgentSwarmsEnabled() returns false.
utils/api.ts:96
↓ 1 callers
Function
filterToBundledAndMcp
(commands: Command[])
utils/attachments.ts:2651
↓ 1 callers
Function
filterTrailingThinkingFromLastAssistant
* Filter trailing thinking blocks from the last message if it's an assistant message. * The API doesn't allow assistant messages to end with thinking
utils/messages.ts:4781
↓ 1 callers
Function
finalizeOutput
(s: LoadState)
utils/sessionStoragePortable.ts:699
↓ 1 callers
Function
findAdjacentPairs
(markers: Marker[])
native-ts/color-diff/index.ts:576
↓ 1 callers
Function
findAvailableTask
* Find an available task from the team's task list. * A task is available if it's pending, has no owner, and is not blocked.
utils/swarm/inProcessRunner.ts:595
↓ 1 callers
Function
findAvailableTask
* Find an available task that can be worked on: * - Status is 'pending' * - No owner assigned * - Not blocked by any unresolved tasks
hooks/useTaskListWatcher.ts:197
↓ 1 callers
Function
findBracketObject
( text: string, offset: number, open: string, close: string, isInner: boolean, )
vim/textObjects.ts:149
↓ 1 callers
Function
findBtwTriggerPositions
(text: string)
utils/sideQuestion.ts:22
↓ 1 callers
Function
findBuddyTriggerPositions
(text: string)
buddy/useBuddyNotification.tsx:79
↓ 1 callers
Function
findChromeClient
(clients: MCPServerConnection[])
hooks/usePromptsFromClaudeInChrome.tsx:68
↓ 1 callers
Function
findCommandNode
(node: Node, parent: Node | null)
utils/bash/parser.ts:138
↓ 1 callers
Function
findCommonPrefix
* Finds the common prefix between two strings
hooks/fileSuggestions.ts:575
↓ 1 callers
Function
findCurrentIDE
(availableIDEs: DetectedIDEInfo[], dynamicMcpConfig?: Record<string, ScopedMcpServerConfig>)
commands/ide/ide.tsx:208
↓ 1 callers
Function
findElicitationInQueue
Find a queued elicitation event by server name and elicitationId.
services/mcp/elicitationHandler.ts:54
↓ 1 callers
Function
findFileSnapshotEntry
* Find a file entry in the most recent file-snapshot system message in the transcript. * Scans backwards to find the latest snapshot.
utils/plans.ts:332
↓ 1 callers
Function
findFirstMatch
( profiles: string[], substring: string, )
utils/model/bedrock.ts:43
↓ 1 callers
Function
findFirstPipeOperator
* Finds the index of the first pipe operator in parsed shell command
utils/bash/bashPipeCommand.ts:105
↓ 1 callers
Function
findFirstSubcommand
( args: string[], spec: CommandSpec | null, )
utils/shell/specPrefix.ts:71
↓ 1 callers
Function
findFirstUnescapedChar
* Find the index of the first unescaped occurrence of a character. * A character is escaped if preceded by an odd number of backslashes.
utils/permissions/permissionRuleParser.ts:158
↓ 1 callers
Function
findHighestTaskId
* Finds the highest task ID ever assigned, considering both existing files * and the high water mark (for deleted/reset tasks).
utils/tasks.ts:271
↓ 1 callers
Function
findLastCompactBoundaryIndex
(messages: T[])
utils/messages.ts:4618
↓ 1 callers
Function
findLastStringToken
* Find the last string token and its index in parsed tokens
utils/bash/shellCompletion.ts:55
↓ 1 callers
Function
findLastUnescapedChar
* Find the index of the last unescaped occurrence of a character. * A character is escaped if preceded by an odd number of backslashes.
utils/permissions/permissionRuleParser.ts:181
↓ 1 callers
Function
findLastUuid
* Walk backward through entries to find the last one with a uuid. * Some entry types (SummaryMessage, TagMessage) don't have one.
services/api/sessionIngress.ts:491
↓ 1 callers
Function
findLongestCommonPrefix
(suggestions: SuggestionItem[])
hooks/fileSuggestions.ts:587
↓ 1 callers
Function
findMarkdownFilesNative
* Native implementation to find markdown files using Node.js fs APIs * * This implementation exists alongside ripgrep for the following reasons: *
utils/markdownConfigLoader.ts:451
↓ 1 callers
Function
findMatchedAlias
* Checks if a query matches any of the command's aliases. * Returns the matched alias if found, otherwise undefined.
utils/suggestions/commandSuggestions.ts:250
↓ 1 callers
Function
findMatchingFiles
( fileIndex: FileIndex, partialPath: string, )
hooks/fileSuggestions.ts:618
↓ 1 callers
Function
findMissedTasks
(tasks: CronTask[], nowMs: number)
utils/cronTasks.ts:453
↓ 1 callers
Function
findModifiedFiles
( turnStartTime: TurnStartTime, outputsDir: string, )
utils/filePersistence/outputsScanner.ts:62
↓ 1 callers
Function
findNextDiff
* Scan for the next cell that differs between two Int32Arrays. * Returns the number of matching cells before the first difference, * or `count` if a
ink/screen.ts:1213
↓ 1 callers
Function
findNextPendingTask
(tasks: Task[] | undefined)
components/Spinner.tsx:551
↓ 1 callers
Function
findOverlyBroadPowerShellPermissions
( rules: PermissionRule[], cliAllowedTools: string[], )
utils/permissions/permissionSetup.ts:417
↓ 1 callers
Function
findPlainTextUrlAt
( screen: Screen, col: number, row: number, )
ink/selection.ts:272
↓ 1 callers
Function
findPluginByIdentifier
* Helper function to find a plugin from loaded plugins
services/plugins/pluginOperations.ts:206
↓ 1 callers
Function
findPluginInSettings
* Search all editable settings scopes for a plugin ID matching the given input. * * If `plugin` contains `@`, it's treated as a full pluginId and re
services/plugins/pluginOperations.ts:180
↓ 1 callers
Function
findPowerShell
()
utils/shell/powershellDetection.ts:24
↓ 1 callers
Function
findQuoteObject
( text: string, offset: number, quote: string, isInner: boolean, )
vim/textObjects.ts:118
↓ 1 callers
Function
findRawIndex
(uuid: string)
screens/REPL.tsx:3751
↓ 1 callers
Function
findRelevantMemories
( query: string, memoryDir: string, signal: AbortSignal, recentTools: readonly string[] = [], alread
memdir/findRelevantMemories.ts:39
↓ 1 callers
Function
findRemoteBase
()
utils/git.ts:562
↓ 1 callers
Function
findReusableCacheEntry
( mcpQuery: string, searchToken: string, )
utils/suggestions/slackChannelSuggestions.ts:140
↓ 1 callers
Function
findSeedMarketplaceLocation
* Locate a marketplace in the seed directory by name. * * Probes the canonical locations under seedDir/marketplaces/ rather than * trusting the see
utils/plugins/marketplaceManager.ts:473
↓ 1 callers
Function
findSlackChannelPositions
( text: string, )
utils/suggestions/slackChannelSuggestions.ts:110
↓ 1 callers
Function
findSlashCommandPositions
( text: string, )
utils/suggestions/commandSuggestions.ts:552
↓ 1 callers
Function
findSuitableShell
()
utils/Shell.ts:73
← previous
next →
5,201–5,300 of 11,462, ranked by callers