/os-tk-sync
Purpose
Apply workflow config changes (models + prompt skill injection) to the installed workflow assets.
Specifically:
- •Updates
.pi/prompts/os-tk-*.mdfrontmatter (model,thinking,skill,restore) so pi-prompt-template-model can route commands. - •Updates
.pi/agents/os-tk-*.mdfrontmatter (model) so pi-async-subagents uses the configured models for subagents.
Resolve skill dir
bash
SKILL_DIR=".pi/skills/os-tk-sync" if [[ ! -d "$SKILL_DIR" ]]; then SKILL_DIR="pi/skills/os-tk-sync"; fi
Run
bash
python3 "$SKILL_DIR/scripts/apply-config.py"
Important: session reload behavior
- •Subagents (pi-async-subagents): agents are discovered at tool call time, so updated
.pi/agents/*.mdtake effect immediately for futuresubagent(...)calls. - •Prompt model routing (pi-prompt-template-model): prompts are loaded on
session_start, so updated.pi/prompts/*.mdtypically require starting a new pi session (or restarting pi) to take effect. This should be treated as the default expectation.
Output
Print a concise summary of what was updated and whether a restart/new session is recommended.