feat(agentic): include GEMINI.md ethics framework in workspace
Every dispatched agent gets the LEK axioms (Axioms of Consciousness) from core/agent/GEMINI.md alongside the project context. Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
d0ad141af3
commit
c122ba2039
1 changed files with 6 additions and 1 deletions
|
|
@ -169,12 +169,17 @@ func (s *PrepSubsystem) prepWorkspace(ctx context.Context, _ *mcp.CallToolReques
|
|||
remoteCmd.Dir = srcDir
|
||||
remoteCmd.Run()
|
||||
|
||||
// 2. Copy CLAUDE.md to workspace root
|
||||
// 2. Copy CLAUDE.md and GEMINI.md to workspace
|
||||
claudeMdPath := filepath.Join(repoPath, "CLAUDE.md")
|
||||
if data, err := os.ReadFile(claudeMdPath); err == nil {
|
||||
os.WriteFile(filepath.Join(wsDir, "src", "CLAUDE.md"), data, 0644)
|
||||
out.ClaudeMd = true
|
||||
}
|
||||
// Copy GEMINI.md from core/agent (ethics framework for all agents)
|
||||
agentGeminiMd := filepath.Join(s.codePath, "core", "agent", "GEMINI.md")
|
||||
if data, err := os.ReadFile(agentGeminiMd); err == nil {
|
||||
os.WriteFile(filepath.Join(wsDir, "src", "GEMINI.md"), data, 0644)
|
||||
}
|
||||
|
||||
// 3. Generate TODO.md
|
||||
if input.Issue > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue