improvement(pi): prompting to ensure harness knows push is deterministic#5180
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview
Reviewed by Cursor Bugbot for commit 83d101b. Configure here. |
Greptile SummaryThis PR adds mode-specific operating instructions (
Confidence Score: 5/5Safe to merge — changes are entirely additive prompt strings with no logic alterations. Both guidance constants are append-only strings injected at the top of an existing prompt builder. The No files require special attention. Important Files Changed
Sequence Diagram%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
participant Sim as Sim Harness
participant Pi as Pi Agent
participant FS as File System
participant GH as GitHub
Sim->>Pi: buildPiPrompt(guidance + skills + memory + task)
Note over Pi: Reads "# Operating instructions":<br/>do NOT git commit/push/open PR
Pi->>FS: read/write/edit file changes only
Pi-->>Sim: run complete (working tree dirty)
Sim->>GH: git commit + push + open PR
GH-->>Sim: PR URL
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
participant Sim as Sim Harness
participant Pi as Pi Agent
participant FS as File System
participant GH as GitHub
Sim->>Pi: buildPiPrompt(guidance + skills + memory + task)
Note over Pi: Reads "# Operating instructions":<br/>do NOT git commit/push/open PR
Pi->>FS: read/write/edit file changes only
Pi-->>Sim: run complete (working tree dirty)
Sim->>GH: git commit + push + open PR
GH-->>Sim: PR URL
Reviews (1): Last reviewed commit: "improvement(pi): prompting to ensure har..." | Re-trigger Greptile |
Summary
Prompting improvement to ensure Pi agent knows that git push is done by our deterministic sandbox runner.
Type of Change
Testing
Tested manuallu
Checklist