codetether-agent 4.7.0-a-002.4

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::path::Path;

pub(crate) fn append_guardrails_for_cwd(system_prompt: String, cwd: &Path) -> String {
    append_guardrails_with_memory(system_prompt, Some(cwd))
}

fn append_guardrails_with_memory(system_prompt: String, cwd: Option<&Path>) -> String {
    if system_prompt.contains("Validation evidence rules:") {
        return system_prompt;
    }
    super::assembly::render(super::sections::build(system_prompt, cwd))
}