Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GongShichen/LuminaCode
/ LoadProjectInstructions
Function
LoadProjectInstructions
agentContext/builder.go:351–354 ·
view source on GitHub ↗
(cwd string)
Source
from the content-addressed store, hash-verified
349
Dir: directory,
350
Filename: filename,
351
Content: strings.ToValidUTF8(string(content),
"\uFFFD"
),
352
Truncated: truncated,
353
}, nil
354
}
355
return
ProjectDoc{}, errors.New(
"project instruction file not found"
)
356
}
357
Callers
10
TestAgentContextDoesNotReadParentLuminaProjectInstructions
Function · 0.92
TestAgentContextProjectInstructionsReplaceInvalidUTF8LikePython
Function · 0.92
TestAgentContextLoadsOnlyWorkingDirectoryLuminaProjectInstructions
Function · 0.92
TestAgentContextLoadsHierarchicalProjectInstructionsWithinGitRoot
Function · 0.92
TestAgentContextDoesNotReadAboveGitRoot
Function · 0.92
TestAgentContextLoadsHomeLuminaFallbackWhenWorkdirMissing
Function · 0.92
TestAgentContextLoadsAgentsCompatibilityFile
Function · 0.92
TestAgentContextPrefersLuminaOverAgentsPrimaryFile
Function · 0.92
TestAgentContextPrefersLuminaOverAgentsAtEachHierarchyLevel
Function · 0.92
TestAgentContextMissingLuminaProjectInstructionsReturnsEmpty
Function · 0.92
Calls
2
NewConfigForCWD
Function · 0.92
LoadProjectInstructionsWithConfig
Function · 0.85
Tested by
10
TestAgentContextDoesNotReadParentLuminaProjectInstructions
Function · 0.74
TestAgentContextProjectInstructionsReplaceInvalidUTF8LikePython
Function · 0.74
TestAgentContextLoadsOnlyWorkingDirectoryLuminaProjectInstructions
Function · 0.74
TestAgentContextLoadsHierarchicalProjectInstructionsWithinGitRoot
Function · 0.74
TestAgentContextDoesNotReadAboveGitRoot
Function · 0.74
TestAgentContextLoadsHomeLuminaFallbackWhenWorkdirMissing
Function · 0.74
TestAgentContextLoadsAgentsCompatibilityFile
Function · 0.74
TestAgentContextPrefersLuminaOverAgentsPrimaryFile
Function · 0.74
TestAgentContextPrefersLuminaOverAgentsAtEachHierarchyLevel
Function · 0.74
TestAgentContextMissingLuminaProjectInstructionsReturnsEmpty
Function · 0.74