Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/freecodexyz/free-code
/ functions
Functions
11,548 in github.com/freecodexyz/free-code
⨍
Functions
11,548
◇
Types & classes
343
↓ 2 callers
Function
fetchPage
( ctx: HistoryAuthCtx, params: Record<string, string | number | boolean>, label: string, )
src/assistant/sessionHistory.ts:45
↓ 2 callers
Function
fetchSingleFileGitDiff
( absoluteFilePath: string, )
src/utils/gitDiff.ts:405
↓ 2 callers
Function
fetchSystemPromptParts
({ tools, mainLoopModel, additionalWorkingDirectories, mcpClients, customSystemPrompt, }: { tools:
src/utils/queryContext.ts:44
↓ 2 callers
Function
fetchUserSettings
( maxRetries = DEFAULT_MAX_RETRIES, )
src/services/settingsSync/index.ts:315
↓ 2 callers
Function
fetchWithCurrentAuth
()
src/utils/fastMode.ts:447
↓ 2 callers
Function
fileExtension
(lang: string | undefined)
src/commands/copy/copy.tsx:62
↓ 2 callers
Function
fileHistoryCanRestore
( state: FileHistoryState, messageId: UUID, )
src/utils/fileHistory.ts:399
↓ 2 callers
Function
fileHistoryRestoreStateFromLog
( fileHistorySnapshots: FileHistorySnapshot[], onUpdateState: (newState: FileHistoryState) => void, )
src/utils/fileHistory.ts:888
↓ 2 callers
Function
fileHistoryRewind
( updateFileHistoryState: ( updater: (prev: FileHistoryState) => FileHistoryState, ) => void, messag
src/utils/fileHistory.ts:347
↓ 2 callers
Function
filterAgentsByMcpRequirements
( agents: AgentDefinition[], availableServers: string[], )
src/tools/AgentTool/loadAgentsDir.ts:250
↓ 2 callers
Function
filterClaudeAliases
(lines: string[])
src/utils/shellConfig.ts:45
↓ 2 callers
Function
filterCommandsForRemoteMode
(commands: Command[])
src/commands.ts:684
↓ 2 callers
Function
filterExistingPaths
(paths: string[])
src/utils/githubRepoPathMapping.ts:94
↓ 2 callers
Function
filterGitIgnoredLocations
* Filters out locations whose file paths are gitignored. * Uses `git check-ignore` with batched path arguments for efficiency.
src/tools/LSPTool/LSPTool.ts:556
↓ 2 callers
Function
filterIncompleteToolCalls
(messages: Message[])
src/tools/AgentTool/runAgent.ts:866
↓ 2 callers
Function
filterInjectedMemoryFiles
( files: MemoryFileInfo[], )
src/utils/claudemd.ts:1142
↓ 2 callers
Function
filterInvalidPermissionRules
( data: unknown, filePath: string, )
src/utils/settings/validation.ts:224
↓ 2 callers
Function
filterMcpPromptsByServer
( commands: Command[], serverName: string, )
src/services/mcp/utils.ts:85
↓ 2 callers
Function
filterStartCodes
(codes: AnsiCode[])
src/utils/sliceAnsi.ts:16
↓ 2 callers
Function
filterToolsForAgent
({ tools, isBuiltIn, isAsync = false, permissionMode, }: { tools: Tools isBuiltIn: boolean isAsy
src/tools/AgentTool/agentToolUtils.ts:70
↓ 2 callers
Function
filterUnresolvedToolUses
(messages: Message[])
src/utils/messages.ts:2795
↓ 2 callers
Function
finalContextTokensFromLastResponse
( messages: Message[], )
src/utils/tokens.ts:79
↓ 2 callers
Function
finalizePendingAsyncHooks
()
src/utils/hooks/AsyncHookRegistry.ts:281
↓ 2 callers
Function
findAvailableIDE
()
src/utils/ide.ts:626
↓ 2 callers
Function
findAvailablePort
()
src/services/mcp/oauthPort.ts:36
↓ 2 callers
Function
findClaudeAlias
( options?: ShellConfigOptions, )
src/utils/shellConfig.ts:114
↓ 2 callers
Function
findDangerousClassifierPermissions
( rules: PermissionRule[], cliAllowedTools: string[], )
src/utils/permissions/permissionSetup.ts:295
↓ 2 callers
Function
findHighestTaskIdFromFiles
* Finds the highest task ID from existing task files (not including high water mark).
src/utils/tasks.ts:246
↓ 2 callers
Function
findInProcessTeammateTaskId
( agentName: string, appState: AppState, )
src/utils/inProcessTeammateHelpers.ts:33
↓ 2 callers
Function
findKeywordTriggerPositions
* Find keyword positions, skipping occurrences that are clearly not a * launch directive: * * - Inside paired delimiters: backticks, double quotes,
src/utils/ultraplan/keyword.ts:46
↓ 2 callers
Function
findMcpServerConnection
( toolName: string, mcpClients: MCPServerConnection[], )
src/services/tools/toolExecution.ts:283
↓ 2 callers
Function
findMostRecentBackup
* Find the most recent backup file for a given config file. * Checks ~/.claude/backups/ first, then falls back to the legacy location * (next to the
src/utils/config.ts:1392
↓ 2 callers
Function
findOverlyBroadBashPermissions
( rules: PermissionRule[], cliAllowedTools: string[], )
src/utils/permissions/permissionSetup.ts:379
↓ 2 callers
Function
findPluginOptionsTarget
(pluginId: string)
src/commands/plugin/PluginOptionsFlow.tsx:27
↓ 2 callers
Function
findPrInStdout
Find a GitHub PR URL embedded anywhere in stdout and parse it.
src/tools/shared/gitOperationTracking.ts:73
↓ 2 callers
Function
findReverseDependents
( pluginId: PluginId, plugins: readonly LoadedPlugin[], )
src/utils/plugins/dependencyResolver.ts:244
↓ 2 callers
Function
findSimilarFile
(filePath: string)
src/utils/file.ts:178
↓ 2 callers
Function
findSkillTool
(tools: Tools)
src/utils/analyzeContext.ts:517
↓ 2 callers
Function
findSlackClient
( clients: MCPServerConnection[], )
src/utils/suggestions/slackChannelSuggestions.ts:23
↓ 2 callers
Function
findThinkingTriggerPositions
(text: string)
src/utils/thinking.ts:36
↓ 2 callers
Function
findUltrareviewTriggerPositions
( text: string, )
src/utils/ultraplan/keyword.ts:101
↓ 2 callers
Function
findWordObject
( text: string, offset: number, isInner: boolean, isWordChar: (ch: string) => boolean, )
src/vim/textObjects.ts:60
↓ 2 callers
Function
finishLoadingPluginFromPath
* Shared tail of both loadPluginFromMarketplaceEntry variants. * * Once pluginPath is resolved (via clone, cache, or installPath lookup), * the res
src/utils/plugins/pluginLoader.ts:2420
↓ 2 callers
Function
finishStream
( controller: ReadableStreamDefaultController, encoder: TextEncoder, outputTokens: number, inp
src/services/api/codex-fetch-adapter.ts:684
↓ 2 callers
Method
firstNonBlankInLogicalLine
()
src/utils/Cursor.ts:503
↓ 2 callers
Function
flagTakesArg
( flag: string, nextArg: string | undefined, spec: CommandSpec | null, )
src/utils/shell/specPrefix.ts:51
↓ 2 callers
Function
flattenSlug
(slug: string)
src/utils/worktree.ts:217
↓ 2 callers
Function
flush
()
src/utils/toolResultStorage.ts:606
↓ 2 callers
Method
flush
()
src/utils/task/diskOutput.ts:133
↓ 2 callers
Function
flushBuffer
( buffer: string, styles: AnsiCode[], stylePool: StylePool, out: ClusteredChar[], )
src/ink/output.ts:586
↓ 2 callers
Function
flushGroup
(isActive: boolean)
src/tools/AgentTool/UI.tsx:115
↓ 2 callers
Function
flushInteractionTime_inner
()
src/bootstrap/state.ts:686
↓ 2 callers
Function
flushNonTableContent
()
src/components/Markdown.tsx:137
↓ 2 callers
Function
flushSessionSection
( sectionHeader: string, sectionLines: string[], maxCharsPerSection: number, )
src/services/SessionMemory/prompts.ts:298
↓ 2 callers
Function
flushText
()
src/ink/termio/tokenize.ts:117
↓ 2 callers
Function
fmt
(n: number)
src/utils/tokenBudget.ts:71
↓ 2 callers
Function
formatAgent
(agent: ResolvedAgent)
src/cli/handlers/agents.ts:20
↓ 2 callers
Function
formatAgentAsMarkdown
( agentType: string, whenToUse: string, tools: string[] | undefined, systemPrompt: string, color?: s
src/components/agents/agentFileUtils.ts:20
↓ 2 callers
Function
formatAutoUpdaterDisabledReason
( reason: AutoUpdaterDisabledReason, )
src/utils/config.ts:1742
↓ 2 callers
Function
formatBashOutput
( stdout: string, stderr: string, inline = false, )
src/utils/promptShellExecution.ts:145
↓ 2 callers
Function
formatBriefTimestamp
( isoString: string, now: Date = new Date(), )
src/utils/formatBriefTimestamp.ts:16
↓ 2 callers
Function
formatCallHierarchyItem
* Formats a CallHierarchyItem with its location * Validates URI before formatting to handle malformed LSP data
src/tools/LSPTool/formatters.ts:428
↓ 2 callers
Function
formatCommandLoadingMetadata
* Formats the loading metadata for a command (skill or slash command). * User-invocable skills use slash command format (/name), while model-only *
src/utils/processUserInput/processSlashCommand.tsx:803
↓ 2 callers
Function
formatGoToDefinitionResult
( result: Location | Location[] | LocationLink | LocationLink[] | null, cwd?: string, )
src/tools/LSPTool/formatters.ts:127
↓ 2 callers
Function
formatInstallCount
(count: number)
src/utils/plugins/installCounts.ts:273
↓ 2 callers
Function
formatMemoryManifest
(memories: MemoryHeader[])
src/memdir/memoryScan.ts:84
↓ 2 callers
Function
formatPastedTextRef
(id: number, numLines: number)
src/history.ts:51
↓ 2 callers
Function
formatPrice
(price: number)
src/utils/modelCost.ts:204
↓ 2 callers
Function
formatReleaseNotes
(notes: Array<[string, string[]]>)
src/commands/release-notes/release-notes.ts:11
↓ 2 callers
Function
formatResolutionError
( r: ResolutionResult & { ok: false }, )
src/utils/plugins/pluginInstallationHelpers.ts:304
↓ 2 callers
Function
formatReverseDependentsSuffix
( rdeps: string[] | undefined, )
src/utils/plugins/dependencyResolver.ts:300
↓ 2 callers
Function
formatReviewStageCounts
(stage: ReviewStage | undefined, found: number, verified: number, refuted: number)
src/components/tasks/RemoteSessionProgress.tsx:22
↓ 2 callers
Function
formatSetupNotes
* Formats setup notes as a bulleted Heads-up block. Shared between the * initial AskUserQuestion dialog text (no-args path) and the prompt-body * se
src/skills/bundled/scheduleRemoteAgents.ts:118
↓ 2 callers
Function
formatShellPrefixCommand
( prefix: string, command: string, )
src/utils/bash/shellPrefix.ts:15
↓ 2 callers
Function
formatSkillLoadingMetadata
(skillName: string, _progressMessage: string = 'loading')
src/utils/processUserInput/processSlashCommand.tsx:786
↓ 2 callers
Function
formatSlashCommandLoadingMetadata
* Formats the metadata for a slash command loading message.
src/utils/processUserInput/processSlashCommand.tsx:794
↓ 2 callers
Function
formatTimelineLine
( totalMs: number, deltaMs: number, name: string, memory: NodeJS.MemoryUsage | undefined, totalPad:
src/utils/profilerBase.ts:33
↓ 2 callers
Function
formatValidationPath
* Formats a Zod validation path into a readable string * e.g., ['todos', 0, 'activeForm'] => 'todos[0].activeForm'
src/utils/toolErrors.ts:47
↓ 2 callers
Function
formatWarning
(warning: KeybindingWarning)
src/keybindings/validate.ts:456
↓ 2 callers
Function
formatWorkspaceFolders
(folders: string[], maxLength: number = 100)
src/commands/ide/ide.tsx:612
↓ 2 callers
Function
formatWorkspaceSymbolResult
( result: SymbolInformation[] | null, cwd?: string, )
src/tools/LSPTool/formatters.ts:371
↓ 2 callers
Function
forwardMessagesToBridge
()
src/cli/print.ts:1517
↓ 2 callers
Function
forwardToWs
(ws: WebSocketLike, data: Buffer)
src/upstreamproxy/relay.ts:436
↓ 2 callers
Function
fromArray
(values: T[])
src/utils/generators.ts:84
↓ 2 callers
Function
fromJsonTimestamp
(o: any)
src/types/generated/events_mono/claude_code/v1/claude_code_internal_event.ts:846
↓ 2 callers
Function
fromSDKCompactMetadata
( meta: SDKCompactMetadata, )
src/utils/messages/mappers.ts:98
↓ 2 callers
Function
generateAndPatch
(input: string, bridgeSessionId: string)
src/bridge/initReplBridge.ts:333
↓ 2 callers
Function
generateCommandSuggestions
( input: string, commands: Command[], )
src/utils/suggestions/commandSuggestions.ts:292
↓ 2 callers
Function
generateFileAttachment
( filename: string, toolUseContext: ToolUseContext, successEventName: string, errorEventName: string,
src/utils/attachments.ts:3020
↓ 2 callers
Function
generateFileSuggestions
( partialPath: string, showOnEmpty = false, )
src/hooks/fileSuggestions.ts:715
↓ 2 callers
Function
generateFixSuggestion
* Generate a fix suggestion based on the shadow type.
src/utils/permissions/shadowedRuleDetection.ts:79
↓ 2 callers
Function
generateFunFactoid
(stats: ClaudeCodeStats, totalTokens: number)
src/components/Stats.tsx:688
↓ 2 callers
Function
generateHeatmap
( dailyActivity: DailyActivity[], options: HeatmapOptions = {}, )
src/utils/heatmap.ts:39
↓ 2 callers
Function
generateKittyId
()
src/services/notifier.ts:106
↓ 2 callers
Function
generateLoremIpsum
(targetTokens: number)
src/skills/bundled/loremIpsum.ts:202
↓ 2 callers
Function
generatePlaceholders
* Generates placeholder strings with random salt to prevent injection attacks. * The salt prevents malicious commands from containing literal placeho
src/utils/bash/commands.ts:20
↓ 2 callers
Function
generateSectionInsight
( section: InsightSection, dataContext: string, )
src/commands/insights.ts:1572
↓ 2 callers
Function
generateSessionName
( messages: Message[], signal: AbortSignal, )
src/commands/rename/generateSessionName.ts:10
↓ 2 callers
Function
generateSettingsJSONSchema
()
src/utils/settings/schemaOutput.ts:5
↓ 2 callers
Function
generateShellSuggestionsLabel
(suggestions: PermissionUpdate[], shellToolName: string, commandTransform?: (command: string) => string)
src/components/permissions/shellPermissionHelpers.tsx:65
← previous
next →
2,901–3,000 of 11,548, ranked by callers