per-agent /state dir for durable notes; manager sees them via /agents
This commit is contained in:
parent
7be64c5e66
commit
ff8f8c7c56
10 changed files with 66 additions and 10 deletions
|
|
@ -178,6 +178,14 @@ impl Coordinator {
|
|||
Self::agent_state_root(name).join("claude")
|
||||
}
|
||||
|
||||
/// Per-agent durable knowledge dir. Bind-mounted RW into the agent
|
||||
/// container at `/state`. Survives destroy/recreate alongside the
|
||||
/// claude dir. Agents are told (via the system prompt) to write
|
||||
/// long-lived notes / scratch state here.
|
||||
pub fn agent_notes_dir(name: &str) -> PathBuf {
|
||||
Self::agent_state_root(name).join("state")
|
||||
}
|
||||
|
||||
/// Authoritative applied config repo. Hive-c0re-only.
|
||||
pub fn agent_applied_dir(name: &str) -> PathBuf {
|
||||
PathBuf::from(format!("{APPLIED_STATE_ROOT}/{name}"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue