Dorkfiles repo.
Run this file's commands from the dotfiles root, not a nested project directory.
Preserve unrelated dirty work.
Check git status --short before edits.
Prefer repo paths (pi/agent/...) over $HOME paths.
Use mise tasks; host bootstrap assumes Git + mise, then mise supplies Java.
Root mise.toml tools are dorkfiles bootstrap deps only; other apps come from system/package manager.
Root mise task shell is scripts/mise_shell.java, not Nushell/Bash.
mise run ci also needs host Podman; its Fedora container installs Git/mise, then mise supplies Java.
Never print decrypted secrets.
Do not delete noisy research/cache/untracked files unless explicitly asked.
Secrets
.secrets is plaintext.
It lists repo-relative paths to encrypt.
Encryption comes from local Git filter dotfiles-aes via tracked .gitattributes.
bootstripper generates its managed block from .secrets and removes the obsolete block from .git/info/attributes.
For non-interactive crypto bootstrap, env is DOTFILES_AES_PASSPHRASE; do not ask for or expose it unless user explicitly initiates setup.
Important secret paths include ssh/*.key, gh/hosts.yml, pi/agent/auth.json, nushell/secrets.nu, app private settings.
Symlink manifests
Files like desktop.symlinks, fedora.symlinks, termux.symlinks, NB-00718.symlinks are source/target pairs:
repo/path
~/target/path
Blank lines separate pairs. Keep pairs ordered and complete. Hostname chooses <host>.symlinks.
Managed symlinks must never point outside HOME; no /usr, /etc, or system target links. Treat outside-HOME symlinks as errors; do not relink/delete them.
Commands
Safe checks:
mise run check
mise run secrets-scan
Heavy integration:
mise run ci
Never run privileged/root/elevated commands.
Give the user the shortest copyable one-line command in their preferred shell.
HOME/system mutating; only run after explicit user request:
mise run link
mise run clean
link validates manifests, converges crypto state, restores unchanged ciphertext, installs or repairs Git hooks, and creates symlinks; it never executes Gitleaks or fixes unrelated permissions.
Crypto convergence is idempotent: a ready plaintext worktree does not rewrite secrets, keys, attributes, or Git config, and does not run routine AES self-tests.
Commits and pushes require gitleaks on Git's PATH; missing Gitleaks blocks the Git operation, not linking.
Git hooks validate only and never bootstrap crypto.
mise run setup-crypto exposes the same crypto convergence independently.
Restoration refuses staged changes, deletions, symlinks, changed ciphertext, or mixed ciphertext plus changed plaintext before writing any tracked secret.
# DotfilesDorkfiles repo.
Run this file's commands from the dotfiles root, not a nested project directory.
Preserve unrelated dirty work.
Check `git status --short` before edits.
Prefer repo paths (`pi/agent/...`) over `$HOME` paths.
Use `mise` tasks; host bootstrap assumes Git + mise, then mise supplies Java.
Root `mise.toml` tools are dorkfiles bootstrap deps only; other apps come from system/package manager.
Root mise task shell is `scripts/mise_shell.java`, not Nushell/Bash.
`mise run ci` also needs host Podman; its Fedora container installs Git/mise, then mise supplies Java.
Never print decrypted secrets.
Do not delete noisy research/cache/untracked files unless explicitly asked.
## Secrets`.secrets` is plaintext.
It lists repo-relative paths to encrypt.
Encryption comes from local Git filter `dotfiles-aes` via tracked `.gitattributes`.
`bootstripper` generates its managed block from `.secrets` and removes the obsolete block from `.git/info/attributes`.
For non-interactive crypto bootstrap, env is `DOTFILES_AES_PASSPHRASE`; do not ask for or expose it unless user explicitly initiates setup.
For a new secret:
```sh$EDITOR .secrets
java bootstripper.java check
git add .secrets .gitattributes
git check-attr -a -- path/to/secret
```
Required attrs:
```textfilter: dotfiles-aes
text: unset
diff: unset
```
A `.secrets` path must not be matched by any ignore rule; `check` fails, because `git add -A` would silently skip it.
Do not `git add -A` new secret-looking files before this.
For private keys, verify staged content is not plaintext:
```shgit cat-file -p :path/to/key | LC_ALL=C grep -q 'BEGIN .*PRIVATE KEY'&&exit 1
```
Important secret paths include `ssh/*.key`, `gh/hosts.yml`, `pi/agent/auth.json`, `nushell/secrets.nu`, app private settings.
## Symlink manifestsFiles like `desktop.symlinks`, `fedora.symlinks`, `termux.symlinks`, `NB-00718.symlinks` are source/target pairs:
```textrepo/path
~/target/path
```
Blank lines separate pairs. Keep pairs ordered and complete. Hostname chooses `<host>.symlinks`.
Managed symlinks must never point outside HOME; no `/usr`, `/etc`, or system target links. Treat outside-HOME symlinks as errors; do not relink/delete them.
## CommandsSafe checks:
```shmise run check
mise run secrets-scan
```
Heavy integration:
```shmise run ci
```
Never run privileged/root/elevated commands.
Give the user the shortest copyable one-line command in their preferred shell.
HOME/system mutating; only run after explicit user request:
```shmise run link
mise run clean
```
`link` validates manifests, converges crypto state, restores unchanged ciphertext, installs or repairs Git hooks, and creates symlinks; it never executes Gitleaks or fixes unrelated permissions.
Crypto convergence is idempotent: a ready plaintext worktree does not rewrite secrets, keys, attributes, or Git config, and does not run routine AES self-tests.
Commits and pushes require `gitleaks` on Git's `PATH`; missing Gitleaks blocks the Git operation, not linking.
Git hooks validate only and never bootstrap crypto.
`mise run setup-crypto` exposes the same crypto convergence independently.
Restoration refuses staged changes, deletions, symlinks, changed ciphertext, or mixed ciphertext plus changed plaintext before writing any tracked secret.
Crypto/hooks:
```shjava bootstripper.java check
java bootstripper.java pre-commit
java bootstripper.java pre-push
java bootstripper.java install-hooks
java bootstripper.java init-crypto
java bootstripper.java setup-crypto
```
## Global Mise config- User config source: `mise-config/` links to `~/.config/mise`.
## Global Pi config- Settings: `pi/agent/settings.json`
- Models: `pi/agent/models.json`
- Extension sources: `pi-ext/extensions/`, loaded through the package configured in `pi/agent/settings.json`.
- Modes: `pi/agent/modes/`
- Personal skills: `pi/agent/skills/<name>/SKILL.md` or `pi/agent/skills/<name>.md`
- `pi/agent/auth.json` is secret; avoid reading/editing unless explicitly asked.
## Subprojects- Neovim: read `neovim/AGENTS.md` before changes; tests via `cd neovim && just test`.
- Nugu: load `nugu` skill before palette/theme work.
- Pi-specific changes: read Pi docs before editing extensions/settings/skills.