Skip to main content

project_context

Function project_context 

Source
pub fn project_context(worktree: &Path) -> Option<String>
Expand description

The full block for the system prompt, or None when the repo carries neither instructions nor a .car/ project.

The framing around the instruction text is deliberate. It tells the model these rules are not verified by the outcome contract, because the failure this fixes is a model treating a green contract as sufficient. It also pins precedence: the contract still decides done, and these decide acceptable. A model that reads “follow the repo’s conventions” and then weakens a check to satisfy them has made things worse.