Skip to main content

prepend_project_context

Function prepend_project_context 

Source
pub fn prepend_project_context(base: &str, workspace: &Path) -> String
Expand description

Prepend the project context block (AGENTS.md + CLAUDE.md) to base, separated by a horizontal rule. Returns base unchanged when neither file exists. Used at every agent-construction entry point (CLI run, MCP, HTTP API, TUI) so all paths see the same project context regardless of which surface launched the agent.