Repository modeling and working-context selection.
agent-context is the read-only exploration layer in Ferrify. It inspects a
repository, records structural facts such as workspace members and toolchain
files, and produces a bounded working set that later stages can use without
carrying the entire repo into memory.
The crate follows a structural-first read order. It looks at root manifests, toolchain configuration, CI files, repository policy, and only then expands into nearby code. That order matters because Ferrify treats current repository evidence as stronger than remembered conventions.
Examples
use agent_context::RepoModeler;
use std::path::Path;
# fn main() -> Result<(), Box<dyn std::error::Error>> {
let model = RepoModeler::scan(Path::new("."))?;
assert!(!model.crates.is_empty());
# Ok(())
# }