Skip to main content

Crate agent_policy

Crate agent_policy 

Source
Expand description

§agent-policy

Schema-first generator for coding-agent repo policies and compatibility files.

§Usage

use camino::Utf8Path;

let (policy, warnings) = agent_policy::load(Utf8Path::new("agent-policy.yaml"))
    .expect("failed to load policy");

for w in &warnings { eprintln!("warning: {w}"); }
println!("Project: {}", policy.project.name);

§Command-line interface

See the README for CLI documentation.

Re-exports§

pub use error::Error;
pub use error::Result;
pub use model::normalized::Policy;

Modules§

cli
Command-line interface definition.
commands
error
load
model
render

Functions§

load
Load, validate, and normalize an agent-policy.yaml from a file path.