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

Function instructionsPath

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

Source from the content-addressed store, hash-verified

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

Callers 3

installMethod · 0.70
uninstallMethod · 0.70
describePathsMethod · 0.70

Calls 2

configDirFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected