Skip to content

agents-infra 2.3.0

Choose a tag to compare

@xhqing xhqing released this 16 Nov 13:00
· 25 commits to main since this release
1ba4e43

apps/ stops being a symlink target. The config file in your home directory is now the source of truth; the copy in this repository is a mirror.

Why: the previous setup symlinked ~/.config/{ghostty,cmux} into the repo, so there was exactly one copy. That holds until an app writes atomically — writing a temp file and renaming it over the target — which silently replaces the symlink with a regular file. From that moment the repo tracks nothing and git status still looks clean. A plain live file cannot fail that way.

What changed:

  • install.sh reversed: now mirror → system (one-shot deploy with cp, no symlinks; a leftover symlink is replaced by a real file; a differing file is backed up as .bak.<timestamp> first). Still idempotent.
  • publish.sh (new): system → mirror — collects the live files, refreshes the UserDefaults snapshot, runs the secret gate.
  • scripts/check-secrets.py (new): publishing aborts on any non-empty password / token / secret / apiKey field (including cmux.json's socketPassword); also runs gitleaks when available.
  • check.sh: compares both sides — a missing file or a leftover symlink fails, "changed on disk but not published" is reported.
  • export-defaults.sh removed; its job is part of publish.sh.
  • Docs rewritten to the mirror model: mappings.conf, both apps/README files, the ghostty/ and cmux/ directory notes, the managed-path comments in the two config files, root README and AGENTS.md.
  • Version 2.2.0 → 2.3.0.

Regression risk: none. The live configs did not change (the three files on the authoring machine went from symlinks to real files with only comment-level differences); the pi/agent/ mirror pipeline is untouched; cmux.json keeps mode 600 — now applied to the live file by install.sh.