t3-auto-build 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,92 +1,332 @@
1
- # t3-auto-build
1
+ # t3-auto-build
2
+
3
+ <p align="center"><img src="https://raw.githubusercontent.com/mirceas94/t3-auto-build/main/assets/banner.svg" alt="t3-auto-build: subscription-aware multi-model routing with safety guards across Codex, Antigravity and Claude" width="100%"></p>
4
+
5
+ <p align="center">Cross-platform installer and <code>$auto-build</code> orchestration suite for T3 Code.</p>
6
+
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/t3-auto-build"><img src="https://img.shields.io/npm/v/t3-auto-build" alt="npm version"></a>
9
+ <a href="https://github.com/mirceas94/t3-auto-build/actions/workflows/ci.yml"><img src="https://github.com/mirceas94/t3-auto-build/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI status on main"></a>
10
+ <img src="https://img.shields.io/badge/node-%3E%3D18.18-brightgreen" alt="Node 18.18 or newer">
11
+ <img src="https://img.shields.io/badge/dependencies-0-brightgreen" alt="Zero dependencies">
12
+ <img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT license">
13
+ </p>
14
+
15
+ ## Why t3-auto-build
2
16
 
3
17
  Cross-platform installer and `$auto-build` orchestration suite for T3 Code: a coding-discipline
4
18
  `CLAUDE.md`, slash commands, an `auto-build` skill rendered from your own model config, and Node
5
- hooks for guardrails. No dependencies. Node 18 or newer.
19
+ hooks for guardrails. No dependencies. Node 18.18 or newer.
20
+
21
+ - **Subscription profiles:** tell `init` your Claude, Codex and Antigravity plans; models, ladders and parallelism follow.
22
+ - **Parallel waves:** larger tasks are split into file-disjoint waves with checks between them.
23
+ - **Guardrails:** hooks block secret-file edits, some destructive commands and disallowed delegate calls.
24
+ - **Quota aware:** cooldown locks and an availability cache keep delegation away from exhausted or restricted models.
25
+ - **Careful installs:** your edited files are kept unless you pass `--force`, which backs them up first.
26
+ - **Zero dependencies:** plain Node, 18.18 or newer.
6
27
 
7
- ## T3 Code quickstart
28
+ Upgrading from 1.x? Read [Migrating from v1](#migrating-from-v1) and the [changelog](CHANGELOG.md).
8
29
 
9
- 1. Install into your Claude config directory. From a clone:
30
+ ## 60-second Quick Start
31
+
32
+ 1. Install into your Claude config directory, naming your plans (see the [tier matrix](#subscription-tiers)):
10
33
 
11
34
  ```sh
12
- node bin/cli.mjs init
35
+ npx t3-auto-build init --claude-tier max --codex-tier plus --antigravity-tier pro --yes
13
36
  ```
14
37
 
15
- Once the package is published, `npx t3-auto-build init` does the same.
38
+ Plain `npx t3-auto-build init` asks instead. From a clone, use `node bin/cli.mjs` in place of
39
+ `npx t3-auto-build`. `init` prints what it resolved:
40
+
41
+ ```text
42
+ provider | tier | CLI | models (standard) | scarce overflow | max parallel
43
+ claude | max | yes | claude-haiku-5-5, claude-sonnet-5-5, claude-opus-5-5 | - | 2
44
+ codex | plus | yes | gpt-6-luna, gpt-6.1-terra | - | 1
45
+ antigravity | pro | yes | gemini-4-hydrogen, gemini-4-neon, gemini-4-carbon | claude-sonnet-5-5, claude-opus-5-5 | 2
46
+ parent: opus (medium)
47
+ max parallel builders: 5
48
+ ```
16
49
 
17
- 2. Check the result:
50
+ > `init --yes` **without** a tier flag on a fresh directory writes a legacy v1
51
+ > [preset](#legacy-presets) config, not a subscription profile.
52
+
53
+ 2. Check the installation and fill the availability cache:
18
54
 
19
55
  ```sh
20
- node bin/cli.mjs doctor
56
+ npx t3-auto-build doctor
57
+ npx t3-auto-build check-models
21
58
  ```
22
59
 
60
+ `check-models` sends real prompts when its cache is stale. See [availability](#availability-checks).
61
+
23
62
  3. **Restart T3 Code** (and any running Claude Code session). Hooks and `settings.json` changes
24
63
  load only at startup.
25
64
 
26
65
  4. In a T3 Code thread, run `$auto-build <task>`. See [workflow](#auto-build-workflow) for flags.
27
66
 
28
- The skill calls `t3-auto-build quota ...`. From a clone, `npm link` puts that command on `PATH`.
29
- Without it the skill reads or edits the cooldown file directly.
67
+ The skill calls `t3-auto-build ...`. From a clone, `npm link` puts that command on `PATH`.
68
+ Without it the skill reads the cooldown and availability files directly.
69
+
70
+ ## Subscription tiers
71
+
72
+ Pass `--claude-tier`, `--codex-tier` and `--antigravity-tier`. An omitted provider is `none` on a
73
+ fresh install, keeps its tier on a v2 config, and gets the [assumed tier](#migrating-from-v1) on a
74
+ v1 config. At least one provider needs a CLI-capable tier.
75
+
76
+ | Provider | Tier | CLI | Standard models | Scarce overflow | Max parallel | Warning |
77
+ |---|---|---|---|---|---|---|
78
+ | claude | `none` | no | – | – | 0 | no Claude subscription selected |
79
+ | claude | `free` | no | – | – | 0 | Claude Code requires Pro or higher (or api) |
80
+ | claude | `pro` | yes | `claude-haiku-5-5`, `claude-sonnet-5-5`, `claude-opus-5-5` | – | 1 | – |
81
+ | claude | `max` | yes | `claude-haiku-5-5`, `claude-sonnet-5-5`, `claude-opus-5-5` | – | 2 | – |
82
+ | claude | `ultra` | yes | `claude-haiku-5-5`, `claude-sonnet-5-5`, `claude-opus-5-5` | `claude-fable-5-2` | 3 | – |
83
+ | claude | `team-standard` | yes | `claude-haiku-5-5`, `claude-sonnet-5-5`, `claude-opus-5-5` | – | 1 | – |
84
+ | claude | `team-premium` | yes | `claude-haiku-5-5`, `claude-sonnet-5-5`, `claude-opus-5-5` | – | 2 | – |
85
+ | claude | `api` | yes | `claude-haiku-5-5`, `claude-sonnet-5-5`, `claude-opus-5-5` | `claude-fable-5-2` | 3 | API usage is billed per token |
86
+ | codex | `none` | no | – | – | 0 | no Codex subscription selected |
87
+ | codex | `free` | no | – | – | 0 | desktop-only; Codex CLI unavailable |
88
+ | codex | `go` | no | – | – | 0 | desktop-only; Codex CLI unavailable |
89
+ | codex | `plus` | yes | `gpt-6-luna`, `gpt-6.1-terra` | – | 1 | – |
90
+ | codex | `pro-100` | yes | `gpt-6-luna`, `gpt-6.1-terra`, `gpt-6.1-sol` | `gpt-6-astra` | 2 | – |
91
+ | codex | `pro-200` | yes | `gpt-6-luna`, `gpt-6.1-terra`, `gpt-6.1-sol` | `gpt-6-astra` | 2 | – |
92
+ | codex | `pro-500` | yes | `gpt-6-luna`, `gpt-6.1-terra`, `gpt-6.1-sol` | `gpt-6-astra` | 3 | – |
93
+ | codex | `business` | yes | `gpt-6-luna`, `gpt-6.1-terra`, `gpt-6.1-sol` | `gpt-6-astra` | 2 | – |
94
+ | codex | `api` | yes | `gpt-6-luna`, `gpt-6.1-terra`, `gpt-6.1-sol` | `gpt-6-astra` | 3 | API usage is billed per token |
95
+ | antigravity | `none` | no | – | – | 0 | no Antigravity subscription selected |
96
+ | antigravity | `free` | yes | `gemini-4-hydrogen`, `gemini-4-neon` | – | 1 | – |
97
+ | antigravity | `plus` | yes | `gemini-4-hydrogen`, `gemini-4-neon`, `gemini-4-carbon` | – | 1 | – |
98
+ | antigravity | `pro-trial` | yes | `gemini-4-hydrogen`, `gemini-4-neon`, `gemini-4-carbon` | – | 1 | – |
99
+ | antigravity | `pro` | yes | `gemini-4-hydrogen`, `gemini-4-neon`, `gemini-4-carbon` | `claude-sonnet-5-5`, `claude-opus-5-5` | 2 | – |
100
+ | antigravity | `ultra-5x` | yes | `gemini-4-hydrogen`, `gemini-4-neon`, `gemini-4-carbon` | `claude-sonnet-5-5`, `claude-opus-5-5` | 2 | – |
101
+ | antigravity | `ultra-20x` | yes | `gemini-4-hydrogen`, `gemini-4-neon`, `gemini-4-carbon` | `claude-sonnet-5-5`, `claude-opus-5-5` | 3 | – |
102
+
103
+ - Resolved parallelism is the sum over eligible providers, capped at 6. Builder counts and quota
104
+ windows are estimates.
105
+ - `api` tiers are billed per token. Their models are excluded (and listed as plan-restricted)
106
+ unless you pass `--allow-usage-credits`.
107
+ - Ladders use native standard models first, interleaving providers. Scarce models come last, as
108
+ overflow or escalation.
109
+
110
+ ### Parent model
111
+
112
+ The parent is the model of the orchestrating Claude session. It needs an eligible Claude tier.
113
+
114
+ | Claude tier | Default parent / effort | `--parent` options |
115
+ |---|---|---|
116
+ | `pro`, `team-standard` | `sonnet` / `medium` | `sonnet`, `opus` |
117
+ | `max`, `team-premium` | `opus` / `medium` | `sonnet`, `opus` |
118
+ | `ultra`, `api` | `opus` / `medium` | `sonnet`, `opus`, `fable` |
30
119
 
31
- ## Preset matrix
120
+ An `api` tier counts only with `--allow-usage-credits`.
32
121
 
33
- | Preset | Models | Codex | Antigravity | Claude | Dual audit |
34
- |---|---|---|---|---|---|
35
- | `tri-provider` (default) | 9 | 3 | 3 | 3 | Claude Opus 5.5 + Gemini 4 Carbon |
36
- | `claude-codex` | 6 | 3 | 0 | 3 | Claude Opus 5.5 + gpt-6-luna |
37
- | `claude-only` | 3 | 0 | 0 | 3 | Claude Opus 5.5 + Claude Sonnet 5.5 |
122
+ `--parent fable` selects `claude-fable-5-2`, from the scarce `fable` pool. `init` writes `model` and
123
+ `effortLevel` to `settings.json` only when the key is absent or still holds the value it wrote
124
+ before. Without an eligible Claude tier, no parent is set.
38
125
 
39
- Every preset bans `Argon` and `Fable/Mythos`, defaults to Claude Sonnet 5.5 at `medium` effort and
40
- sets the auto-compaction threshold to 35%.
126
+ ### Cross-hosted overflow
41
127
 
42
- ## Provider detection and tiers
128
+ Antigravity `pro`, `ultra-5x` and `ultra-20x` also host `claude-sonnet-5-5` and `claude-opus-5-5`,
129
+ in the scarce pool `third-party-claude`.
43
130
 
44
- Interactive `init` on a fresh target picks the default preset from the binaries on `PATH`: `claude`,
45
- `codex` and `antigravity` give `tri-provider`, `claude` and `codex` give `claude-codex`, anything
46
- else gives `claude-only`. Provider config folders are only checked for existence and do not change
47
- the preset. With an existing config its preset is the default. `init --yes` does not detect: a fresh
48
- install without `--preset` uses `tri-provider`.
131
+ - Reach them only with an explicit `provider: "antigravity"` (ladders write
132
+ `antigravity:claude-opus-5-5@medium`).
133
+ - A bare `claude-*` model always resolves to native Claude, never to Antigravity.
134
+ - A model the named provider does not host, or two different providers in one call, is blocked.
49
135
 
50
- `--tiers provider:plan[:weekday]`, comma separated (for example `claude:max:monday,codex:plus`),
51
- records subscription plans. Interactive `init` asks for each detected provider when the flag is
52
- absent.
136
+ ## Availability checks
53
137
 
54
- | Provider | Plan: short-window limit locks the provider | Plan: locks only the heavy model | Heavy model |
55
- |---|---|---|---|
56
- | `claude` | `pro` | `max` | Claude Opus 5.5 |
57
- | `codex` | `plus` | `pro` | gpt-6-luna |
58
- | `antigravity` | `standard` | `ultra` | Gemini 4 Carbon |
138
+ The skill runs `t3-auto-build check-models` at the start of every run. Results go to
139
+ `<config dir>/auto-build-availability.json`.
140
+
141
+ | Check | When | Cost |
142
+ |---|---|---|
143
+ | 1. Discovery: binary and `--version` check, plus your listing adapters | every `check-models` | no model calls |
144
+ | 2. Probes of standard-pool models | cache older than 12 h since the last probe, or `--refresh` | one short prompt per model |
145
+ | Scarce-pool probes | never, unless `--probe-scarce` is set and check 2 runs | real scarce quota |
146
+ | 3. Reactive marks: `availability mark` after a plan error | on demand | none |
147
+
148
+ > Probe processes inherit your environment. If an API key variable (such as `ANTHROPIC_API_KEY` or
149
+ > `OPENAI_API_KEY`) is set, the CLI may use it and the probes may be billed to the API.
150
+
151
+ - Probe results never block a model unless they say `plan-restricted`. A failed or timed-out probe
152
+ blocks nothing. A manual mark of `plan-restricted` or `unavailable` blocks.
153
+ - A live manual mark beats discovery and probe results. Its `--ttl` is one number plus `m`, `h` or
154
+ `d`, above zero and at most `30d` (default `24h`).
155
+ - Antigravity has no probe support.
156
+
157
+ ```sh
158
+ t3-auto-build availability mark antigravity:claude-opus-5-5 plan-restricted --ttl 24h --reason "not in plan"
159
+ t3-auto-build availability status
160
+ ```
161
+
162
+ ### Model drift
163
+
164
+ No provider CLI listing is built in. To detect new or missing models, add an adapter per provider to
165
+ the config: an argv array whose stdout is a JSON array or a newline list of model ids.
166
+
167
+ ```json
168
+ { "discovery": { "codex": ["node", "<absolute path>/list-codex-models.mjs"] } }
169
+ ```
170
+
171
+ `list-codex-models.mjs` is a placeholder for your own script. Adapters run in an empty temp
172
+ directory, so use absolute paths. `check-models` then reports ids that
173
+ are not configured, and configured native models the adapter did not list. Nothing is allowed
174
+ automatically. To adopt newer versions:
175
+
176
+ ```sh
177
+ t3-auto-build check-models
178
+ t3-auto-build sync-models --apply
179
+ ```
180
+
181
+ `--apply` runs no probes. It reads the availability cache and replaces a configured model with a
182
+ newer version of the same family, keeping its pool and ladder position. Retired, banned and
183
+ plan-restricted ids are never promoted; unknown families are reported and stay disabled. It backs up
184
+ the config and re-renders `SKILL.md`. It needs an `auto-build` or `full` install.
185
+
186
+ ## Model bans
59
187
 
60
- The weekday (`monday` or `mon`) is the weekly reset day, taken as 00:00 UTC. A custom `heavyModels`
61
- list in the config is kept.
188
+ Three layers apply to `delegate_task` calls.
189
+
190
+ | Layer | Source | Can you remove it? |
191
+ |---|---|---|
192
+ | Retired | built in, plus `retiredModels` | Not the built-in entries. Config can only add. |
193
+ | Plan-restricted | `planRestrictedModels` (`provider:model` or bare model) and live availability entries | Change tiers, or let the mark expire or replace it |
194
+ | User-banned | `userBannedModels` / `bannedModels` | Yes, edit both lists in the config |
195
+
196
+ Built-in retired patterns: `gemini-4-argon`, `gemini-3.8-flash`, `claude-4.6`, `claude-4.6-*`,
197
+ `gpt-5.4`, `gpt-5.4-*`, `gpt-5.5`, `gpt-5.5-*`. Matching treats `.` and `-` alike, accepts display
198
+ names (`GPT 5.4 Mini`) and ignores a trailing date. A `-*` pattern covers the stem and its suffixed
199
+ variants; `gpt-5.40` does not match `gpt-5.4`.
200
+
201
+ User bans match as case-insensitive substrings, and `A/B` bans both. A short entry such as `Claude`
202
+ bans every model whose name contains it.
203
+
204
+ ## Speed-mode guard
205
+
206
+ Unless the config has `"allowFastModes": true`, a `delegate_task` call is blocked when a key matching
207
+ `fast`, `speed` or `serviceTier` is `true`, `fast`, `ultrafast` or `priority`. Set it with
208
+ `init --allow-fast-modes`.
209
+
210
+ ## auto-build workflow
211
+
212
+ Triage sizes the task, `L2`/`L3` plan and build in waves (foundations, core, tests/docs), then verification runs with at most 2 fix rounds.
213
+
214
+ ```mermaid
215
+ flowchart TD
216
+ start["auto-build request"] --> step0["Step 0: lockouts, git baseline, resume"]
217
+ step0 --> triage["Triage: REPO_BRIEF, level and shape"]
218
+ triage -->|"L0 / L1"| single["Single builder"]
219
+ triage -->|"L2 / L3"| plan["Plan (cross-check on L3)"]
220
+ plan --> wave1["Wave 1: foundations"]
221
+ wave1 --> wave2["Wave 2: core"]
222
+ wave2 --> wave3["Wave 3: tests and docs"]
223
+ single --> verify["Verify: tests, lint, diff audit"]
224
+ wave3 --> verify
225
+ verify -->|"blockers"| fix["Fix round (max 2)"]
226
+ fix --> verify
227
+ verify -->|"passed"| report["Optional commit and report"]
228
+ ```
229
+
230
+ 1. **Step 0:** run `t3-auto-build check-models`, check lockouts and restrictions, record the
231
+ `git status` baseline, resume if asked.
232
+ 2. **Triage:** write a short `REPO_BRIEF` (using the cached `.claude/repo-profile.md`) and pick the
233
+ level `L0` to `L3` and work shape `A` (multi-file, UI) or `B` (algorithms, debugging).
234
+ 3. **Plan** (`L2`/`L3`), cross-checked by another provider on `L3` when available.
235
+ 4. **Build:** `L2`/`L3` run in file-disjoint waves: foundations, core, tests/docs. Builders in a wave
236
+ run in parallel, at most `maxParallelBuilders` at once; the diff guard and exit checks pass before
237
+ the next wave.
238
+ 5. **Verify:** blind edge-case tests (`L2`/`L3`), tests and lint, a diff-only audit preferring
239
+ another provider (two auditors on `L3`), at most 2 fix rounds, then an optional commit and a
240
+ report.
241
+
242
+ Runs that edit code, and `--plan-only` runs, save `.claude/auto-build-state.json` (`flags`,
243
+ `completedWaves`, `modifiedFiles`, `remaining`, `blockers`) after each wave or step and keep it
244
+ gitignored. `$auto-build --resume` restores it, lets newly typed flags win and skips completed waves.
245
+ It stops if the file is missing or invalid. When quota runs out, the run saves state so you can
246
+ resume later.
247
+
248
+ | Flag | Effect |
249
+ |---|---|
250
+ | `--fast` / `--strict` | Cap at `L1` / force `L3`. |
251
+ | `--plan-only` | Stop after the plan. |
252
+ | `--dry-run` | Stop after triage and show the routing. |
253
+ | `--audit-only` | Test and audit the uncommitted diff, then fix if needed. |
254
+ | `--resume` | Continue an interrupted run. |
255
+ | `--commit` | Commit only if the active checks pass. |
256
+ | `--no-audit`, `--no-tests` | Skip the audit / tests. |
257
+ | `--budget` | Cheaper routing; no plan cross-check, blind tests or dual audit. |
258
+ | `--reset-cooldowns` | Clear all locks first. |
259
+ | `--<provider>-only` | Use only that provider's models. |
62
260
 
63
261
  ## CLI
64
262
 
263
+ ```text
264
+ t3-auto-build init
265
+ t3-auto-build upgrade [--yes]
266
+ t3-auto-build check-models [--refresh] [--probe-scarce] [--json]
267
+ t3-auto-build sync-models [--auto] [--refresh] [--probe-scarce] [--apply]
268
+ t3-auto-build availability mark <provider:model> <available|plan-restricted|unavailable> [--ttl 24h] [--reason <text>]
269
+ t3-auto-build availability status
270
+ t3-auto-build quota set <subject>
271
+ t3-auto-build quota status
272
+ t3-auto-build quota clear [subject]
273
+ t3-auto-build quota check [provider]
274
+ t3-auto-build doctor
275
+ t3-auto-build uninstall
276
+ ```
277
+
65
278
  | Command | What it does |
66
279
  |---|---|
67
- | `t3-auto-build init` | Installs or updates. Interactive unless `--yes`. |
68
- | `t3-auto-build doctor` | Checks files, JSON and hook wiring, runs each hook with mock input, looks for `rg` and `sg`. |
69
- | `t3-auto-build uninstall` | Removes what `init` installed and keeps files you changed. |
70
- | `t3-auto-build sync-models` | Probes models with the provider CLIs and updates the allowlist. |
71
- | `t3-auto-build quota set\|status\|clear\|check` | Manages cooldown locks. |
280
+ | `init` | Installs or updates. Interactive unless `--yes`. |
281
+ | `upgrade` | Converts a v1 config to v2. Never prompts. |
282
+ | `check-models` | Prunes expired state, runs discovery, probes if the cache is stale. |
283
+ | `sync-models` | Probes models and updates the allowlist, or applies drift with `--apply`. |
284
+ | `availability mark\|status` | Sets or shows model availability. |
285
+ | `quota set\|status\|clear\|check` | Manages cooldown locks. |
286
+ | `doctor` | Checks files, config, hook wiring, cache age, tiers against CLI binaries, drift and optional tools. |
287
+ | `uninstall` | Removes what `init` installed and the availability cache. Keeps files you changed and the cooldown file. |
72
288
 
73
289
  | Option | Applies to | Meaning |
74
290
  |---|---|---|
75
291
  | `--target <dir>` | all | Config directory. Default: `$CLAUDE_CONFIG_DIR`, else `~/.claude`. |
76
- | `--preset <name>` | init | `tri-provider`, `claude-codex` or `claude-only`. |
292
+ | `-h`, `--help` | all | Show the usage text. |
293
+ | `-v`, `--version` | no command | Print the version. |
294
+ | `--yes` | init, upgrade, sync-models | No prompts. Without an interactive terminal, `init` requires it, and `sync-models` requires it, `--auto` or `--dry-run`. |
295
+ | `--preset <name>` | init | `tri-provider`, `claude-codex` or `claude-only`. Legacy configs only. |
77
296
  | `--modules <name>` | init | `full`, `auto-build` or `core`. |
78
297
  | `--compaction <n>` | init | Integer from 1 to 100. |
79
- | `--tiers <list>` | init | `provider:plan[:weekday]`, comma separated. |
298
+ | `--tiers <list>` | init | Legacy `provider:plan[:weekday]` list. Ignored for v2 configs. |
299
+ | `--claude-tier <tier>` | init | `none`, `free`, `pro`, `max`, `ultra`, `team-standard`, `team-premium`, `api`. |
300
+ | `--codex-tier <tier>` | init | `none`, `free`, `go`, `plus`, `pro-100`, `pro-200`, `pro-500`, `business`, `api`. |
301
+ | `--antigravity-tier <tier>` | init | `none`, `free`, `plus`, `pro-trial`, `pro`, `ultra-5x`, `ultra-20x`. |
302
+ | `--parent <model>` | init | `sonnet`, `opus` or `fable`. See [parent model](#parent-model). |
303
+ | `--allow-usage-credits` | init | Include per-token `api` tiers. Needs a tier or a v2 config. |
304
+ | `--allow-fast-modes` | init | Permit fast or priority service modes. Needs a tier or a v2 config. |
305
+ | `--verified-org` | init | Record `verifiedOrg: true` in a v2 config. No routing or hook reads it. |
80
306
  | `--probe` | init | Run `sync-models` after installing. Spends real quota. Ignored for `core`. |
81
- | `--yes` | init, sync-models | No prompts. Without an interactive terminal, `init` requires it and `sync-models` requires it or `--dry-run`. |
82
307
  | `--force` | init, sync-models | Back up your changed files to `<file>.bak`, then overwrite. For `sync-models`, this covers a hand-edited `SKILL.md`. |
308
+ | `--refresh` | check-models, sync-models | Ignore the probe cache TTL. `sync-models` without `--apply` always probes. |
309
+ | `--probe-scarce` | check-models, sync-models | Also probe scarce-pool models. |
310
+ | `--json` | check-models | Machine-readable result. |
311
+ | `--auto` | sync-models | Write without confirmation, like `--yes`. |
312
+ | `--apply` | sync-models | Promote newer versions from recorded drift. |
83
313
  | `--dry-run` | sync-models | Probe and print the result; write nothing. **Still spends real quota.** |
84
314
  | `--providers <list>` | sync-models | Only these of `claude`, `codex`, `antigravity`; comma separated. |
85
- | `--burst`, `--5h`, `--weekly`, `--until <when>`, `--reason <text>` | quota set | See [Quota](#quota). |
315
+ | `--ttl <duration>` | availability mark | `1m` to `30d`, default `24h`. |
316
+ | `--pool <name>` | quota set | Lock a pool: `standard`, `fable`, `astra`, `third-party-claude`, or another lowercase name. |
317
+ | `--burst`, `--5h`, `--weekly`, `--until <when>` | quota set | Lock window; one only. Default `--burst`. |
318
+ | `--reason <text>` | quota set, availability mark | Note shown by the status command. |
86
319
  | `--all` | quota clear | Remove every lock. |
87
320
 
88
321
  Exit codes: `0` success, `1` failure (invalid JSON, broken install), `2` usage error.
89
322
 
323
+ ```sh
324
+ t3-auto-build init --claude-tier pro --codex-tier plus --antigravity-tier pro --parent opus
325
+ t3-auto-build check-models --json
326
+ t3-auto-build sync-models --refresh --probe-scarce
327
+ t3-auto-build quota set antigravity:claude-opus-5-5 --pool third-party-claude
328
+ ```
329
+
90
330
  ### Modules
91
331
 
92
332
  | `--modules` | Name | CLAUDE.md, rules, commands | Skill, config, hooks, `settings.json` |
@@ -97,23 +337,91 @@ Exit codes: `0` success, `1` failure (invalid JSON, broken install), `2` usage e
97
337
 
98
338
  A re-run without `--modules` keeps the previous choice. When you change it, `init` removes the files
99
339
  that no longer belong and keeps and reports the ones you changed. Switching to `core` also removes
100
- the hook entries and environment value from `settings.json`. That cleanup is the one case where a
340
+ the hook entries and the values `init` set in `settings.json`. That cleanup is the one case where a
101
341
  `core` run writes `settings.json`.
102
342
 
343
+ ## Legacy presets
344
+
345
+ Without subscription tiers, `init` writes a v1 config from a preset.
346
+
347
+ | Preset | Models | Codex | Antigravity | Claude | Dual audit |
348
+ |---|---|---|---|---|---|
349
+ | `tri-provider` (default) | 9 | 3 | 3 | 3 | Claude Opus 5.5 + Gemini 4 Carbon |
350
+ | `claude-codex` | 6 | 3 | 0 | 3 | Claude Opus 5.5 + gpt-6-luna |
351
+ | `claude-only` | 3 | 0 | 0 | 3 | Claude Opus 5.5 + Claude Sonnet 5.5 |
352
+
353
+ Every preset defaults to Claude Sonnet 5.5 at `medium` effort and sets the auto-compaction threshold
354
+ to 35%. Presets ban no models of their own; the [retired list](#model-bans) always applies.
355
+
356
+ Interactive `init` on a fresh target suggests tiers (Claude `pro`, Codex `plus`, Antigravity `plus`)
357
+ for the `claude`, `codex` and `antigravity` binaries on `PATH`. If you choose `none` everywhere, it
358
+ asks for a preset. Provider config folders are only checked for existence. `init --yes` does not
359
+ detect: a fresh install without `--preset` or a tier uses `tri-provider`.
360
+
361
+ `--tiers provider:plan[:weekday]` (for example `claude:max:monday,codex:plus`) records how limits are
362
+ shared in a v1 config.
363
+
364
+ | Provider | Plan: short-window limit locks the provider | Plan: locks only the scarce pool | Pool |
365
+ |---|---|---|---|
366
+ | `claude` | `pro` | `max` | `fable` |
367
+ | `codex` | `plus` | `pro` | `astra` |
368
+ | `antigravity` | `standard` | `ultra` | `third-party-claude` |
369
+
370
+ The weekday (`monday` or `mon`) is the weekly reset day, taken as 00:00 UTC.
371
+
372
+ ## Migrating from v1
373
+
374
+ v1 configs keep loading, with the retired list enforced. To convert:
375
+
376
+ 1. Run the v2 package:
377
+
378
+ ```sh
379
+ npx t3-auto-build@latest upgrade
380
+ ```
381
+
382
+ 2. `upgrade` assumes low paid tiers, because a v1 config does not say what you pay for: Claude `pro`,
383
+ Codex `plus`, Antigravity `plus` for each provider in your allowlist, else `none`.
384
+ 3. Set your real tiers:
385
+
386
+ ```sh
387
+ npx t3-auto-build init --claude-tier max --codex-tier pro-200 --antigravity-tier pro
388
+ ```
389
+
390
+ Until then no scarce or cross-hosted model is configured.
391
+ 4. Restart T3 Code.
392
+
393
+ What `upgrade` does:
394
+
395
+ - Backs up `auto-build.config.json` to `.bak` (`.bak.1` and so on if a different backup exists).
396
+ - Moves your `bannedModels` to `userBannedModels`, dropping the old defaults `Argon` and
397
+ `Fable/Mythos`. `bannedModels` mirrors the list.
398
+ - Keeps `compactionThreshold`, `defaultEffort`, `modelIds` and `discovery`. Ladder entries still in
399
+ the new roster stay in place; others are replaced.
400
+ - Rebuilds the rest from the tiers. Custom allowlist entries, `defaultModel`, `planRestricted` and
401
+ `tiers` are not carried over.
402
+ - Re-renders the managed files you have not edited and updates `settings.json`, including `model` and
403
+ `effortLevel` when absent.
404
+ - Does nothing on a config that is already v2.
405
+
406
+ Existing `tier:<provider>:heavy` cooldown keys are still read.
407
+
103
408
  ## sync-models
104
409
 
105
410
  > **`sync-models --dry-run` still executes live probes.** It spends real quota and writes nothing.
411
+ > The [API billing warning](#availability-checks) applies.
106
412
 
107
- > Probe processes inherit your environment. If an API key variable (such as `ANTHROPIC_API_KEY` or
108
- > `OPENAI_API_KEY`) is set, the CLI may use it and the probes may be billed to the API.
109
-
110
- Candidates are the config allowlist, its `planRestricted` models and the preset's models; banned
111
- models are skipped. Each gets a one-word prompt through `claude -p` or `codex exec`, in an empty temp
112
- directory with a 20 s timeout. `claude` runs with tools disabled, safe mode and no session
413
+ Candidates are the config allowlist, its `planRestricted` models and the preset's models (a `custom`
414
+ config uses the `tri-provider` preset). Banned models and, without `--probe-scarce`, scarce models
415
+ are not probed. Each other model gets a one-word prompt through `claude -p` or `codex exec`, in an
416
+ empty temp directory with a 20 s timeout. `claude` runs with tools disabled, safe mode and no session
113
417
  persistence. `codex` runs read-only and ephemeral with `--ignore-user-config` and `--ignore-rules`,
114
418
  so your Codex user config does not apply. Antigravity has no probe support: its models report
115
419
  `unavailable` and keep their current membership.
116
420
 
421
+ > On a v2 config, preset models count as candidates too. A successful probe can therefore add
422
+ > allowlist entries beyond your tier, including display-name duplicates. Review the changes before you
423
+ > confirm, or use `check-models` with `sync-models --apply`.
424
+
117
425
  | State | Effect on the config |
118
426
  |---|---|
119
427
  | `available` | Added to or kept in `allowlist`; removed from `planRestricted`. |
@@ -131,99 +439,91 @@ Writing needs an `auto-build` or `full` install; `--dry-run` needs only the conf
131
439
  ## Quota
132
440
 
133
441
  ```sh
134
- t3-auto-build quota set <claude|codex|antigravity|model> [--burst|--5h|--weekly|--until <when>] [--reason <text>]
442
+ t3-auto-build quota set <provider|model|provider:model> [--pool <name>] [--burst|--5h|--weekly|--until <when>] [--reason <text>]
135
443
  t3-auto-build quota status
136
- t3-auto-build quota clear <provider|model> # or --all
444
+ t3-auto-build quota clear <provider|model|provider:model> # or --all
137
445
  t3-auto-build quota check [provider]
138
446
  ```
139
447
 
140
- - `set` locks one provider or model. The default `--burst` is 10 minutes; `--5h` is 5 hours;
141
- `--weekly` runs to the tier's reset day, else 7 days. `--until` takes a future ISO time or a
142
- duration such as `90m` or `1w2d`. `--5h` on a provider whose tier locks only the heavy model writes
143
- `tier:<p>:heavy`.
448
+ - `set claude` locks the provider; `set claude-opus-5-5` locks that model on every hosting;
449
+ `set antigravity:claude-opus-5-5` locks that hosting only. With `--pool`, any of these locks that
450
+ pool of the provider instead (a bare model means its native provider).
451
+ - The default `--burst` is 10 minutes; `--5h` is 5 hours; `--weekly` runs to a legacy tier's reset
452
+ day, else 7 days. `--until` takes a future ISO time or a duration such as `90m` or `1w2d`.
453
+ - In a v1 config whose `--tiers` plan locks only the scarce pool, `--5h` on a provider locks that
454
+ pool.
144
455
  - Reset times parsed from rate-limit messages are capped at 14 days. A manual `--until` is not capped.
145
456
  - `status` drops expired locks and prints the rest.
146
- - `clear <provider>` removes its provider and heavy-tier locks, not its model locks.
147
- `clear <model>` removes that model's lock. `--all` deletes the file, even a corrupt one.
457
+ - `clear <provider>` removes its provider and pool locks, not its model locks. `clear <model>`
458
+ removes that model's lock. `--all` deletes the file, even a corrupt one.
148
459
  - `check` runs `claude auth status` and `codex login status` (Antigravity has no status command). It
149
460
  reports login state only, unless the output explicitly says usage is exhausted; only then does it
150
461
  record a lock.
151
462
 
152
463
  ### Cooldown file
153
464
 
154
- `<config dir>/auto-build-cooldowns.json` is a JSON object keyed `model:<id>`, `provider:<p>` or
155
- `tier:<p>:heavy`:
465
+ `<config dir>/auto-build-cooldowns.json` is a JSON object with these keys:
466
+
467
+ | Key | Locks |
468
+ |---|---|
469
+ | `model:<id>` | The model on every hosting. |
470
+ | `model:<provider>:<id>` | That hosting only. |
471
+ | `provider:<p>` | The provider. Locking `claude` does not block `antigravity:claude-opus-5-5`. |
472
+ | `tier:<p>:<pool>` | One pool (`[a-z0-9-]+`), such as `tier:antigravity:third-party-claude`. |
473
+
474
+ Legacy `tier:<p>:heavy` keys are still read, and `quota check` or a probe may still write them.
156
475
 
157
476
  ```json
158
477
  {
159
- "provider:codex": {
160
- "scope": "provider",
161
- "window": "5h",
478
+ "tier:codex:astra": {
479
+ "scope": "tier",
480
+ "tier": "astra",
481
+ "window": "weekly",
162
482
  "until": "2030-01-01T05:00:00.000Z",
163
- "reason": "manual lock (5h)",
483
+ "reason": "manual lock (weekly)",
164
484
  "source": "manual"
165
485
  }
166
486
  }
167
487
  ```
168
488
 
169
- `scope` is `model`, `provider` or `tier` (written tier entries also carry `"tier": "heavy"`).
170
- `window` is `burst`, `5h`, `weekly` or `custom`. Legacy `until_utc` is read. A key without a prefix
171
- needs a `scope` field, or it locks nothing. A malformed entry (such as one without a valid time) is
172
- skipped with a warning and kept in the file until it is overwritten or cleared (`quota clear <name>`
173
- or `--all`). A file that is not a JSON object is unreadable: hooks warn and ignore it. A write that
174
- leaves no entries removes the file.
175
-
176
- ## auto-build workflow
489
+ `scope` is `model`, `provider` or `tier`. `window` is `burst`, `5h`, `weekly` or `custom`. Legacy
490
+ `until_utc` is read. A key without a prefix needs a `scope` field, or it locks nothing. A malformed
491
+ entry (such as one without a valid time) is skipped with a warning and kept in the file until it is
492
+ overwritten or cleared (`quota clear <name>` or `--all`). A file that is not a JSON object is
493
+ unreadable: hooks warn and ignore it. A write that leaves no entries removes the file.
177
494
 
178
- 1. **Step 0:** check lockouts, record the `git status` baseline, resume if asked.
179
- 2. **Triage:** write a short `REPO_BRIEF` (using the cached `.claude/repo-profile.md`) and pick the
180
- level `L0` to `L3` and work shape `A` (multi-file, UI) or `B` (algorithms, debugging).
181
- 3. **Plan** (`L2`/`L3`), cross-checked by another provider on `L3` when available.
182
- 4. **Build:** `L2`/`L3` run in file-disjoint waves: foundations, core, tests/docs. Builders in a wave
183
- run in parallel; the diff guard and exit checks pass before the next wave.
184
- 5. **Verify:** blind edge-case tests (`L2`/`L3`), tests and lint, a diff-only audit preferring
185
- another provider (two auditors on `L3`), at most 2 fix rounds, then an optional commit and a
186
- report.
495
+ ## Configuration
187
496
 
188
- Runs that edit code, and `--plan-only` runs, save `.claude/auto-build-state.json` (`flags`,
189
- `completedWaves`, `modifiedFiles`, `remaining`, `blockers`) after each wave or step and keep it
190
- gitignored. `$auto-build --resume` restores it, lets newly typed flags win and skips completed waves.
191
- It stops if the file is missing or invalid. When quota runs out, the run saves state so you can
192
- resume later.
497
+ `<config dir>/auto-build.config.json`. A v2 config has `schemaVersion: 2` and:
193
498
 
194
- | Flag | Effect |
499
+ | Keys | Meaning |
195
500
  |---|---|
196
- | `--fast` / `--strict` | Cap at `L1` / force `L3`. |
197
- | `--plan-only` | Stop after the plan. |
198
- | `--dry-run` | Stop after triage and show the routing. |
199
- | `--audit-only` | Test and audit the uncommitted diff, then fix if needed. |
200
- | `--resume` | Continue an interrupted run. |
201
- | `--commit` | Commit only if the active checks pass. |
202
- | `--no-audit`, `--no-tests` | Skip the audit / tests. |
203
- | `--budget` | Cheaper routing; no plan cross-check, blind tests or dual audit. |
204
- | `--reset-cooldowns` | Clear all locks first. |
205
- | `--<provider>-only` | Use only that provider's models. |
206
-
207
- ## Configuration
208
-
209
- `<config dir>/auto-build.config.json` holds `allowlist` (provider to model names), `bannedModels`,
210
- `defaultModel`, `defaultEffort`, `ladders` and `compactionThreshold`, plus optional `tiers`,
211
- `modelIds` (display name to CLI model id) and `planRestricted`. Edit it, then run `init` again to
212
- re-render the skill. The hooks read it when they need it.
213
-
214
- - The existing file is always the base. `--compaction` overrides its value. A `--preset` that differs
215
- from the file's `preset` replaces the allowlist, ladders and default model and effort, and keeps
216
- your banned models and threshold. Banned models typed at the prompt are added.
217
- - To reset to a preset, delete the file and run `init`.
218
- - Banned entries match as case-insensitive substrings, and `A/B` bans both. A short entry such as
219
- `Claude` bans every model whose name contains it.
501
+ | `subscriptions`, `parent`, `preset` | Your tiers, parent model and effort, and a label. |
502
+ | `models` | `provider`, `model`, `pool`, `scarceQuota`, `family`, `version` per hosting. |
503
+ | `allowlist`, `ladders` | Provider to model ids; ordered `[provider:]model[@effort]` lists. |
504
+ | `retiredModels`, `planRestrictedModels`, `userBannedModels`, `bannedModels` | See [Model bans](#model-bans). |
505
+ | `allowFastModes`, `allowUsageCredits`, `verifiedOrg` | Switches, `false` by default. |
506
+ | `maxParallelBuilders`, `defaultModel`, `defaultEffort`, `compactionThreshold` | Run settings. |
507
+ | `modelIds`, `discovery` | Display name to CLI id; drift adapters. |
508
+
509
+ A v1 config has no `schemaVersion` and may also use `tiers` and `planRestricted`.
510
+
511
+ - The existing file is always the base. Re-run `init` after editing to re-render the skill. The hooks
512
+ read the file when they need it.
513
+ - Changing tiers (or usage credits) rebuilds `models`, `allowlist` and `ladders`, after a backup. It
514
+ keeps your bans, switches, threshold, effort, `modelIds` and `discovery`.
515
+ - `--compaction` overrides the file. In a v1 config, a `--preset` that differs from the file's
516
+ replaces the allowlist, ladders and default model and effort. Banned models typed at the prompt are
517
+ added.
518
+ - To start over, delete the file and run `init`.
220
519
  - Model names ignore case and punctuation runs, so `claude-sonnet-5-5` matches `Claude Sonnet 5.5`.
221
- Model cooldown keys may use either form. Provider cooldowns match the config provider name or the
222
- T3 provider id (`claudeAgent`, `codex`, `antigravity`). `provider:codex` also covers a custom
223
- instance such as `codex-2`; `provider:codex-2` covers only that instance.
224
- - Keys missing from the file come from its `preset` (`tri-provider` when unset).
225
- - Ladder entries are `Model` or `Model@effort`. Rendering drops banned and non-allowlisted entries.
226
- If a ladder ends up empty, `init` fails and writes nothing.
520
+ Provider cooldowns match the provider name or the T3 provider id (`claudeAgent`, `codex`,
521
+ `antigravity`). `provider:codex` also covers a custom instance such as `codex-2`;
522
+ `provider:codex-2` covers only that instance.
523
+ - Keys missing from the file come from its `preset` (`tri-provider` when unset or `custom`). The
524
+ hooks fall back to full defaults on an unknown `schemaVersion`.
525
+ - Rendering drops banned and non-allowlisted ladder entries. If a ladder ends up empty, `init` fails
526
+ and writes nothing.
227
527
  - The skill gets one `--<provider>-only` flag per allowlisted provider.
228
528
 
229
529
  ## What `init` touches
@@ -231,13 +531,13 @@ re-render the skill. The hooks read it when they need it.
231
531
  - Files that exist and differ from what was installed are skipped with a warning. This includes hook
232
532
  files, which are still wired. `--force` backs them up first (`.bak`, then `.bak.1`, so an earlier
233
533
  backup is never overwritten).
234
- - `settings.json`: only the four tagged hook entries and `env.CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`. Other
235
- keys and hooks are preserved. `settings.json.bak` is written only when the content changes. Invalid
236
- JSON stops the run before any write.
534
+ - `settings.json`: only the four tagged hook entries, `env.CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` and, with
535
+ a parent model, `model` and `effortLevel`. Other keys and hooks are preserved. `settings.json.bak`
536
+ is written only when the content changes. Invalid JSON stops the run before any write.
237
537
  - Paths that go through a symlink or junction inside the config directory are not written or
238
538
  deleted. A symlinked `settings.json` is updated through the link.
239
- - `t3-auto-build.manifest.json` records installed file hashes and the prior environment value.
240
- `uninstall` restores that value only if it is still the one installed.
539
+ - `t3-auto-build.manifest.json` records installed file hashes and prior setting values. `uninstall`
540
+ restores a value only if it is still the one installed.
241
541
  - A target path containing `"`, `$`, a backtick or `%` is refused, because it cannot be quoted
242
542
  safely in a hook command.
243
543
 
@@ -247,13 +547,14 @@ Installed to `<config dir>/hooks/t3-auto-build/`. Matching is case-insensitive.
247
547
 
248
548
  | Hook | Event | Behavior |
249
549
  |---|---|---|
250
- | `session-start.mjs` | SessionStart | Prunes expired cooldowns (deletes the file when none are left) and summarizes active ones. |
251
- | `pre-compact.mjs` | PreCompact | Prints the preservation rules, the saved orchestrator state if present (marked as data only, not instructions), and a `git status --short` snapshot (20 files at most). |
550
+ | `session-start.mjs` | SessionStart | Prints up to 6 lines: subscriptions (or an upgrade hint), active locks, cache freshness, drift counts. Prunes expired cooldowns. |
551
+ | `pre-compact.mjs` | PreCompact | Prints the preservation rules (allowlist, bans, restrictions, scarce pools, locks), the saved orchestrator state if present (marked as data only, not instructions), and a `git status --short` snapshot (20 files at most). |
252
552
  | `pre-tool-use.mjs` | PreToolUse | Exits 2 with a reason when a guard below matches. |
253
553
  | `post-tool-use.mjs` | PostToolUse | Formats the edited file with `biome` or `prettier`, `ruff`, or `gofmt` when on `PATH`. Never blocks. |
254
554
 
255
555
  PreToolUse guards:
256
556
 
557
+ - **Invalid payload:** a named tool whose `tool_input` is present but not an object is blocked.
257
558
  - **Secret files** (`Edit`, `Write`, `MultiEdit`): `.env` and `.env.*`, `.pem`, `.key`, `.p12`,
258
559
  `.pfx`, and paths containing `id_rsa` or `id_ed25519`.
259
560
  - **Git** (`Bash`): `git push --force`/`-f` and `git reset --hard`.
@@ -261,14 +562,13 @@ PreToolUse guards:
261
562
  when a target starts with `/`, `\`, `~`, a drive path such as `C:/`, `$HOME` or `%USERPROFILE%`;
262
563
  contains a command substitution; is the current directory or `*`; has a `..` or `.git` segment; or
263
564
  is a dot-file glob such as `.*`.
264
- - **Delegate models** (`delegate_task`): banned or non-allowlisted models are blocked. A trailing
265
- `-YYYYMMDD` snapshot suffix is ignored when matching.
266
- - **Lockouts** (`delegate_task`): model, provider and heavy-tier cooldowns block the call. Without a
267
- `provider`, `providerInstanceId` or `driverKind`, the provider is inferred from a `claude-`,
268
- `gpt-` or `gemini-` model name.
565
+ - **Delegate calls** (`delegate_task`), in order: [speed mode](#speed-mode-guard), provider/model
566
+ conflict, retired, user-banned, plan-restricted, availability, allowlist (a trailing `-YYYYMMDD`
567
+ suffix is ignored), then cooldown locks.
269
568
 
270
- Hooks fail open: malformed input, config or cooldown data produces a warning and exit 0. The secret
271
- and destructive-command guards need no config.
569
+ Empty or unparsable hook input, and unreadable cooldown data, produce exit 0 (fail open). An invalid
570
+ config value produces a warning and a default, so the allowlist is still enforced. The secret and
571
+ destructive-command guards need no config.
272
572
 
273
573
  ### Known limits
274
574
 
@@ -280,8 +580,8 @@ and destructive-command guards need no config.
280
580
  - Any `-f` text after `git push` matches, including a branch name such as `bug-fix`.
281
581
  `--force-with-lease` is blocked too.
282
582
  - The delegate guard reads `model` and the provider fields at the top level of `tool_input` and under
283
- `target` (T3 Code's shape). A call without a model skips the allowlist check; provider cooldowns
284
- still apply if it names a provider.
583
+ `target` (T3 Code's shape). A call without a model skips the model checks; the speed-mode guard and
584
+ provider cooldowns still apply.
285
585
 
286
586
  Not ported from the PowerShell hooks: `stop-verify.js`, `bash-guard.js`, `tsc-check.js`, the caveman status line and
287
587
  skillspector. No Stop hook is installed.
@@ -289,6 +589,23 @@ skillspector. No Stop hook is installed.
289
589
  If you already run the PowerShell versions, remove them from `settings.json`. `doctor` warns while
290
590
  they are still wired.
291
591
 
592
+ ## Security and privacy
593
+
594
+ - No runtime dependencies. The package's own code makes no network requests and has no telemetry.
595
+ - It does run provider CLIs, which may use the network: `check-models`, `sync-models` and
596
+ `init --probe` send live prompts, `check-models` also runs their `--version` and your `discovery`
597
+ commands, and `quota check` runs their login status commands.
598
+ - `discovery` commands run with your permissions. Add only commands you trust.
599
+ - Provider detection only checks that config folders exist; it opens nothing inside them.
600
+ - Probes run in an empty temp directory, and the cooldown reasons they record never quote CLI output.
601
+ - Commands are resolved from absolute `PATH` entries, never the current directory.
602
+ - Install and uninstall protect your edits and refuse symlinked paths inside the config directory,
603
+ with the exceptions described in [What `init` touches](#what-init-touches).
604
+ - Guard hooks have [known limits](#known-limits). Do not rely on them as a security boundary.
605
+
606
+ Report vulnerabilities as described in [SECURITY.md](https://github.com/mirceas94/t3-auto-build/blob/main/SECURITY.md). To contribute,
607
+ see [CONTRIBUTING.md](https://github.com/mirceas94/t3-auto-build/blob/main/CONTRIBUTING.md).
608
+
292
609
  ## Optional tools
293
610
 
294
611
  `doctor` warns when these are missing: