Files and parameters the server keeps
This page lists where gomoe.dev keeps its state. Files that hold a token or a key have mode 600, except /srv/agents/.env and the API’s AWS credentials in /var/lib/agents-api/credentials.json, which are mode 640 and readable by the group agents. The API runs as the user agents, uid 1001, whose home is /home/agents.
The checkout, /srv/agents
Section titled “The checkout, /srv/agents”| Path | Holds | Written by |
|---|---|---|
/srv/agents |
The deployed commit. Root owns every entry, and the API’s user only reads it. | Each deploy |
/srv/agents/.env |
The server’s settings, root:agents, mode 640. Each deploy writes it whole from /agents/facts, /agents/watchtower, /agents/previews, RDS’s secret, server-secrets.json and the SSM parameters a person put in, so a line added by hand is gone after the next deploy. |
ops/aws-deploy/host.ts |
/srv/agents/app/dist/ |
The built web app the API serves. | Each deploy |
/srv/agents/server/migrations/ |
The SQL files the API applies at start. | The code |
/srv/agents.agents-owned |
A tree moved aside, closed to all but root, when a deploy found an entry in /srv/agents that root doesn’t own. The next deploy that finds /srv/agents all root’s removes it, before its health check, and a rollback keeps it. |
ops/aws-deploy/release.ts |
The data volume, /data
Section titled “The data volume, /data”/data is a 100 GiB volume apart from the root disk, formatted ext4 with the label agents-data, and snapshotted daily.
| Path | Holds |
|---|---|
/data/agents-app |
The app’s state folder. /home/agents/.agents-app links to it, so every path the API keeps under ~/.agents-app lands here. |
/data/agents-app/server-key |
The key native sign-in seals second factors with. Made once and kept. |
/data/agents-app/server-secrets.json |
Electric’s secret, the hook secret pipelines’ webhook signatures derive from, and Electric’s own database password. Made once and kept. |
/data/agents-app/rds-ca.pem |
The RDS certificate bundle the API checks the database against. |
/data/agents-app/forge.json |
The forge’s address, tokens and webhook secret. A copy is in SSM. |
/data/agents-app/people.sock and laptops.sock |
The sockets nginx sends people and the laptop door to. previews.sock joins them once previews are on. |
/data/agents-app/box-claude-token and box-claude-token.meta.json |
The server-wide Claude token, and who saved it and when it runs out. The second file holds no token. |
/data/agents-app/github/ |
People’s GitHub sign-ins in people/<person id>.json, and teams’ tokens in stopgaps/<team id>.json. |
/data/agents-app/model-keys/ |
Teams’ model provider keys. |
/data/agents-app/connectors/ |
Connectors’ accounts, registered clients and the teams’ provider apps. |
/data/agents-app/downloads/ |
Agents-mac.zip and its build file, copied from the bucket’s mac/ on each deploy. |
/data/agents-app/backup-last-success |
When the nightly backup last passed, which the API pushes to Watchtower. |
/data/agents-app/streams/, attachments/<database name>/, mirrors/ |
The live token streams, attached files, and the API’s bare clone of each repo. |
/data/forge |
The forge’s repos and its SQLite database. |
/data/electric |
Electric’s shape logs. |
Other paths on the host
Section titled “Other paths on the host”| Path | Holds |
|---|---|
/mnt/agents-homes |
The EFS file system that holds computers’ homes, one folder for each under homes/, owned by agents. |
/etc/nginx/sites-available/agents |
nginx’s site, written on each deploy. |
/etc/systemd/system/agents-* |
The units each deploy writes. See What keeps gomoe.dev running. |
/var/lock/agents-deploy |
The lock one deploy or image build holds at a time. |
/var/lib/agents-first-boot-done |
Made when first boot has installed the packages. deploy.ts refuses without it. |
The objects bucket
Section titled “The objects bucket”The bucket is agents-objects-<account id>, and the output objects_bucket names it.
| Prefix | Holds |
|---|---|
code/<commit>.bundle |
The git bundle of each commit a laptop deployed. |
ssm/<command id>/ |
An SSM command’s full output, which deploy.ts prints and admin.ts deletes after reading. |
backups/<date>/ |
The nightly record.dump and forge.tar.gz. |
mac/ |
The Mac app’s zip and build file, put there by ops/aws-deploy/mac-app.ts. |
orgs/ |
Agents’ homes, sessions, sealed secrets and the package cache, through addresses the server signs. Old versions are kept 30 days. |
move/<id>/ |
A move between accounts, which move-in.ts reads. |
The registry agents-computer holds the computer image, tagged by commit and as latest.
SSM parameters
Section titled “SSM parameters”Every parameter is under /agents/. Terraform writes facts and never a secret.
| Parameter | Written by | Holds |
|---|---|---|
/agents/facts |
Terraform | Where each part of the stack is, which host.ts writes the .env from. |
/agents/follow |
Terraform, from follow_branch |
The repo, branch and credential parameter follow.ts reads. |
/agents/previews |
Terraform, from preview_domain |
The preview domain and port. |
/agents/watchtower |
Terraform, from watchtower_version |
The collector’s address and the agent’s release. |
/agents/conformance/facts |
Terraform, from conformance_host |
Where the conformance host, its bucket and its image registry are. |
/agents/deployed |
Each deploy that passed | The commit gomoe.dev runs, which a failed deploy rolls back to. |
/agents/deploy-failed |
A follow.ts deploy that failed |
The commit follow.ts doesn’t try again until the branch moves. |
/agents/imaged, /agents/image-failed |
Image builds, and image-failed by follow.ts alone |
The commit whose image is in the registry, and the one whose build last failed. |
/agents/deploy-window-unclosed/* |
A deploy whose Watchtower window would not close | The outcome the next follow.ts run closes that window with. |
/agents/forge/config |
A deploy, when the forge file differs from it | A SecureString copy of the forge file. |
/agents/follow-paused |
A person | Pauses the follower while it exists. |
/agents/electric-as |
A person, optional | master makes Electric connect as the master user. |
/agents/github/follow-credential |
A person | The token or deploy key follow.ts reads the repo with. |
/agents/github/client-id, client-secret, app-slug |
A person | The GitHub App’s settings. |
/agents/stripe/test-key, webhook-secret |
A person | Stripe’s keys. |
/agents/assemblyai/key |
A person | AssemblyAI’s key for speech to text. |
/agents/elevenlabs/key |
A person | ElevenLabs’s key for agents’ voices. |
/agents/livekit/key, /agents/livekit/secret |
A person | LiveKit’s key and secret for calls. |
/agents/calls |
Terraform, once the calls interface is attached | LiveKit’s address and the calls interface. No apply writes it yet. |
/agents/watchtower/* |
The collector | The group keys and the app, minter, deploy, window, follow and read tokens. |
RDS keeps the database’s master password in Secrets Manager and rotates it every 7 days. /agents/facts names the secret.
On the operator’s laptop
Section titled “On the operator’s laptop”| Path | Holds |
|---|---|
~/.agents-app/terraform/gomoe |
Terraform’s working folder for the stack, named by TF_DATA_DIR. |
On a person’s Mac
Section titled “On a person’s Mac”The Mac app’s daemon keeps its files in the home its build names, ~/.agents-gomoe for gomoe.dev’s. A daemon from a checkout keeps them in ~/.agents-app, or in the folder AGENTS_HOME names.
| Path | Holds |
|---|---|
daemon.json |
The machine’s api address and token. |
agents/<agent id>/ |
One agent’s folder. |
workspaces/<workspace id>/ |
One task’s workspace. |
app-state.json |
What the Mac app remembers, such as an address the person typed into the setup. Only the app writes it. |
The agents command keeps its API token in ~/.config/agents/login.json.