.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.1and0.0.0.0both 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. setupruns as ansh -escript, so any line that fails stops it,devnever starts, andtesser devfails with a message thatsetupfailed. Append|| trueto a line whose failure is harmless. The box’sshhas nopipefail, so incmd | tee setup.loga failure ofcmdgoes unnoticed.devruns as a plainshscript oncesetupexits 0.- Pick a
health.paththat 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.jsbefore the build has written the rest, and a deadlocked server can keep answering/api/0/while every other request hangs. - The service’s own
portsand 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
portsand[deps]. - A service name that reads as a box id, such as
box-1a2borbox1a2b, is rejected, because<service>.localhostwould be ambiguous. - Names that can run code on the box are refused, both in
env.requiredand bytesser 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 withLD_,DYLD_,BASH_,GIT_,SSH_,NPM_CONFIG_,PNPM_,YARN_,BUN_,COREPACK_,PYTHON,PERL,PIP_,BUNDLE_, orCARGO_. A few harmless Python settings such asPYTHONUNBUFFEREDare 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,
devrequires the service name. When it has one, that service is the default.makewithout 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 setand the box’s ownTESSER_*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.filesortesser env push. When anenv.loadfile exists in your worktree, is gitignored and is not inenv.files,tesser devandtesser service lsprint onetesser: 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-runningprints onetesser: warning:line for eachenv.loadfile that is not committed at the commit it starts. setupon the snapshot builder reads committed files only too. A value thatsetupneeds there, such as aDATABASE_URLa code generator reads, goes in a committed file such as.env.example, or intesser 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=VALUEeach leave onetesser: env.load:line in the run log or the snapshot’s setup log and are skipped. setupgets the same values asdev. A loadedNODE_ENV=productionmakes npm, pnpm and yarn 1 installs insetupskip devDependencies. Whentesser env setdoes not setNODE_ENV, the box writes onetesser: env.load:line about this beforesetupruns, andsetupruns anyway. To install devDependencies, prefix the install insetup, such asNODE_ENV=development npm ci, or setNODE_ENVwithtesser env set, which applies todevtoo.- 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 setrefuses, such asPATHandNODE_OPTIONS. - Every shell on a service’s box gets these values too, for names the shell
does not already have. This covers
tesser exec, atesser sshcommand line, and the interactivetesser sshshell. 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 astesser devortesser sync --restart. - On a workbench,
tesser execand atesser sshcommand line get the values from the committedenv.loadfiles 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 onetesser: [env] load:line naming each such name and the services that set it.tesser exec --in <service>takes that service’s value instead. The interactivetesser sshshell on a workbench gets none. - Values from committed files count toward
skipping setup, so changing one makes the next start run
setupagain. Values from uncommitted files, such as a gitignored file sent withtesser env push, do not count.
Skipping setup
Withoutrun.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/*.shmatches the scripts in.claude/skills/tesserwhen one links to the other. Links do not chain: a path through two links is not matched. setupis skipped only when all of these match the last success:- the contents of the files the globs match, including files in submodules
- the
setupcommand,root, and the envsetupsees, including values from committedenv.loadfiles but not from uncommitted ones - the
aptlist - 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
setuplast finished, such asnode_modulesor.venv, must still exist. Deletingnode_modulesmakes the next start runsetupagain. tesser dev --rerun-setuprestarts the run and runssetupregardless.
setup may change:
- A box created from a snapshot keeps only
/homeand Docker’s images and volumes, so a skippablesetupmust change only files there. - System packages go in the top-level
aptlist, not insetup. The box installs them beforesetupanddevon every start, from.debfiles 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 indev. - When
setupwrites under/etc,/usr,/opt,/srv,/snap,/var/lib, or/var/cache, or leaves a process or such a container running, the log says so, andsetupruns again after the box reboots and on a box created from a snapshot. Tesser checks only files, so it cannot catch other changes.