Skip to main content
A service is described by one TOML file at .agents/skills/tesser/<service>.toml. The filename is the service name, which may contain lowercase letters, digits, -, and _. Service names are shared across the org. A manifest holds facts about the service: where its code lives, what ports it listens on, how to set it up and start it, how to tell that it is healthy, and what it depends on. Decisions such as when to restart, when to run tests, or what else to install are made at the command line, not in the manifest.

Minimal

All fields

Field by field

Rules

  • Bind declared ports however the app prefers. 127.0.0.1 and 0.0.0.0 both work, and Tesser never binds them itself. Other boxes reach a declared port only through the box’s mesh ingress, and the org’s network exposes nothing else, so an all-interfaces bind is not public. Pin the port in the dev server’s config so a collision fails loudly instead of silently drifting to the next port and breaking routing.
  • setup runs as an sh -e script, so any line that fails stops it, dev never starts, and tesser dev fails with a message that setup failed. Append || true to a line whose failure is harmless. The box’s sh has no pipefail, so in cmd | tee setup.log a failure of cmd goes unnoticed. dev runs as a plain sh script once setup exits 0.
  • Pick a health.path that goes through the app, such as an API route that reads the database. A static file, a proxy, or auth middleware can answer before the app works or while it is stuck: a dev server can serve /js/main.js before the build has written the rest, and a deadlocked server can keep answering /api/0/ while every other request hangs.
  • The service’s own ports and its [deps] keys share the box’s loopback port space, so a port cannot appear in both.
  • Ports 14651 through 14655 are reserved for Tesser and are rejected in ports and [deps].
  • A service name that reads as a box id, such as box-1a2b or box1a2b, is rejected, because <service>.localhost would be ambiguous.
  • Names that can run code on the box are refused, both in env.required and by tesser env set: PATH, HOME, SHELL, NODE_OPTIONS, NODE_PATH, HTTP_PROXY, HTTPS_PROXY, CC, RUSTFLAGS, GOPROXY, and similar interpreter, compiler, and proxy settings, plus anything starting with LD_, DYLD_, BASH_, GIT_, SSH_, NPM_CONFIG_, PNPM_, YARN_, BUN_, COREPACK_, PYTHON, PERL, PIP_, BUNDLE_, or CARGO_. A few harmless Python settings such as PYTHONUNBUFFERED are allowed.
  • A service name already registered by another repository in the org cannot be registered again; the registration fails with an error.
  • When a repository has several manifests, dev requires the service name. When it has one, that service is the default. make without a service name always creates a workbench.
  • Unknown keys are rejected, and the error message lists the keys that exist.
  • Secret values do not belong in a manifest. The [env] table holds names and file lists only, because the manifest is committed to the repository.
  • Dependencies are names, never addresses. Which box a name reaches is decided for each box at run time, as described in Connect a frontend to a backend.

Loading env files

env.load lists dotenv files the box reads before each start, so setup and dev get their values as env without sourcing a file as shell.
  • Files apply in order, and a later file wins over an earlier one.
  • Values from tesser env set and the box’s own TESSER_* variables win over every file.
  • A path may leave root, such as "../../.env", but not the repository.
  • A gitignored file reaches the box only through env.files or tesser env push. When an env.load file exists in your worktree, is gitignored and is not in env.files, tesser dev and tesser service ls print one tesser: warning: line for it on your laptop.
  • A shared instance reads committed files only, so one member’s file never becomes the org’s env. tesser make --ensure-running prints one tesser: warning: line for each env.load file that is not committed at the commit it starts and is not gitignored.
  • A missing file, a file outside the repository, an uncommitted file on a shared instance, and a line that is not KEY=VALUE each leave one tesser: env.load: line in the run log and are skipped. On a shared instance, an uncommitted gitignored file, such as a local secrets file, is skipped without a warning or a run log line.
  • setup gets the same values as dev. A loaded NODE_ENV=production makes npm, pnpm and yarn 1 installs in setup skip devDependencies. When tesser env set does not set NODE_ENV, the box writes one tesser: env.load: line about this before setup runs, and setup runs anyway. To install devDependencies, prefix the install in setup, such as NODE_ENV=development npm ci, or set NODE_ENV with tesser env set, which applies to dev too.
  • Lines are read the same way as tesser env set --from-file, described in the CLI reference.
  • A file may set any name, including ones tesser env set refuses, such as PATH and NODE_OPTIONS.
  • Every shell on a service’s box gets these values too, for names the shell does not already have. This covers tesser exec, a tesser ssh command line, and the interactive tesser ssh shell. A shell gets the values the service’s last start read, not the files as they are on disk, so a changed file reaches shells at the service’s next start, such as tesser dev or tesser sync --restart.
  • On a workbench, tesser exec and a tesser ssh command line get the values from the committed env.load files of every service in the repository, read from your worktree when you run the command, for names the shell does not already have. A name that two services set to different values is left unset, and the command prints one tesser: [env] load: line naming each such name and the services that set it. tesser exec --in <service> takes that service’s value instead. The interactive tesser ssh shell on a workbench gets none.

Snapshot files

A snapshot file holds the setup that a repo’s boxes share, such as the workspace install. A blank box captures its disk right after that setup runs, and new boxes start from the capture. The Snapshots guide walks through writing one, and Snapshots has the rules for how boxes make and pick them.
  • The file is <name>.snapshot.toml beside the manifests. The name may contain lowercase letters, digits, -, and _.
  • default.snapshot.toml is the snapshot of every manifest without from_snapshot, and of the repo’s workbenches. A manifest with from_snapshot = "<name>" takes <name>.snapshot.toml instead. A manifest with from_snapshot = false takes no snapshot file, which suits a service that only runs containers. from_snapshot = true is rejected.
  • A start whose manifest names a snapshot file that does not exist fails with a message naming the missing path.
  • Every start runs the snapshot file’s setup, then the manifest’s setup, then dev. Both setup commands run as sh -e scripts and must be idempotent.
  • setup is required and cannot be empty. Only root, setup, and [env] are allowed, and unknown keys are rejected.
  • [env] holds load and NAME = "value" lines. Each value must be a string, so write PORT = "3000", not PORT = 3000. Names that can run code on the box are refused, as listed under Rules.
  • The snapshot file’s setup gets the values from tesser env set, the committed files in its own env.load, and its own [env] values, not the manifest’s [env]. A name set in more than one place takes the snapshot file’s [env] value first, then its env.load files, then tesser env set. An uncommitted or missing file leaves one tesser: snapshot <name> env.load: line in the run log and is skipped.
  • The snapshot file’s [env] values and env.load files reach only its setup. The manifest’s setup and dev do not see them.
  • That setup sees no TESSER_BOX_* variables and no TESSER_SLOT. Anything specific to one box, such as its address, its id, or a per-box secret, belongs in the manifest’s setup or dev. A value the snapshot file’s setup needs, such as a DATABASE_URL a code generator reads, goes in the snapshot file’s [env], in a committed file it loads such as .env.example, or in tesser env set.

What setup may change

  • A box created from a snapshot keeps only /home and Docker’s images and volumes, so setup should change only files there.
  • System packages go in the top-level apt list, not in setup. The box installs them before setup and dev on every start, from .deb files cached under /home, so a box from a snapshot installs them offline.
  • Kernel, network, and mount changes (sysctl, modprobe, iptables, ip route, mount), and anything that must run on every start, such as a background process or a container without a restart policy, belong in dev.