Import, Export & Project Files

This page is for anyone who wants to move work into or out of Tack. After reading it you will know which kind of file to use, how to bring a whole project in from one file, and how to take one out again.

The examples use http://127.0.0.1:3210 and a server started with tack serve. The tack command finds a local server and its token on its own. A curl request to a server that requires a token needs -H "Authorization: Bearer <token>"; the Administrator Guide explains tokens.


Which one should I use?

I want to…UseWhere
Move a whole project's setup: workflow, vocabulary, fields, agent profiles, roles, sprints, automation and itemsThe project fileThe project file
Start new projects that all share the same roles, agents and automationA templateTemplates
Create a project from a plan: a spreadsheet, a script or an AI assistant's list of tasksAn outline or a CSVItems only: outline and CSV
Seed a project from work already tracked elsewhereGitHub or Linear importImporting GitHub and Linear issues
Keep a copy of one project's items, sprints, dependencies and briefs, or move it to another TackA JSON or YAML snapshotSnapshots and CSV export
Edit the item list in a spreadsheet and bring it backA CSV export, then CSV importSnapshots and CSV export

A snapshot keeps items; a project file keeps the setup around them. For a copy of the whole board, database included, see Backup & Restore.


The project file

A project file is one YAML or JSON document that holds a project: its workflow and vocabulary, custom fields, agent profiles, roles, sprints, automation settings and items. You can write it by hand, generate it, ask an AI assistant for it, or export it from a project you already have and edit that.

What it holds

SectionWhat it describes
projectName, type, description, the project's own words (vocabulary) and its workflow, either a preset or the statuses in order.
typesThe project's item types: key, name, level (group holds work, work is work), colour and the one default work type.
fieldsCustom fields: name, type, options, whether a value is required.
profilesAgent profiles: name, kind, instructions, which agent runs it, its team, its fleet and its limits.
rolesProject roles: name, color and the profile each role uses.
sprintsName, goal and dates. A sprint is created planned or closed, never active.
automationThe project's folder or repository, branch, how the agent works, the install command, whether to push, default agent, profile and model, the definition of done, autonomy and auto-start.
itemsThe items, with their hierarchy and dependencies, plus the role, sprint, field values and repeat of each.

Every section is optional. A file with only items is an outline. The full list of keys, with their types and defaults, is in The Project File Format.

A small example

This is a shortened version of the My SaaS example in the Developer Guide. It sets a workflow, one field, one agent profile for a docket team, one role, one sprint, some automation and three items.

project:
  name: My SaaS
  type: web
  description: Invoicing and appointment booking for small agencies.
  vocabulary:
    sprint: Semana
  workflow:
    statuses:
      - { name: Ideas, category: todo }
      - { name: Por hacer, category: todo }
      - { name: En curso, category: in_progress, wip_limit: 5 }
      - { name: En revisión, category: in_progress }
      - { name: Hecho, category: done }

types:
  - { key: epic, name: Iniciativa, level: group, color: accent }
  - { key: task, name: Tarea, level: work, color: neutral, default: true }
  - { key: feature, name: Historia, level: work, color: success }

fields:
  - { name: Plan, type: select, required: true, options: [free, pro, team, business, enterprise] }

profiles:
  - name: My SaaS content writer
    kind: custom
    instructions: >
      Write and edit help-center articles, release notes and newsletter copy for the plan the task names.
      Keep every sentence plain enough for a customer to follow without asking support.
    tool_policy:
      agent: docket
      tools: { docket: ["*"] }
      docket:
        team: saas-content
    limits: { budgets: { tokens: 300000 }, timeout_seconds: 1800 }

roles:
  - { name: Contenido, color: "#f59e0b", profile: My SaaS content writer }

sprints:
  - { name: Semana 42, goal: Lanzar la facturación recurrente, start: 2026-10-12, end: 2026-10-18 }

automation:
  default_profile: My SaaS content writer
  definition_of_done: >
    Content pieces carry their plan and are proofread before they ship.
  auto_start:
    enabled: true                 # accepted, applied as off, with a warning
    status: Por hacer
    max_open: 3

items:
  - { ref: C1, title: Facturación recurrente, type: epic, priority: high, roles: [Contenido], fields: { Plan: pro } }
  - ref: S1
    title: Guía para crear tu primera factura
    type: feature
    parent: C1
    status: Por hacer
    priority: high
    roles: [Contenido]
    sprint: Semana 42
    fields: { Plan: pro }
    estimate: 3
    estimate_unit: hours
    description: Un artículo de 600 palabras, con capturas, para leer en seis minutos.
  - { ref: S2, title: Novedades de la versión 2.4, type: feature, parent: C1, status: Por hacer, roles: [Contenido], sprint: Semana 42, fields: { Plan: pro } }

Items refer to each other by ref, to roles, sprints and fields by name, and a role refers to its profile by name. A profile's tool_policy.docket.team names the docket team that runs it; see Running Agents on Tasks.

How to import it

In the web UI. Open Project settings → Data → Import.

  • New project from a file… creates a project from the file.
  • Add items from a file… reads the file into the project you are in. Its roles, fields, profiles, sprints and automation are applied to that project too.

Both show a preview first. Nothing is written until you confirm with Create project or Add items.

From the command line.

tack import project.yaml --dry-run      # check the file and show the preview, write nothing
tack import project.yaml                # create the project the file names
tack import project.yaml -p <project>   # read the file into an existing project

The format comes from the extension: .csv, .yaml or .yml, otherwise JSON. --name and --type override the file's project block for a new project.

From an AI assistant (MCP). With tack mcp set up (see the MCP guide), the assistant calls create_outline with project to create a project or project_id to add to one, and with items plus any other section of the file. Ask it to pass dry_run: true first.

From the API. POST /api/projects/outline creates a project and POST /api/projects/{id}/outline reads a file into one. Both take JSON, or YAML when Content-Type mentions yaml, and both take dry_run=true.

curl -X POST "http://127.0.0.1:3210/api/projects/outline?dry_run=true" \
  -H "Content-Type: application/x-yaml" --data-binary @project.yaml

The preview

The preview lists each section the file carries, then the items:

  • Section lines read like "Roles: 2 new, 5 updated, 3 not mentioned". "New" were created, "updated" matched a name Tack already had, and "not mentioned" are names the project has that the file does not carry. Those are left alone.
  • Warnings appear under the section they belong to. The web preview repeats them under "Read differently than written".
  • Items are listed with the status each will start in, and the number of dependencies.
  • New types lists the type words the items use that the project does not have; each is added as a work type when you confirm.
  • Missing lists what the file expects and no computer reports, each with what closes the gap. A team the file's teams section or a profile names, and that no agent reports, comes with docket's command that makes it, for example docket init saas-research --blueprint respond --recipe research-review. An agent a profile runs, and that no computer has, comes with the sentence that installs it. Each fix has a Copy button. Nothing in this list is created by the import: run the command or install the agent, and the next preview no longer lists it.

For the example above, tack import --dry-run prints one line per section, in the order types, fields, profiles, roles, sprints, automation, items, and a warning that auto-start was asked on but applied as off.

If the file cannot be imported, the preview shows This file cannot be imported and lists every problem at once, so you can fix the whole file in one pass.

The rules that matter

  • Names are the references. An item names its roles, sprint and field values. A role's profile names a profile of the same file first, then one Tack already has. An unknown key anywhere is refused, so a misspelt key is reported instead of lost.
  • The whole file is checked before anything is written. Either all of it can be written or none of it is.
  • Nothing is deleted. Importing into an existing project adds new names and updates the names the file mentions, using only the keys it gives. Roles, fields, sprints and profiles the file does not mention stay as they are. Items in a file are always added.
  • The project block is read only for a new project. For an existing one the name, workflow and vocabulary are kept, with a warning that says where to change them: Settings.
  • Types: a file that creates a project gives it exactly the types it lists. A file that adds to a project adds the types it lacks and takes the names and colours of the ones it has; their levels and the default stay as the project has them. An item's type is a key or a name of the project's types, in any case; a word the project does not have is added as a work type, and the preview lists it as a new type.
  • Built-in profiles are never changed. A role may use Implementer, Reviewer, Researcher or Planner. A file that redefines one gets a warning and the built-in stays.
  • A file cannot raise autonomy or switch auto-start on. A level above the project's current one is applied at the project's current level, and auto_start: enabled: true is applied as off unless the project already has it on. Each time the preview says what was asked and what was applied. Raise it yourself from Settings → Automation; see Automating a Project.
  • A new project starts at L3. So a file that asks for L4 on a new project gets L3 and a warning.

What is refused, and what is only a warning

The file is refused for:

  • an unknown key, or a value of the wrong kind;
  • a section entry with no name, or with a name used twice;
  • a vocabulary word that is not one of the ten keys, or a type key that is not 1 to 40 lowercase letters, digits, _ or -, is used twice, or a new project's types without exactly one default work type;
  • a workflow that gives both a preset and statuses, neither, an unknown preset, a status category that is not todo, in_progress or done, a duplicate status name, or no status in one of those three categories;
  • a field of an unknown type, a select field without options, or an item value of the wrong type or outside the field's options;
  • a profile with an unknown kind, an unknown agent, or a team name that is not lowercase letters, digits and hyphens;
  • a role that names a profile found neither in the file nor on the board;
  • a sprint with a date that is not YYYY-MM-DD or a status other than planning or closed;
  • an automation setting with an unknown code origin, workspace mode or default agent, a folder that is not an absolute path, a URL that is not a URL, an install command that is not one line, an unknown default profile, an auto-start status the workflow does not have, an auto-start cap below 1, or a level other than L3, L4 or L5;
  • an item that names a role, sprint or field found neither in the file nor in the project;
  • the item rules of the outline: no title, a ref used twice, a parent or depends_on that names no item or an ambiguous title, a parent or dependency loop, a due date that is not a date, a title over 500 characters, a negative estimate, more than 20 tags, or more than 1,000 items.

The file is accepted with a warning for:

  • a built-in profile it tries to redefine;
  • a fleet name the board does not have: the profile then runs on any computer;
  • an autonomy level or auto-start the import lowered;
  • an item whose status the workflow does not have: it starts in the first status;
  • an unknown priority, which becomes medium;
  • an item with no value for a required field;
  • a CSV column Tack does not read.

A spreadsheet written for another tool should not have to be rewritten to import it, so the preview shows each warning before anything is written.

If a section fails to write

The checks catch problems in the file. A failure while writing, such as a full disk, is different. The answer then names the section: "The roles section could not be written."

  • A new project: nothing was created, because the half-written project is removed.
  • An existing project: what the file wrote before that section stays, and the answer says so. Items are written last, in one step, so a failed section never leaves half a set of items. Import the same file again to finish: names already written are matched and updated.

Exporting a project file

  • In the web UI: Project settings → Data → Export → Export project file (YAML).
  • From the command line: tack export <project> --bundle -o project.yaml. Add --format json for JSON.
  • Over the API: GET /api/projects/{id}/export?scope=bundle&format=yaml.

The export writes the same file back: items in written order, only the profiles the project's roles and default point at, and no ids. It never writes the signing key that merge verification uses; paste that in the Public key field under Merge in Settings → Automation. Exporting, importing into a new project and exporting again gives the same text.

Templates

A template is a project file without items. It gives every new project the same workflow, types, vocabulary, roles, profiles, automation and the teams it expects.

  • Use one: on the Templates page choose Use Template, or run tack init "My site" --template web-product-with-content. The name is matched without regard to case and - reads as a space, or give the template's id.
  • Save one: tack template save <project> --name "My template" stores a project's roles, profiles, automation, workflow, types and vocabulary.
  • Built-in templates: Web product with content, Library or CLI and Static content site each bring their roles and profiles, with merging at L3. Digital business brings six departments (Software, Operations, Support, Growth, Finance and Insight) as roles, each with a profile that names no agent, so each runs on whichever agent the project uses and puts its work in the repository (a report is a file). It also lists the teams docket would run them with: one that builds, one that answers for Support and Growth together, one that operates and one that keeps records for Finance and Insight. A department gets a team of its own only when its work has a different shape or a different gate. The teams are described and never created: point a department's profile at docket and create the team with the command the preview prints.
  • What the Templates page shows: each card carries chips for what the template holds, such as "5 statuses", "3 roles", "3 profiles" and "Merges at L3". Hover a card to see its workflow columns and each role with its profile.

Items only: outline and CSV

When you only have a list of tasks, write an outline (JSON or YAML with items, and optionally project) or a CSV with a header row, one item per row. Both are read by the same rules as the project file.

project:
  name: Website relaunch
  type: web                  # optional; default custom
  description: Q4 relaunch   # optional
items:
  - ref: design
    title: Design
    type: epic
  - title: Wireframes
    parent: design
    depends_on: [research]
    due_date: 2026-11-01
    priority: high
  - ref: research
    title: User research
    status: In Progress
    tags: [ux]
    description: |
      Interview five users.
      Summarise the findings.

Items can come in any order; a parent is always written before its children.

FieldDescription
refA name other items use in parent and depends_on. Any text or number, unique in the file. Optional.
titleRequired.
descriptionOptional.
typeA key or a name of the project's types, in any case; absent, the project's default work type. A word the project does not have is added to its types as work.
statusA status of the project's workflow, in any case. Absent: the workflow's first status.
prioritycritical, high, medium (the default), low or none.
assigneeOptional.
estimateA number.
due_dateYYYY-MM-DD, or an RFC 3339 timestamp.
tagsA list of words.
recurrenceweekly, monthly or quarterly. Closing the task creates the next one.
parentThe parent's ref, or its exact title. When adding to an existing project, also the id of an item already in it.
depends_onThe refs or titles of items that must finish first. Each becomes a blocks dependency.

The CSV uses the same names as column headers, matched in any case. Only title is required. These spellings are also read:

ColumnAlso read as
refid, key
typeitem_type
due_datedue
tagslabels
recurrencerepeats
parentparent_id, parent_ref
depends_onblocked_by

tags and depends_on hold several values separated by ; or |, never ,, which a title may contain. Quoted cells may contain commas, quotes (written "") and line breaks. Rows with no title are skipped and counted. A CSV exported from Tack imports again with its hierarchy, because its id and parent_id columns are read as ref and parent.

Import it with the same steps as the project file: Project settings → Data → Import in the web UI, tack import plan.yaml or tack import tasks.csv --name "Relaunch" -t web on the command line, or create_outline from an assistant. For the API, POST /api/projects/import-csv?name=… creates a project from a CSV (name is required) and POST /api/projects/{id}/import-csv adds a CSV's rows to a project. A new project from a CSV is named after the file unless you pass --name.

A successful import answers:

{
  "dry_run": false,
  "project": { "id": "…", "name": "Website relaunch", "…": "…" },
  "created": 3,
  "skipped": 0,
  "dependencies": 1,
  "items": [
    { "ref": "design", "id": "…", "title": "Design", "status": "Backlog", "parent_id": null }
  ],
  "warnings": []
}

items is in written order, parents first. On a dry run id is null and project is absent. A refused file answers 400 with every problem in the message.

Items from an outline are recorded with source: outline and items from a CSV with source: csv_import. Both are untrusted: when such an item is handed to an agent, its text is labelled as data to work from rather than instructions, because Tack cannot tell who wrote it.


Importing GitHub and Linear issues

GitHub

POST /api/projects/{id}/import-github fetches the issues of a repository and creates one Tack item per issue in the project. Pull requests are skipped. Each created item stays linked to its issue, so its status and comments can sync.

curl -X POST http://127.0.0.1:3210/api/projects/3f1c2b9a-8d4e-4a77-9b21-0c5e6f7a8b90/import-github \
  -H "Content-Type: application/json" \
  -d '{
    "repo": "rust-lang/rust",
    "token": "ghp_yourPersonalAccessToken",
    "import_closed": false,
    "label_filter": ["bug", "good first issue"]
  }'
FieldRequiredDefaultDescription
repoyes—Repository as owner/repo or a full URL (https://github.com/owner/repo, with or without a .git suffix or trailing slash).
tokennononeA GitHub personal access token. Without one, GitHub allows 60 requests an hour; with one, 5,000. Reading a private repository needs a token with repo scope.
import_closednofalseWhen false, only open issues are imported.
label_filterno[]When non-empty, only issues carrying at least one of these labels are imported (case-insensitive).

Tack pages through the repository 100 issues at a time, so one call imports every matching issue.

GitHubTack item
number + titleTitle, written [#123] Issue title
bodyDescription, starting with a GitHub Issue: <url> line
labelsTags, one per label
state (open / closed)The first workflow status for an open issue, the first Done status for a closed one
assignee.loginAssignee

Every imported item is a task. The answer reports counts, and skipped covers pull requests, issues the label filter removed, and rows that failed to create:

{ "created": 42, "skipped": 3, "rate_limit_remaining": 4958 }

Linear

POST /api/projects/{id}/import-linear fetches issues from Linear and creates items, 50 issues a page until all matching issues are in.

curl -X POST http://127.0.0.1:3210/api/projects/3f1c2b9a-8d4e-4a77-9b21-0c5e6f7a8b90/import-linear \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "lin_api_yourKeyHere",
    "team_id": "ENG",
    "import_completed": false,
    "label_filter": ["frontend"]
  }'
FieldRequiredDefaultDescription
api_keyyes—A Linear personal API key, created at https://linear.app/settings/api.
team_idnononeImport only this team's issues, by key such as ENG.
project_idnononeImport only this Linear project's issues. Wins over team_id when both are set.
import_completednofalseWhen false, completed and cancelled issues are skipped.
label_filterno[]When non-empty, only issues carrying at least one matching label are imported (case-insensitive).

With neither team_id nor project_id, every issue the key can read is fetched.

LinearTack item
identifier + titleTitle, written [ENG-123] Issue title
descriptionDescription, starting with a Linear Issue: <url> line
labelsTags, one per label
state.type (completed / cancelled)The first Done status; every other state maps to the first workflow status
assignee.nameAssignee
priorityPriority: 1 Urgent is Critical, 2 High, 3 Medium, 4 Low, 0 No priority is unset

The answer is { "created": N, "skipped": N }.

Keeping GitHub issues in sync

Items imported from GitHub stay linked to their issue, and you can link any other item by hand in the GitHub issue section of its Overview tab (type owner/repo#42 and press Link). When the board has a GitHub token, the link carries state and comments in both directions:

  • Out, on every change. Moving a linked item into a Done status closes its issue. Moving it back out reopens it. A comment on the item is posted on the issue.
  • In, on a poll. A closed issue moves its item to the first Done status. A reopened one moves it to the first to-do status. A new comment on the issue appears on the item, attributed to its GitHub login.

Both directions are best-effort: a failure is logged and never blocks the item update. A change that came in never triggers a push back out. Title edits, labels and assignees are not mirrored. Tack listens on your computer only by default, so GitHub cannot call it; the inbound side polls instead.

Sync is off until an administrator sets a GitHub token and a poll interval; the settings are in the Configuration. A project can also carry its own token as a secret reference. For the full behaviour, see GitHub Sync.


Snapshots and CSV export

A JSON or YAML snapshot

GET /api/projects/{id}/export?format=json returns a complete snapshot of one project as a download named <project-name>-export.json. format=yaml gives the same structure as YAML. In the web UI use Project settings → Data → Export → Export JSON or Export YAML; from the command line, tack export <project> -o snapshot.json.

curl -OJ "http://127.0.0.1:3210/api/projects/3f1c2b9a-8d4e-4a77-9b21-0c5e6f7a8b90/export?format=json"

The snapshot holds:

  • project: the full project record, including workflow and vocabulary;
  • items: every item;
  • sprints: every sprint;
  • dependencies: every dependency;
  • briefs: every item's brief, meaning its acceptance criteria, constraints, definition of done and risk;
  • metadata: when it was exported, the Tack version and the totals.

It does not hold roles, agent profiles or automation settings; use the project file for those.

To restore a snapshot, choose Project settings → Data → Import → Import from JSON / YAML…, or POST /api/projects/import. It creates a new project with the items, sprints, parent links, dependencies and briefs. A brief in the file is checked by the same rules as a save from the item's Overview tab, and the import is refused if one breaks them, since a snapshot can be edited by hand. The answer counts briefs_imported beside the other totals. The tack import command reads project files, outlines and CSV files, not snapshots.

A CSV export

GET /api/projects/{id}/export?format=csv returns a flat item list as <project-name>-export.csv, or use Export CSV in the web UI, or tack export <project> --format csv -o items.csv.

curl -OJ "http://127.0.0.1:3210/api/projects/3f1c2b9a-8d4e-4a77-9b21-0c5e6f7a8b90/export?format=csv"

One row per item, with these columns:

ColumnDescription
idItem id
titleItem title
descriptionDescription, or empty
typeThe key of the item's type
statusCurrent workflow status
priorityItem priority
assigneeAssignee, or empty
estimateEstimate, or empty
due_dateYYYY-MM-DD, or a full timestamp when the due date has a time of day
tagsTags separated by ;
recurrenceweekly, monthly or quarterly, or empty
parent_idParent item id, or empty for a top-level item
created_atCreation time (RFC 3339); not read on import

Cells are quoted where needed, so commas and line breaks survive. The file imports again through an import from a file, hierarchy included. The CSV covers items only: it has no sprints, dependencies, briefs or workflow. Use a snapshot or the project file when you need those.