MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getPlanFilePath

Function getPlanFilePath

source code/utils/plans.ts:121–131  ·  view source on GitHub ↗
(agentId?: AgentId)

Source from the content-addressed store, hash-verified

119 * For subagents (agentId provided), returns {planSlug}-agent-{agentId}.md
120 */
121export function getPlanFilePath(agentId?: AgentId): string {
122 const planSlug = getPlanSlug(getSessionId())
123
124 // Main conversation: simple filename with word slug
125 if (!agentId) {
126 return join(getPlansDirectory(), `${planSlug}.md`)
127 }
128
129 // Subagents: include agent ID
130 return join(getPlansDirectory(), `${planSlug}-agent-${agentId}.md`)
131}
132
133/**
134 * Get the plan content for a session

Callers 12

callFunction · 0.85
getPlanModeAttachmentsFunction · 0.85
getPlanFunction · 0.85
normalizeToolInputFunction · 0.85
callFunction · 0.85

Calls 2

getPlanSlugFunction · 0.85
getSessionIdFunction · 0.85

Tested by

no test coverage detected