atlas
89a5d65119
agents: persistent /agents/<n>/work dir outside state/
...
Agents keep git worktrees and cargo target dirs under /home/<agent>,
which lives in the container rootfs and is deleted on destroy. They
can't move them under state/, because a claude started there walks up
into state/CLAUDE.md and takes on the agent's identity.
Add a per-agent work/ dir next to state/ on the host
(/var/lib/hyperhive/agents/<n>/work), bind-mounted RW at
/agents/<n>/work. hive-c0re creates it in ensure_state_dir and in
set_nspawn_flags (the rebuild path reaches only the latter), the
agent's activation chowns it to the agent user like state/ and
harness/, and measure_agent_disk counts it. destroy never touches the
agent root, so work/ survives it; purge removes the whole root, so
work/ goes with it.
Closes #4977
2026-10-05 12:56:02 +02:00
..
agent-service.nix
hive-agent: the swarm queue connection is required; retry, then exit
2026-10-04 22:24:51 +02:00
bao.nix
credential units: 24h retry shape; start a failed nginx when the cert lands
2026-09-30 07:45:47 +02:00
bash-env.nix
nix: move the agent option namespace under services.hyperhive.agent
2026-09-17 20:19:30 +02:00
claude-settings.nix
agent: make claudePlugins additive instead of replacing
2026-09-19 10:48:29 +02:00
dashboard-links.nix
nix: move the agent option namespace under services.hyperhive.agent
2026-09-17 20:19:30 +02:00
default.nix
nix: comments state current behaviour, not history
2026-10-05 09:58:50 +02:00
docs.nix
nix: move the agent option namespace under services.hyperhive.agent
2026-09-17 20:19:30 +02:00
forge-accounts.nix
forge: external forge accounts live in swarm bao; the agent fetches them itself
2026-10-01 18:05:33 +02:00
forge-token.nix
credential units: 24h retry shape; start a failed nginx when the cert lands
2026-09-30 07:45:47 +02:00
forge.nix
nix: comments state current behaviour, not history
2026-10-05 09:58:50 +02:00
frontend.nix
nix: move the agent option namespace under services.hyperhive.agent
2026-09-17 20:19:30 +02:00
github-token.nix
github swarm bao: address argus review on #4892
2026-10-02 17:54:45 +02:00
github.nix
github: PATs live in swarm bao; the agent fetches them itself
2026-10-02 17:48:27 +02:00
logs.nix
nix: move the agent option namespace under services.hyperhive.agent
2026-09-17 20:19:30 +02:00
matrix.nix
nix: comments state current behaviour, not history
2026-10-05 09:58:50 +02:00
mcp.nix
swarm: show subagent terminals in the swarm UI
2026-10-03 01:34:01 +02:00
network.nix
agents: pull the forge token from bao; drop tea-login
2026-09-24 17:48:53 +02:00
otel.nix
nix: finish the "moved to" comment sweep
2026-10-05 09:59:02 +02:00
packages.nix
nix: move the agent option namespace under services.hyperhive.agent
2026-09-17 20:19:30 +02:00
queue-identity.nix
hive-agent: read the per-agent queue secret from bao in process
2026-09-29 10:18:07 +02:00
queue.nix
hive-agent: the swarm queue connection is required; retry, then exit
2026-10-04 22:24:51 +02:00
renamed-options.nix
nix: finish the current-behaviour comment sweep in touched files
2026-10-05 09:58:57 +02:00
screen.nix
nix: move the agent option namespace under services.hyperhive.agent
2026-09-17 20:19:30 +02:00
user.nix
agents: persistent /agents/<n>/work dir outside state/
2026-10-05 12:56:02 +02:00
weston-vnc.nix
nix: move the agent option namespace under services.hyperhive.agent
2026-09-17 20:19:30 +02:00