Watch
0
0
Fork
You've already forked hyperhive
0

Point agents at /agents/<name>/work and default subagents to it

The system prompt now names the work dir for worktrees, clones and build
trees, and keeps state/ for notes. A subagent started without a dir runs
in the agent's work dir instead of the daemon's own cwd.
This commit is contained in:
atlas 2026-10-15 21:18:05 +02:00 • committed by mara
commit 043c9445f6
7 changed files with 32 additions and 12 deletions

View file

@ -264,6 +264,12 @@ shared closer
assert!(rendered.starts_with("You are hyperhive agent"));
}
#[test]
fn render_points_agents_at_the_work_dir() {
let rendered = render(&PRODUCTION_TEMPLATE, "alice", "she/her", None, None, None);
assert!(rendered.contains("`/agents/alice/work/`"), "{rendered}");
}
// Inline fixture for the {hive_identity} / {swarm_identity}
// placeholders. Cargo's `cargo test` resolves `PRODUCTION_TEMPLATE`
// against `$HIVE_ASSETS_DIR/prompts/system.md`, which the flake