diff --git a/pkg/mcp/agentic/prep.go b/pkg/mcp/agentic/prep.go index feed1fa..2557d0f 100644 --- a/pkg/mcp/agentic/prep.go +++ b/pkg/mcp/agentic/prep.go @@ -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 {