These rules apply for the full session.
- Define success criteria before coding; if unclear, stop and clarify.
- For non-trivial work, plan verification up front with the
self-testskill. - Do not create or switch to new branches to start work unless the user explicitly asks; respect the current branch or worktree as intentional.
- Commit in small focused checkpoints; don’t batch unrelated changes.
- Run
simplifybefore closing non-trivial implementation work.
- This repo is building a Codex-style desktop app for
pi; preserve that product direction. - Desktop work is not done until it is verified on the real Electron surface, not only by unit tests.
- Transcript/timeline behavior, session correctness, and Codex-style UX are product features, not polish.
- Prefer clean reimplementation over patching around local complexity.
- Never delete user session history, cached transcripts, screenshots, or temp artifacts without approval.
- Treat files you didn’t edit as read-only when multiple agents may be working.
- Ask before destructive commands or history rewrites.
- Prefer path-scoped guidance in nested
AGENTS.mdfiles over growing this file. - Keep the desktop renderer/main/preload boundary tight; avoid broad Node exposure to the renderer.
- Keep
pi-sdk-driverthin overpi-mono; don’t fork or reimplementpiruntime behavior unless necessary.
- Root
AGENTS.mdis the repo instruction source of truth. - Root
CLAUDE.mdshould remain a symlink toAGENTS.md.