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/guides/link-docs.md.

Link docs into a project

Docs live in a source, like skills. Attach them to a project and every worktree of the project gets a link to them under .tack/docs, so your agents read and search the same files you edit. You read them in a local reader.

This guide links the handbook folder of ~/agent-setup into the project app.

1. Declare the docs

A source declares each docs folder by name in its tack.yaml. For a folder without one, put the entry in the JSON you pass to tack source add with --config, as Add a source shows; in an existing tack.yaml, add it yourself:

docs:
  - name: handbook
    path: handbook

Any Markdown or MDX file in the folder is a document. Frontmatter such as title, type, status and tags shows in search hits and in the reader's filters:

---
title: Release process
type: guide
status: active
tags: [release]
---

2. Attach and mount

Docs is an extension, off until you turn it on for this machine. On an npm or Bun install, its reader is the package @tackup/docs, at Tack's version: when it is missing, the command below names the one that installs it. Turn docs on once, which also links its skills, use-tack-docs and write-reader-figures, for your agents:

tack extension enable docs

Attach the docs to the project. Like a pick, this saves at once and links nothing:

Terminal
$ tack docs attach handbook --project app
tack docs attach · app · ✓ success

Docs attach saved for project app; it has 1 attached resource.

  attached  handbook

Next
  tack sync --no-adapters --project app

--no-adapters limits the sync to docs, so the preview shows only the mount:

Terminal
$ tack sync --project app --no-adapters
tack sync · project app · ✓ success

Preview only: nothing was written. 1 docs link to create.

Docs links
  + create  ~/code/app/.tack/docs/e71e644c-e9f8-42ac-b638-3b7504635ced/handbook
    docs handbook · project app

Next
  tack sync --project app --no-adapters --apply
Terminal
$ tack sync --project app --no-adapters --apply
tack sync · project app · ✓ success

Applied: 1 docs link created.

Docs links
  ✓ applied  create
    ~/code/app/.tack/docs/e71e644c-e9f8-42ac-b638-3b7504635ced/handbook
    docs handbook · project app

A plain tack sync --project app plans the docs mounts and the agent links together. The path holds the source's registration ID, so two sources can each have a handbook.

The mount is a link to a folder on your machine, and its path differs on every machine, so Git shows .tack/ as untracked. Ignore it in the repository's .gitignore. tack status --project app --details prints this line under "For .gitignore in project app", beside the lines for agent links:

/.tack/

3. See what is attached

Terminal
$ tack docs --project app
tack docs · project app · ✓ success

  root             ~/code/app
  destination      default
  default writing  none set

Attached docs 1 resource
  ✓ available  handbook
    source                  agent-setup
    source path             ~/agent-setup
    docs                    ~/agent-setup/handbook
    reader config (source)  ~/agent-setup/tack.yaml

  documents  1
  coverage   complete

Mounts managed writing links
  ✓ mounted  handbook
    path  ~/code/app/.tack/docs/e71e644c-e9f8-42ac-b638-3b7504635ced/handbook

Next
  tack docs target --project app

tack docs search reads every attached document without starting a server. Each hit names the file and the lines it came from, so an agent can open the exact passage:

Terminal
$ tack docs search "hotfix" --project app
tack docs search · app · ✓ success

  Query     hotfix
  Project   app · ~/code/app
  Results   1 hit, within the limit of 10
  Coverage  complete

Hits
  1. Release process
     release-process.md · handbook
     type guide · status active · tags release
     ~/agent-setup/handbook/release-process.md:13
       Hotfixes
     ~/agent-setup/handbook/release-process.md:15
       A hotfix branches from the last tag and is released the same day.

Narrow it with --type, --status, --tag and --limit.

5. Read in the browser

tack docs serve starts the reader and opens it in your browser. It shows every attached source in one view, with search and metadata filters, and reloads when you save a file. It runs until you press Ctrl+C.

Terminal
$ tack docs serve --project app
tack docs serve · app · ✓ success

Reader ready
  URL      http://127.0.0.1:4173
  Project  app
  Root     ~/code/app

Serving the attached docs in the foreground until interrupted.

--port picks the port, and --no-open keeps the browser closed.

The first launch for a project compiles every page. Later launches reuse the compiled pages, which Tack keeps in its state directory.

Detach

tack docs detach handbook --project app forgets the attachment. The next tack sync --project app --no-adapters --apply removes the mounts; your docs stay where they are.

Next

  • Add a document through the mount.
  • Review a page in the reader and hand the review to its agent.
  • The write-reader-figures skill, linked while docs is on, teaches your agent to draw figures in docs.