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
↓ 11 callers
Function
permissionRuleValueFromString
( ruleString: string, )
utils/permissions/permissionRuleParser.ts:93
↓ 11 callers
Function
permissionRuleValueFromString
( ruleString: string, )
utils/sandbox/sandbox-adapter.ts:63
↓ 11 callers
Function
prepareUserContent
({ inputString, precedingInputBlocks, }: { inputString: string precedingInputBlocks: ContentBlockParam
utils/messages.ts:525
↓ 11 callers
Function
processMemoryFile
( filePath: string, type: MemoryType, processedPaths: Set<string>, includeExternal: boolean, depth:
utils/claudemd.ts:618
↓ 11 callers
Function
processSessionStartHooks
( source: 'startup' | 'resume' | 'clear' | 'compact', { sessionId, agentType, model, force
utils/sessionStart.ts:35
↓ 11 callers
Function
recordTranscript
( messages: Message[], teamInfo?: TeamInfo, startingParentUuidHint?: UUID, allMessages?: readonly Mess
utils/sessionStorage.ts:1408
↓ 11 callers
Method
render
(node: ReactNode)
ink/ink.tsx:1442
↓ 11 callers
Method
reportState
Report worker state to CCR via PUT /sessions/{id}/worker.
cli/transports/ccrClient.ts:645
↓ 11 callers
Method
request
* Send an authenticated HTTP request to CCR. Handles auth headers, * 409 epoch mismatch, and error logging. Returns { ok: true } on 2xx. * On 42
cli/transports/ccrClient.ts:556
↓ 11 callers
Function
requireComputerUseInput
()
utils/computerUse/inputLoader.ts:22
↓ 11 callers
Function
resetSettingsCache
()
utils/settings/settingsCache.ts:55
↓ 11 callers
Function
resolveEdgeRaw
(edges: Value[], physicalEdge: number)
native-ts/yoga-layout/index.ts:233
↓ 11 callers
Function
setNeedsAutoModeExitAttachment
(value: boolean)
bootstrap/state.ts:1369
↓ 11 callers
Function
setOriginalCwd
(cwd: string)
bootstrap/state.ts:515
↓ 11 callers
Function
setUseCoworkPlugins
(value: boolean)
bootstrap/state.ts:1255
↓ 11 callers
Method
stop
()
utils/claudeInChrome/chromeNativeHost.ts:193
↓ 11 callers
Function
str
(k: string)
components/messageActions.tsx:69
↓ 11 callers
Function
tokenCountWithEstimation
(messages: readonly Message[])
utils/tokens.ts:226
↓ 11 callers
Function
updateTaskState
* Updates task state in AppState.
utils/swarm/inProcessRunner.ts:519
↓ 11 callers
Function
useAnimationFrame
( intervalMs: number | null = 16, )
ink/hooks/use-animation-frame.ts:30
↓ 11 callers
Function
useInterval
( callback: () => void, intervalMs: number | null, )
ink/hooks/use-interval.ts:43
↓ 10 callers
Function
buildPluginTelemetryFields
( name: string, marketplace: string | undefined, managedNames: Set<string> | null = null, )
utils/telemetry/pluginTelemetry.ts:133
↓ 10 callers
Function
cleanup
()
hooks/useDiffInIDE.ts:234
↓ 10 callers
Function
clearBridgePointer
(dir: string)
bridge/bridgePointer.ts:190
↓ 10 callers
Function
clearKeychainCache
()
utils/secureStorage/macOsKeychainHelpers.ts:87
↓ 10 callers
Method
close
()
services/oauth/auth-code-listener.ts:199
↓ 10 callers
Function
createSyntheticUserCaveatMessage
()
utils/messages.ts:566
↓ 10 callers
Function
createTaskStateBase
( id: string, type: TaskType, description: string, toolUseId?: string, )
Task.ts:108
↓ 10 callers
Function
deriveSecurityFlags
( parsed: ParsedPowerShellCommand, )
utils/powershell/parser.ts:1728
↓ 10 callers
Function
describeMcpConfigFilePath
(scope: ConfigScope)
services/mcp/utils.ts:263
↓ 10 callers
Function
done
(timedOut: boolean)
utils/process.ts:55
↓ 10 callers
Function
drainRunLoop
(fn: () => Promise<T>)
utils/computerUse/drainRunLoop.ts:61
↓ 10 callers
Function
emitSequence
(seq: string)
ink/termio/tokenize.ts:127
↓ 10 callers
Method
equals
(other: Cursor)
utils/Cursor.ts:991
↓ 10 callers
Function
formatModelPricing
(costs: ModelCosts)
utils/modelCost.ts:217
↓ 10 callers
Function
formatShortcut
Format a shortcut for display in the help menu (e.g., "ctrl+o" → "ctrl + o")
components/PromptInput/PromptInputHelpMenu.tsx:13
↓ 10 callers
Function
getAccessToken
()
main.tsx:3322
↓ 10 callers
Function
getBaseDirectories
()
utils/nativeInstaller/installer.ts:115
↓ 10 callers
Method
getComputedBorder
(edge: LayoutEdge)
ink/layout/yoga.ts:124
↓ 10 callers
Function
getContextWindowForModel
( model: string, betas?: string[], )
utils/context.ts:51
↓ 10 callers
Function
getCurrentSessionTitle
( sessionId: SessionId, )
utils/sessionStorage.ts:2739
↓ 10 callers
Function
getLastAssistantMessage
( messages: Message[], )
utils/messages.ts:331
↓ 10 callers
Function
getMcpPrefix
(serverName: string)
services/mcp/mcpStringUtils.ts:39
↓ 10 callers
Function
getModeColor
(mode: PermissionMode)
utils/permissions/PermissionMode.ts:139
↓ 10 callers
Function
getModeFromInput
(input: string)
components/PromptInput/inputModes.ts:16
↓ 10 callers
Function
getPathsForPermissionCheck
(inputPath: string)
utils/fsOperations.ts:288
↓ 10 callers
Function
getPerformance
()
utils/profilerBase.ts:14
↓ 10 callers
Function
getPluginById
(pluginId: string)
utils/plugins/marketplaceManager.ts:2238
↓ 10 callers
Function
getPollIntervalConfig
()
bridge/pollConfig.ts:102
↓ 10 callers
Function
getProjectsDir
()
utils/sessionStorage.ts:198
↓ 10 callers
Function
getSystemPrompt
( tools: Tools, model: string, additionalWorkingDirectories?: string[], mcpClients?: MCPServerConnecti
constants/prompts.ts:444
↓ 10 callers
Function
getTasksDir
(taskListId: string)
utils/tasks.ts:221
↓ 10 callers
Function
getTheme
(themeName: ThemeName)
utils/theme.ts:598
↓ 10 callers
Function
getVersionedCachePath
( pluginId: string, version: string, )
utils/plugins/pluginLoader.ts:172
↓ 10 callers
Function
hasSelection
(s: SelectionState)
ink/selection.ts:676
↓ 10 callers
Function
isFirstPartyAnthropicBaseUrl
()
utils/model/providers.ts:25
↓ 10 callers
Function
isIdentChar
(c: string)
utils/bash/bashParser.ts:230
↓ 10 callers
Function
isMarginAuto
(edges: Value[], physicalEdge: number)
native-ts/yoga-layout/index.ts:250
↓ 10 callers
Function
isMcpTool
(tool: Tool)
services/mcp/utils.ts:245
↓ 10 callers
Function
isMcpbSource
(source: string)
utils/plugins/mcpbHandler.ts:79
↓ 10 callers
Method
isOverWhitespace
()
utils/Cursor.ts:986
↓ 10 callers
Function
isRestrictedToPluginOnly
( surface: CustomizationSurface, )
utils/settings/pluginOnlyPolicy.ts:19
↓ 10 callers
Function
isTeamLead
( teamContext: | { leadAgentId: string } | undefined, )
utils/teammate.ts:171
↓ 10 callers
Function
makeError
(error: string)
bridge/bridgeMain.ts:1870
↓ 10 callers
Function
matchWildcardPattern
( pattern: string, command: string, )
tools/BashTool/bashPermissions.ts:353
↓ 10 callers
Function
normalizeApiKeyForConfig
(apiKey: string)
utils/authPortable.ts:17
↓ 10 callers
Function
normalizeMessagesForAPI
( messages: Message[], tools: Tools = [], )
utils/messages.ts:1989
↓ 10 callers
Function
notifySubscribers
()
utils/messageQueueManager.ts:58
↓ 10 callers
Method
onError
(event: Event)
utils/mcpWebSocketTransport.ts:38
↓ 10 callers
Function
packWord1
( styleId: number, hyperlinkId: number, width: number, )
ink/screen.ts:342
↓ 10 callers
Function
parse
* Parse a command string and return a ParsedCommand instance. * Returns null if parsing fails completely.
utils/bash/ParsedCommand.ts:310
↓ 10 callers
Function
prependBullets
(items: Array<string | string[]>)
constants/prompts.ts:167
↓ 10 callers
Function
readFileSync
(filePath: string)
utils/fileRead.ts:100
↓ 10 callers
Function
registerTask
(task: TaskState, setAppState: SetAppState)
utils/task/framework.ts:77
↓ 10 callers
Function
runTmuxInSwarm
* Runs a tmux command in the external swarm socket. * Use this for operations in the standalone swarm session (when user is not in tmux).
utils/swarm/backends/TmuxBackend.ts:87
↓ 10 callers
Function
selectFooterItem
(item: FooterItem | null)
components/PromptInput/PromptInput.tsx:481
↓ 10 callers
Function
semanticNumber
( inner: T = z.number() as unknown as T, )
utils/semanticNumber.ts:26
↓ 10 callers
Function
setClipboard
(text: string)
ink/termio/osc.ts:138
↓ 10 callers
Function
setField
(fieldName_0: string, value: number | string | boolean | string[] | undefined)
components/mcp/ElicitationDialog.tsx:328
↓ 10 callers
Function
shouldAllowManagedHooksOnly
()
utils/hooks/hooksConfigSnapshot.ts:62
↓ 10 callers
Function
sliceAnsi
( str: string, start: number, end?: number, )
utils/sliceAnsi.ts:26
↓ 10 callers
Function
truncateContent
( content: string, maxSize: number = MAX_CONTENT_SIZE, )
utils/telemetry/betaSessionTracing.ts:103
↓ 10 callers
Function
validateUuid
(maybeUuid: unknown)
utils/uuid.ts:12
↓ 10 callers
Function
write
(msg)
bridge/replBridgeTransport.ts:271
↓ 9 callers
Function
cacheMarketplaceFromGit
* Cache a marketplace from a git repository * * Clones or updates a git repository containing marketplace data. * If the repository already exists
utils/plugins/marketplaceManager.ts:1084
↓ 9 callers
Function
clamp
(value: number, min?: number, max?: number)
ink/layout/geometry.ts:93
↓ 9 callers
Function
clearMemoryFileCaches
()
utils/claudemd.ts:1119
↓ 9 callers
Function
clearPluginCache
(reason?: string)
utils/plugins/pluginLoader.ts:3225
↓ 9 callers
Function
commandBelongsToServer
( command: Command, serverName: string, )
services/mcp/utils.ts:52
↓ 9 callers
Function
createCombinedAbortSignal
( signal: AbortSignal | undefined, opts?: { signalB?: AbortSignal; timeoutMs?: number }, )
utils/combinedAbortSignal.ts:15
↓ 9 callers
Function
createCommandInputMessage
( content: string, )
utils/messages.ts:4516
↓ 9 callers
Function
decreset
(mode: number)
ink/termio/dec.ts:32
↓ 9 callers
Function
decset
(mode: number)
ink/termio/dec.ts:27
↓ 9 callers
Function
extractCompletionToken
(text: string, cursorPos: number, includeAtSymbol = false)
hooks/useTypeahead.tsx:261
↓ 9 callers
Function
extractRules
( updates: PermissionUpdate[] | undefined, )
utils/permissions/PermissionUpdate.ts:30
↓ 9 callers
Method
flush
()
utils/sessionStorage.ts:841
↓ 9 callers
Function
formatMs
(ms: number)
utils/profilerBase.ts:22
↓ 9 callers
Function
generateBarChart
( data: Record<string, number>, color: string, maxItems = 6, fixedOrder?: string[], )
commands/insights.ts:1824
↓ 9 callers
Function
getAgentContext
()
utils/agentContext.ts:100
↓ 9 callers
Function
getAgentMemoryDir
( agentType: string, scope: AgentMemoryScope, )
tools/AgentTool/agentMemory.ts:52
← previous
next →
401–500 of 11,462, ranked by callers