MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / instructionsPath

Function instructionsPath

src/installer/targets/codex.ts:63–71  ·  view source on GitHub ↗
(loc: Location)

Source from the content-addressed store, hash-verified

61 return path.join(configDir(loc), 'config.toml');
62}
63function instructionsPath(loc: Location): string {
64 // Global AGENTS.md lives under ~/.codex/; project-local AGENTS.md
65 // lives at the project root (NOT under .codex/) — that's the file
66 // Codex reads for repo instructions, and it matches the local
67 // layout the opencode and gemini targets already use.
68 return loc === 'global'
69 ? path.join(configDir('global'), 'AGENTS.md')
70 : path.join(process.cwd(), 'AGENTS.md');
71}
72
73/**
74 * Project layers are "loaded but disabled when untrusted" (openai/codex

Callers 3

installMethod · 0.70
describePathsMethod · 0.70
removeInstructionsEntryFunction · 0.70

Calls 2

configDirFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected