Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gitlawb/openclaude
/ functions
Functions
15,760 in github.com/Gitlawb/openclaude
⨍
Functions
15,760
◇
Types & classes
602
↓ 38 callers
Function
onStateChange
(state, detail)
src/cli/print.ts:4126
↓ 38 callers
Function
restoreEnv
(key: string, value: string | undefined)
src/services/api/openaiShim.test.ts:57
↓ 38 callers
Function
sanitizeToolNameForAnalytics
( toolName: string, )
src/services/analytics/metadata.ts:70
↓ 37 callers
Function
isPrivateHostname
(hostname: string)
src/tools/WebSearchTool/providers/custom.ts:289
↓ 37 callers
Function
makeUser
(uuid: string, text = 'hello')
src/services/compact/snipCompact.test.ts:16
↓ 37 callers
Function
maybe
(label: string, f: () => Promise<A[]>)
src/utils/attachments.ts:1031
↓ 37 callers
Function
mockProvider
( provider: MockProvider, isFirstPartyAnthropicBaseUrl = false, )
src/utils/model/agent.test.ts:35
↓ 37 callers
Function
normalizeProfileModel
( value: string | undefined | null, )
src/utils/providerProfile.ts:288
↓ 37 callers
Function
setStatus
(s: string)
src/screens/REPL.tsx:4536
↓ 37 callers
Function
uid
(s: string)
src/services/contextCollapse/collapseUtils.test.ts:14
↓ 36 callers
Method
append
(content: string)
src/utils/task/diskOutput.ts:110
↓ 36 callers
Function
file
(relative: string)
src/__tests__/bugfixes.test.ts:21
↓ 36 callers
Function
getAppState
()
src/commands/commit.ts:71
↓ 36 callers
Function
getIsRemoteMode
()
src/bootstrap/state.ts:1546
↓ 36 callers
Function
isAutoMemoryEnabled
()
src/memdir/paths.ts:31
↓ 36 callers
Function
resolveModelReasoningControl
( model: string, context?: ReasoningControlContext, )
src/utils/effort.ts:460
↓ 35 callers
Function
addGlobalEntity
( type: string, name: string, attributes: Record<string, string> = {}, )
src/utils/knowledgeGraph.ts:339
↓ 35 callers
Function
createBackgroundSession
( input: CreateBackgroundSessionInput, )
src/cli/bgRegistry.ts:375
↓ 35 callers
Function
getProject
()
src/utils/sessionStorage.ts:451
↓ 35 callers
Function
getSessionContextWindowOverride
( model: string, )
src/utils/context.ts:119
↓ 35 callers
Function
getTeamName
(teamContext?: { teamName: string })
src/utils/teammate.ts:111
↓ 35 callers
Function
renderMessagesToMarkdown
(messages: Message[], _tools?: Tools, _columns?: number)
src/utils/exportRenderer.tsx:147
↓ 35 callers
Function
restoreEnv
(key: string, value: string | undefined)
src/services/api/client.test.ts:62
↓ 35 callers
Function
useShortcutDisplay
( action: string, context: KeybindingContextName, fallback: string, )
src/keybindings/useShortcutDisplay.ts:29
↓ 35 callers
Method
warn
(message: string)
src/entrypoints/sdk/permissions.ts:55
↓ 34 callers
Function
createPermissionRequestMessage
(params: { request_id: string agent_id: string tool_name: string tool_use_id: string description: st
src/utils/teammateMailbox.ts:488
↓ 34 callers
Function
getSubscriptionType
()
src/utils/auth.ts:1683
↓ 34 callers
Function
isLocalProviderUrl
(baseUrl: string | undefined)
src/services/api/providerConfig.ts:414
↓ 34 callers
Function
mockProviderProfiles
( overrides: Partial<typeof import('../../utils/providerProfiles.js')> = {}, )
src/commands/model/model.test.tsx:139
↓ 34 callers
Function
resolveOpenAIShimRuntimeContext
(options?: { processEnv?: NodeJS.ProcessEnv baseUrl?: string model?: string activeProfileProvider?: st
src/integrations/runtimeMetadata.ts:225
↓ 34 callers
Function
saveLex
(L: Lexer)
src/utils/bash/bashParser.ts:756
↓ 34 callers
Method
shift
* Shift full-width rows within [top, bottom] by n. n > 0 = up. Mirrors * what DECSTBM + SU/SD does to the terminal. Paired with blit() to reuse
src/ink/output.ts:261
↓ 34 callers
Function
sleep
(ms: number)
src/cli/bg.ts:676
↓ 33 callers
Function
extractCacheMetrics
( usage: RawUsage, provider: CacheAwareProvider, )
src/services/api/cacheMetrics.ts:426
↓ 33 callers
Function
normalizeToolArguments
( toolName: string, rawArguments: string | undefined, )
src/services/api/toolArgumentNormalization.ts:42
↓ 33 callers
Function
readFileSync
(fsPath, options)
src/utils/fsOperations.ts:464
↓ 33 callers
Function
sameOptionalEnvValue
( left: string | undefined, right: string | undefined, )
src/utils/providerProfiles.ts:539
↓ 32 callers
Function
cleanup
()
src/utils/ShellCommand.ts:476
↓ 32 callers
Function
createAbortController
( maxListeners: number = DEFAULT_MAX_LISTENERS, )
src/utils/abortController.ts:16
↓ 32 callers
Function
createSystemMessage
( content: string, level: SystemMessageLevel, toolUseID?: string, preventContinuation?: boolean, )
src/utils/messages.ts:4620
↓ 32 callers
Function
hasNonEmptyEnvValue
(value: string | undefined)
src/integrations/routeMetadata.ts:234
↓ 32 callers
Function
modelSupportsEffort
(model: string, context?: ReasoningControlContext)
src/utils/effort.ts:482
↓ 32 callers
Function
permissionRuleValueToString
( ruleValue: PermissionRuleValue, )
src/utils/permissions/permissionRuleParser.ts:144
↓ 32 callers
Function
truncate
( text: string, columns: number, position: 'start' | 'middle' | 'end', )
src/ink/wrap-text.ts:15
↓ 32 callers
Function
useNotifications
()
src/context/notifications.tsx:39
↓ 31 callers
Function
asMockFetch
( // eslint-disable-next-line @typescript-eslint/no-explicit-any mockFn: Mock<(...args: any[]) => any>, )
src/test/typedMocks.ts:9
↓ 31 callers
Method
feed
(chunk: string)
src/services/api/thinkTagSanitizer.ts:74
↓ 31 callers
Function
isFsInaccessible
(e: unknown)
src/utils/errors.ts:187
↓ 31 callers
Method
next
()
src/utils/stream.ts:19
↓ 31 callers
Function
resolveToCanonical
(name: string)
src/tools/PowerShellTool/readOnlyValidation.ts:984
↓ 31 callers
Function
sendControlResponseSuccess
( message: SDKControlRequest, response?: Record<string, unknown>, )
src/cli/print.ts:2902
↓ 31 callers
Function
sleep
(ms: number)
src/utils/settings/changeDetector.test.ts:57
↓ 31 callers
Function
switchSession
( sessionId: SessionId, projectDir: string | null = null, )
src/bootstrap/state.ts:495
↓ 30 callers
Function
canUseTool
( tool, input, toolUseContext, assistantMessage, toolUseId, forceDecision, )
src/cli/print.ts:4320
↓ 30 callers
Method
cancel
()
src/utils/task/diskOutput.ts:137
↓ 30 callers
Function
cleanState
()
src/services/contextCollapse/index.test.ts:69
↓ 30 callers
Function
createToolFailureLoopGuardState
()
src/query/toolFailureLoopGuard.ts:27
↓ 30 callers
Function
errorMessage
(err: ImportTokenError, codeUrl: string)
src/commands/remote-setup/remote-setup.tsx:62
↓ 30 callers
Function
findToolByName
(tools: Tools, name: string)
src/Tool.ts:387
↓ 30 callers
Function
make_provider
(name, healthy=True, configured=True, latency=100.0, cost=0.002, errors=0, requests=0)
python/tests/test_smart_router.py:22
↓ 30 callers
Function
run
(args: string)
src/commands/lsp/lsp.test.ts:161
↓ 29 callers
Function
createBaseHookInput
( permissionMode?: string, sessionId?: string, // Typed narrowly (not ToolUseContext) so callers can pas
src/utils/hooks.ts:490
↓ 29 callers
Function
debug
(msg: string)
src/bridge/bridgeApi.ts:69
↓ 29 callers
Function
escapeHtml
(value)
vscode-extension/openclaude-vscode/src/extension.js:27
↓ 29 callers
Function
getPrimaryModel
(modelField: string)
src/utils/providerModels.ts:25
↓ 29 callers
Method
isSandboxingEnabled
()
src/utils/sandbox/sandbox-adapter.ts:903
↓ 29 callers
Function
logMCPError
(serverName: string, error: unknown)
src/utils/log.ts:303
↓ 29 callers
Function
openBrowser
(url: string)
src/utils/browser.ts:39
↓ 29 callers
Function
pathExists
(path: string)
src/utils/file.ts:39
↓ 28 callers
Method
_broadcast
(msg)
vscode-extension/openclaude-vscode/src/chat/chatProvider.js:76
↓ 28 callers
Function
createMessage
(content: string)
src/utils/incrementalTokenCounter.test.ts:5
↓ 28 callers
Function
getAvailableEffortLevels
(model: string, context?: ReasoningControlContext)
src/utils/effort.ts:754
↓ 28 callers
Function
getGlobalGraph
()
src/utils/knowledgeGraph.ts:326
↓ 28 callers
Function
getOAuthHeaders
(accessToken: string)
src/utils/teleport/api.ts:276
↓ 28 callers
Function
getProjectsDir
()
vscode-extension/openclaude-vscode/src/chat/sessionManager.js:46
↓ 28 callers
Function
normalize
(p: string)
src/utils/plugins/pluginOptionsStorage.ts:330
↓ 28 callers
Function
resolveRouteIdFromBaseUrl
( baseUrl?: string, options?: { requireDiscovery?: boolean }, )
src/integrations/routeMetadata.ts:803
↓ 28 callers
Function
setOriginalCwd
(cwd: string)
src/bootstrap/state.ts:551
↓ 28 callers
Method
stop
()
src/utils/claudeInChrome/chromeNativeHost.ts:193
↓ 28 callers
Function
toolMatchesName
( tool: { name: string; aliases?: string[] }, name: string, )
src/Tool.ts:377
↓ 28 callers
Function
trimOrUndefined
(value: string | undefined)
src/utils/providerProfiles.ts:186
↓ 28 callers
Function
writeToMailbox
( recipientName: string, message: Omit<TeammateMessage, 'read'>, teamName?: string, )
src/utils/teammateMailbox.ts:134
↓ 27 callers
Function
buildStartupEnvFromProfile
(options?: { persisted?: ProfileFile | null goal?: RecommendationGoal processEnv?: NodeJS.ProcessEnv g
src/utils/providerProfile.ts:1862
↓ 27 callers
Method
clear
()
src/utils/storage/SQLiteProvider.ts:262
↓ 27 callers
Function
getCommands
(cwd: string)
src/commands.ts:522
↓ 27 callers
Method
getCount
* Get token count using cache when possible. * O(1) for cached, O(n) for new messages.
src/utils/incrementalTokenCounter.ts:72
↓ 27 callers
Function
recordRequest
( metrics: CacheMetrics, label: string, )
src/services/api/cacheStatsTracker.ts:92
↓ 27 callers
Function
setActiveProviderProfile
( profileId: string, options?: ProfileFileLocation, )
src/utils/providerProfiles.ts:1407
↓ 27 callers
Function
setSessionContextWindowOverride
( model: string, tokens: number, )
src/utils/context.ts:83
↓ 26 callers
Function
asNonEmptyString
(value)
vscode-extension/openclaude-vscode/src/state.js:26
↓ 26 callers
Function
clearAllCaches
()
src/utils/plugins/cacheUtils.ts:44
↓ 26 callers
Function
cliOk
(msg?: string)
src/cli/exit.ts:27
↓ 26 callers
Function
extractTextContent
( blocks: readonly { readonly type: string }[], separator = '', )
src/utils/messages.ts:3167
↓ 26 callers
Function
getAgentName
()
src/utils/teammate.ts:98
↓ 26 callers
Function
getRouteDescriptor
( routeId: string, )
src/integrations/routeMetadata.ts:128
↓ 26 callers
Function
getSessionIdFromLog
(log: LogOption)
src/utils/sessionStorage.ts:3292
↓ 26 callers
Method
getStats
* Gets cache statistics for debugging/monitoring.
src/utils/fileReadCache.ts:87
↓ 26 callers
Function
importFreshEffortModule
(options: { provider: 'codex' | 'openai' supportsCodexReasoningEffort: boolean routeId?: string catalo
src/utils/effort.codex.test.ts:38
↓ 26 callers
Function
loadKnownMarketplacesConfig
()
src/utils/plugins/marketplaceManager.ts:351
↓ 26 callers
Function
mapModel
(raw: unknown)
src/integrations/gateways/groq.ts:32
← previous
next →
201–300 of 15,760, ranked by callers