MCPcopy Create free account
hub / github.com/WJX20/claude-code / getRelativeAgentDirectoryPath

Function getRelativeAgentDirectoryPath

src/components/agents/agentFileUtils.ts:79–86  ·  view source on GitHub ↗
(location: SettingSource)

Source from the content-addressed store, hash-verified

77}
78
79function getRelativeAgentDirectoryPath(location: SettingSource): string {
80 switch (location) {
81 case 'projectSettings':
82 return join('.', AGENT_PATHS.FOLDER_NAME, AGENT_PATHS.AGENTS_DIR)
83 default:
84 return getAgentDirectoryPath(location)
85 }
86}
87
88/**
89 * Gets the file path for a new agent based on its name

Callers 2

Calls 1

getAgentDirectoryPathFunction · 0.85

Tested by

no test coverage detected