MCPcopy
hub / github.com/codeaashu/claude-code / getNewAgentFilePath

Function getNewAgentFilePath

src/components/agents/agentFileUtils.ts:92–98  ·  view source on GitHub ↗
(agent: {
  source: SettingSource
  agentType: string
})

Source from the content-addressed store, hash-verified

90 * Used when creating new agent files
91 */
92export function getNewAgentFilePath(agent: {
93 source: SettingSource
94 agentType: string
95}): string {
96 const dirPath = getAgentDirectoryPath(agent.source)
97 return join(dirPath, `${agent.agentType}.md`)
98}
99
100/**
101 * Gets the actual file path for an agent (handles filename vs agentType mismatch)

Callers 2

saveAgentToFileFunction · 0.85
ConfirmStepWrapperFunction · 0.85

Calls 1

getAgentDirectoryPathFunction · 0.85

Tested by

no test coverage detected