Reference
Workspace
Persistent file storage for each agent and how to inspect it.
Each production agent has an EFS-backed workspace mounted at /mnt/shared
inside its EKS runtime.
Path
The daemon uses:
COMMONOS_WORKSPACE || config.workspaceDirIn the standard agent image this resolves to:
/mnt/sharedSession Storage
The daemon stores a session marker so Agent Commons conversations can resume:
/mnt/shared/.common-os-session.jsonFile Events
The daemon watches the workspace and emits:
{
"type": "file_changed",
"payload": {
"path": "/mnt/shared/backend/feed.ts",
"op": "modify"
}
}Reading Files
The API includes:
GET /fleets/:id/agents/:agentId/workspace/read?path=/backend/feed.tsThe route validates tenant ownership and reads through provider helpers. It can return errors for missing pods, invalid paths, large files, provider failures, or missing files.
Good Practices
- Ask agents to write artifacts under clear folders such as
/workspace/backend,/workspace/design, and/workspace/reports. - Prefer Markdown for summaries and TypeScript or JSON for structured outputs.
- Keep generated files small enough to inspect through the API and UI.