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
↓ 2 callers
Function
targetFor
(i: number)
components/VirtualMessageList.tsx:472
↓ 2 callers
Function
teammateModelDisplayString
(value: string | null | undefined)
components/Settings/Config.tsx:1738
↓ 2 callers
Function
tearDown
(msg: string)
utils/worktree.ts:341
↓ 2 callers
Function
textForResubmit
( msg: UserMessage, )
utils/messages.ts:2873
↓ 2 callers
Function
toCompact
(entry: TranscriptEntry, lookup: ToolLookup)
utils/permissions/yoloClassifier.ts:426
↓ 2 callers
Function
toCompactBlock
* Serialize a single transcript block as a JSONL dict line: `{"Bash":"ls"}` * for tool calls, `{"user":"text"}` for user text. The tool value is the
utils/permissions/yoloClassifier.ts:384
↓ 2 callers
Function
toInfraSessionId
(id: string)
bridge/sessionIdCompat.ts:54
↓ 2 callers
Function
toInternalMessages
( messages: readonly DeepImmutable<SDKMessage>[], )
utils/messages/mappers.ts:26
↓ 2 callers
Method
toLocalPath
(windowsPath: string)
utils/idePathConversion.ts:28
↓ 2 callers
Function
toRelativePath
(absolutePath: string)
utils/path.ts:95
↓ 2 callers
Method
toString
* Returns the accumulated string, with truncation marker if truncated
utils/stringUtils.ts:181
↓ 2 callers
Function
toggleMembership
( list: string[], name: string, shouldContain: boolean, )
services/mcp/config.ts:1538
↓ 2 callers
Function
tokenize
(text: string)
native-ts/color-diff/index.ts:550
↓ 2 callers
Function
toolToAPISchema
( tool: Tool, options: { getToolPermissionContext: () => Promise<ToolPermissionContext> tools: Too
utils/api.ts:119
↓ 2 callers
Function
trackGitOperations
( command: string, exitCode: number, stdout?: string, )
tools/shared/gitOperationTracking.ts:189
↓ 2 callers
Function
transformResultContent
( resultContent: PromptMessage['content'], serverName: string, )
services/mcp/client.ts:2478
↓ 2 callers
Function
triggerTeardown
()
bridge/replBridge.ts:874
↓ 2 callers
Function
truncateDescription
(description: string)
hooks/unifiedSuggestions.ts:73
↓ 2 callers
Function
truncateEntrypointContent
(raw: string)
memdir/memdir.ts:57
↓ 2 callers
Function
truncateHeadForPTLRetry
( messages: Message[], ptlResponse: AssistantMessage, )
services/compact/compact.ts:243
↓ 2 callers
Function
truncateJson
* Truncates a JSON value to a maximum length for the prompt.
services/toolUseSummary/toolUseSummaryGenerator.ts:102
↓ 2 callers
Function
truncateMcpContentIfNeeded
( content: MCPToolResult, )
utils/mcpValidation.ts:200
↓ 2 callers
Function
tryAcquireLock
( versionPath: string, lockFilePath: string, )
utils/nativeInstaller/pidLock.ts:238
↓ 2 callers
Function
tryAcquireSchedulerLock
( opts?: SchedulerLockOptions, )
utils/cronTasksLock.ts:111
↓ 2 callers
Function
tryClaimNextTask
* Try to claim an available task from the team's task list. * Returns the formatted prompt if a task was claimed, or undefined if none available.
utils/swarm/inProcessRunner.ts:624
↓ 2 callers
Function
tryCreateExclusive
( lock: SchedulerLock, dir?: string, )
utils/cronTasksLock.ts:64
↓ 2 callers
Function
tryGenerateSuggestion
( abortController: AbortController, messages: Message[], getAppState: () => AppState, cacheSafeParams:
services/PromptSuggestion/promptSuggestion.ts:125
↓ 2 callers
Function
tryParseAssignment
(P: ParseState)
utils/bash/bashParser.ts:1431
↓ 2 callers
Method
tryProcessMessage
()
utils/claudeInChrome/chromeNativeHost.ts:468
↓ 2 callers
Function
tryPush
(line: string)
utils/readFileInRange.ts:148
↓ 2 callers
Function
tryReconnectInPlace
* Reconnect-in-place: if the just-registered environmentId matches what * was requested, call reconnectSession to force-stop stale workers and *
bridge/replBridge.ts:381
↓ 2 callers
Function
tryRenderPlanApprovalMessage
(content: string, senderName: string)
components/messages/PlanApprovalMessage.tsx:137
↓ 2 callers
Function
trySessionMemoryCompaction
( messages: Message[], agentId?: AgentId, autoCompactThreshold?: number, )
services/compact/sessionMemoryCompact.ts:514
↓ 2 callers
Function
tryWithVersionLock
( versionFilePath: string, callback: () => void | Promise<void>, retries = 0, )
utils/nativeInstaller/installer.ts:181
↓ 2 callers
Function
unescapeJsonString
(raw: string)
utils/sessionStoragePortable.ts:39
↓ 2 callers
Function
unregisterForeground
(taskId: string, setAppState: SetAppState)
tasks/LocalShellTask/LocalShellTask.tsx:491
↓ 2 callers
Function
unwrapDefault
( mod: MaybeDefault<T>, )
tools/FileReadTool/imageProcessor.ts:90
↓ 2 callers
Method
up
()
utils/Cursor.ts:353
↓ 2 callers
Method
upLogicalLine
()
utils/Cursor.ts:511
↓ 2 callers
Function
updateLastSummarizedMessageIdIfSafe
* Updates lastSummarizedMessageId after successful extraction. * Only sets it if the last message doesn't have tool calls (to avoid orphaned tool_res
services/SessionMemory/sessionMemory.ts:488
↓ 2 callers
Function
updatePluginsForMarketplaces
( marketplaceNames: Set<string>, )
utils/plugins/pluginAutoupdate.ts:161
↓ 2 callers
Function
updateRetryAfter
()
services/mockRateLimits.ts:186
↓ 2 callers
Function
updateSessionBridgeId
( bridgeSessionId: string | null, )
utils/concurrentSessions.ts:144
↓ 2 callers
Function
updateTaskUnsafe
( taskListId: string, taskId: string, updates: Partial<Omit<Task, 'id'>>, )
utils/tasks.ts:354
↓ 2 callers
Function
updateWatchPaths
(paths: string[])
utils/hooks/fileChangedWatcher.ts:108
↓ 2 callers
Function
updateYankLength
(length: number)
utils/Cursor.ts:105
↓ 2 callers
Function
uploadFile
( filePath: string, relativePath: string, config: FilesApiConfig, opts?: { signal?: AbortSignal }, )
services/api/filesApi.ts:378
↓ 2 callers
Function
urlMatchesPattern
* Check if a URL matches a pattern with wildcard support
services/mcp/config.ts:331
↓ 2 callers
Function
useApp
()
ink/hooks/use-app.ts:7
↓ 2 callers
Function
useClipboardImageHint
( isFocused: boolean, enabled: boolean, )
hooks/useClipboardImageHint.ts:19
↓ 2 callers
Function
useCoordinatorTaskCount
()
components/CoordinatorAgentStatus.tsx:83
↓ 2 callers
Function
useManagePlugins
({ enabled = true, }: { enabled?: boolean } = {})
hooks/useManagePlugins.ts:37
↓ 2 callers
Function
useMergedCommands
( initialCommands: Command[], mcpCommands: Command[], )
hooks/useMergedCommands.ts:5
↓ 2 callers
Function
useMergedTools
( initialTools: Tools, mcpTools: Tools, toolPermissionContext: ToolPermissionContext, )
hooks/useMergedTools.ts:20
↓ 2 callers
Function
useModalOrTerminalSize
(fallback)
context/modalContext.tsx:38
↓ 2 callers
Function
usePermissionExplainerUI
(props)
components/permissions/PermissionExplanation.tsx:92
↓ 2 callers
Function
usePluginRecommendationBase
()
hooks/usePluginRecommendationBase.tsx:24
↓ 2 callers
Function
useRegisterKeybindingContext
(context, t0)
keybindings/KeybindingContext.tsx:215
↓ 2 callers
Function
useSelectNavigation
({ visibleOptionCount = 5, options, initialFocusValue, onFocus, focusValue, }: UseSelectNavigationPr
components/CustomSelect/use-select-navigation.ts:505
↓ 2 callers
Function
useSelection
()
ink/hooks/use-selection.ts:14
↓ 2 callers
Function
useSetVoiceState
()
context/voice.tsx:76
↓ 2 callers
Function
useSettingsErrors
()
hooks/notifs/useSettingsErrors.tsx:9
↓ 2 callers
Function
useShellPermissionFeedback
({ toolUseConfirm, onDone, onReject, explainerVisible, }: { toolUseConfirm: ToolUseConfirm onDone:
components/permissions/useShellPermissionFeedback.ts:16
↓ 2 callers
Function
useShimmerAnimation
( mode: SpinnerMode, message: string, isStalled: boolean, )
components/Spinner/useShimmerAnimation.ts:6
↓ 2 callers
Function
useShowGuestPassesUpsell
()
components/LogoV2/GuestPassesUpsell.tsx:36
↓ 2 callers
Function
useShowOverageCreditUpsell
()
components/LogoV2/OverageCreditUpsell.tsx:48
↓ 2 callers
Function
useTextInput
({ value: originalValue, onChange, onSubmit, onExit, onExitMessage, onHistoryUp, onHistoryDown,
hooks/useTextInput.ts:73
↓ 2 callers
Function
useThemeSetting
()
components/design-system/ThemeProvider.tsx:144
↓ 2 callers
Function
useUpdateNotification
( updatedVersion: string | null | undefined, initialVersion: string = MACRO.VERSION, )
hooks/useUpdateNotification.ts:16
↓ 2 callers
Function
validateAgentType
(agentType: string)
components/agents/validateAgent.ts:15
↓ 2 callers
Function
validateBindings
( userBlocks: unknown, _parsedBindings: ParsedBinding[], )
keybindings/validate.ts:425
↓ 2 callers
Function
validateContentTokens
( content: string, ext: string, maxTokens?: number, )
tools/FileReadTool/FileReadTool.ts:755
↓ 2 callers
Function
validateFlagArgument
( value: string, argType: FlagArgType, )
utils/shell/readOnlyCommandValidation.ts:1650
↓ 2 callers
Function
validateFlagsAgainstAllowlist
* Helper: Validate flags against an allowlist * Handles both single flags and combined flags (e.g., -nE) * @param flags Array of flags to validate
tools/BashTool/sedValidation.ts:13
↓ 2 callers
Function
validateGitState
()
utils/teleport.tsx:172
↓ 2 callers
Function
validateGitUrl
* Validate a git URL using Node.js URL parsing
utils/plugins/pluginLoader.ts:470
↓ 2 callers
Function
validateHookJson
* Parse and validate a JSON string against the hook output Zod schema. * Returns the validated output or formatted validation errors.
utils/hooks.ts:382
↓ 2 callers
Function
validateMemoryPath
* Normalize and validate a candidate auto-memory directory path. * * SECURITY: Rejects paths that would be dangerous as a read-allowlist root * or
memdir/paths.ts:109
↓ 2 callers
Function
validatePermissionRule
(rule: string)
utils/settings/permissionValidation.ts:58
↓ 2 callers
Function
validateSessionRepository
(sessionData: SessionResource)
utils/teleport.tsx:367
↓ 2 callers
Function
validateSettingsFileContent
(content: string)
utils/settings/validation.ts:179
↓ 2 callers
Function
verifyAutoModeGateAccess
( currentContext: ToolPermissionContext, // Runtime AppState.fastMode — passed from callers with AppState
utils/permissions/permissionSetup.ts:1078
↓ 2 callers
Function
verifyIt2Setup
()
utils/swarm/backends/it2Setup.ts:152
↓ 2 callers
Function
versionIsAvailable
(version: string)
utils/nativeInstaller/installer.ts:490
↓ 2 callers
Function
visitNodes
(node: Node, visitor: (node: Node) => void)
utils/bash/ParsedCommand.ts:106
↓ 2 callers
Function
waitForPaneShellReady
()
utils/swarm/backends/TmuxBackend.ts:35
↓ 2 callers
Function
waitForRemoteManagedSettingsToLoad
()
services/remoteManagedSettings/index.ts:155
↓ 2 callers
Function
waitForScrollIdle
()
bootstrap/state.ts:818
↓ 2 callers
Function
walk
(node: TreeSitterNode)
utils/bash/treeSitterAnalysis.ts:424
↓ 2 callers
Function
walkArithmetic
* Recursively validate an arithmetic_expansion node. Allows only literal * numeric expressions — no variables, no substitutions. Returns null if * s
utils/bash/ast.ts:1675
↓ 2 callers
Function
walkFileRedirect
* Extract operator + target from a `file_redirect` node. The target must be * a static word or string.
utils/bash/ast.ts:1071
↓ 2 callers
Function
walkHeredocRedirect
* Heredoc redirect. Only quoted-delimiter heredocs (<<'EOF') are safe — * their bodies are literal text. Unquoted-delimiter heredocs (<<EOF) * under
utils/bash/ast.ts:1143
↓ 2 callers
Function
walkString
* Extract literal content from a double-quoted string node. A `string` node's * children are `"` delimiters, `string_content` literals, and possibly
utils/bash/ast.ts:1508
↓ 2 callers
Method
warn
(message: string, ...args: unknown[])
utils/claudeInChrome/mcpServer.ts:287
↓ 2 callers
Method
watchCurrentBranchRef
* Watch the loose ref file for the current branch. * Called on startup and whenever HEAD changes (branch switch).
utils/git/gitFilesystem.ts:391
↓ 2 callers
Function
widestLine
(string: string)
ink/widest-line.ts:3
↓ 2 callers
Function
willDefer
(t: Tool)
services/api/claude.ts:1208
↓ 2 callers
Function
windowsCommandValue
(claudePath: string)
utils/deepLink/registerProtocol.ts:59
↓ 2 callers
Function
wireTransport
(newTransport: ReplBridgeTransport)
bridge/replBridge.ts:1208
↓ 2 callers
Function
wireTransportCallbacks
()
bridge/remoteBridgeCore.ts:380
← previous
next →
4,101–4,200 of 11,462, ranked by callers