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 14650 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.
  • setup on the snapshot builder reads committed files only too. A value that setup needs there, such as a DATABASE_URL a code generator reads, goes in a committed file such as .env.example, or in tesser env set.
  • A missing file, a file outside the repository, an uncommitted file on a shared instance or the snapshot builder, and a line that is not KEY=VALUE each leave one tesser: env.load: line in the run log or the snapshot’s setup log and are skipped.
  • 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.
  • Values from committed files count toward skipping setup, so changing one makes the next start run setup again. Values from uncommitted files, such as a gitignored file sent with tesser env push, do not count.

Skipping setup

Without run.setup_inputs, setup runs on every start. With it, a start skips setup when it already succeeded with the same inputs, on this box or on the snapshot the box was created from, and the log says so.
  • The globs are relative to the repository root. A path without a wildcard, such as .npmrc, counts even when it is gitignored.
  • A glob that starts with !, such as "!docs/**", drops the paths it matches from the other globs’ matches, wherever it sits in the list. A later glob cannot add a dropped path back.
  • A glob matches files through a link to a directory inside the repository, so .agents/skills/tesser/*.sh matches the scripts in .claude/skills/tesser when one links to the other. Links do not chain: a path through two links is not matched.
  • setup is skipped only when all of these match the last success:
    • the contents of the files the globs match, including files in submodules
    • the setup command, root, and the env setup sees, including values from committed env.load files but not from uncommitted ones
    • the apt list
    • the Ubuntu release, the architecture, the AMI (on a microVM, its guest image), and the Node version
    • the way Tesser’s agent on the box runs setup. An agent update that leaves this unchanged keeps the skip.
  • Every gitignored path in the workspace when setup last finished, such as node_modules or .venv, must still exist. Deleting node_modules makes the next start run setup again.
  • tesser dev --rerun-setup restarts the run and runs setup regardless.
What setup may change:
  • A box created from a snapshot keeps only /home and Docker’s images and volumes, so a skippable setup must 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.
  • When setup writes under /etc, /usr, /opt, /srv, /snap, /var/lib, or /var/cache, or leaves a process or such a container running, the log says so, and setup runs again after the box reboots and on a box created from a snapshot. Tesser checks only files, so it cannot catch other changes.