Returns the context file name for a given agent. Each agent reads a specific markdown file at session start for project context. Learnings are appended to this file so the agent reads them automatically on the next session. # Examples ```rust use atomic_agent::learnings::context_file_for_agent; assert_eq!(context_file_for_agent("claude-code"), "CLAUDE.md"); assert_eq!(context_file_for_agent("g
(agent_name: &str)
| 119 | /// assert_eq!(context_file_for_agent("unknown"), ".atomic/learnings.md"); |
| 120 | /// ``` |
| 121 | pub fn context_file_for_agent(agent_name: &str) -> &'static str { |
| 122 | match agent_name { |
| 123 | "claude-code" => "CLAUDE.md", |
| 124 | "gemini-cli" => "GEMINI.md", |
| 125 | "codex" => "codex.md", |
| 126 | "opencode" => "opencode.md", |
| 127 | "kiro" => "AGENTS.md", |
| 128 | _ => ".atomic/learnings.md", |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | /// Returns the full path to the agent's context file in a repository. |
| 133 | pub fn context_file_path(repo_root: &Path, agent_name: &str) -> PathBuf { |
no outgoing calls
no test coverage detected