Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tanbiralam/claude-code
/ functions
Functions
11,484 in github.com/tanbiralam/claude-code
⨍
Functions
11,484
◇
Types & classes
506
↓ 2 callers
Function
restoreHeredocs
( parts: string[], heredocs: Map<string, HeredocInfo>, )
src/utils/bash/heredoc.ts:711
↓ 2 callers
Function
restoreRemoteAgentTasks
(context: TaskContext)
src/tasks/RemoteAgentTask/RemoteAgentTask.tsx:477
↓ 2 callers
Function
restoreSessionToOriginalCwd
* Restore session state to reflect the original directory. * This is the inverse of the session-level mutations in EnterWorktreeTool.call(). * * ke
src/tools/ExitWorktreeTool/ExitWorktreeTool.ts:122
↓ 2 callers
Function
restoreWorktreeSession
(session: WorktreeSession | null)
src/utils/worktree.ts:167
↓ 2 callers
Function
resumeHelpMessage
(result: ResumeResult)
src/commands/resume/resume.tsx:31
↓ 2 callers
Method
resumeStdin
()
src/ink/ink.tsx:1396
↓ 2 callers
Method
retryFailedEvents
()
src/services/analytics/firstPartyEventLoggingExporter.ts:469
↓ 2 callers
Function
revokeToken
* Revokes a single token on the OAuth server. * * Per RFC 7009, public clients (like Claude Code) should authenticate by including * client_id in t
src/services/mcp/auth.ts:381
↓ 2 callers
Function
rgb
(c: Color)
src/ink/termio/osc.ts:478
↓ 2 callers
Function
ripGrepRaw
( args: string[], target: string, abortSignal: AbortSignal, callback: ( error: ExecFileException |
src/utils/ripgrep.ts:108
↓ 2 callers
Function
rollFrom
(rng: () => number)
src/buddy/companion.ts:91
↓ 2 callers
Function
rollbackConsolidationLock
( priorMtime: number, )
src/services/autoDream/consolidationLock.ts:91
↓ 2 callers
Function
ruleIdToLabel
* Convert a gitleaks rule ID (kebab-case) to a human-readable label. * e.g., "github-pat" → "GitHub PAT", "aws-access-token" → "AWS Access Token"
src/services/teamMemorySync/secretScanner.ts:243
↓ 2 callers
Function
ruleMatches
(ruleContent: string)
src/tools/SkillTool/SkillTool.ts:451
↓ 2 callers
Function
runAsyncAgentLifecycle
({ taskId, abortController, makeStream, metadata, description, toolUseContext, rootSetAppState,
src/tools/AgentTool/agentToolUtils.ts:508
↓ 2 callers
Function
runBridgeLoop
( config: BridgeConfig, environmentId: string, environmentSecret: string, api: BridgeApiClient, spaw
src/bridge/bridgeMain.ts:141
↓ 2 callers
Function
runExtraUsage
()
src/commands/extra-usage/extra-usage-core.ts:18
↓ 2 callers
Function
runSideQuestion
({ question, cacheSafeParams, }: { question: string cacheSafeParams: CacheSafeParams })
src/utils/sideQuestion.ts:53
↓ 2 callers
Function
runTools
( toolUseMessages: ToolUseBlock[], assistantMessages: AssistantMessage[], canUseTool: CanUseToolFn, to
src/services/tools/toolOrchestration.ts:19
↓ 2 callers
Function
runWithCwdOverride
(cwd: string, fn: () => T)
src/utils/cwd.ts:12
↓ 2 callers
Function
runWithWorkload
( workload: string | undefined, fn: () => T, )
src/utils/workloadContext.ts:52
↓ 2 callers
Function
sanitize
(str: string)
src/utils/dxt/helpers.ts:71
↓ 2 callers
Function
sanitizeCore
* Length cap + trim + dedupe + sort. `applyCharFilter` — skip for trusted * bundle IDs (Apple/Google/MS; a localized "Réglages Système" with unusual
src/utils/computerUse/appNames.ts:132
↓ 2 callers
Function
sanitizeModelName
(shortName: string)
src/utils/commitAttribution.ts:154
↓ 2 callers
Function
sanitizeName
(name: string)
src/utils/swarm/teamHelpers.ts:100
↓ 2 callers
Function
sanitizePath
(name: string)
src/utils/sessionStoragePortable.ts:311
↓ 2 callers
Function
satisfies
(version: string, range: string)
src/utils/semver.ts:47
↓ 2 callers
Function
saveAgentColor
( sessionId: UUID, agentColor: string, fullPath?: string, )
src/utils/sessionStorage.ts:2838
↓ 2 callers
Function
saveAgentName
( sessionId: UUID, agentName: string, fullPath?: string, source: 'user' | 'auto' = 'user', )
src/utils/sessionStorage.ts:2819
↓ 2 callers
Function
saveAgentSetting
(agentSetting: string)
src/utils/sessionStorage.ts:2861
↓ 2 callers
Function
saveConfig
( file: string, config: A, defaultConfig: A, )
src/utils/config.ts:1116
↓ 2 callers
Function
saveConfigWithLock
* Returns true if a write was performed; false if the write was skipped * (no changes, or auth-loss guard tripped). Callers use this to decide * whe
src/utils/config.ts:1153
↓ 2 callers
Function
saveCurrentSessionCosts
(fpsMetrics?: FpsMetrics)
src/cost-tracker.ts:143
↓ 2 callers
Method
saveEventsToFile
( filePath: string, events: FirstPartyEventLoggingEvent[], )
src/services/analytics/firstPartyEventLoggingExporter.ts:171
↓ 2 callers
Function
saveIdpIdToken
( idpIssuer: string, idToken: string, expiresAt: number, )
src/services/mcp/xaaIdpLogin.ts:109
↓ 2 callers
Function
savePluginOptions
( pluginId: string, values: PluginOptionValues, schema: PluginOptionSchema, )
src/utils/plugins/pluginOptionsStorage.ts:90
↓ 2 callers
Function
saveTag
(sessionId: UUID, tag: string, fullPath?: string)
src/utils/sessionStorage.ts:2690
↓ 2 callers
Function
scanForContext
( handle: FileHandle, needle: string, contextLines: number, )
src/utils/readEditContext.ts:60
↓ 2 callers
Function
scanForSecrets
(content: string)
src/services/teamMemorySync/secretScanner.ts:277
↓ 2 callers
Function
scanMemoryFiles
( memoryDir: string, signal: AbortSignal, )
src/memdir/memoryScan.ts:35
↓ 2 callers
Function
schedule
(sessionId: string, token: string)
src/bridge/jwtUtils.ts:102
↓ 2 callers
Method
scheduleBackoffRetry
()
src/services/analytics/firstPartyEventLoggingExporter.ts:445
↓ 2 callers
Function
scheduleNext
()
src/services/AgentSummary/agentSummary.ts:157
↓ 2 callers
Method
scheduleReconnect
(delay: number, label: string)
src/remote/SessionsWebSocket.ts:290
↓ 2 callers
Function
scoreBonusAt
* Boundary/camelCase bonus for a match at position `pos` in the original-case * path. `first` enables the start-of-string bonus (only for needle[0]).
src/native-ts/file-index/index.ts:297
↓ 2 callers
Function
sdkCompatToolName
(name: string)
src/utils/messages/systemInit.ts:23
↓ 2 callers
Function
segmentGraphemes
(str: string)
src/ink/termio/parser.ts:71
↓ 2 callers
Function
selectionChangeHandler
(data: SelectionData)
src/hooks/useIdeSelection.ts:91
↓ 2 callers
Method
sendCommandToPane
* Sends a command to a specific pane.
src/utils/swarm/backends/TmuxBackend.ts:151
↓ 2 callers
Function
sendIdleNotification
* Sends idle notification to the leader via file-based mailbox. * Uses agentName (not agentId) for consistency with process-based teammates.
src/utils/swarm/inProcessRunner.ts:569
↓ 2 callers
Method
sendInterrupt
* Send an interrupt signal to cancel the current request
src/server/directConnectManager.ts:172
↓ 2 callers
Method
sendLine
(line: string)
src/cli/transports/WebSocketTransport.ts:331
↓ 2 callers
Method
sendMessage
* Send a user message to the remote session via HTTP POST
src/remote/RemoteSessionManager.ts:219
↓ 2 callers
Method
sendMessage
(content: RemoteMessageContent)
src/server/directConnectManager.ts:125
↓ 2 callers
Function
sendPermissionRequestViaMailbox
( request: SwarmPermissionRequest, )
src/utils/swarm/permissionSync.ts:676
↓ 2 callers
Function
sendShutdownRequestToMailbox
( targetName: string, teamName?: string, reason?: string, )
src/utils/teammateMailbox.ts:831
↓ 2 callers
Function
serverSecretsKey
* Compose the secureStorage key for a per-server secret bucket. * `pluginSecrets` is a flat map — per-server secrets share it with top-level * plugi
src/utils/plugins/mcpbHandler.ts:124
↓ 2 callers
Function
sessionIdExists
(sessionId: string)
src/utils/sessionStorage.ts:401
↓ 2 callers
Function
setAdditionalDirectoriesForClaudeMd
( directories: string[], )
src/bootstrap/state.ts:1670
↓ 2 callers
Method
setAltScreenActive
* Called by the <AlternateScreen> component on mount/unmount. * Controls cursor.y clamping in the renderer and gates alt-screen-aware * behavior
src/ink/ink.tsx:861
↓ 2 callers
Function
setAttribute
( node: DOMElement, key: string, value: DOMNodeAttribute, )
src/ink/dom.ts:247
↓ 2 callers
Function
setAvailable
( ctx: ToolPermissionContext, available: boolean, )
src/utils/permissions/permissionSetup.ts:1142
↓ 2 callers
Function
setAwaitingPlanApproval
( taskId: string, setAppState: SetAppState, awaiting: boolean, )
src/utils/inProcessTeammateHelpers.ts:55
↓ 2 callers
Function
setClassifierChecking
(toolUseID: string)
src/utils/classifierApprovals.ts:62
↓ 2 callers
Function
setClaudeSocketInfo
(path: string, pid: number)
src/utils/tmuxSocket.ts:110
↓ 2 callers
Function
setCostStateForRestore
({ totalCostUSD, totalAPIDuration, totalAPIDurationWithoutRetries, totalToolDuration, totalLinesAdde
src/bootstrap/state.ts:881
↓ 2 callers
Function
setEnvHookNotifier
( cb: ((text: string, isError: boolean) => void) | null, )
src/utils/hooks/fileChangedWatcher.ts:22
↓ 2 callers
Method
setError
(error: string)
src/utils/awsAuthStatusManager.ts:53
↓ 2 callers
Function
setEventHandler
(node: DOMElement, key: string, value: unknown)
src/ink/reconciler.ts:114
↓ 2 callers
Function
setEventLogger
( logger: ReturnType<typeof logs.getLogger> | null, )
src/bootstrap/state.ts:1037
↓ 2 callers
Method
setFlexBasis
(value: number)
src/ink/layout/yoga.ts:193
↓ 2 callers
Function
setHasDevChannels
(value: boolean)
src/bootstrap/state.ts:1688
↓ 2 callers
Function
setIsRemoteMode
(value: boolean)
src/bootstrap/state.ts:1635
↓ 2 callers
Function
setKairosActive
(value: boolean)
src/bootstrap/state.ts:1089
↓ 2 callers
Function
setLastApiCompletionTimestamp
(timestamp: number)
src/bootstrap/state.ts:765
↓ 2 callers
Function
setLoggerProvider
(provider: LoggerProvider | null)
src/bootstrap/state.ts:1029
↓ 2 callers
Method
setMeasureFunc
(fn: LayoutMeasureFunc)
src/ink/layout/yoga.ts:86
↓ 2 callers
Function
setMemberActive
( teamName: string, memberName: string, isActive: boolean, )
src/utils/swarm/teamHelpers.ts:454
↓ 2 callers
Function
setMeterProvider
(provider: MeterProvider | null)
src/bootstrap/state.ts:1047
↓ 2 callers
Function
setMockBillingAccessOverride
(value: boolean | null)
src/utils/billing.ts:49
↓ 2 callers
Method
setOnControlRequestResolved
* Register a callback invoked when a can_use_tool control_response arrives * from the SDK consumer (via stdin). Used by the bridge to cancel the
src/cli/structuredIO.ts:327
↓ 2 callers
Method
setOnControlRequestSent
* Register a callback invoked whenever a can_use_tool control_request * is written to stdout. Used by the bridge to forward permission * request
src/cli/structuredIO.ts:316
↓ 2 callers
Method
setOnEvent
(callback: (event: StreamClientEvent) => void)
src/cli/transports/SSETransport.ts:675
↓ 2 callers
Method
setPaneBorderColor
* Sets the border color for a specific pane.
src/utils/swarm/backends/TmuxBackend.ts:169
↓ 2 callers
Method
setPaneTitle
* Sets the title for a pane (shown in pane border if pane-border-status is set).
src/utils/swarm/backends/TmuxBackend.ts:208
↓ 2 callers
Function
setPlanSlug
(sessionId: SessionId, slug: string)
src/utils/plans.ts:54
↓ 2 callers
Method
setPosition
(edge: LayoutEdge, value: number)
src/ink/layout/yoga.ts:259
↓ 2 callers
Function
setProjectRoot
(cwd: string)
src/bootstrap/state.ts:523
↓ 2 callers
Function
setPromptId
(id: string | null)
src/bootstrap/state.ts:1755
↓ 2 callers
Function
setQuestionPreviewFormat
(format: 'markdown' | 'html')
src/bootstrap/state.ts:1124
↓ 2 callers
Function
setRawMode
()
src/ink/components/StdinContext.ts:39
↓ 2 callers
Method
setRemoteIngressUrl
(url: string)
src/utils/sessionStorage.ts:1345
↓ 2 callers
Function
setReplBridgeHandle
(h: ReplBridgeHandle | null)
src/bridge/replBridgeHandle.ts:18
↓ 2 callers
Function
setScheduledTasksEnabled
(enabled: boolean)
src/bootstrap/state.ts:1272
↓ 2 callers
Method
setSelectionBg
(bg: AnsiCode | null)
src/ink/screen.ts:239
↓ 2 callers
Method
setSelectionBgColor
* Set the selection highlight background color. Replaces the per-cell * SGR-7 inverse with a solid theme-aware bg (matches native terminal * sel
src/ink/ink.tsx:1131
↓ 2 callers
Function
setSessionTrustAccepted
(accepted: boolean)
src/bootstrap/state.ts:1317
↓ 2 callers
Function
setStyle
(node: DOMNode, style: Styles)
src/ink/dom.ts:266
↓ 2 callers
Function
setTeleportedSessionInfo
(info: { sessionId: string | null })
src/bootstrap/state.ts:1477
↓ 2 callers
Function
setTerminalFocused
(v: boolean)
src/ink/terminal-focus-state.ts:12
← previous
next →
3,901–4,000 of 11,484, ranked by callers