pi-rebuild
Rebuild, reinstall and restart the pi binary from source. Use after making changes to pi-go code.
- License 许可
- MIT
- 所属仓库
- dimetron/pi-go
- 最近更新
- 2026-11-15
- Stars
- ★ 224
- Forks
- 34
01 前言 Front Matter
- name
- pi-rebuild
- description
- Rebuild, reinstall and restart the pi binary from source. Use after making changes to pi-go code.
02 资源文件 8
- 参考文档references/configuration.md4.3 KB
- 参考文档references/usage-patterns.md6.9 KB
- 脚本scripts/.coverage52.0 KB
- 脚本scripts/README.md3.7 KB
- 脚本scripts/repomix_batch.py13.0 KB
- 脚本scripts/repos.example.json252 B
- 脚本scripts/requirements.txt356 B
- 脚本scripts/tests/test_repomix_batch.py18.5 KB
03 SKILL.md 正文
Pi Rebuild
Rebuild and reinstall the pi binary from source, then restart the process.
Steps
-
Run linters from the project root:
golangci-lint run ./... -
If linters pass, build and install:
go build ./cmd/pi && go install ./cmd/pi/ -
If build succeeds, call the
restarttool to relaunch pi with the updated binary. -
If linters or build fail, show the errors so the user can fix them. Do not restart on failure.
Examples
/pi-rebuild— Rebuild and restart pi after code changes
Guidelines
- Always build before installing to catch compile errors early
- Only call
restartafter a successful build - Show full build output on failure so the user can diagnose issues
04 同仓库更多 Skills
verify-session-flow
Formally verify the interactive session flow before or after changing it. Use when editing internal/tui/tui.go's handleKey, handleInterruptKey, handleInputSubmit, ctrlCCount or quitting, internal/tui/agent_loop.go's enqueuePrompt, submit, steerPrompt, cancelAgent or handleAgentDone, or the deferred-init splash — or when a user reports that Ctrl+C quit on the first press, that Esc did not stop a turn or a goal loop, that a queued prompt was lost when they canceled, or that the TUI hung on a spinner nothing could clear.
verify-run-pipeline
Formally verify the /run phase machine before or after changing it. Use when editing internal/tui/run.go's phase transitions (handleRunAgentDone, runGates result handling, verifyRunComplete, retryRun, reportGateHang, merge), internal/sop/verdict.go's Passed, or the checklist refresh — or when a run merged work it should not have, retried a hung gate, lost a cycle at the retry budget, or merged on a stale PASS.
verify-history-rewrite
Formally verify the session-history rewrite path before or after changing it. Use when editing internal/session/autocompact.go, internal/session/compaction*.go, internal/session/store.go's Compact/ClearEvents/rewriteEvents, internal/agent/agent.go's Run/RunStreaming/runPreTurn, or internal/tui/commands.go's clearConversation/clearSessionContext and the context gauge — or when a turn is canceled mid-flight, a tool call and its result get separated, a session's history disappears while the agent is still working, or the model is sent a tool result whose call was compacted away.
verify-goal-loop
Formally verify the /goal automatic loop before or after changing it. Use when editing internal/tui/goal.go, internal/tui/agent_loop.go's handleAgentDone/cancelAgent/steerPrompt, or internal/tools/goal.go's GoalController — or when a goal loop will not stop, stops one cycle early, closes a goal that is not met, or restarts a goal you finished.
verify-agent-lifecycle
Formally verify the subagent lifecycle before or after changing it. Use when editing internal/subagent/orchestrator.go's Spawn, trackAgent, forwardAgentEvents, terminalStatus, Cancel, ShutdownWithTimeout or evictCompletedAgentsLocked, or internal/subagent/pool.go — or when a canceled agent is reported as failed, an agent vanishes from the list with no verdict, the orchestrator panics on a pool release, or an agent can be canceled twice.
test-new-skill
暂无简介