agentd: implement workspace management

t-543·WorkTask·
·
·
Created2 weeks ago·Updated2 weeks ago

Description

Edit

Auto-create agent workspaces with naming strategy /var/agentd/workspaces/{name}-{run-id}/

Requirements:

  • Auto-create workspace directory on agent spawn
  • Use {name}-{run-id} naming (name from --workspace-name flag, run-id for uniqueness)
  • Track workspace metadata in sqlite: creation time, last accessed, size, agent status
  • Add 'agentd cleanup' command with filtering (--older-than, --status)
  • Default workspace location: /var/agentd/workspaces/ (system) or ~/.local/share/agentd/workspaces/ (user)

Acceptance:

  • Spawn agent with --workspace-name=foo creates /var/agentd/workspaces/foo-{run-id}/
  • Spawn without workspace-name creates /var/agentd/workspaces/{run-id}/
  • Workspace metadata tracked in sqlite
  • cleanup command successfully removes old workspaces

Timeline (4)

🔄[human]Open → InProgress2 weeks ago
💬[human]2 weeks ago

Implemented workspace management: auto-created workspaces under workspace root with workspace_name/run-id naming, workspace metadata table (created_at/last_accessed/size/status/managed), cleanup command with filters, default workspace root logic, and access/status updates. Tests: bild --test Omni/Agentd/Daemon.hs

🔄[human]InProgress → Done2 weeks ago