Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ConardLi/easy-agent
/ functions
Functions
1,949 in github.com/ConardLi/easy-agent
⨍
Functions
1,949
◇
Types & classes
297
↓ 1 callers
Function
appendTranscriptEntry
(cwd: string, sessionId: string, entry: TranscriptEntry)
src/session/storage.ts:335
↓ 1 callers
Function
applyOneEdit
(content, edit, index = 1)
step/step31.js:27
↓ 1 callers
Function
applyPromptToContent
* Apply the user's prompt to the fetched markdown via a secondary model call * (the user's active model, so provider auth always matches). Falls back
src/tools/webFetchTool.ts:44
↓ 1 callers
Method
applyRestoredSession
* Swap the live session for a restored one (`/resume`). Encapsulates the * engine's private bookkeeping — messages, usage, usage anchor, last-call
src/core/queryEngine/commands/context.ts:51
↓ 1 callers
Function
applySessionRetentionPolicy
(cwd: string)
src/session/storage.ts:461
↓ 1 callers
Function
applySnapshot
(target: FileHistorySnapshot)
src/session/fileHistory.ts:399
↓ 1 callers
Function
applySnapshot
(snapshot)
step/step26.js:218
↓ 1 callers
Function
asBoolean
(value: unknown)
src/services/skills/parseFrontmatter.ts:88
↓ 1 callers
Function
asBoolean
(value)
step/step17.js:71
↓ 1 callers
Function
asIsolation
(value: unknown)
src/agents/loadAgentsDir.ts:96
↓ 1 callers
Function
asPermissionMode
(value: unknown)
src/agents/loadAgentsDir.ts:92
↓ 1 callers
Function
asPositiveInt
(value: unknown)
src/agents/loadAgentsDir.ts:80
↓ 1 callers
Function
asPositiveInt
(value)
step/step19.js:60
↓ 1 callers
Function
asStringArray
(value: unknown)
src/commands/userCommands/loadCommandsDir.ts:49
↓ 1 callers
Function
asStringArray
(value)
step/step23.js:60
↓ 1 callers
Function
assembleGemini
( body: ReadableStream<Uint8Array>, )
src/services/api/providers/geminiTranslate.ts:250
↓ 1 callers
Function
attachClipboardImage
({ prompt, clipboard })
step/step32.js:95
↓ 1 callers
Function
attachImagesToPrompt
({ cwd, prompt, readImage = readImageAsBlock })
step/step32.js:83
↓ 1 callers
Function
autoCompactIfNeeded
(messages, model, callModel, options = {})
step/step12.js:136
↓ 1 callers
Function
backupName
(filePath, version)
step/step26.js:87
↓ 1 callers
Function
bar
(n: number)
src/core/queryEngine/commands/diagnostics.ts:100
↓ 1 callers
Function
bootstrapAgents
(cwd: string)
src/agents/bootstrap.ts:20
↓ 1 callers
Function
bootstrapMcp
(cwd: string)
src/services/mcp/bootstrap.ts:59
↓ 1 callers
Function
bootstrapSkills
(cwd: string)
src/services/skills/bootstrap.ts:22
↓ 1 callers
Function
bootstrapSkills
(cwd)
step/step17.js:478
↓ 1 callers
Function
buildAllowRulesFromPrompts
(prompts: AllowedPrompt[])
src/tools/exitPlanModeTool.ts:22
↓ 1 callers
Function
buildAllowRulesFromPrompts
(prompts)
step/step13.js:59
↓ 1 callers
Function
buildAutoClassifierPrompt
({ messages, toolName, input, allowRules = [], denyRules = [] })
step/step29.js:110
↓ 1 callers
Function
buildAutoClassifierSystemPrompt
( options: AutoClassifierPromptOptions = {}, )
src/permissions/autoClassifierPrompt.ts:107
↓ 1 callers
Function
buildColors
* Per-character color map for trigger highlighting: a leading `/command` word * (first line only) and any `@path` references get the accent color; th
src/ui/components/InputPrompt.tsx:17
↓ 1 callers
Function
buildEditPreview
(oldString: string, newString: string)
src/tools/editCore.ts:107
↓ 1 callers
Function
buildGeminiContents
(messages: StreamRequestParams["messages"])
src/services/api/providers/geminiTranslate.ts:46
↓ 1 callers
Function
buildHeadlessDenialMessage
* Build the denial message used when a backgrounded sub-agent (or any * other headless context) hits an "ask" rule. The body mirrors source's * `DON
src/core/agenticLoop.ts:242
↓ 1 callers
Function
buildInitMessage
* Build the `system/init` message — the first line of a stream-json session, * carrying the metadata a remote consumer uses to render pickers / gate
src/entrypoint/headless.ts:81
↓ 1 callers
Function
buildInitMessage
(options)
step/step28.js:79
↓ 1 callers
Function
buildLogicalLines
Walk the message log into verbose logical lines (pre-wrap).
src/ui/utils/transcriptLines.ts:140
↓ 1 callers
Function
buildMemoryAccessGuidance
()
src/context/memory/memoryTypes.ts:48
↓ 1 callers
Function
buildMemoryExclusionGuidance
()
src/context/memory/memoryTypes.ts:69
↓ 1 callers
Function
buildMemoryFileContent
({ name, description, type, body })
step/step10.js:76
↓ 1 callers
Function
buildMemoryIndex
(memories)
step/step10.js:149
↓ 1 callers
Function
buildMemoryPersistenceBoundaryGuidance
()
src/context/memory/memoryTypes.ts:80
↓ 1 callers
Function
buildMemoryPromptInstructions
()
src/context/memory/memdir.ts:320
↓ 1 callers
Function
buildMemoryTypeGuidance
()
src/context/memory/memoryTypes.ts:22
↓ 1 callers
Function
buildMemoryValidationGuidance
()
src/context/memory/memoryTypes.ts:58
↓ 1 callers
Function
buildPlanModeExitText
(planFilePath: string, planExists: boolean)
src/context/planAttachments.ts:75
↓ 1 callers
Function
buildPointerLine
(entry: MemoryEntry)
src/context/memory/memdir.ts:146
↓ 1 callers
Function
buildProfile
( id: string, raw: RawProfile, warnings: string[], )
src/services/api/providers/profile.ts:144
↓ 1 callers
Function
buildProfile
(id, raw, options = {})
step/step30.js:25
↓ 1 callers
Function
buildProfileForCwd
* Build the SandboxProfile to feed to wrapWithSandbox(). We re-load * sandbox settings + permission rules on every call so that the user * approving
src/tools/bashTool.ts:37
↓ 1 callers
Function
buildPromptText
(skill: Skill, args: string, sessionId: string)
src/tools/skillTool.ts:60
↓ 1 callers
Function
buildRecording
()
src/scripts/test-providerstream-characterization.ts:242
↓ 1 callers
Function
buildRecording
()
src/scripts/test-queryengine-characterization.ts:199
↓ 1 callers
Function
buildRenderUnits
Partition the live tool calls into single cards and collapsed runs.
src/ui/components/ToolCallList.tsx:230
↓ 1 callers
Function
buildResultMessage
(options)
step/step28.js:94
↓ 1 callers
Function
buildSparsePlanModeText
(planFilePath: string)
src/context/planAttachments.ts:63
↓ 1 callers
Function
buildSystemPrompt
(options: BuildSystemPromptOptions)
src/context/systemPrompt.ts:111
↓ 1 callers
Function
buildToolAdapter
* Build a local `Tool` from a single MCP tool descriptor. * * Key field mappings (mirroring the source code): * tool.annotations.readOnlyHint →
src/services/mcp/fetchTools.ts:82
↓ 1 callers
Function
buildToolAdapter
(connection, mcpTool)
step/step16.js:265
↓ 1 callers
Function
buildTranscript
* Build a compact transcript focused on what matters for intent inference: * the user's own messages and the tool calls the agent has already made.
src/permissions/autoClassifier.ts:124
↓ 1 callers
Function
cacheGet
(key: string)
src/ui/markdown/markdownToAnsi.ts:64
↓ 1 callers
Function
cacheSet
(key: string, value: string)
src/ui/markdown/markdownToAnsi.ts:74
↓ 1 callers
Function
checkSandboxAutoAllow
* Sandbox auto-allow path. Mirrors source code's `checkSandboxAutoAllow` * in `bashPermissions.ts:1270`. * * Pre-condition: caller has confirmed th
src/permissions/permissions.ts:333
↓ 1 callers
Function
checkWebFetchPermission
(url, settings = { allow: [], deny: [] })
step/step31.js:229
↓ 1 callers
Function
classifyBashFastPath
(command)
step/step29.js:99
↓ 1 callers
Function
classifyBashLabel
(command: string)
src/ui/utils/toolClassify.ts:325
↓ 1 callers
Function
cleanToken
Strip trailing punctuation that commonly follows an inline @reference.
src/core/attachImages.ts:28
↓ 1 callers
Method
clearContextAndImplement
* Clear conversation history and prepare an "implement this plan" message. * Used after ExitPlanMode with the "clear context" option.
src/core/queryEngine.ts:222
↓ 1 callers
Function
clearMcpTools
()
src/tools/index.ts:85
↓ 1 callers
Function
clearServerCache
( name: string, config: ScopedMcpServerConfig, )
src/services/mcp/client.ts:375
↓ 1 callers
Function
clearSubAgentProgress
(toolUseId: string)
src/state/subAgentProgressStore.ts:166
↓ 1 callers
Function
clipboardWriters
Candidate clipboard-write tools, in priority order, per platform.
src/utils/clipboard.ts:35
↓ 1 callers
Function
collectHeadlessRun
(engine, input)
step/step28.js:134
↓ 1 callers
Function
collectMarkdownFiles
Recursively collect every `.md` file under `dir`, returning paths relative to `dir`.
src/commands/userCommands/loadCommandsDir.ts:73
↓ 1 callers
Function
collectMarkdownFiles
(dir, prefix = "")
step/step23.js:197
↓ 1 callers
Function
collectMemoryMarkdownFiles
(memoryDir: string, currentDir = memoryDir)
src/context/memory/memdir.ts:168
↓ 1 callers
Function
compactContentBlocks
(content)
step/step32.js:137
↓ 1 callers
Function
computeDiffStatsForFile
( originalFile: string, backupFileName?: string, )
src/session/fileHistory.ts:557
↓ 1 callers
Function
computeFileSuggestions
List files/dirs matching a `@`-typeahead query, relative to `cwd`.
src/ui/hooks/usePromptInput.ts:151
↓ 1 callers
Function
computeFileSuggestions
(files, token, limit = 8)
step/step24.js:380
↓ 1 callers
Function
computeMatches
(lines: string[], query: string)
src/ui/hooks/useTranscript.ts:79
↓ 1 callers
Function
computeWindow
Window of indices [start, start+MAX_VISIBLE) that keeps `index` visible.
src/ui/components/MemoryPicker.tsx:41
↓ 1 callers
Function
computeWindow
Window of indices [start, start+MAX_VISIBLE) that keeps `index` visible.
src/ui/components/SessionPicker.tsx:54
↓ 1 callers
Function
computeWindow
(total: number, index: number)
src/ui/components/PermissionManager.tsx:58
↓ 1 callers
Function
configureSessionPersistence
(enabled: boolean)
src/session/storage.ts:25
↓ 1 callers
Function
connectAndRegister
( name: string, config: PendingMcpServer["config"], )
src/services/mcp/bootstrap.ts:99
↓ 1 callers
Function
connectedServers
()
src/tools/listMcpResourcesTool.ts:30
↓ 1 callers
Function
consumePastedImage
(id: number)
src/core/pastedImages.ts:35
↓ 1 callers
Function
containsExcludedCommand
( command: string, excluded: string[], )
src/sandbox/shouldUseSandbox.ts:52
↓ 1 callers
Function
countBy
(todos: TodoItem[], status: TodoItem["status"])
src/ui/components/TodoList.tsx:71
↓ 1 callers
Function
countHumanTurnsSinceLastAttachment
* Count human-authored user turns since the last plan attachment. * Tool-result-only user messages are not counted.
src/context/planAttachments.ts:101
↓ 1 callers
Function
countLineDiff
(fromText, toText)
step/step26.js:306
↓ 1 callers
Function
countOccurrences
(haystack: string, needle: string)
src/tools/editCore.ts:33
↓ 1 callers
Function
countOccurrences
(text, pattern)
step/step5.js:25
↓ 1 callers
Function
countPlanAttachmentsSinceLastExit
* Count how many plan_mode attachments have been injected since the * last plan exit (or the start of the conversation).
src/context/planAttachments.ts:116
↓ 1 callers
Function
countToolUses
(messages: MessageParam[])
src/agents/runAgent.ts:152
↓ 1 callers
Function
countToolUses
(messages)
step/step19.js:264
↓ 1 callers
Function
createAgentTool
({ getAllTools, runAgent = runChildAgent, queryRunner = mockQueryRunner, defaultModel = "claude-sonnet
step/step19.js:374
↓ 1 callers
Function
createBashProgressStore
(maxLines = 200)
step/step24.js:238
↓ 1 callers
Function
createDefaultRegistry
()
step/step33.js:44
↓ 1 callers
Function
createHttpTransport
(config: McpHTTPServerConfig & { scope: string })
src/services/mcp/client.ts:217
← previous
next →
801–900 of 1,949, ranked by callers