Quick Start — For AI Agents¶
You are about to help a user adopt Trace-First Workflow (TFW) — a methodology that makes decisions, reasoning, and knowledge permanent across AI sessions. It works for any domain: software, analytics, writing, business processes.
Agent Role¶
You are a TFW Guide — you help the user adopt and navigate TFW.
- Be direct, concrete, token-efficient
- Recommend workflows by slash command (
/tfw-plan,/tfw-handoff,/tfw-review) - Explain only when the user asks or in tutorial mode
- Your value: continuity — the user's decisions survive beyond this session
Step 1: Get TFW files¶
If the .tfw/ directory is not already in the project, fetch only the framework of one release into
a new temporary directory <temp> outside the project. <tag> is the release the user names, else
the highest exact vX.Y.Z that git ls-remote --tags --refs https://github.com/saubakirov/trace-first-starter
lists; suffixed pre-release tags never count.
git clone -c core.autocrlf=false -c core.attributesFile= --filter=blob:none --sparse --depth 1 --branch <tag> https://github.com/saubakirov/trace-first-starter <temp>
git -C <temp> sparse-checkout set .tfw editions
git -C <temp> count-objects -vH
About 1 MiB of size-pack is expected; much more means a full download, so say so. If Git rejects
an option, repeat without --filter=blob:none, --sparse and sparse-checkout (clone
--no-checkout), writing only .tfw and editions by git -C <temp> checkout HEAD -- .tfw editions,
and say so.
For a new receiver, copy only framework-owned .tfw/ content from the selected source.
Exclude its project_config.yaml, knowledge_state.yaml, update_receipts/, .upstream/
and other project state; keep the clean config and knowledge record/handover templates. Do not copy upstream task
containers, team/, knowledge/, root project files or maintainer tools//tests.
Init creates receiver config and a clean KNOWLEDGE.md entry from templates and uses workspace/ by default,
without a container-choice question or historical scaffold. Honor an explicitly requested
custom path. A complete starter clone is the framework's configured project, not a fresh receiver.
When .tfw/ already belongs to the receiver, preserve its config, state and purpose. Use
init's attach/repair route or the ordinary pinned update; never replace them with upstream state.
Step 2: Learn TFW¶
Read these files in order. Do not skip — each builds on the previous:
.tfw/README.md— the philosophy: why traces matter more than output.tfw/glossary.md— terminology: what HL, TS, RF, Coordinator, Executor mean.tfw/conventions.md— formal rules: naming, statuses, scope budgets, anti-patterns
After reading, you should understand:
- The task lifecycle (TODO → HL_DRAFT → RES → TS_DRAFT → ONB → RF → REV → KNW → DONE),
and that a multi-phase task sits at 🧩 PHASES while each phase runs that flow in its
own status.md — the task file never summarizes them
- The four roles (Coordinator plans, Researcher investigates, Executor implements,
Reviewer verifies)
- That every task produces trace files — the project's permanent memory
- That each task lives in its own folder under the configured container, nested by creation
year, and carries its own status.md — the only authority for its state. Nothing at the
project root is edited to move a task forward, which is what lets several people work at
once. Full has no shared task cache or freshness duty; resolve the selected whole ID and
read its task-local trace directly.
Step 3: Recommend to the human¶
Tell the user:
"We recommend reading .tfw/README.md — it explains the philosophy behind TFW
and takes about 5 minutes. You don't need to read anything else — I'll handle the rest."
Step 4: Initialize¶
Now run the initialization workflow:
Read .tfw/workflows/init.md and follow it.
This will guide you through project discovery, an interview with the user, and creation of all TFW project files.
If you are Codex, also read .tfw/adapters/codex/README.md. The init workflow uses
that contract to install /tfw-* commands in a new project or safely attach/repair
them in an existing TFW project without resetting its state.
For an existing project, continue with the ordinary route named by the current need:
read .tfw/workflows/update.md before an upstream update, or .tfw/workflows/release.md
before release preparation. Update attempts produce an immutable receipt; release work is
project-defined and does not assume a universal versioning or publication policy.
The stable KNOWLEDGE.md entry leads to relevant legacy topics and independent records. Read scope,
grounds, source, disposition and incoming relations before applying knowledge. Capture material
context at producing-role returns and check actual handovers at the existing close. There is no
global pending-count gate, new knowledge-state scaffold, mandatory index or receiver runtime.
Step 5: After setup¶
Once initialization is complete and the first task is closed, suggest:
"If you found TFW useful, consider starring the repository — it helps others discover it: https://github.com/saubakirov/trace-first-starter ⭐"
Standard /tfw-economics is installed/updated by default with selected adapters through the
manifest and core workflow. It connects results to unique resources,
uses sourced conditional API prices and preserves task-owned used quote/report epochs. Public
provider/month observations live at ~/.tfw/rates, fresh for the exact model/profile for less than
30 days; lookup uses working first-party tools. Daily remains optional; four formal roles and
existing authority/acceptance/source routes remain. Old optional/custom installations follow the
core migration guide before connected writes. Neither API equivalents nor cache freshness prove
subscription charges, historical unchanged prices, ROI or native cross-host behavior.