MCPcopy
hub / github.com/claude-code-best/claude-code / getRemoteAgentsDir

Function getRemoteAgentsDir

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

Source from the content-addressed store, hash-verified

319}
320
321function getRemoteAgentsDir(): string {
322 // Same sessionProjectDir fallback as getAgentTranscriptPath — the project
323 // dir (containing the .jsonl), not the session dir, so sessionId is joined.
324 const projectDir = getSessionProjectDir() ?? getProjectDir(getOriginalCwd())
325 return join(projectDir, getSessionId(), 'remote-agents')
326}
327
328function getRemoteAgentMetadataPath(taskId: string): string {
329 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