MCPcopy Create free account
hub / github.com/github/gh-aw / GetEngineSubAgentDir

Function GetEngineSubAgentDir

pkg/workflow/engine_config_dir.go:61–63  ·  view source on GitHub ↗

GetEngineSubAgentDir returns the relative directory (from repo root / tmp base) used to store inline sub-agent files for a given engine. The directory is derived from the engine's AgentManifestPathPrefixes: claude → .claude/agents codex → .codex/agents gemini → .gemini/agents

(engineID string)

Source from the content-addressed store, hash-verified

59// pi → .pi/agents
60// others → .github/agents (Copilot default)
61func GetEngineSubAgentDir(engineID string) string {
62 return engineConfigBaseDir(engineID) + "/agents"
63}

Calls 1

engineConfigBaseDirFunction · 0.85

Tested by 1

TestGetEngineSubAgentDirFunction · 0.68