Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ jobs:
- name: Check gs launches what gs sync updates
run: bash tests/gs_test.sh

- name: Check Pi model profiles sync
run: python3 tests/sync_pi_model_profiles_test.py

- name: Check Nix Home Manager preflight contracts
run: bash scripts/test-nix-preflight.sh

Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ find ~ -maxdepth 4 -name '*.bak_[0-9]*' -print
Si un destino es un directorio real (no symlink), el instalador aborta antes de
tocar nada: movelo o borralo y volvé a correr `install.sh`.

## Routing de modelos de Pi (gentle-pi profiles)

`pi/gentle-ai/profiles.json` versiona los profiles de modelos de gentle-pi (`/gentle:profiles`): qué modelo usa el orquestador y cada subagente. `./install.sh` corre `scripts/sync-pi-model-profiles.py`, que:

- mezcla esos profiles en `~/.pi/gentle-ai/profiles.json` y `~/.gentle-shell/gentle-ai/profiles.json`. Los profiles del repo reemplazan a los locales con el mismo nombre; los profiles que sólo existen en local se conservan, igual que `current`;
- materializa el profile activo en `agent/settings.json` (orquestador), `agent/subagents.json` y el frontmatter de `agent/agents/*.md`.

Cada archivo que cambia queda con backup `*.bak-profiles-<fecha>`. Correrlo dos veces no cambia nada. Para editar el routing, modificá el JSON del repo y corré `python3 scripts/sync-pi-model-profiles.py` (`--dry-run` muestra qué cambiaría).

## Perfiles visuales opt-in

`./install.sh` instala estos assets mediante symlinks individuales. No cambia el theme activo de Pi, Herdr o Ghostty; tampoco modifica Starship.
Expand Down
8 changes: 7 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,14 @@ if command -v python3 &>/dev/null; then
[[ "$DRY_RUN" == true ]] && pi_appearance_args+=(--dry-run)
python3 -I "$DOTFILES/scripts/pi_appearance.py" "${pi_appearance_args[@]}" \
|| echo " ! Pi appearance not merged; fix ~/.pi/agent/settings.json and rerun"
# gentle-pi model routing: merge pi/gentle-ai/profiles.json into ~/.pi and
# ~/.gentle-shell and materialize the active profile.
pi_profiles_args=()
[[ "$DRY_RUN" == true ]] && pi_profiles_args+=(--dry-run)
python3 -I "$DOTFILES/scripts/sync-pi-model-profiles.py" "${pi_profiles_args[@]}" \
|| echo " ! Pi model profiles not synced; fix the gentle-ai profile files and rerun"
else
echo " ! python3 unavailable; skipped Pi appearance merge"
echo " ! python3 unavailable; skipped Pi appearance merge and model profiles"
fi
run_or_plan "chmod +x $DOTFILES/claude/statusline.sh" chmod +x "$DOTFILES/claude/statusline.sh"
run_or_plan "chmod +x agent-state CLI" chmod +x "$DOTFILES/zsh/scripts/agent-state.sh"
Expand Down
Loading
Loading