MCPcopy Create free account
hub / github.com/Noumena-Network/code / getProjectInstructionFilesLowToHigh

Function getProjectInstructionFilesLowToHigh

src/utils/claudemd.ts:669–681  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

667}
668
669function getProjectInstructionFilesLowToHigh(dir: string): string[] {
670 const fs = getFsImplementation()
671 const canonicalAgentsPath = join(dir, 'AGENTS.md')
672 const hasCanonicalAgents = fs.existsSync(canonicalAgentsPath)
673
674 return dedupeInstructionPaths([
675 ...(hasCanonicalAgents ? [] : [join(dir, 'CLAUDE.md')]),
676 join(dir, '.claude', 'CLAUDE.md'),
677 join(dir, 'NCODE.md'),
678 join(dir, '.ncode', 'NCODE.md'),
679 canonicalAgentsPath,
680 ])
681}
682
683function getProjectInstructionRuleDirsLowToHigh(dir: string): string[] {
684 return dedupeInstructionPaths([

Callers 2

claudemd.tsFile · 0.85

Calls 2

getFsImplementationFunction · 0.85
dedupeInstructionPathsFunction · 0.70

Tested by

no test coverage detected