For AI agents: the complete documentation index is available at https://tackup.dev/llms.txt, the full documentation bundle is available at https://tackup.dev/llms-full.txt, and this page is available as Markdown at https://tackup.dev/docs/reference/setup.md.

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:

tack init

It plans the whole setup, then applies it:

  1. State. It creates the state and its .env when they are absent and keeps them otherwise. A state this release cannot read fails the command before anything is planned.
  2. Agents. It enables the agents whose home folder exists: claude from ~/.claude, cline from ~/.cline or ~/Documents/Cline, codex from ~/.codex or ~/.agents, copilot from ~/.copilot, cursor from ~/.cursor, gemini from ~/.gemini, opencode from ~/.config/opencode, pi from ~/.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.
  3. User links. It applies the plan tack sync --user makes 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.
  4. 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-destination conflict; 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), tack-yaml (every key 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. While docs is off they leave docs out; tack check still validates a docs entry.

Built-in skills

Tack includes a built-in source, labelled tack, with four skills:

SkillWhat it teaches an agent
use-tackOperating Tack.
manage-tack-sourcesCreating and maintaining a source.
author-tack-profilesWriting, checking, enabling and applying profiles.
prepare-tack-checkoutLinking a repository's skills at the start of work in a new checkout.

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.

SkillExtensionWhat it teaches an agent
use-tack-docsdocsAttaching, searching, reading and writing a project's docs.
write-reader-figuresdocsWriting figures in docs.
author-tack-scriptsscriptsWriting, declaring, running and inspecting 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.

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 an installed package applies a sync, it then removes the copies under ~/.tack/builtins that are neither the running version, nor the newest older one, nor the target of a link in the user home or a registered project root of that state. The newest older copy stays for another state that still links it, until that state syncs.

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.

tack extension                  # list the extensions
tack extension enable docs      # switch docs on for this machine and link its skills
tack extension disable docs     # unlink its skills, then switch it off; its mounts and data stay
tack extension enable scripts   # switch scripts on and link its skill

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 and a compiled release include it.

Installed withRefusalCommand it names
npmextension-package-missingnpm install --global @tackup/docs@VERSION
Bunextension-package-missingbun add --global @tackup/docs@VERSION
npm or Bunextension-package-version-mismatchthe same command, at Tack's version
pnpm or Voltaextension-package-missingthe npm install of @tackup/cli and 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.

Installed withUpgrade command
npmnpm install --global @tackup/cli@latest
Bunbun add --global @tackup/cli@latest
A checkoutnone: pull it and run bun install

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