Setup, state and upgrades
This page covers the machine itself: setting Tack up, where it keeps its state, the skills it ships and how to upgrade it. Get started walks through the same steps for a first run.
Set up a machine
tack init writes at once and has no --apply:
It plans the whole setup, then applies it:
- State. It creates the state and its
.envwhen they are absent and keeps them otherwise. A state this release cannot read fails the command before anything is planned. - Agents. It enables the agents whose home folder exists:
claudefrom~/.claude,clinefrom~/.clineor~/Documents/Cline,codexfrom~/.codexor~/.agents,copilotfrom~/.copilot,cursorfrom~/.cursor,geminifrom~/.gemini,opencodefrom~/.config/opencode,pifrom~/.pi. The output lists each one as found or not found.--adapter ID, repeatable, names the agents instead. It only adds adapters and never disables one. - User links. It applies the plan
tack sync --usermakes once those agents are enabled. On a new machine that links the built-in skills; after an upgrade it points them at the new version. - Hand-made entries. It lists the files, folders and links in those agents' user skill and
command folders that Tack has no record of, and leaves them untouched. One at a built-in skill's
path is that link's
foreign-destinationconflict; everything else still applies.
It creates the state when absent, then, under one writer lock, enables the agents and applies the
user sync. It prints what it created, enabled, linked and removed, with every link action. It never
touches sources, projects or picks. On a machine that is set up it writes nothing and says so, so
tack init is also the one step after an upgrade. With no agent home found and no --adapter, it
sets up the state only and is partial with agent-home-not-found. Its Next names what to run; on
a first run, tack guide onboarding comes first.
Agent support lists the folders each adapter links into.
Where the state lives
Tack stores its state in ~/.tack by default. Set TACK_STATE_DIR, or put --state-dir PATH
before the command, to use another location. The flag takes precedence over TACK_STATE_DIR. The
state directory must be on a local machine: writer lock recovery uses process IDs and does not
support a home directory shared across machines.
tack state init creates the state directory, a state.json file and an operator-owned .env
file, and nothing else; tack init runs it first. It never overwrites existing state or .env
files.
On a machine without state, the first command that registers something, such as tack source add
or tack project add, initializes the default state itself and enables the agents it finds in the
home, as tack init does. Its state-initialized note names them. tack source add links only the
source's own resources and tack project add only the project's, so run tack init to link the
built-in skills. A tack source add or tack project add preview writes nothing and says what its
--apply initializes. tack adapter enable --apply enables only the adapters it names. With
--state-dir or TACK_STATE_DIR, absent state is refused with state-not-initialized, so a
mistyped directory is never created.
State is written as format 1, under the key format as the file's first field. This release reads
and writes format 1 only. A format above 1 fails with state-format-unsupported; anything else
fails with state-corrupt. When the only fault is fields this release does not know, the message says a newer
Tack most likely wrote the file and asks you to upgrade. Every pick names its source registration: there is no pick without a
source. tack source relocate changes the registration at once, while existing links keep their
recorded source until the next sync replaces them. If a release rejects valid state because it cannot read its format or
does not support a recorded adapter, use a compatible release. Do not reset valid state or remove
ownership evidence to make an older release accept it.
Versions
tack --version prints the running version. It takes no command and combines only with --json
and --state-dir; it works before tack init and reads no state. Automation
describes its JSON payload and the version format.
Guides for agents
tack guide onboarding prints the first part of the onboarding guide of the running version: how an agent sets up
Tack on a machine with a person, or unattended, asking before each change. It is the same Markdown
the built-in use-tack skill reads, printed byte for byte after a header that names the version,
with the sections of the extensions that are on.
tack guide lists every guide: onboarding, onboarding-2 and onboarding-3,
agent-instructions (the Tack section for a project's AGENTS.md), day-two (what to run for a
new project, worktree, source or skill, or to turn an agent or a profile on or off), tack-yaml (the
keys a tack.yaml takes) and
tack-yaml-schema (its JSON Schema). Each guide prints in under 8,000 characters, the length at
which some agent tools start to cut a result, so a longer one comes in parts: each part ends with
the command for the next, and its JSON next names it. It needs no state and writes nothing, so it works before
tack init. An unknown topic fails with guide-topic-unknown and the list of guides.
An extension that is on adds its own sections: with docs on, day-two and the onboarding parts say
how to declare and attach docs, and tack-yaml and tack-yaml-schema list the docs key. Scripts
does the same for the scripts key. While an extension is off they leave its sections and key out;
tack check still validates its entries.
Built-in skills
Tack includes a built-in source, labelled tack, with four skills:
Each extension brings a built-in source of its own, which joins the catalog while the extension is
on: tack-docs for docs and tack-scripts for scripts.
tack extension enable ID... switches each extension on, then links its skills in the user folder of
every enabled agent and lists the new links under linked. tack extension disable ID... removes
their links, then switches the extension off; it lists the removed links under unlinked and the
mounts it keeps under kept. Several IDs switch together or not at all. Neither
applies anything else a sync would change. A link either
cannot make or remove is listed under failures with a warning, and the run is partial (exit 1):
extension-skill-not-linked after enabling, with the extension on, and
extension-skill-not-unlinked before disabling, which leaves it on. Run the command again to retry.
A switch also rewrites the sources skills it would otherwise leave stale, of each project and, when
switching off, of the user, unless another pending change outdated them already. When a project
still needs a sync, such as to make its mounts, projects names it and next the sync.
tack catalog and tack source report this source without a registration. Its resources have
origin: "builtin"; resources from sources a profile bundle provides have origin: "bundle", and
resources from other registered sources have origin: "registered".
The source belongs to the running Tack. An npm package copies it once per version into
~/.tack/builtins/VERSION/, so agent links never point into npm's folder, which npm may replace.
TACK_BUILTINS_DIR moves that folder; --state-dir and TACK_STATE_DIR never do, so several
states share the copies. Agent folders hold symbolic links to those files.
A source run reads the files of its checkout, unless TACK_BUILTINS_DIR names a folder: it then
uses one copy there, VERSION+dev, like a package. Tack reads a complete copy as it is, so you can
edit one to try other built-in skills or other tack guide text, and compare it with the originals
by changing the setting:
A copy is made once: delete its folder to take the files the running Tack ships again, such as after you change a checkout.
Built-in skills are always delivered at user scope: tack sync --user --apply links each one into
the user skill folder of every enabled adapter, such as ~/.claude/skills. Tack needs them to
work, so no pick or setting removes them. After an upgrade, the next sync, or tack init, relinks
them to the new version's copy. When a run that keeps copies applies a sync, it then removes the
copies in its folder, TACK_BUILTINS_DIR or else ~/.tack/builtins, that are neither the running
version, nor the newest other one, nor the target of a link in the user home or a registered project
root of that state. The newest other copy stays for another state that still links it, until that
state syncs. The removal includes copies you edited, so keep an edit you need in a folder of its own.
Each agent decides when to load the instructions. A project sync does not install another copy.
Built-in skills are locked in tack explore, at both user and project scope, and tack pick include, tack pick exclude and tack pick remove refuse them with builtin-skill-locked.
A registered source that provides a skill with a built-in skill's name is a name clash: both stay
healthy, and you name the built-in one with its source's label, such as tack:use-tack or
tack-docs:use-tack-docs. Those labels are reserved whether an extension is on or off. Source
registration cannot adopt the built-in source, and relocation cannot move it.
Extensions
An extension adds one tool to Tack on a machine: docs attaches, mounts, searches and serves
documentation, and scripts runs the scripts sources declare. Each machine switches them on and
off; tack extension lists both: which are on, the package each needs, the registered sources that
need it, and the commands and skills it brings.
A fixed profile of the user never holds an extension's skills, so the
switch links and unlinks them whatever the profile holds. A link the profile made is left, and
reported with extension-skill-not-linked.
The docs reader is the package @tackup/docs, which installs apart from Tack, at Tack's own
version, with the package manager that installed Tack. Until it is there, tack extension enable docs refuses and names the command; a checkout includes it.
tack doctor fails its extensions check when an enabled extension's package is missing or at
another version, and names the same command.
When a registered, healthy source declares what an off extension handles, such as docs: entries
while docs is off, Tack says so with the diagnostic extension-needed, which names the sources and
tack extension enable ID. tack sync, tack status, tack profile enable, tack profile apply and
tack profile apply-bundle give it as a warning that leaves the exit status as it was;
tack source add and tack catalog give it as an info line; tack doctor's extensions check is a
warning. tack init lists each such extension under extensionsNeeded in its plan and its
application, and its enable command under Next. Init never turns one on.
While an extension is off, tack --help and completion leave its commands out. Typing one, or a
flag it adds to another command such as tack sync --no-docs, fails with extension-disabled
(exit 2), and next names tack extension enable ID. While scripts is off, tack script and
tack types are left out, and so is the run mode from the legend of tack --help. Tack reads
which extensions are on from the state before it parses the command, so before tack init none
is.
An off extension keeps what it made. While docs is off, tack sync and tack project refresh
neither create nor remove its mounts, which stay where they are, and the attachments stay in state.
tack status counts those mounts and lists each under --details and in keptMounts, as linked,
absent or changed; tack doctor's links check fails for one that is absent or changed.
tack status leaves out a project's docsDestination, the sources skill leaves out the mounted
folders, and tack doctor has no docs check; while scripts is off it has no scripts check. tack explore lists no docs resource, and
tack check runs no rule on a page, as Docs says. tack profile apply keeps a
profile's docs in its inventory and mounts none. Once docs is on again, the next sync plans the
mounts as before, profiles' included, without applying them again.
Upgrade Tack
Tack never upgrades itself: the package manager that installed it does. tack upgrade and
tack upgrade status report the same thing, without network and without changing anything: the
running version, how Tack was installed (npm, bun or source) and the command that upgrades it.
While an extension with a payload package is on, the command upgrades that package with Tack, so
both stay at one version: with docs on, npm install --global @tackup/cli@latest @tackup/docs@latest.
After a package upgrade, run tack init to point the built-in skills at the new version. For a
package install, tack upgrade names both commands under Next.
Next
- Projects and selection: register projects and choose what each one gets.
- Check health: what
tack doctorreports.