The .gtm/ folder

  • You will learn: what each file in .gtm/ holds, and the seven you actually read.
  • Reading time: 3 minutes, or look up one row.
  • Before this: Roles, for who writes what.

GTM keeps everything it writes in one folder at the root of your project, .gtm/. You read seven entries; the team reads the rest. A project may move the folder, or keep it out of git, and says so in its CLAUDE.md.

Three of those entries have names of their own. The mockups are the pages showing each new screen before it is built. Your team settings, in team.md, say which roles run and how hard each one thinks. The logbook, ledger.md, keeps one line per lesson or decision, so each Feature starts from what the last one learned.

Which files do I read?

  • .gtm/
  • brief.mdyour project in one pageread it
  • team.mdyour team settingsread it
  • backlog.mdwhat is planned nextread it
  • specs/the summary you approveread it
  • mockups/the screens you approveread it
  • taste.mdwhat you like and refuse read it
  • NOW.mdwhere the run is nowread it
  • config.ymlpaths and commandsskip it
  • conventions.mdrules per areaskip it
  • guidelines/one file per areaskip it
  • brainstorms/notes from brainstorms skip it
  • plans/tasks for the teamskip it
  • reports/full agent reportsskip it
  • ledger.mdthe logbookskip it
  • state.jsonthe run, for a program skip it
  • sheet.jsonthe project, for a program skip it
How to read it: the rows marked read it, on a tinted ground, are yours; the grey rows are written and read by the team.

What does each file hold?

File What it holds Written by
brief.md purpose, users, principles and limits, on one page /gtm:init, amended rarely
team.md your team settings: effort per role, specialists, checks /gtm:init, /gtm:tune
backlog.md the larger pieces of work, their priority and status /gtm:gtm, /gtm:ship
brainstorms/ one brainstorm note per session, open or done, cited by the spec it led to /gtm:brainstorm
specs/ one spec per Feature, opened by your summary architect
mockups/ the mockups, as HTML and PNG designer
taste.md what you like and refuse in a design, kept from one run to the next /gtm:design, or you by hand
NOW.md where the run is now: phase, task, what runs, when it should end the orchestrator, /gtm:status
state.json the same run view as JSON, for a program that follows the run; kept out of commits like NOW.md the orchestrator, /gtm:status
config.yml paths, check commands, git rules, languages /gtm:init
conventions.md the project’s rules, with one guideline file per area /gtm:init, /gtm:retro
plans/ one plan per Feature: tasks, files, test steps architect
reports/ each agent’s full report, and the pull request text every role
reports/<slug>/waiting.json the card waiting or last answered on this branch, one at a time, in the card file shape: written by GTM’s facts script, kept with your answer once you answer, replaced by the next card, or deleted when the script refuses it the orchestrator, through the facts script
reports/<slug>/mandate.md the file given with mandate=<file>, copied byte for byte, its fingerprint in the logbook; any other file there counts as no mandate; it holds for the branch, resumes included, until you delete it /gtm:deliver
reports/<slug>/landing.json the landing /gtm:ship records under a standing go: class, head, proofs; deleted when the check refuses /gtm:ship
reports/<slug>/progress.md one line per run of the branch, ending with its start and end, the model and effort of each role it dispatched, and the cause of each correction round, then path and the task’s review path (text, code, full, none on a line with no task, ? when unknown), and ship’s ci line, one per CI red (its check, class, verdict and action); an instant nobody recorded reads ? the orchestrator
sheet.json the project sheet: what the project is for, its plan, decisions, cost and difficulties, for a program that shows the project; kept out of commits like state.json, and written only while project.sheet is on the orchestrator, through the facts script
reports/<slug>/handoff.md the stopped run: what was stopped, what waited, the worktrees kept and the command that resumes /gtm:pause
reports/<slug>/lead/ the scripts, logs and tool installs the orchestrator makes for a run, kept here rather than in the session scratchpad Claude Code can wipe the orchestrator, never an agent
ledger.md the logbook: one line per lesson or decision; each run line has a paths segment with the tasks, minutes, tokens and rounds per review path, and an escape line records a defect found after its branch merged, with its task’s review path; an upstream · recu line acknowledges a project report, a refus line refuses one, never struck every step

What does state.json hold?

state.json is the run view for a program that follows the run for you, such as a status line: the facts of NOW.md as JSON, rewritten right after it. GTM writes it only in your main checkout. No skill or agent reads it back; GTM’s status line step only displays it, and shows NOW.md’s line instead when the state is older than NOW.md or names another slug than its line 1, as after a failed write. An unknown fact is null. A program reading it treats every text as untrusted, and keeps its own reading when v is a version it does not know.

Under v 1 fields are only added: v changes when a field is removed, renamed or retyped, and a reader ignores the fields it does not know.

Field What it holds
v the version of this shape, 1
updated, slug, branch, epic, phase as in NOW.md; phase can be paused
steps one {n, title, status} per task of the plan, status todo, doing, done or blocked; [] with no plan, null when the plan has no task heading
task {n, of}, the task in progress
eta {clock, minutes, measured}: clock the writer’s local HH:MM, for display, null while a card waits, while paused or with no estimate; the end is updated plus minutes; measured the number of measured runs behind the estimate
running what runs now: one {kind, name, since, ageMin, lastChangeMin, mayHaveStopped} each, or null for an item not understood
others the other branches in progress: one {slug, branch, phase, task, updated} each
waiting the card waiting on you: {kind, task, question, options, costIfWrong, card}, each option {label, recommended}, card the card file’s path while that card waits, else null; null when nothing waits
milestone {n, of, title}, this branch’s place in an approved milestone, or null
story the backlog story this branch delivers, or null
mandate {done, stops} from a valid mandate, stops null when it has none; null with no valid mandate
defaults the number of default rulings for this branch in ledger.md, 0 with none
landing {class, head, proofs} while a landing holds for this branch: the class you signed, the full sha of its head, one {name, result} per proof, pass when GTM or /gtm:ship held it, due when your program must check it; null without one, and after the next commit

What does a card file hold?

Each card GTM shows you, a decision, a check, a go, a summary or a review, also lands in reports/<slug>/waiting.json for a program of yours: the same card as data, shape decision.v1. GTM’s facts script writes it from the card’s content after checking every key below, and writes nothing when one is off, so a card it shows in the conversation may have no file. The file stays once you answer, with answer filled, until the branch’s next card replaces it, or deletes it when the script refuses that card.

A program reading it:

  • counts the card as waiting only while state.json’s waiting.card names it: an answered card, or one of another kind, never waits;
  • treats every text as untrusted: GTM refuses control, format and separator characters and long texts, and quotes an excerpt only from its own folder, word for word;
  • keeps its own reading when v is a version it does not know. Under v 1 fields are only added.

Every key is present; “or null” marks those that may be null, as an unknown is. A text is one line, in your language.human, at most the characters given. GTM’s facts script sets v, slug, asked and other.allowed, and answer when it records yours; every other key comes from the card GTM showed you.

Key What it holds
v 1
id <slug>-D<n> for a spec or plan decision, else <slug>-<kind> or <slug>-<kind>-t<n>; at most 60 characters
kind decision, verification, go, summary or review
moment 1 to 4, the mandate’s moment, only under a valid mandate; else null
slug, asked the branch’s slug; when GTM wrote the card, ISO 8601 UTC
question text, 160
summary, why, criteria text, 280, or null
options 1 to 9 {key, label, proves, cost, reversible, recommendedBy}, keyed A, B, C… in order
key, label, proves A to I; text, 60; text, 200, or null
cost {tokens, minutes, text} or null: whole numbers or null; text, 40, or null
reversible true, false or null
recommendedBy 0 to 3 of gtm, second-reader or a role of your team settings
recommendation {by, option, why, costIfWrong} or null: option names an option whose recommendedBy holds by; texts, 280
objection {by, prefers, text} or null: prefers an option’s key or null; text, 280
modules 0 to 4 {type, size, title, src} plus the type’s keys, below; size s, m, l or p; title, 60; src, 120
other {allowed, placeholder}: allowed always true; placeholder text, 80, or null
answer {option, other, by, at} once you answer, else null: one of an option’s key or your own words (text, 280); by owner; at ISO 8601 UTC
Module type Its keys
text text: text, 600
metrics items: 1 to 6 {label (40), value (20), note (120, or null), gauge (0 to 1, or null), tone (null)}
excerpt file, a file in your GTM folder; where (80); head (80, or null); lines (1 to 8 of 200) and highlight (200, or null), word for word from that file
list items: 1 to 8 {k (40), v (120, or null)}
pending none

decision.v1.1

A card of 2 to 4 options carries more, so you can decide from the page alone: a short TL;DR, the pieces to open and, per option, what it implies, your own steps, its risk and the exact message that answers it. v stays 1: a card holding tldr is v1.1. It has every key above, plus these, in this order after modules and other; each option adds the keys of the second table.

v1.1 key What it holds
tldr text, 280, at most two sentences; summary holds the same text
recommandation {option, pourquoi}, copied from recommendation’s option and why, or null
hesitation {entre, question} or null: 2 to 4 option keys GTM hesitates between; question, 160. Exactly one of recommendation and hesitation is not null
assurance null, read as high, or a number from 0 to 1 when GTM’s confidence is low
doute text, 200, or null: the precise doubt behind a low assurance
pieces 0 to 20 {type, titre, chemin, essentielle, apercu}, at most 3 with essentielle true: show those, fold the rest
session the waiting session’s id, a lowercase UUID, or null
answer as above; on a v1.1 card, your own words are up to 2000 characters, line feeds included
Option key What it holds
implique text, 160: what choosing it implies
gestes 0 to 3 texts of 80: what you do by hand
vous text, 200, or null with no geste: what you must know before doing them
risque {niveau, texte}: faible, moyen or eleve; text, 160
reversible true or false on a v1.1 card
message text, 280: the exact words that answer this option, distinct among the options
suite 1 to 8 {t, vous}: the steps that follow this choice, in order, up to the next question; text, 120; vous true for a step of yours, one per geste
Piece type chemin ends in apercu
tableau .md, .csv, .tsv allowed
texte .md, .txt allowed
diff .diff, .patch allowed
doc .md, .txt, .rtf, .docx, .odt allowed
image .png, .jpg, .jpeg, .gif, .webp, .heic null
video .mp4, .mov, .m4v, .webm null
pdf .pdf null
lien an https URL, 500 at most null

Extensions match in any case. A chemin is a path from the project’s top (the git repository your GTM folder sits in) to a regular file under it once links are resolved, outside .git, with no execute bit. A lien holds no whitespace, no backslash, no user name and no password. An apercu is 1 to 10 texts of 200, word for word from the piece’s file. GTM checked each piece when it wrote the card, but the file may have changed since. A program re-checks a piece under the project’s top before it opens it, and opens only https links. The re-check applies every rule above to the resolved file: under the top, outside .git, a regular file with no execute bit, its type’s extension on the resolved file as well as on chemin.

A piece with no file, as an error pasted in the conversation, has chemin null, a type of tableau, texte, diff or doc, and its lines in apercu. A program offers a piece with no file’s lines to copy, never to open.

summary and recommandation are copies GTM’s facts script writes, so a program may read either key. To answer, a program sends back to the session the chosen option’s message, or your own words: words equal to an option’s message, or to its key in any case, once trimmed, are recorded as that option, any others as other. The owner’s words travel as a JSON string everywhere: in the answer handed to the script and on the ledger line that quotes them (a backslash \\, a quote \", a line feed \n). The script’s answer line names the option recorded, option, on every card, or null. An answer names the card it answers by its id and its asked: when the file holds another card, even one with the same id, it is refused id and nothing changes. A card and an answer are written one at a time. session lets a program send the answer back to the session that waits; it is never displayed. A malformed id is written null and the card still written, its line naming session.

What does the project sheet hold?

sheet.json is the project sheet: one page of the project as data, shape sheet.v1, for a program of yours that shows it. It exists only while config.yml’s project.sheet is on (see settings); off, GTM writes, asks and shows nothing about it. GTM’s facts script rewrites it with state.json after each run view, keeps the fields you gave and recomputes the facts. It is never committed: GTM adds it to .git/info/exclude as it adds state.json. When a field is off the script writes nothing and GTM goes on with one Heads-up.

The fields you give come from two moments. /gtm:init shows the kind, purpose and users the sheet lacks as rows of its guesses table and writes them on your OK; a value it holds stays. /gtm:retro adds the decisions and difficulties it finds to those the sheet holds, your corrections included, lists them in its report and writes those.

A program reading it:

  • treats the sheet as stale when it is older than NOW.md;
  • treats every text as untrusted: GTM refuses control, format and separator characters and long texts;
  • keeps its own reading when v is a version it does not know. Under v 1 fields are only added: v changes when a field is removed, renamed or retyped, and a reader ignores the fields it does not know.

Every key is present but showcase; “or null” marks those that may be null. A text is one line, in your language.human, at most the characters given.

Key What it holds Set by
v 1 the script
kind app-mobile, app-web, infra, tool, sandbox or null the script, from project.kind
headline text, 140, or null; null in this version the script
purpose, users text, 280, or null /gtm:init, on your OK
plan {branch, steps, milestone, stories} the script
plan.branch the state’s branch, or null the script
plan.steps the state’s steps, or null the script
plan.milestone {title (80), branches}, branches 1 to 12 {n (1 to 99), branch (60), title (60)}; or null the script
plan.stories {done, total}, whole numbers, done at most total; or null the script
decisions 0 to 6 {at, text, by}: at a YYYY-MM-DD date not after today; text, 200; by owner or gtm /gtm:retro
cost {tokens, seconds, dollars}: the sums of this branch’s progress lines, whole numbers or null; dollars null the script
difficulties 0 to 6 {k, text, src}: texts, 20, 200 and 120 /gtm:retro
modules 0 to 8 modules as in the card file; [] in this version the script
showcase null, or {public, kicker (60), line (200), facts, principles, visuals}: public true or false, 0 to 6 facts [label (30), value (80)], 0 to 5 principles (120), 0 to 4 visuals {frame, src, alt (120)} with frame phone, tablet, desktop or none and src an image under reports/ /gtm:ship, on your approval

cost adds the seconds and tokens of each line in reports/<slug>/progress.md; the tail that ends a line (start, end, models, causes, path) adds nothing. A sum GTM cannot be sure of is null, never smaller.

The showcase presents the project to someone else, never the work in progress: no quota, cost, wait or difficulty. /gtm:ship proposes it after the go of the first ship, then after each new major version, framed by the project’s kind; it is written only when you approve it, and stays private (public false) until you say otherwise.

What does a new project start with?

Right after /gtm:init, the folder holds the files below. The logbook stays empty until the first branch, and the four folders fill as you work.

.gtm/
  brief.md        one page
  config.yml      paths, checks, git, language, briefings
  team.md         priorities, roles, specialists, limits
  conventions.md  one table, pointing at guidelines/
  guidelines/     code, tests, git, docs, dependencies,
                  security, data, i18n, accessibility,
                  design, work
  backlog.md      epics and stories
  ledger.md       empty until the first branch
  specs/ plans/ reports/ mockups/

A file whose name ends in .partial is a spec or plan that was being written when you ran /gtm:pause. GTM never reads it again; keep it, compare it or delete it.

To see each file appear as a Feature runs, follow your first Feature.