Skip to content

Config files under ~/.agents-app

Agents keeps its settings files, secrets and working folders under ~/.agents-app. The server and the daemon each read their own set. On gomoe.dev the server’s ~/.agents-app is the API user’s, /home/agents/.agents-app, a link to /data/agents-app on the host’s data volume. AGENTS_HOME moves the daemon’s home, and several server paths have their own variables, listed in the Variable column. Files that hold a token or a key have mode 600, in folders of mode 700, and no database column holds their contents.

Path Variable What it holds
forge.json AGENTS_FORGE_FILE The forge’s settings as JSON. Its keys are url, hookUrl, org, token, adminToken and webhookSecret. On gomoe.dev ops/aws-deploy/forge.ts checks it on every deploy, writes it when it is missing or its tokens fail, and keeps a copy in SSM at /agents/forge/config. On a developer’s Mac ops/forge-setup.ts writes it.
server-key AGENTS_SERVER_KEY_FILE 32 random bytes that seal what native sign-in keeps, such as each account’s authenticator secret. Native sign-in needs it.
people.sock, laptops.sock AGENTS_PEOPLE_SOCKET, AGENTS_LAPTOP_SOCKET On gomoe.dev, the sockets nginx sends people and Macs to.
box-claude-token AGENTS_BOX_TOKEN_FILE The team’s Claude token, one line.
box-claude-token.meta.json Beside the token file Notes about that token. Its keys are last_four, fingerprint, saved_by, saved_at, valid_until, checked and check_note. A file about another token is ignored.
streams/ AGENTS_STREAMS_DIR The stream server’s data, the live tokens of running sessions.
pipelines/ AGENTS_HOME The server’s cache of each team’s pipeline files, read from the forge.
mirrors/<repo id>.git AGENTS_HOME The API’s own bare clone of each repo. Gates read changes from it.
attachments/<database name>/ AGENTS_ATTACHMENTS_DIR Attachment bytes, one file per row, named by the row’s id under a folder of the id’s first two characters.
downloads/Agents-mac.zip AGENTS_HOME Where daemon/mac/release.ts --publish puts the Mac app. The server serves the file AGENTS_MAC_APP names.

These have no default path. Each exists only when its variable is set.

Path Variable What it holds
<AGENTS_TAILSCALE_KEY_FILE> AGENTS_TAILSCALE_KEY_FILE The saved Tailscale API key as JSON with key, expires, savedAt and savedBy, on a server in Tailscale mode. gomoe.dev has none.
stopgaps/<team id>.json in AGENTS_GITHUB_DIR AGENTS_GITHUB_DIR A team’s fine-grained GitHub token, with token, login, owner, ownerKind and savedAt.
people/<person id>.json in AGENTS_GITHUB_DIR AGENTS_GITHUB_DIR A person’s GitHub sign-in, with login, token, savedAt, expiresAt, refreshToken and refreshExpiresAt.
accounts/<account id>.json in AGENTS_CONNECTORS_DIR AGENTS_CONNECTORS_DIR A connector’s key, with kind token, header, value and savedAt. Or a sign-in, with kind oauth, issuer, clientId, accessToken, refreshToken, expiresAt, scope and savedAt.
clients/<connector id>.json in AGENTS_CONNECTORS_DIR AGENTS_CONNECTORS_DIR The client a provider’s registration gave, with issuer, redirectUri, clientId, clientSecret and savedAt.
apps/<team id>-<catalog id>.json in AGENTS_CONNECTORS_DIR AGENTS_CONNECTORS_DIR The client id and secret a team made at a provider, with clientId, clientSecret and savedAt.

These live in the daemon’s home, AGENTS_HOME. A daemon from a checkout uses ~/.agents-app, the Mac app the home its build names, such as ~/.agents-gomoe for gomoe.dev’s, and a box /home/agent/.agents-app.

Path What it holds
daemon.json The machine’s config as JSON, with api for the address of the machine port and token for the machine’s token. Mode 600. The variables AGENTS_API and AGENTS_TOKEN win over it.
app-state.json What the Mac app remembers, with server for an address the person typed into the setup and firstOpenSeen. Only the app writes it. The app reads no app.json.
secrets.json Plugin secret values as one JSON object of names to values. A person sets or removes a value from the app. Mode 600.
agents/<agent id>/ One agent’s folder, where its conversations run.
workspaces/<workspace id>/ One task’s workspace. It holds a clone of each repo, a task/ folder for the task’s documents, and a CLAUDE.md that imports each repo’s own rules.
sessions/<session id>.mcp.json The MCP servers one session starts with.
sessions/<session id>.settings.json The hooks one session starts with.
sessions/<session id>.pid The process id of the session’s harness, which the daemon uses to stop a harness that an earlier run left behind.
kept/<hash>.json One folder turned off on this Mac. The name is the SHA-256 hash of the folder’s path, and the file holds the path.
terminal-sessions.json Which terminal sessions the daemon has sent.
run/app.sock The socket the Mac app uses to talk to the daemon.
run/share-guard.sock The socket where an agent’s tools ask whether a file holds a secret.
claude-token and claude-token.until The Claude token the box’s owner signed in with from the app, and when it ends. Mode 600.
browser/ The browser profile of a box’s first seat. Other seats use seats/<number>/browser/.
suites/ Scratch folders for the checks the daemon runs.
daemon.log The Mac app’s log of the daemon it supervises.

A box keeps its screen’s sockets in agents-screen under the temporary folder, outside the home volume.