MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getRemoteAgentsDir

Function getRemoteAgentsDir

src/utils/sessionStorage.ts:320–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318}
319
320function getRemoteAgentsDir(): string {
321 // Same sessionProjectDir fallback as getAgentTranscriptPath — the project
322 // dir (containing the .jsonl), not the session dir, so sessionId is joined.
323 const projectDir = getSessionProjectDir() ?? getProjectDir(getOriginalCwd())
324 return join(projectDir, getSessionId(), 'remote-agents')
325}
326
327function getRemoteAgentMetadataPath(taskId: string): string {
328 return join(getRemoteAgentsDir(), `remote-agent-${taskId}.meta.json`)

Callers 2

listRemoteAgentMetadataFunction · 0.85

Calls 4

getSessionProjectDirFunction · 0.85
getOriginalCwdFunction · 0.85
getSessionIdFunction · 0.85
getProjectDirFunction · 0.70

Tested by

no test coverage detected