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

Function getPlanFilePath

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

Source from the content-addressed store, hash-verified

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