MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getPlanFilePath

Function getPlanFilePath

src/utils/plans.ts:123–133  ·  view source on GitHub ↗
(agentId?: AgentId)

Source from the content-addressed store, hash-verified

121 * For subagents (agentId provided), returns {planSlug}-agent-{agentId}.md
122 */
123export function getPlanFilePath(agentId?: AgentId): string {
124 const planSlug = getPlanSlug(getSessionId())
125
126 // Main conversation: simple filename with word slug
127 if (!agentId) {
128 return join(getPlansDirectory(), `${planSlug}.md`)
129 }
130
131 // Subagents: include agent ID
132 return join(getPlansDirectory(), `${planSlug}-agent-${agentId}.md`)
133}
134
135/**
136 * 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