# crvouga/personal — LOCAL development infrastructure guide > **Scope: developer machines only.** Use this guide for everything that runs on or configures a computer used for development: the locked mise toolchain, workstation configuration, the container engine, the `personal` CLI, the Ubuntu developer fleet (one macOS manager, stateless Ubuntu workers), T3, the private fleet AI proxy (CLIProxyAPI), Beszel monitoring, Turborepo caching and disposable test databases. Generated from `scripts/dev/README.md` and `mise.toml`; tools and dependency graphs are pinned in `mise.lock` and `.mise/locks/`. **This guide never covers cloud-hosted app infrastructure.** Vault/OpenBao coordinates and policies, PostgreSQL `DATABASE_URL`, the R2 object store, Railway hosting, GHCR images, DNS/TLS, GitHub OIDC and the Google sign-in auth relay are **cloud app infrastructure** → https://www.chrisvouga.dev/llms-cloud.txt. If your task is about any of those, stop and use that guide instead. Do not mix the two. Canonical deployed URL: https://www.chrisvouga.dev/llms-local.txt · Index of both guides: https://www.chrisvouga.dev/llms-infra.txt · Source snapshot (current `main`): https://raw.githubusercontent.com/crvouga/personal/main/llms-local.txt ## Local vs cloud: the boundary | Question | Local (this guide) | Cloud (the other guide) | | --- | --- | --- | | Where does it run? | A developer's computer or a fleet node | Railway, Cloudflare, managed PostgreSQL, GHCR, GitHub Actions | | Who owns it? | mise (`mise.toml`, `mise.lock`), `packages/workstation`, [homelab](https://github.com/crvouga/homelab) with this repository's `fleet.json` | OpenTofu in `crvouga/personal` only | | How is it changed? | The documented local commands below, when the user asks for machine setup | A GitHub issue on `crvouga/personal`, then a reviewed OpenTofu PR | Rules: - **Nothing here provisions or changes a cloud resource.** Machine setup, `converge`, workstation tools sync and the AI proxy never create, deploy or reconfigure Vault, databases, buckets, DNS or Railway services. If a local task seems to need one, it is a cloud request: use https://www.chrisvouga.dev/llms-cloud.txt. - **Machines consume cloud credentials; they do not own them.** A fleet node's Vault login, the AI proxy's encrypted R2 backup and its recovery keys in Vault are reads from cloud infrastructure. The Vault server, its policies, tokens and buckets stay OpenTofu-owned and are documented only in the cloud guide. - **`dev` does not mean local.** The Vault `dev` config, the `dev` bucket and the `dev` `DATABASE_URL` are cloud resources. "Local" in this guide means *runs on this computer*. - **A developer machine is never a hosting target**, and a fleet node is never an app server. Apps are hosted only through the cloud guide. - **Global tooling changes only on request.** When the user asks for machine setup, run the checked-in bootstrap and locked mise toolchain. Otherwise report missing tools with the documented command; do not make unrelated global changes. --- ## Machine setup: macOS, Windows and Linux This is the shared development setup for **crvouga/personal**. One versioned manifest, `mise.toml`, owns the developer tools; `mise.lock` and `.mise/locks/` own resolved artifacts and dependency graphs. Both bootstraps apply that same manifest to the current user globally. Other projects can override versions with their own mise configuration. No paid account or cloud secrets are needed to install the toolchain. ### New machine macOS / Linux, in Bash (download first so the script is reviewable): ```sh curl -fsSL https://raw.githubusercontent.com/crvouga/personal/main/scripts/dev/bootstrap.sh -o /tmp/workspace-bootstrap.sh bash /tmp/workspace-bootstrap.sh ``` Native Windows, in x64 PowerShell (5.1 or newer): ```powershell Invoke-WebRequest https://raw.githubusercontent.com/crvouga/personal/main/scripts/dev/bootstrap.ps1 -OutFile "$env:TEMP\workspace-bootstrap.ps1" & "$env:TEMP\workspace-bootstrap.ps1" ``` If script execution is blocked, use a process-scoped policy for this reviewed script: `powershell -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP\workspace-bootstrap.ps1"`. Do not change the machine-wide execution policy. WSL is optional: run the Linux bootstrap **inside WSL** to install Linux tools there; the native Windows and WSL tool installations, Docker connections and credentials are separate. Default checkout: `~/workspace`. Override with `WORKSPACE_DIR=/path/to/workspace` on Unix or `-WorkspaceDir C:\path\workspace` on Windows. An existing checkout is reused, never reset or implicitly pulled. From a checkout, run `bash scripts/dev/bootstrap.sh` or `& ./scripts/dev/bootstrap.ps1`. The scripts install checksum-verified mise **2026.10.24** unless that or a newer mise is already installed (a newer one is never downgraded: on a fleet machine it is homelab's and its global config requires it), trust this repository's configuration, install pinned Bun, install the shared tools with `--locked`, copy the managed global config/lock/sidecars, set up persistent shims on PATH, and run `bun install --frozen-lockfile`. Reopen your terminal/editor afterward. To refresh an already-open Unix terminal immediately, run `exec "$SHELL" -l`; an installer cannot change its parent shell's environment. **If `bun` or `mise` is missing, run `bash scripts/dev/bootstrap.sh` from this checkout first, not a Bun command.** Unix PATH blocks cover `.profile`, existing `.bash_profile`/`.bash_login`, `.bashrc`, `.zshenv`, `.zshrc` and fish's config. Zsh uses `ZDOTDIR` when set. POSIX blocks are quiet, idempotent and placed before interactive-only early returns, so noninteractive SSH/agent commands can find the same shims without loading an interactive UI; Windows updates only the user's PATH; AWS CLI v2 additionally uses the official versioned MSI (a UAC prompt may appear) because mise's AWS recipe supports only macOS/Linux. Its version comes from the same manifest and its Windows SHA-256 is pinned in `vars.aws_windows_msi_sha256`; no unversioned installer is executed. CI/non-interactive setup never opens an elevation prompt and requires an administrator context if that MSI needs installation. Existing unrelated mise config/lockfiles are refused: back them up and move them first, then merge intentional overrides using project configs. `MISE_CONFIG_DIR` and `XDG_CONFIG_HOME` are respected for configuration; the PATH step also respects `MISE_DATA_DIR`, `XDG_DATA_HOME` and `MISE_SHIMS_DIR`, including Windows' `%LOCALAPPDATA%` default. ### OS prerequisites and supported platforms - **macOS x64 / Apple Silicon:** install Apple's Command Line Tools. If Git is absent, bootstrap launches `xcode-select --install`, stops, and asks you to rerun after installation. These tools provide Git and native compilers. `curl`, `tar` and `unzip` must be available. - **Linux x64 / arm64, glibc:** Git, curl, trusted CA certificates, tar, unzip, xz and a C/C++ compiler/make. If Git is absent, bootstrap installs prerequisites with `sudo apt-get` or `sudo dnf`; other distributions receive an actionable error. On Debian/Ubuntu with Git already installed, use `sudo apt-get install git curl ca-certificates tar unzip xz-utils build-essential`. Alpine/musl is not in this baseline. - **Native Windows x64:** Git for Windows (includes OpenSSH and Git Bash). Bootstrap installs it through WinGet if missing; without WinGet, install Git from https://git-scm.com/download/win. Windows ARM64 is not yet validated. For packages with native C/C++ addons, install Visual Studio Build Tools with the Desktop development with C++ workload and Windows SDK. Enable Developer Mode if using workstation symlink features; core toolchain setup uses copies and does not require symlinks or an administrator shell. Git, OS compilers/SDKs, Docker Engine/Desktop, desktop apps, and kernel versions are **OS prerequisites**, not covered by the mise lock. The same tool versions are selected across OSes, using different platform binaries; this does not make all OS behavior or every project command identical. Existing infrastructure scripts may require Bash/Unix tooling; use Git Bash where supported or WSL for Linux-specific workflows. Exact container builds should pin base image digests. ### Included toolchain The generated guide includes the exact tool table from `mise.toml` below. Scope: - **Source control:** OS Git/OpenSSH, pinned GitHub CLI and Git LFS. - **JavaScript/TypeScript:** Node **with npm**, Bun, pnpm, Yarn and Deno. TypeScript, ESLint, Prettier, Turbo and test frameworks remain project dependencies installed from `bun.lock`; do not install duplicate global copies. - **Languages/builds:** Python (precompiled), uv/uvx, Go, Rust/Cargo/rustfmt/Clippy, CMake, Ninja and Just. OS compilers/linkers remain prerequisites: Apple Command Line Tools, Linux build-essential/GCC, or Windows MSVC Build Tools + SDK. Java (Temurin 25 LTS) and .NET 10 SDK are locked on-demand tools. Project manifests still select project-specific language/library versions. - **CLI utilities:** ripgrep (`rg`), fd, fzf, bat, delta, jq and Mike Farah yq. - **Delivery/infra:** Vercel, Wrangler, Railway, OpenTofu, Vault CLI (for the OpenBao-compatible secret service), Docker CLI, ShellCheck, shfmt, actionlint, AWS CLI v2, kubectl and Helm. Installing provider CLIs does not authorize agents to provision resources; shared infrastructure is still OpenTofu-owned. - **Agent harnesses:** T3 Code or the chosen meta-harness owns installation, versions, updates and sign-in. This repository does not pin their executables or disable vendor self-updaters. User/vendor commands retain PATH precedence over shared mise shims, including inside this checkout. On an existing machine, install through the external owner before retiring its old mise installation; removing a pin alone leaves an unusable shim. - **Security/data/HTTP:** Gitleaks for secret scanning, SOPS + age for encrypted files, xh for HTTP requests, and usql for SQL database connections. Installing these tools does not create encryption keys or copy credentials. - **Agent/container development:** Dev Containers CLI (`devcontainer`) is included. MCP Inspector is pinned on demand; use it only for the MCP server you intend to inspect, and follow the tool's local access instructions. - **On demand:** Atlas (macOS/Linux), Azure CLI, Google Cloud CLI, AWS CDK/SAM, Java/.NET SDKs and MCP Inspector are locked lazy tools. Install one with `mise install --locked `, for example `mise install --locked gcloud`, or install the whole catalog with `mise install --locked --include-lazy`. AWS SAM is currently macOS/Linux only in mise; native Windows users can use AWS's supported SAM installer when their project needs it. Lazy tools are excluded from the base doctor's required checks; large SDKs may require their documented OS prerequisites and project-specific versions. **nvm is intentionally replaced by mise's Node version management.** Unix nvm and nvm-windows are different implementations. Use `mise use node@` in a project instead of `nvm install/use`; root `.nvmrc` remains a compatibility pin for existing CI. Remove/disable old nvm, fnm, asdf or Volta shell initialization if it shadows managed tools. Never silently delete another manager's files. Do not independently upgrade npm, Corepack shims, or globally npm-install tools already owned by mise. The npm version comes from the pinned Node release. ### Verify, authenticate and configure After reopening the shell: ```sh cd ~/workspace mise exec -- bun scripts/dev/doctor.ts mise exec -- bun scripts/dev/doctor.ts --json # Require a working container runtime and both plugins: mise exec -- bun scripts/dev/doctor.ts --docker ``` Doctor fails missing/wrong required tool versions and missing Git/npm. Missing GitHub authentication and Docker runtime/plugins are warnings unless Docker is explicitly required. `--json` emits structured checks without credential values. `mise doctor` diagnoses mise itself. Use `where.exe node` / `Get-Command node -All` on Windows, or `type -a node` on Unix, to find conflicting installations. Authentication remains per-machine and interactive; never copy tokens into Git: ```sh gh auth login gh auth setup-git gh auth status vercel login wrangler login railway login ``` Only sign into providers the task actually needs. Git identity is personal: set `git config --global user.name` and `git config --global user.email` after confirming the desired name/email. Do not guess an email or overwrite an existing identity. Enable Git LFS hooks when needed with `git lfs install`. Install the source-owned launcher and check workstation prerequisites with `bun run personal:install` and `personal workstation doctor`. Coding-agent configuration and sign-in belong to T3 Code or your chosen meta-harness. ### Working with modern repositories After bootstrap, clone with `gh repo clone owner/repo`, read that repository's `AGENTS.md`/README and language manifests, and trust its mise config only after review. Use its lockfile and declared package manager: `bun install --frozen-lockfile`, `npm ci`, `pnpm install --frozen-lockfile`, `yarn install --immutable`, `uv sync --locked`, `cargo build --locked` or `go mod download` as appropriate. Do not install global copies of project-owned TypeScript, ESLint, Prettier, test frameworks or SDK libraries. For a `.devcontainer` project, use `devcontainer up --workspace-folder .` after Docker readiness succeeds. Database servers (PostgreSQL, MySQL, Redis, etc.) and local services belong in the project's versioned Compose/devcontainer configuration. The shared setup provides the Docker and SQL clients; it does not start unrequested background servers or occupy their ports. Python and Bun provide SQLite support without requiring a separate global database daemon. Mobile/iOS/Android toolchains and platform-specific native dependencies remain project/OS prerequisites. Cloud sign-in is per machine: `aws configure sso` / `aws sso login`, `gcloud auth login` and `az login` only when the task needs that provider. Use named profiles and existing credentials; never put access keys in this repo. Kubernetes contexts, cloud resource creation and production deployment still follow each repository's authorization and IaC rules. ### Containers: CLI versus engine The manifest installs the **Docker client**. Containers also require a local or remote Docker engine, Compose v2 and Buildx plugins. These cannot be installed as one identical unprivileged binary on all OSes. - **macOS:** run `personal workstation tools docker-setup` to install the pinned, checksum-verified Docker Desktop bundle from this repository and open it. Complete its first-run agreement/setup in the app. Repeated invocation reuses an existing installation. The shared mise Docker client remains in use. Vendor installation documentation: Docker Desktop from https://docs.docker.com/desktop/setup/install/mac-install/. - **Windows:** install/start Docker Desktop from https://docs.docker.com/desktop/setup/install/windows-install/. `winget install --exact --id Docker.DockerDesktop` is the package-manager route. Enable its WSL2 backend/virtualization prerequisites and finish any reboot. - **Linux:** follow https://docs.docker.com/engine/install/ for the distribution. Install Engine plus `docker-buildx-plugin` and `docker-compose-plugin`, then start the daemon (usually `sudo systemctl enable --now docker`). Use Docker's documented rootless mode when appropriate. Adding a user to the `docker` group grants root-equivalent access; do not do so silently in bootstrap. - **Remote/headless:** select a preconfigured Docker context instead. Do not overwrite an existing context or expose an unauthenticated TCP daemon. Docker Desktop supplies Compose/Buildx. On Linux they must be installed as CLI plugins. The pinned mise client should discover plugins in standard Docker locations; if not, check `docker info` and configure Docker's `cliPluginsExtraDirs` for that installation. Verify with `docker version`, `docker compose version`, `docker buildx version`, and optionally `docker run --rm hello-world` (downloads an image). CLI pinning does not pin or upgrade your engine/plugins. ### Lockfile coverage and reviewed package metadata Most binary tools have platform URLs/checksums in `mise.lock`; npm/Python tools also have dependency graphs in `.mise/locks/`. Rust is managed by the native Rustup backend: mise pins the exact release, and Rustup verifies its versioned component distribution manifests rather than recording component hashes in mise's lock. AWS Windows uses the reviewed MSI checksum in the same manifest. MCP Inspector's dependency graph currently selects the manually published Pino 9.14.0 backport, whose npm publisher metadata differs from the newer 10.x trusted publisher stream. The manifest's single-version trust-policy exception was added after verifying npm's SHA-512 integrity and all 139 published JavaScript files against `pinojs/pino`'s `v9.14.0` tag, plus matching package scripts/dependencies. The frozen graph still verifies its artifact integrity; no global trust checks are disabled. Remove that narrow exception when the upstream metadata is fixed. ### Keep machines synchronized From the checkout, on any platform: ```sh git pull --ff-only mise install --locked bun mise exec --locked bun -- bun scripts/dev/setup.ts ``` For an installed workstation CLI, `personal workstation update` pulls with a clean-tree/fast-forward guard, refreshes the toolchain/global config and frozen dependencies, and runs the existing workstation convergence. `personal workstation tools sync` reapplies tool pins/global config without pulling or touching project dependencies; `personal workstation tools check --json` verifies them. Sync is explicit; Git commits do not silently update other machines. Multiple development computers are kept in sync by [homelab](https://github.com/crvouga/homelab), run from this checkout at the pinned `fleet.revision` with `fleet.json` (see [T3 project actions](#t3-project-actions)). Fleet machines get their toolchain from homelab's own pins, not from this file: when the global mise config carries homelab's marker, setup installs this checkout's tools and leaves that global config unchanged. Remote Bash sessions depend on sshd sourcing `.bashrc`; shells launched with startup files disabled need an explicit PATH or the absolute `~/.local/bin/mise exec --locked -- COMMAND` entry point. On Windows, restart the parent editor/agent process to inherit the updated user PATH. To change versions: edit pins with `mise use --pin @` (or edit `mise.toml`), run `mise lock`, review `mise.toml`, `mise.lock` and any `.mise/locks/` changes, and test. Keep Bun's pin in `package.json` and the setup action aligned; keep Node's `.nvmrc` aligned. Run `bun run llms:sync` to regenerate the served local agent guide, then commit. Do not use `mise upgrade` independently on each machine. Version policy: use the newest stable compatible releases, with the newest Node LTS rather than an untested Current release. The current compatibility exceptions are delta 0.18.2 (newer releases omit Intel macOS) and OpenTofu 1.13.0 (all infrastructure roots and deployment gates require that exact version). Validate major and platform migrations before moving those pins. Python and other standalone tools use their latest stable releases at the last update. Locked downloads still need network access; GitHub limits may require an authenticated `gh` session. Never disable verification to bypass a failing lock. ### Agent entry point and ownership This runbook is part of the local development infrastructure guide, https://www.chrisvouga.dev/llms-local.txt#machine-setup-macos-windows-and-linux. Cloud app infrastructure (Vault, databases, storage, hosting) is a separate guide. The root `llms-local.txt` and served `/llms-local.txt` are generated by `bun run llms:sync` from `scripts/llms-local.template.md`, this file and `mise.toml`. Never edit generated copies. Read root `AGENTS.md` before working in the repo. Claude Code, Gemini CLI and Copilot have thin checked-in instruction files pointing to that same canonical document; Codex/OpenCode use `AGENTS.md` directly. Harness credentials and personal settings remain per machine. Bootstrap is authorized only when the user requests machine setup; fetching a public guide alone does not authorize installs or logins. ### T3 project actions Project scripts use `bash scripts/dev/project-action.sh ACTION` from the checkout. Actions: `warm`, `portfolio`, `workstation-update`, `workstation-net-fix`, `workstation-net-check`, `workstation-net-fix-check`, `fleet-sync`, `fleet-preview`, `fleet-status`, `fleet-health`, `fleet-repair`, `fleet-t3-status`, `infra-cliproxy`. Workstation actions run the `personal workstation` command of the same name. The fleet actions and `infra-cliproxy` run [homelab](https://github.com/crvouga/homelab) at the commit pinned in `fleet.revision`, with this repository's `fleet.json`, through `scripts/dev/fleet.sh`. Label each T3 script `Domain: Command words` (`Homelab: Sync`, `Homelab: Preview`, `Homelab: Health`, `Workstation: Net check`, `Infra: Cliproxy model health` running `infra-cliproxy model-health`; `infra-cliproxy model-suite --target mock` is the offline, credential-free suite). Extra arguments such as `--json` are forwarded. | Fleet action | Runs homelab | Changes machines | | ----------------- | ----------------------------------------------------------- | -------------------- | | `fleet-preview` | `converge --dry-run` | No | | `fleet-sync` | `converge`: the manager, then every worker | Yes | | `fleet-status` | `check --workers` | No | | `fleet-health` | `check --workers`, `t3` and, on the manager, `proxy status` | No | | `fleet-repair` | `repair --json`: a plan | Only `--apply --yes` | | `fleet-t3-status` | `t3`: T3 provider drift on this machine | No | `infra-cliproxy` runs `proxy`. `bun run fleet:preview`, `fleet:sync`, `fleet:status`, `fleet:health`, `fleet:repair` and `fleet:t3` are the same commands as root scripts, and `bun run fleet ` runs any other homelab command (`converge-local`, `t3-reconcile`, `t3-remove`, `enroll`, `workers`, …). `converge` runs on the manager; started on a worker it hands off to the manager over SSH. The other commands run from the checkout of the pinned revision that `converge` leaves on the machine. `converge`, `converge-local`, `t3-reconcile` and `t3-remove` apply when invoked; only `--dry-run` previews. `converge --dry-run` does not publish the global mise config. Fleet actions do not run this repository's bootstrap. Every other action runs it first, reusing installed locked tools and converging dependencies for the current branch. `warm` performs only that setup. No global `ws` or `personal` launcher is required. Setup may install tools on first use; application logins remain per-machine prerequisites. Configuration actions affect the current machine. ### Ubuntu T3 canary and console recovery Use MS-A2 for the first rollout of the managed T3 workload limits tracked in [homelab#629](https://github.com/crvouga/homelab/issues/629). Record the candidate revision and the worker's applied Homelab revision before and after the rollout. Use the candidate's `fleet:commands` catalog to confirm the worker-only apply procedure. A fleet-wide sync is the promotion step. From the manager, probe each layer independently. Set `worker` to the fleet's SSH alias and `private_host` to that worker's configured private HTTPS hostname. Run every probe even if an earlier layer fails. ```sh tailscale ping --c=1 --timeout=5s "$worker" /usr/bin/time -p perl -e 'alarm shift; exec @ARGV' 15 \ ssh -o BatchMode=yes -o StrictHostKeyChecking=yes -o ControlPath=none \ -o ConnectTimeout=5 "$worker" /bin/hostname curl --silent --show-error --fail --connect-timeout 5 --max-time 15 \ --output /dev/null --write-out 'HTTP %{http_code}; %{time_total}s\n' \ "https://$private_host/.well-known/t3/environment" ``` Record tailnet reachability and latency, SSH's exit status and elapsed time, and the HTTPS status and elapsed time. SSH passes when the command returns the expected hostname. HTTPS passes when the endpoint returns 200. For T3 Connect, use the linked environment over the managed relay and list projects or perform another read-only environment operation. Record the result and elapsed time with the connection route confirmed in the client. A valid link alone is insufficient. `bun run fleet:status` supplies the pinned Homelab worker checks alongside these results. A tailnet pong with stalled SSH or T3 is degraded. Repeat at idle, during sustained concurrent agent, terminal and ACP builds or type checks, and after T3 restart, reboot and reconvergence. Record timestamps, workload duration, failures and worst observed latencies for each phase. Stop the test if access degrades. Keep the live read-limit drop-ins until managed policy covers the same backing device and workload paths. Verify kernel `io.max` for 350,000,000 bytes/s and 8,000 read IOPS on MS-A2. Confirm memory, swap and I/O limits along each workload's ancestry and check that the T3 backend and relay have headroom outside the workload cap. Recheck effective values after any reconciliation of the local drop-ins. #### Collect evidence from the worker console Log in locally as the T3 desktop user if SSH cannot start a command. Set `pid` to a representative live process and run the following for an ordinary agent, terminal, ACP child, backend and relay. The kernel applies ancestor limits even when a leaf reports `max`. Use `lsblk -o NAME,MAJ:MIN,TYPE,MOUNTPOINTS` to map the device numbers in `io.max` and `io.stat` to the workload's disk. ```sh cg=$(awk -F: '$1 == "0" { print $3 }' "/proc/$pid/cgroup") if [ -n "$cg" ]; then while :; do printf '\n%s\n' "$cg" for file in memory.high memory.max memory.swap.max memory.events \ memory.pressure io.max io.stat io.pressure pids.max; do path="/sys/fs/cgroup${cg%/}/$file" if [ -r "$path" ]; then printf '%s\n' "$file" cat "$path" fi done [ "$cg" = / ] && break cg=${cg%/*} cg=${cg:-/} done fi ``` Save a bounded sample to a private directory on persistent disk before inducing load, during the stall if the console responds, and after recovery. Include the cgroup output above, UTC time, boot ID, `vmstat 1 5`, `/proc/pressure/{cpu,memory,io}`, and `iostat -dx 1 5` when available. Use `ps -eo stat,pid,ppid,wchan:32,comm` to count tasks in state D and retain a sample of those tasks. Collect the last 200 journal lines for each actual T3 and relay unit (`journalctl --user -u UNIT -b -n 200` for user units) and the last 200 kernel lines (`sudo journalctl -k -b -n 200`). Use `-b -1` after reboot if the previous journal is available. Keep samples and raw logs on the host and share redacted measurements in the rollout issue. If a confirmed canary workload is stalled, stop it from its owning terminal or service and repeat the independent probes. With evidence saved, use the local console to restart T3 or perform a controlled reboot if necessary. Record which action restored each route and compare the effective limits before resuming load. Leave the canary pending if the host cannot be reached or any gate remains unverified. ### Exact shared tool versions (generated from mise.toml) | Tool | Version | Installation | | --- | --- | --- | | `gh` | 2.103.3 | Base toolchain | | `shellcheck` | 0.11.0 | Base toolchain | | `actionlint` | 1.7.12 | Base toolchain | | `opentofu` | 1.13.0 | Base toolchain | | `bun` | 1.4.4 | Base toolchain | | `node` | 26.13.0 | Base toolchain | | `atlas` | 1.3.0 | On demand (linux, macos) | | `azure-cli` | 2.91.0 | On demand | | `restic` | 0.19.1 | On demand (linux, macos) | | `pnpm` | 12.16.1 | Base toolchain | | `npm:@yarnpkg/cli-dist` | 4.18.1 | Base toolchain | | `deno` | 2.9.8 | Base toolchain | | `python` | 3.15.2 | Base toolchain | | `uv` | 0.13.6 | Base toolchain | | `go` | 1.27.3 | Base toolchain | | `jq` | 1.8.2 | Base toolchain | | `yq` | 4.54.1 | Base toolchain | | `ripgrep` | 15.2.0 | Base toolchain | | `fd` | 10.5.0 | Base toolchain | | `fzf` | 0.74.5 | Base toolchain | | `bat` | 0.26.1 | Base toolchain | | `delta` | 0.18.2 | Base toolchain | | `git-lfs` | 3.8.1 | Base toolchain | | `docker-cli` | 29.9.2 | Base toolchain | | `npm:vercel` | 65.8.0 | Base toolchain | | `npm:wrangler` | 4.156.0 | Base toolchain | | `railway` | 5.71.0 | Base toolchain | | `vault` | 2.2.1 | Base toolchain | | `aws` | 2.39.2 | Base toolchain (linux, macos) | | `rust` | 1.99.1 | Base toolchain | | `cmake` | 4.4.5 | Base toolchain | | `ninja` | 1.13.2 | Base toolchain | | `just` | 1.59.0 | Base toolchain | | `gitleaks` | 8.30.1 | Base toolchain | | `shfmt` | 3.14.1 | Base toolchain | | `sops` | 3.13.3 | Base toolchain | | `age` | 1.3.2 | Base toolchain | | `kubectl` | 1.37.2 | Base toolchain | | `helm` | 4.3.1 | Base toolchain | | `xh` | 0.26.3 | Base toolchain | | `usql` | 0.21.6 | Base toolchain | | `java` | temurin-25.0.5+8.0.LTS | On demand | | `dotnet` | 10.0.403 | On demand | | `gcloud` | 591.0.0 | On demand | | `npm:@devcontainers/cli` | 0.90.0 | Base toolchain | | `npm:@modelcontextprotocol/inspector` | 2.13.0 | On demand | | `aws-cdk` | 2.1146.1 | On demand | | `aws-sam` | 1.171.0 | On demand (linux, macos) | ### The `personal` CLI `bun run personal` runs from the checkout. Commands are flat and prefixed by domain: `infra-*` commands are thin clients of cloud infrastructure (for example `infra-vault run` reads cloud Vault; their contracts are in https://www.chrisvouga.dev/llms-cloud.txt), and `workstation` configures this machine. `bun run personal commands --json` is the agent catalog. See [`packages/personal-cli/README.md`](https://github.com/crvouga/personal/blob/main/packages/personal-cli/README.md). --- ## Developer fleet and private AI proxy (homelab) The fleet (one macOS manager, stateless Ubuntu workers), T3 provider instances, Beszel monitoring and the private CLIProxyAPI service are managed by [homelab](https://github.com/crvouga/homelab); none of that code lives here. This repository holds only this fleet's configuration, [`fleet.json`](https://github.com/crvouga/personal/blob/main/fleet.json), and the homelab commit it runs, [`fleet.revision`](https://github.com/crvouga/personal/blob/main/fleet.revision). From the checkout: ```sh bun run fleet:preview # homelab converge --dry-run: what a sync would change bun run fleet:sync # homelab converge: the manager, then every worker bun run fleet:health # read-only: check --workers, t3 and, on the manager, proxy status bun run fleet:repair # homelab repair: a plan; --apply --yes executes it bun run fleet # any other homelab command, for example t3-reconcile --dry-run bun run fleet:commands # the command catalog and agent contract bun run cliproxy help # homelab proxy help ``` The same commands are T3 project actions (`bash scripts/dev/project-action.sh fleet-preview | fleet-sync | fleet-status | fleet-health | fleet-repair | fleet-t3-status | infra-cliproxy`). `fleet-sync` runs `converge` on the manager; started on a worker it hands off to the manager over SSH. `converge`, `converge-local`, `t3-reconcile` and `t3-remove` apply when invoked: only `--dry-run` previews. `repair` previews until `--apply --yes`. `converge --dry-run` does not publish the global mise config. Never edit homelab, a checkout it owns or a file it manages on a machine. A defect or a missing feature is an issue at https://github.com/crvouga/homelab/issues, without credentials, hostnames, accounts, domains or `fleet.json` contents. This repository always runs the latest homelab. `fleet.revision` is the head of homelab's default branch, and `@crvouga/homelab` is a git dependency of that same commit until the package is on npm, then the npm `latest` tag. The homelab latest workflow moves the pins hourly and auto-merges; `bun run fleet:latest` does it locally. Never pin an older homelab. `fleet.json` `state.prefix` stays `dev-fleet`: it is the live bucket key. Change fleet behaviour in homelab; the pins pick it up. Change machines, endpoints or secret locations in `fleet.json`. The proxy runs only on the fleet manager; it is not a hosted app and is never deployed to Railway. The cloud pieces it uses (its Cloudflare tunnel hostname, its Vault keys and the encrypted R2 backup of its provider state) are OpenTofu-owned and out of scope here: the fleet reads them and never creates or changes them. --- ## Turborepo caching (local only) Turborepo caches locally only; there is no remote cache. The root `turbo.json` sets `remoteCache.enabled` to `false`. Use `TURBO_CACHE=local:rw` and leave `TURBO_API`, `TURBO_TOKEN` and `TURBO_TEAM` unset. GitHub Actions persists `.turbo` through `actions/cache`. --- ## Disposable databases and mock services for tests - Unit and repository tests use an isolated, disposable PostgreSQL (or other database) container started by the project's own scripts on the developer machine or CI runner. Containers come from the container engine in machine setup above. Throw them away after the run. - A disposable test database is never the cloud `dev` database, and its connection string is never stored in Vault. Do not point tests at the cloud `DATABASE_URL`; that is governed by the cloud guide. - Loopback mock identity stacks (for example `AUTH_DEV_MODE=local` / `dev:fixtures` in `packages/auth-relay`) are local test fixtures, not the auth relay. Real sign-in uses the cloud relay. --- ## Maintaining this file (agents working inside `crvouga/personal`) `llms-local.txt` is generated — never edit it by hand. Prose lives in [`scripts/llms-local.template.md`](https://github.com/crvouga/personal/blob/main/scripts/llms-local.template.md); the embedded runbooks come from [`scripts/dev/README.md`](https://github.com/crvouga/personal/blob/main/scripts/dev/README.md) and [`mise.toml`](https://github.com/crvouga/personal/blob/main/mise.toml) via [`scripts/llms-txt.ts`](https://github.com/crvouga/personal/blob/main/scripts/llms-txt.ts). Run `bun run llms:sync` after changing any of them; `bun run check:llms` fails CI on drift, on a dangling reference, or when cloud-only content leaks into this guide (see `BOUNDARY` in the generator).