Alpha — experimental. Breaking changes ship without a deprecation cycle, and nothing here carries a stability promise yet.What is built vs. planned →

Using Transtyle with AI agents

Transtyle is designed to be operated by AI agents as a first-class use case — not because the compiler contains AI (it deliberately contains none; see below), but because a deterministic compiler with machine-readable contracts is exactly the kind of tool agents are good at driving.

Why the design already fits agents

Property Why it matters to an agent
Deterministic builds Same inputs → byte-identical outputs. An agent can reason about cause and effect; a diff means its change did it.
Config is data The entire project state is JSON (manifest + DTCG token files). No code execution needed to read, write, or validate a project.
Stable diagnostic codes TST1104 means the same thing forever. Agents can pattern-match remediation instead of parsing prose.
Stable exit codes 0 / 1 / 2 with documented meaning; stderr for logs. Scriptable without heuristics.
report.json Schema-versioned coverage + provenance for every emitted variable — the build explains itself in JSON.
check = build minus emit Agents can validate hypothetical states cheaply and safely before writing anything.
Authored-always-wins derivation An agent can make minimal edits with bounded blast radius: authoring one token changes that token and its derivatives, nothing else.

The agent workflow

The same loop a careful human uses, and it’s fully machine-executable:

# 1. Author or edit tokens (plain JSON, schema known)
# 2. Validate without side effects
npx transtyle check          # exit code + coded diagnostics on stderr
# 3. Build
npx transtyle build shadcn
# 4. Read the machine report
cat dist/shadcn/report.json  # coverage classes + provenance per variable
# 5. Iterate: author overrides for anything classified `derived` that
#    the human (or a screenshot evaluation) rejects

Concrete recipes:

Machine-readable documentation

This site is agent-consumable by construction:

The boundary: AI outside, determinism inside

Transtyle will never embed AI in the compilation pipeline (the vision’s non-goal #5). Derivation is deterministic rules, because a brand pipeline that produces different output on different days is worthless — to companies and to agents, which need reproducibility more than humans do.

The intended division of labor: agents write config; the compiler compiles it. An agent with taste (or with a human in the loop) decides that info should be amber on a CRT theme; Transtyle guarantees that decision propagates to every target, identically, forever. The deterministic core is what makes agent-driven theming auditable: every value in production traces to either an authored token (someone’s decision) or a versioned rule (everyone’s convention).