rho-coding-agent 3.5.0

A fast Rust agent harness with a small footprint and opinionated defaults
Documentation
use pretty_assertions::assert_eq;

use super::*;

// Covers: the run writes the exact agy agent file at the path agy discovers
// (`<root>/.agents/agents/<name>.md`) with the kept tools as its allowlist,
// under a name no other run (or project) shares.
// Owner: Antigravity agent file; the live agy E2E proves agy honors it.
#[test]
fn writes_the_allowlist_where_agy_discovers_agents() {
    let run_dir = tempfile::tempdir().unwrap();
    let tools = [AntigravityTool::ReadFile, AntigravityTool::RunCommand];
    let agent = write(run_dir.path(), &tools).unwrap();
    assert_eq!(agent.root, run_dir.path().join("agy"));
    assert_eq!(
        std::fs::read_to_string(agent.root.join(format!(".agents/agents/{}.md", agent.name)))
            .unwrap(),
        format!(
            "---\nname: {}\ndescription: Rho delegated run.\ntools:\n  - read_file\n  - run_command\n---\n",
            agent.name
        )
    );
    assert_ne!(write(run_dir.path(), &tools).unwrap().name, agent.name);
}