One paste-and-go prompt that installs pi, syncs the canonical cskwork/pi-setup-public repository, and restores its settings, agents, skills, and model profiles. It also links the same AGENTS.md operating contract into every coding agent on the machine, and uses GLM-5.3-Flash's native multimodal input without a separate vision add-on.pi를 기본 코딩 에이전트로 설치하고, cskwork/pi-setup-public을 정본으로 동기화해 설정·에이전트·스킬·모델 프로파일을 복원하며, 운영 지침 AGENTS.md를 모든 에이전트에 연결하는 복사-붙여넣기 프롬프트. 기본 모델 GLM-5.3-Flash는 텍스트와 이미지를 직접 입력받는다.
Restore pi on a new machine or resync an existing installation from the canonical cskwork/pi-setup-public repository.새 머신에서 pi 환경을 복원하거나, 현재 설정을 cskwork/pi-setup-public 정본과 다시 동기화할 때.
Author작성자cskwork
In one line
pi is the default harness. This prompt checks Node.js and pi, synchronizes the canonical
cskwork/pi-setup-public repository into ~/pi-setup-public, and runs its
installer to restore the complete environment.
What it does
Checks Node.js 22+ and pi, installing only what is missing.
Synchronizes ~/pi-setup-public with git pull --ff-only without discarding local work.
Confirms that glm-5.3-flash declares both text and image input.
Runs the repository installer to connect settings, agents, skills, and model profiles under ~/.pi/agent/.
Verifies authentication, model discovery, packages, a text round trip, and native image input when an image is available.
Gotchas
Local changes are never discarded. The prompt forbids reset --hard, git clean, and rm -rf.
API keys never go into chat. Missing authentication remains an explicit user action through pi auth.
On Windows, the agent must follow the repository’s documented path rather than inventing a PowerShell translation of a bash script.
Use the Copy prompt button on the catalog page and paste the payload into any coding agent that is already running.
Copy the full prompt
Copies the block below verbatim — no dragging needed.
Set up or refresh my default coding-agent environment from https://github.com/cskwork/pi-setup-public.
The default harness is pi. The default Z.ai model is GLM-5.3-Flash, which accepts text and images natively.
Work autonomously and make the process idempotent. Preserve user-owned files and settings unless the
pi-setup installer explicitly owns them. Never print credentials. Report real verification output.
1. Detect the operating system and shell.
- Supported: macOS, Linux, and Windows.
- On Windows, prefer PowerShell for bootstrap commands. pi itself uses Git Bash internally.
2. Ensure Node.js 22+ and npm are available.
- First run `node -v` and `npm -v`.
- If Node is missing or older than 22, use the platform package manager when available.
- If no safe package manager is available, stop and tell me to install Node 22 from https://nodejs.org.
3. Ensure pi is installed.
- Check with `pi --version`.
- If missing, run:
`npm install -g --ignore-scripts @earendil-works/pi-coding-agent`
- Re-run `pi --version`. If the command is still missing, report the npm global prefix and ask me to
open a new terminal. Do not patch PATH silently.
4. Clone or update pi-setup at `~/pi-setup-public`.
- Canonical remote: `https://github.com/cskwork/pi-setup-public.git`.
- If the directory is absent, clone it.
- If it is a clean clone of that remote, run `git pull --ff-only`.
- If it has local changes, do not discard them. Report the diff summary and continue with the local tree.
- If the path exists but is not that repository, move it to a timestamped backup path before cloning.
- Never use `git reset --hard`, `git clean`, or `rm -rf`.
5. Validate the checked-out setup before installing.
- `models.json` must declare model id `glm-5.3-flash` with input types `text` and `image`.
- The configured default model must be `glm-5.3-flash` on provider `zai`.
- If any check fails, stop installation and report that pi-setup is stale. Do not invent a local workaround.
6. Run the repository installer.
- macOS/Linux/Git Bash: `~/pi-setup-public/install.sh`.
- Windows PowerShell: run the documented Windows path from the repository README; do not translate the
shell script by guessing.
- The installer backs up replaced files and links or copies `~/.pi/agent` configuration from the repo.
7. Share the operating instructions with every coding agent on this machine.
- `~/pi-setup-public/AGENTS.md` is the operating contract: orient, options, delegate, plan, execute,
verify, report. Plan confirmation is the last human gate; the agent runs the rest on its own and
stops only for data loss, public APIs, security, or migrations.
- The installer already links it into `~/.pi/agent/AGENTS.md`. Link the same file into each other agent
you use, and skip any directory whose agent is not installed:
`ln -sfn ~/pi-setup-public/AGENTS.md ~/.claude/CLAUDE.md`
`ln -sfn ~/pi-setup-public/AGENTS.md ~/.codex/AGENTS.md`
`ln -sfn ~/pi-setup-public/AGENTS.md ~/.gemini/GEMINI.md`
`ln -sfn ~/pi-setup-public/AGENTS.md ~/.config/opencode/AGENTS.md`
- If a target is an existing regular file rather than a symlink, move it to a timestamped backup first
and report the path. Never overwrite my own instructions in place.
- On Windows, symlinks need Developer Mode or an admin terminal. Copy the file instead and tell me the
copy will drift.
8. Check authentication without exposing a key.
- Run `pi auth check --provider zai`.
- If it is not ready, tell me to run `pi auth`, log in to Z.ai, restart pi, and rerun this prompt.
- Never ask me to paste an API key into chat.
9. Verify the installed setup with real commands.
- `pi --version`
- `pi auth check --provider zai`
- `pi --list-models zai` and confirm `glm-5.3-flash` appears.
- Parse `~/.pi/agent/models.json` and confirm `glm-5.3-flash` has both `text` and `image` inputs.
- Resolve every operating-instruction link from step 7 and confirm each one points at
`~/pi-setup-public/AGENTS.md`.
- `pi list` and report the installed package count.
- If Z.ai auth is ready, run a text round trip:
`pi -p "reply with exactly: PI-SETUP-OK" --no-session`
- If a local image is available, run one native multimodal probe by asking GLM-5.3-Flash to read it.
Do not install an image adapter if no image is available; report that the image probe was skipped.
10. Finish with a numbered report.
- State the OS and shell.
- State the pi and Node versions.
- State whether pi-setup was cloned, updated, or already current.
- State which agents now read the operating instructions, and which were skipped because they are absent.
- State whether Z.ai authentication and text/image capability were verified or remain user actions.
- State the backup path created by the installer, if any.
- Do not commit or push either repository.
한 줄
기본 하네스(에이전트를 실행하는 틀)는 pi다. 아래 프롬프트 하나가 Node.js와 pi를 확인하고,
cskwork/pi-setup-public을 ~/pi-setup-public에 동기화한 뒤 공식
install.sh로 설정 전체를 복원한다.
models.json에서 glm-5.3-flash가 text와 image 입력을 모두 선언했는지 확인한다.
설치기를 실행해 ~/.pi/agent/ 설정·에이전트·스킬·프로파일을 연결한다.
AGENTS.md(운영 지침)를 Claude Code·Codex·Gemini·OpenCode 설정 경로에 심링크해, 어느 에이전트로
들어가도 같은 계약을 읽게 만든다.
인증, 모델 목록, 패키지, 텍스트 왕복, 가능한 경우 이미지 입력까지 실제 명령으로 검증한다.
함정
로컬 수정이 있으면 버리지 않는다. 프롬프트는 reset --hard, git clean, rm -rf를 금지한다.
운영 지침 심링크 대상이 이미 일반 파일이면 덮어쓰지 않는다. 타임스탬프 백업으로 옮긴 뒤 경로를 보고한다.
Windows는 심링크에 개발자 모드나 관리자 터미널이 필요하고, 복사본은 시간이 지나면 드리프트(원본과 어긋남)한다.
API 키는 채팅에 붙이지 않는다. 인증이 없으면 사용자가 pi auth를 직접 실행하도록 멈춘다.
Windows에서는 저장소 README가 제공하는 경로만 따른다. bash 스크립트를 PowerShell로 임의 번역하지 않는다.
아래 프롬프트를 실행 중인 코딩 에이전트 채팅창에 그대로 붙여넣으세요.
Set up or refresh my default coding-agent environment from https://github.com/cskwork/pi-setup-public.The default harness is pi. The default Z.ai model is GLM-5.3-Flash, which accepts text and images natively.Work autonomously and make the process idempotent. Preserve user-owned files and settings unless thepi-setup installer explicitly owns them. Never print credentials. Report real verification output.1. Detect the operating system and shell. - Supported: macOS, Linux, and Windows. - On Windows, prefer PowerShell for bootstrap commands. pi itself uses Git Bash internally.2. Ensure Node.js 22+ and npm are available. - First run `node -v` and `npm -v`. - If Node is missing or older than 22, use the platform package manager when available. - If no safe package manager is available, stop and tell me to install Node 22 from https://nodejs.org.3. Ensure pi is installed. - Check with `pi --version`. - If missing, run: `npm install -g --ignore-scripts @earendil-works/pi-coding-agent` - Re-run `pi --version`. If the command is still missing, report the npm global prefix and ask me to open a new terminal. Do not patch PATH silently.4. Clone or update pi-setup at `~/pi-setup-public`. - Canonical remote: `https://github.com/cskwork/pi-setup-public.git`. - If the directory is absent, clone it. - If it is a clean clone of that remote, run `git pull --ff-only`. - If it has local changes, do not discard them. Report the diff summary and continue with the local tree. - If the path exists but is not that repository, move it to a timestamped backup path before cloning. - Never use `git reset --hard`, `git clean`, or `rm -rf`.5. Validate the checked-out setup before installing. - `models.json` must declare model id `glm-5.3-flash` with input types `text` and `image`. - The configured default model must be `glm-5.3-flash` on provider `zai`. - If any check fails, stop installation and report that pi-setup is stale. Do not invent a local workaround.6. Run the repository installer. - macOS/Linux/Git Bash: `~/pi-setup-public/install.sh`. - Windows PowerShell: run the documented Windows path from the repository README; do not translate the shell script by guessing. - The installer backs up replaced files and links or copies `~/.pi/agent` configuration from the repo.7. Share the operating instructions with every coding agent on this machine. - `~/pi-setup-public/AGENTS.md` is the operating contract: orient, options, delegate, plan, execute, verify, report. Plan confirmation is the last human gate; the agent runs the rest on its own and stops only for data loss, public APIs, security, or migrations. - The installer already links it into `~/.pi/agent/AGENTS.md`. Link the same file into each other agent you use, and skip any directory whose agent is not installed: `ln -sfn ~/pi-setup-public/AGENTS.md ~/.claude/CLAUDE.md` `ln -sfn ~/pi-setup-public/AGENTS.md ~/.codex/AGENTS.md` `ln -sfn ~/pi-setup-public/AGENTS.md ~/.gemini/GEMINI.md` `ln -sfn ~/pi-setup-public/AGENTS.md ~/.config/opencode/AGENTS.md` - If a target is an existing regular file rather than a symlink, move it to a timestamped backup first and report the path. Never overwrite my own instructions in place. - On Windows, symlinks need Developer Mode or an admin terminal. Copy the file instead and tell me the copy will drift.8. Check authentication without exposing a key. - Run `pi auth check --provider zai`. - If it is not ready, tell me to run `pi auth`, log in to Z.ai, restart pi, and rerun this prompt. - Never ask me to paste an API key into chat.9. Verify the installed setup with real commands. - `pi --version` - `pi auth check --provider zai` - `pi --list-models zai` and confirm `glm-5.3-flash` appears. - Parse `~/.pi/agent/models.json` and confirm `glm-5.3-flash` has both `text` and `image` inputs. - Resolve every operating-instruction link from step 7 and confirm each one points at `~/pi-setup-public/AGENTS.md`. - `pi list` and report the installed package count. - If Z.ai auth is ready, run a text round trip: `pi -p "reply with exactly: PI-SETUP-OK" --no-session` - If a local image is available, run one native multimodal probe by asking GLM-5.3-Flash to read it. Do not install an image adapter if no image is available; report that the image probe was skipped.10. Finish with a numbered report. - State the OS and shell. - State the pi and Node versions. - State whether pi-setup was cloned, updated, or already current. - State which agents now read the operating instructions, and which were skipped because they are absent. - State whether Z.ai authentication and text/image capability were verified or remain user actions. - State the backup path created by the installer, if any. - Do not commit or push either repository.