Datasets:
Commit ·
5d5c5bd
0
Parent(s):
Duplicate from badlogicgames/pi-diff-review
Browse filesCo-authored-by: Mario Zechner <badlogicgames@users.noreply.huggingface.co>
- .gitattributes +60 -0
- 2026-03-29T17-39-42-625Z_b32c5970-fd4d-43bc-9811-dbe6f94ee427.jsonl +0 -0
- 2026-04-05T23-50-03-457Z_c79098cf-cf40-45cc-8c75-67faf7b90a3d.jsonl +0 -0
- 2026-04-06T00-14-41-662Z_3319d665-d224-434d-ae2b-0a8b1f989e26.jsonl +0 -0
- 2026-04-06T00-17-31-761Z_6eaaf9cc-748d-4ccc-af4a-c768943f1fd1.jsonl +0 -0
- 2026-04-06T01-23-24-023Z_bd2bd030-5c36-4b39-93a2-7a901966f4ad.jsonl +7 -0
- 2026-04-06T02-01-20-420Z_2b43958b-4ab3-4e75-9a0a-32b27ea1a011.jsonl +13 -0
- README.md +33 -0
- manifest.jsonl +6 -0
.gitattributes
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
# Audio files - uncompressed
|
| 40 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
# Audio files - compressed
|
| 44 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
# Image files - uncompressed
|
| 50 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
# Image files - compressed
|
| 55 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
# Video files - compressed
|
| 59 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
2026-03-29T17-39-42-625Z_b32c5970-fd4d-43bc-9811-dbe6f94ee427.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2026-04-05T23-50-03-457Z_c79098cf-cf40-45cc-8c75-67faf7b90a3d.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2026-04-06T00-14-41-662Z_3319d665-d224-434d-ae2b-0a8b1f989e26.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2026-04-06T00-17-31-761Z_6eaaf9cc-748d-4ccc-af4a-c768943f1fd1.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2026-04-06T01-23-24-023Z_bd2bd030-5c36-4b39-93a2-7a901966f4ad.jsonl
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"session","version":3,"id":"bd2bd030-5c36-4b39-93a2-7a901966f4ad","timestamp":"2026-04-06T01:23:24.023Z","cwd":"/Users/badlogic/workspaces/pi-diff-review"}
|
| 2 |
+
{"type":"model_change","id":"e18299a1","parentId":null,"timestamp":"2026-04-06T01:23:24.088Z","provider":"openai-codex","modelId":"gpt-5.4"}
|
| 3 |
+
{"type":"thinking_level_change","id":"e7f11b1f","parentId":"e18299a1","timestamp":"2026-04-06T01:23:24.088Z","thinkingLevel":"high"}
|
| 4 |
+
{"type":"message","id":"cb83ae7c","parentId":"e7f11b1f","timestamp":"2026-04-06T01:23:26.698Z","message":{"role":"user","content":[{"type":"text","text":"read README.md"}],"timestamp":1775438606696}}
|
| 5 |
+
{"type":"message","id":"ec437d4b","parentId":"cb83ae7c","timestamp":"2026-04-06T01:23:30.729Z","message":{"role":"assistant","content":[{"type":"thinking","thinking":"**Using the read tool**\n\nI need to comply with the user's request by using the read tool effectively. The user specifically mentioned \"read README.md,\" so it sounds like they want the contents of that file. I should probably read it and summarize or present the details. To do this, I'll use the commentary tool to read it, and I might need to reference the relative path from the current working directory. Let's get started on that!","thinkingSignature":"{\"id\":\"rs_0e2e8b4dfc1a723e0169d30b1001088191bcc54de398feedf2\",\"type\":\"reasoning\",\"encrypted_content\":\"gAAAAABp0wsSDM8pebP3mDfuZBY05NoAPLtgR_ARsO10-If8BgvYmxgT_h29rw-BN0IUvl794ssib0_mKPXjrVOE74bnRuUcD2uZn8Ds0KKwsPejt7K2CTjoRfC9purwyl1gk79YQovm19uytj_xD_Hm-NxBX9EzgjF9sSYMsn6EM2r5lDXEtf9UOx1PEmOLBZyLL2QQr1pPRX0oN3VtOncEzftaccsJ70LmiCnGFOKfmaBltQgdO8KbdfkMY6eNaOxWCdmi6NLht83-54rJ7p7F1Pd09MIEofWYK1mUFTLfwdJ8r1JQaqKyBBbJtqjSNEi2YKaTxDw7iJlnw16zy9HRey_Wdv_xHG7_vKpNnrIdP61eEuR8IpuXVwJtGIj411WqKqjw2W-bCD-tUfsr1bLPzYvMZdN6wEMFDbcbX7ngzIaHvcvQqaiIX8pGKTp4-jjvGOr4GT5X8-KGZ1N7reQzNRkfBzPQOSX-I9QW62OP-TiNg6-z2w7OubHF6z7L61WlFLiBSCvJFdNKP4PWHPobhO1YRRO24ar7kkKaSdD_QXtrSEP2alMjPaoMX8qJOegeSgtdF6O5mCw_MgOFvKwHwMJOaHOlgpR5hm-nylbdAfE7BpoVS4WhWt3p8Q4axzxNWxSzO05DBkj5BdN_x_Bmb3jOeiRHCJLdp17NKbnHrZORVxzsqPyBaVmwGEm87rNq2NowoAJr-Ca6IBHUHxRiafNAHO5WpwovR7roG4mzvH9hKANHQPWgBNUIibslDwmQl83ODrRJHEyozJb7Um_k3yhASkfo1EcT1K-h6uDYy-_WJ-FjPXVGj7gE0RzIJun4keJ24D2uENZhgdiEg5EKnHHlVD9EyEckBvFxuHggRx7nwACkFYUnnt8nlHeDHrknD0sZkVeOf0xFGmCJ_I_ZBajzKYV08dIkh6ucqKZP5Xyc5hg6bWAYYB7dnJkDYqItGYvbyhTLMBxm1P3G2BsISI8KvgorOYYVrYxS_uO4yMIeLMFyYDeBNHtky_vXFSKQw0IqO-9wJbhyQvlK-cmQupAtQ1iu6mCw_U12JQ9TKzFKAr31W_b7deOxftPV65UpxX3fZm_X78nvTDTyhijnOel60Z5CK8gqmiaKrCDXA86NpVQJ0oLrZ8dDxOXUygOKCdzKUWVn\",\"summary\":[{\"type\":\"summary_text\",\"text\":\"**Using the read tool**\\n\\nI need to comply with the user's request by using the read tool effectively. The user specifically mentioned \\\"read README.md,\\\" so it sounds like they want the contents of that file. I should probably read it and summarize or present the details. To do this, I'll use the commentary tool to read it, and I might need to reference the relative path from the current working directory. Let's get started on that!\"}]}"},{"type":"toolCall","id":"call_R6Ps0uHJF0vFlTLWBymvAZDZ|fc_0e2e8b4dfc1a723e0169d30b12b98081919702aba6c756089d","name":"read","arguments":{"path":"README.md"},"partialJson":"{\"path\":\"README.md\"}"}],"api":"openai-codex-responses","provider":"openai-codex","model":"gpt-5.4","usage":{"input":2264,"output":71,"cacheRead":0,"cacheWrite":0,"totalTokens":2335,"cost":{"input":0.00566,"output":0.001065,"cacheRead":0,"cacheWrite":0,"total":0.006725}},"stopReason":"toolUse","timestamp":1775438606700,"responseId":"resp_0e2e8b4dfc1a723e0169d30b0f0b1881918b9a00c5f78548a4"}}
|
| 6 |
+
{"type":"message","id":"fbf1a8ea","parentId":"ec437d4b","timestamp":"2026-04-06T01:23:30.749Z","message":{"role":"toolResult","toolCallId":"call_R6Ps0uHJF0vFlTLWBymvAZDZ|fc_0e2e8b4dfc1a723e0169d30b12b98081919702aba6c756089d","toolName":"read","content":[{"type":"text","text":"# pi-diff-review\n\nThis is pure slop, see: https://pi.dev/session/#d4ce533cedbd60040f2622dc3db950e2\n\nIt is my hope, that someone takes this idea and makes it gud.\n\nNative diff review window for pi, powered by [Glimpse](https://github.com/hazat/glimpse) and Monaco.\n\n```\npi install git:https://github.com/badlogic/pi-diff-review\n```\n\n## What it does\n\nAdds a `/diff-review` command to pi.\n\nThe command:\n\n1. opens a native review window\n2. lets you switch between `git diff`, `last commit`, and `all files` scopes\n3. shows a collapsible sidebar with fuzzy file search\n4. shows git status markers in the sidebar for changed files and untracked files\n5. lazy-loads file contents on demand as you switch files and scopes\n6. lets you draft comments on the original side, modified side, or whole file\n7. inserts the resulting feedback prompt into the pi editor when you submit\n\n## Requirements\n\n- macOS, Linux, or Windows\n- Node.js 20+\n- `pi` installed\n- internet access for the Tailwind and Monaco CDNs used by the review window\n\n### Windows notes\n\nGlimpse now supports Windows. To build the native host during install you need:\n\n- .NET 8 SDK\n- Microsoft Edge WebView2 Runtime\n"}],"isError":false,"timestamp":1775438610743}}
|
| 7 |
+
{"type":"message","id":"cac85283","parentId":"fbf1a8ea","timestamp":"2026-04-06T01:23:37.742Z","message":{"role":"assistant","content":[{"type":"text","text":"`README.md` contents:\n\n```md\n# pi-diff-review\n\nThis is pure slop, see: https://pi.dev/session/#d4ce533cedbd60040f2622dc3db950e2\n\nIt is my hope, that someone takes this idea and makes it gud.\n\nNative diff review window for pi, powered by [Glimpse](https://github.com/hazat/glimpse) and Monaco.\n\n```\npi install git:https://github.com/badlogic/pi-diff-review\n```\n\n## What it does\n\nAdds a `/diff-review` command to pi.\n\nThe command:\n\n1. opens a native review window\n2. lets you switch between `git diff`, `last commit`, and `all files` scopes\n3. shows a collapsible sidebar with fuzzy file search\n4. shows git status markers in the sidebar for changed files and untracked files\n5. lazy-loads file contents on demand as you switch files and scopes\n6. lets you draft comments on the original side, modified side, or whole file\n7. inserts the resulting feedback prompt into the pi editor when you submit\n\n## Requirements\n\n- macOS, Linux, or Windows\n- Node.js 20+\n- `pi` installed\n- internet access for the Tailwind and Monaco CDNs used by the review window\n\n### Windows notes\n\nGlimpse now supports Windows. To build the native host during install you need:\n\n- .NET 8 SDK\n- Microsoft Edge WebView2 Runtime\n```","textSignature":"{\"v\":1,\"id\":\"msg_0e2e8b4dfc1a723e0169d30b1415ac8191bbd7881c75e37838\",\"phase\":\"final_answer\"}"}],"api":"openai-codex-responses","provider":"openai-codex","model":"gpt-5.4","usage":{"input":472,"output":317,"cacheRead":2176,"cacheWrite":0,"totalTokens":2965,"cost":{"input":0.00118,"output":0.0047550000000000005,"cacheRead":0.000544,"cacheWrite":0,"total":0.006479000000000001}},"stopReason":"stop","timestamp":1775438610749,"responseId":"resp_0e2e8b4dfc1a723e0169d30b1328548191bd8b47502ac2200d"}}
|
2026-04-06T02-01-20-420Z_2b43958b-4ab3-4e75-9a0a-32b27ea1a011.jsonl
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"session","version":3,"id":"2b43958b-4ab3-4e75-9a0a-32b27ea1a011","timestamp":"2026-04-06T02:01:20.420Z","cwd":"/Users/badlogic/workspaces/pi-diff-review"}
|
| 2 |
+
{"type":"model_change","id":"84fb7eac","parentId":null,"timestamp":"2026-04-06T02:01:20.488Z","provider":"openai-codex","modelId":"gpt-5.4"}
|
| 3 |
+
{"type":"thinking_level_change","id":"0223b1cf","parentId":"84fb7eac","timestamp":"2026-04-06T02:01:20.488Z","thinkingLevel":"high"}
|
| 4 |
+
{"type":"message","id":"c1adb820","parentId":"0223b1cf","timestamp":"2026-04-06T02:01:28.172Z","message":{"role":"user","content":[{"type":"text","text":"what kind of ui is this project using?"}],"timestamp":1775440888170}}
|
| 5 |
+
{"type":"message","id":"61520f48","parentId":"c1adb820","timestamp":"2026-04-06T02:01:34.329Z","message":{"role":"assistant","content":[{"type":"thinking","thinking":"**Inspecting UI details**\n\nI need to figure out what kind of UI this project is using. The best approach seems to be inspecting the repository. I'll probably summarize the findings without making any modifications. It looks like using bash with `rg` could help, and I might want to check out the package manifests. Listing the relevant files will be important for a clearer understanding of the UI components. Let's get started on that!","thinkingSignature":"{\"id\":\"rs_0e8697260f912de60169d313f9348c81919817197edc53d366\",\"type\":\"reasoning\",\"encrypted_content\":\"gAAAAABp0xP-PcGUQkLxyvy6sEmjN5fXkbdMjiwFMhFOwZTrHpJrYXCgGzlF4weRSzIPPgLYagyT-zINKVw0R_RTY6d9KZbbU_d6AsvZcTG-1aIAGClwEGxta4BpUZ-OjOJfKO9CRo9pzC-_ohwny_OgIa6CaDevtGSWhRwMBxBBm-iZTo-I6BdVnLnxx9fGATICiheHIQgLt6P4k8slYjn942g4uO4FhkqXcBW22ZaMZN4da3Z5qqpxA9IIirCUyX5ob44LSFgNhvhdtv17_qqFAF2WtgSr1iqqlfbbbzLL5V093PmTEm_ziyBJ-s98UPduWmZYCQ75He3SXtux8eaJkkCGGnSSOUN709v_wtlZiPbjmXnUEUzI_7uR-CttGHB4pzeXjUZEFNgHfRwzcYZCxzH8ebxvzLtVYT41zNhbWA3GbQdUV6BUsKG9diu7f0up09WdcQrav2QZh5WaXpGEzXslz694PClndmXJAb8cmjQ57_I0t3Nb3HwnecaTpLewwquS6XSXIkOL387Zh0oQfxsQSYO1JNXgtfhExuUCYvsfjK73c_8yq20Y92K1oTNa_nNO5yt_62F5lqj1ReqS6i1k4KdQWq7WNVlTEb3RTvBsn3SIwcCD_J_va1KxGN9KtUnRTiG99zd4fU9hmwKuvSaiiuN68m5ykb2ZVvmEi0GO8dcmiGCj8glJvNxHe976JdTheEkkyKVcTCVIp7uSazhg7-6VlXyefSRyugqhXVJuDLTohYKcuiSgodXnriNLOnn9VUEQHlLYJhk210gzdIVrEYwQj3AriUUbveoRp7aOtFrjJ0pBaTS7lZWtwaR6waUROLAqdgF-3eH22xM8zf_6C9_sOGLiNa1LBHm3quu5mpwI17MmARlHfOAybLxVQnyNgpxbDzhEAtLfDTXIDqzTEkxdOiBb02D9JmsNieqYfZxUE4g7hv6RrqtJmHC7WP1CFrAXsVUsIfod18bUaRyy9lirsvSBTUFLy_lMpabrZw7eNsCjZJ86WlUEXhyeFEV8XKB766WUlP521hq38IyQ5qh50zwuxrLmQVziYIQUc5a_otNiKHAvmPlDWR4UagSFg11vDoaspZ6bn8X_6acvWscgUw==\",\"summary\":[{\"type\":\"summary_text\",\"text\":\"**Inspecting UI details**\\n\\nI need to figure out what kind of UI this project is using. The best approach seems to be inspecting the repository. I'll probably summarize the findings without making any modifications. It looks like using bash with `rg` could help, and I might want to check out the package manifests. Listing the relevant files will be important for a clearer understanding of the UI components. Let's get started on that!\"}]}"},{"type":"toolCall","id":"call_vY29xGq8cRmV7SXma7BZzURg|fc_0e8697260f912de60169d313fe2fac8191bec5a6277d934909","name":"bash","arguments":{"command":"pwd && rg -n \"react|vue|svelte|next|nuxt|tailwind|chakra|material-ui|@radix-ui|shadcn|electron|tui|blessed|ink|curses|gtk|qt|swiftui|jetpack compose|compose\" -S . --glob '!node_modules' --glob '!dist' --glob '!build'","timeout":10},"partialJson":"{\"command\":\"pwd && rg -n \\\"react|vue|svelte|next|nuxt|tailwind|chakra|material-ui|@radix-ui|shadcn|electron|tui|blessed|ink|curses|gtk|qt|swiftui|jetpack compose|compose\\\" -S . --glob '!node_modules' --glob '!dist' --glob '!build'\",\"timeout\":10}"},{"type":"toolCall","id":"call_biVKRBhU1rXAUaG1kE7X1W7I|fc_0e8697260f912de60169d313fe2fb881918f4b0616d503d81b","name":"bash","arguments":{"command":"rg --files . --glob 'package.json' --glob 'Cargo.toml' --glob 'go.mod' --glob 'pyproject.toml' --glob 'pubspec.yaml' --glob 'composer.json' --glob 'requirements.txt' --glob 'README*' --glob 'vite.config.*' --glob 'next.config.*' --glob 'tailwind.config.*' --glob 'src/**' --glob 'app/**'","timeout":10},"partialJson":"{\"command\":\"rg --files . --glob 'package.json' --glob 'Cargo.toml' --glob 'go.mod' --glob 'pyproject.toml' --glob 'pubspec.yaml' --glob 'composer.json' --glob 'requirements.txt' --glob 'README*' --glob 'vite.config.*' --glob 'next.config.*' --glob 'tailwind.config.*' --glob 'src/**' --glob 'app/**'\",\"timeout\":10}"}],"api":"openai-codex-responses","provider":"openai-codex","model":"gpt-5.4","usage":{"input":2270,"output":276,"cacheRead":0,"cacheWrite":0,"totalTokens":2546,"cost":{"input":0.005675,"output":0.0041400000000000005,"cacheRead":0,"cacheWrite":0,"total":0.009815}},"stopReason":"toolUse","timestamp":1775440888174,"responseId":"resp_0e8697260f912de60169d313f8ddc081919764dda2c0bbd008"}}
|
| 6 |
+
{"type":"message","id":"c4b16bf2","parentId":"61520f48","timestamp":"2026-04-06T02:01:34.365Z","message":{"role":"toolResult","toolCallId":"call_vY29xGq8cRmV7SXma7BZzURg|fc_0e8697260f912de60169d313fe2fac8191bec5a6277d934909","toolName":"bash","content":[{"type":"text","text":"/Users/badlogic/workspaces/pi-diff-review\n./src/index.ts:2:import { Key, matchesKey, truncateToWidth } from \"@mariozechner/pi-tui\";\n./src/index.ts:5:import { composeReviewPrompt } from \"./prompt.js\";\n./src/index.ts:69: const promise = ctx.ui.custom<WaitingEditorResult>((_tui, theme, _kb, done) => {\n./src/index.ts:261: const prompt = composeReviewPrompt(files, message);\n./tsconfig.json:4: \"module\": \"NodeNext\",\n./tsconfig.json:5: \"moduleResolution\": \"NodeNext\",\n./src/prompt.ts:37:export function composeReviewPrompt(files: ReviewFile[], payload: ReviewSubmitPayload): string {\n./web/app.js:135:function ensureActiveFileForScope() {\n./web/app.js:390: <svg class=\"h-4 w-4 shrink-0 text-[#8b949e] transition-transform ${collapsed ? \"-rotate-90\" : \"\"}\" viewBox=\"0 0 16 16\" fill=\"currentColor\">\n./web/app.js:420: <span class=\"shrink-0 text-[10px] ${reviewed ? \"text-[#3fb950]\" : errored ? \"text-red-400\" : loading ? \"text-[#58a6ff]\" : \"text-transparent\"}\">${reviewed ? \"●\" : errored ? \"!\" : loading ? \"…\" : \"●\"}</span>\n./web/app.js:423: <span class=\"flex shrink-0 items-center gap-1.5\">\n./web/app.js:453: <span class=\"shrink-0 text-[10px] ${reviewed ? \"text-[#3fb950]\" : errored ? \"text-red-400\" : loading ? \"text-[#58a6ff]\" : \"text-transparent\"}\">${reviewed ? \"●\" : errored ? \"!\" : loading ? \"…\" : \"●\"}</span>\n./web/app.js:458: <span class=\"flex shrink-0 items-center gap-1.5\">\n./web/app.js:535: ensureActiveFileForScope();\n./web/app.js:1106:ensureActiveFileForScope();\n./README.md:32:- internet access for the Tailwind and Monaco CDNs used by the review window\n./web/index.html:7:<script src=\"https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4\"></script>\n./web/index.html:8:<style type=\"text/tailwindcss\">\n./web/index.html:145: <aside id=\"sidebar\" class=\"flex min-h-0 shrink-0 flex-col border-r border-review-border bg-[#0d1117]\" style=\"width: 280px; min-width: 280px; flex-basis: 280px; overflow: hidden;\">\n./package-lock.json:428: \"integrity\": \"sha512-rWCmh8o7QY4CsUj63qopzMzkDq/yPpkrpb+CnjBEFSOg/02T/we7sSTVg4QsDiVS9uwZ8VyONhq98qt+pIh3KA==\",\n./package-lock.json:704: \"integrity\": \"sha512-WhlJNNINQB+9qtLtZJcpQdgZw3SCDCpXdUJP7cToGwHbCWCnRckGlc6Bx/OhWwIYFNAn+FIydY8SZ0QmVu3xTQ==\",\n./package-lock.json:1152: \"@mariozechner/pi-tui\": \"^0.57.1\",\n./package-lock.json:1179: \"node_modules/@mariozechner/pi-tui\": {\n./package-lock.json:1181: \"resolved\": \"https://registry.npmjs.org/@mariozechner/pi-tui/-/pi-tui-0.57.1.tgz\",\n./package-lock.json:1298: \"integrity\": \"sha512-bnly4BKB3KDTFxrUIcgCLbaeVVS8lrAkri1pEzskpmxu9MdfGQTy8b8EgcD83ywD3RPMsIulY8xJH5Awa+t9fA==\",\n./package-lock.json:1491: \"integrity\": \"sha512-/4F1zb7Z8LOu1PalTdESFHR0RbPwHd3FcaG1sI3UEIriQTWakysgJr65lc1jj6QY5ye7aFsisajotH6UhWfm/g==\",\n./package-lock.json:1533: \"integrity\": \"sha512-dqjLwZs2eBxIUG6Qtw8/YZ4DvzHGIf0DA18wrgtfP6a50UIO7e2nY0FPdcbv5tVJKqWCCU5BmGMOUwT7Puan+A==\",\n./package-lock.json:2033: \"integrity\": \"sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==\",\n./package-lock.json:2249: \"integrity\": \"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==\",\n./package-lock.json:2285: \"integrity\": \"sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==\",\n./package-lock.json:2425: \"integrity\": \"sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==\",\n./package-lock.json:2582: \"integrity\": \"sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==\",\n./package-lock.json:2736: \"integrity\": \"sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==\",\n./package-lock.json:2789: \"integrity\": \"sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==\",\n./package-lock.json:2819: \"integrity\": \"sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==\",\n./package-lock.json:2998: \"integrity\": \"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==\",\n./package-lock.json:3059: \"integrity\": \"sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==\",\n./package-lock.json:3149: \"integrity\": \"sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==\",\n./package-lock.json:3173: \"integrity\": \"sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==\",\n./package-lock.json:3377: \"integrity\": \"sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==\",\n./package-lock.json:4118: \"integrity\": \"sha512-5xoBibbmnjlcR3jdqtY2Lnx7WbrD/tHlT01TmvqZUFVc9Q1w4+j5hbnapTqbcXITMH1ovjq/W7BkqBilHiVAaA==\",\n./package-lock.json:4128: \"integrity\": \"sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==\",\n"}],"isError":false,"timestamp":1775440894365}}
|
| 7 |
+
{"type":"message","id":"100d2ea2","parentId":"c4b16bf2","timestamp":"2026-04-06T02:01:34.366Z","message":{"role":"toolResult","toolCallId":"call_biVKRBhU1rXAUaG1kE7X1W7I|fc_0e8697260f912de60169d313fe2fb881918f4b0616d503d81b","toolName":"bash","content":[{"type":"text","text":"./src/git.ts\n./src/index.ts\n./src/ui.ts\n./src/types.ts\n./src/prompt.ts\n./package.json\n./README.md\n"}],"isError":false,"timestamp":1775440894366}}
|
| 8 |
+
{"type":"message","id":"9a0e7155","parentId":"100d2ea2","timestamp":"2026-04-06T02:01:38.014Z","message":{"role":"assistant","content":[{"type":"thinking","thinking":"","thinkingSignature":"{\"id\":\"rs_0e8697260f912de60169d313ff09888191ae7698309b7f4a46\",\"type\":\"reasoning\",\"encrypted_content\":\"gAAAAABp0xQBaTrXzYqHhbiMSLW7uuA1Jij1Hgby5Et2S0M8rOLEUPCTT6_qBcSRIQquXYV8gRGHl5h-_vHrb6mReqG2xIkGJ3nPp4j5d1y-BmJqv8fdj_UM5euQ6kXdfhfVGvW42Y5khkxv-hJmOG7t5-4fOZgHF9atum6yIQ5S8LZTlDSOyO5OF6XCEruJ09Y8h0rhDNfnhOKSnup639XmICBy5AlMiM4lm5lMb2KlJIt3F6YwZpSiL51OS-M0HK8S3DJwF28PbzeMRS5aX90PY7oFI2eLA6L7Lap3VYp0BJMegpoa8_ZSGq-qOjZg0OtBFCF0Cvfa3LTqAQHmIci5OTHE_22aX-pEdudZdvRq3sAC6gV3g3gmcuTkBUjGMPKYGmWyF08F2rOn1AzMPvHujDM6ufDpwVjaSTqp0NY5Lw_Z6N8_5n2mSrTqLlNyOqDEe4n6YzJRkjKz53MoZh0PSH3KIQlDrwsWbHHrAsepiRsM7MuQjLdtAYickV68qJ4joDcd8oHjoirzrhuojuSUTw3m1EvSZd_m4Dg83c1pSTrXCTAY0FuIEQ5t4Z2LtJPvYLgw7HB3oMOIfPz0Fbu_dgQqQa91S5xK7FtVGeJ6qi3oJxk1NvkilQdNFZMXl1-hZpfeJi15jff1Sj_bN2CfThJ8Zf7fUalZrr_7oy6DiNXQXmwSvF73Wy2sSqkCgSqflvLE7HY-e-nV-Y94pegnoxMOoeLDIwk1LcCVAZX0EAQJ_HDGx69pJ1eb3ffNZfCVBNQ83R_4bZokisnNDd2ONxn9Qx2vpo_zpvJgE9fVdC-9VA2C_W889DCvHNdceKNAMEpUijGdKdNqwwa_NCiyajLqE3iCXjlCk12ppd4Wu3L8WyWgEV-ttVW8XnkxLG2OMRP9Hkv6\",\"summary\":[]}"},{"type":"toolCall","id":"call_QdrjidGZLZ937rZPxwPcY76i|fc_0e8697260f912de60169d31401dcac8191b17e479bfbec9423","name":"read","arguments":{"path":"package.json"},"partialJson":"{\"path\":\"package.json\"}"},{"type":"toolCall","id":"call_7PZJGO1iOLGe7yXl9yCL9mor|fc_0e8697260f912de60169d31401dcbc81918a9a7baa1469d864","name":"read","arguments":{"path":"README.md"},"partialJson":"{\"path\":\"README.md\"}"},{"type":"toolCall","id":"call_qon6oWuU5PLuvzjCBojjM7XA|fc_0e8697260f912de60169d31401dcc48191a7893e1678f23ae1","name":"read","arguments":{"path":"web/index.html"},"partialJson":"{\"path\":\"web/index.html\"}"},{"type":"toolCall","id":"call_6hccWrX0RzmVy8XYmVf1JUA5|fc_0e8697260f912de60169d31401dcd0819183a1ff6d4234b810","name":"read","arguments":{"path":"src/index.ts"},"partialJson":"{\"path\":\"src/index.ts\"}"}],"api":"openai-codex-responses","provider":"openai-codex","model":"gpt-5.4","usage":{"input":2390,"output":94,"cacheRead":2432,"cacheWrite":0,"totalTokens":4916,"cost":{"input":0.005975,"output":0.00141,"cacheRead":0.0006079999999999999,"cacheWrite":0,"total":0.007993}},"stopReason":"toolUse","timestamp":1775440894366,"responseId":"resp_0e8697260f912de60169d313feb0f88191aa3b1f63d18e25ba"}}
|
| 9 |
+
{"type":"message","id":"36657039","parentId":"9a0e7155","timestamp":"2026-04-06T02:01:38.025Z","message":{"role":"toolResult","toolCallId":"call_QdrjidGZLZ937rZPxwPcY76i|fc_0e8697260f912de60169d31401dcac8191b17e479bfbec9423","toolName":"read","content":[{"type":"text","text":"{\n \"name\": \"pi-diff-review\",\n \"private\": true,\n \"version\": \"0.2.0\",\n \"type\": \"module\",\n \"scripts\": {\n \"check\": \"tsgo --noEmit\",\n \"prepare\": \"husky\"\n },\n \"pi\": {\n \"extensions\": [\n \"./src/index.ts\"\n ]\n },\n \"dependencies\": {\n \"glimpseui\": \"^0.6.0\"\n },\n \"peerDependencies\": {\n \"@mariozechner/pi-coding-agent\": \"*\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^24.5.2\",\n \"@typescript/native-preview\": \"^7.0.0-dev.20260313.1\",\n \"husky\": \"^9.1.7\",\n \"typescript\": \"^5.9.2\"\n }\n}\n"}],"isError":false,"timestamp":1775440898019}}
|
| 10 |
+
{"type":"message","id":"1db61705","parentId":"36657039","timestamp":"2026-04-06T02:01:38.028Z","message":{"role":"toolResult","toolCallId":"call_7PZJGO1iOLGe7yXl9yCL9mor|fc_0e8697260f912de60169d31401dcbc81918a9a7baa1469d864","toolName":"read","content":[{"type":"text","text":"# pi-diff-review\n\nThis is pure slop, see: https://pi.dev/session/#d4ce533cedbd60040f2622dc3db950e2\n\nIt is my hope, that someone takes this idea and makes it gud.\n\nNative diff review window for pi, powered by [Glimpse](https://github.com/hazat/glimpse) and Monaco.\n\n```\npi install git:https://github.com/badlogic/pi-diff-review\n```\n\n## What it does\n\nAdds a `/diff-review` command to pi.\n\nThe command:\n\n1. opens a native review window\n2. lets you switch between `git diff`, `last commit`, and `all files` scopes\n3. shows a collapsible sidebar with fuzzy file search\n4. shows git status markers in the sidebar for changed files and untracked files\n5. lazy-loads file contents on demand as you switch files and scopes\n6. lets you draft comments on the original side, modified side, or whole file\n7. inserts the resulting feedback prompt into the pi editor when you submit\n\n## Requirements\n\n- macOS, Linux, or Windows\n- Node.js 20+\n- `pi` installed\n- internet access for the Tailwind and Monaco CDNs used by the review window\n\n### Windows notes\n\nGlimpse now supports Windows. To build the native host during install you need:\n\n- .NET 8 SDK\n- Microsoft Edge WebView2 Runtime\n"}],"isError":false,"timestamp":1775440898025}}
|
| 11 |
+
{"type":"message","id":"1bdec967","parentId":"1db61705","timestamp":"2026-04-06T02:01:38.047Z","message":{"role":"toolResult","toolCallId":"call_qon6oWuU5PLuvzjCBojjM7XA|fc_0e8697260f912de60169d31401dcc48191a7893e1678f23ae1","toolName":"read","content":[{"type":"text","text":"<!DOCTYPE html>\n<html lang=\"en\" class=\"h-full bg-[#0d1117]\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>pi review</title>\n<script src=\"https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4\"></script>\n<style type=\"text/tailwindcss\">\n @theme {\n --color-review-bg: #0d1117;\n --color-review-panel: #161b22;\n --color-review-border: #30363d;\n --color-review-text: #c9d1d9;\n --color-review-muted: #8b949e;\n --color-review-accent: #58a6ff;\n }\n</style>\n<style>\n html, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n\n .scrollbar-thin::-webkit-scrollbar {\n width: 10px;\n height: 10px;\n }\n\n .scrollbar-thin::-webkit-scrollbar-thumb {\n background: #30363d;\n border-radius: 999px;\n border: 3px solid #161b22;\n }\n\n .scrollbar-thin::-webkit-scrollbar-track {\n background: transparent;\n }\n\n .review-modal-backdrop {\n position: fixed;\n inset: 0;\n background: rgba(1, 4, 9, 0.8);\n backdrop-filter: blur(4px);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n }\n\n .review-modal-card {\n width: min(760px, 92vw);\n background: #161b22;\n border: 1px solid #30363d;\n border-radius: 12px;\n box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);\n padding: 24px;\n }\n\n #editor-container {\n height: 100%;\n min-height: 0;\n overflow: hidden;\n }\n\n #editor-container > div,\n #editor-container .monaco-diff-editor,\n #editor-container .monaco-editor {\n height: 100% !important;\n }\n\n .monaco-editor .view-zones {\n z-index: 10;\n }\n\n .view-zone-container {\n padding: 8px 16px 10px 16px;\n border-top: 1px solid #30363d;\n border-bottom: 1px solid #30363d;\n background: #161b22;\n overflow: visible;\n }\n\n .monaco-editor .review-comment-line-original {\n background: rgba(245, 158, 11, 0.15);\n }\n\n .monaco-editor .review-comment-line-modified {\n background: rgba(88, 166, 255, 0.15);\n }\n\n .monaco-editor .review-comment-glyph-original,\n .monaco-editor .review-comment-glyph-modified {\n border-radius: 999px;\n width: 8px !important;\n height: 8px !important;\n margin-left: 6px;\n margin-top: 5px;\n cursor: pointer;\n }\n\n .monaco-editor .review-comment-glyph-original {\n background: #d29922;\n }\n\n .monaco-editor .review-comment-glyph-modified {\n background: #58a6ff;\n }\n\n .monaco-editor .review-glyph-plus {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Cpath fill='%23c9d1d9' d='M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z'%3E%3C/path%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: 12px;\n background-color: #238636;\n border-radius: 4px;\n cursor: pointer;\n margin-left: 2px;\n margin-top: 2px;\n width: 16px !important;\n height: 16px !important;\n box-shadow: 0 0 0 1px rgba(240, 246, 252, 0.08);\n }\n</style>\n</head>\n<body class=\"h-full overflow-hidden bg-review-bg text-review-text antialiased\">\n<div id=\"root-layout\" class=\"flex h-full w-full flex-col\">\n <div class=\"flex items-center justify-between gap-4 border-b border-review-border bg-[#010409] px-4 py-3\">\n <div class=\"min-w-0 flex items-center gap-3\">\n <button id=\"toggle-sidebar-button\" class=\"cursor-pointer rounded-md border border-review-border bg-review-panel px-3 py-1.5 text-xs font-medium text-review-text hover:bg-[#21262d]\">Hide sidebar</button>\n <div class=\"min-w-0\">\n <div id=\"window-title\" class=\"text-[15px] font-semibold text-white\">Review</div>\n <div id=\"repo-root\" class=\"truncate text-[11px] text-review-muted\"></div>\n </div>\n </div>\n <div class=\"flex items-center gap-2\">\n <div id=\"summary\" class=\"max-w-[24rem] truncate text-[11px] text-review-muted\"></div>\n <button id=\"overall-comment-button\" class=\"cursor-pointer rounded-md border border-review-border bg-review-panel px-3 py-1.5 text-xs font-medium text-review-text hover:bg-[#21262d]\">Overall note</button>\n <button id=\"cancel-button\" class=\"cursor-pointer rounded-md border border-review-border bg-review-panel px-3 py-1.5 text-xs font-medium text-review-text hover:bg-red-500/10 hover:text-red-400 hover:border-red-500/30\">Cancel</button>\n <button id=\"submit-button\" class=\"cursor-pointer rounded-md border border-[rgba(240,246,252,0.1)] bg-[#238636] px-3 py-1.5 text-xs font-medium text-white hover:bg-[#2ea043] disabled:cursor-default disabled:opacity-50 disabled:hover:bg-[#238636]\">Finish review</button>\n </div>\n </div>\n\n <div id=\"content-layout\" class=\"flex min-h-0 flex-1\">\n <aside id=\"sidebar\" class=\"flex min-h-0 shrink-0 flex-col border-r border-review-border bg-[#0d1117]\" style=\"width: 280px; min-width: 280px; flex-basis: 280px; overflow: hidden;\">\n <div class=\"border-b border-review-border px-4 py-3\">\n <div class=\"mb-2 flex items-center justify-between gap-2\">\n <div id=\"sidebar-title\" class=\"text-[11px] font-semibold uppercase tracking-wider text-review-muted\">Files</div>\n <div class=\"text-[10px] text-review-muted\">Fuzzy filter</div>\n </div>\n <div class=\"mb-3 flex flex-wrap items-center gap-2\">\n <button id=\"scope-diff-button\" class=\"cursor-pointer rounded-md border border-review-border bg-review-panel px-2.5 py-1 text-[11px] font-medium text-review-text hover:bg-[#21262d]\">Git diff</button>\n <button id=\"scope-last-commit-button\" class=\"cursor-pointer rounded-md border border-review-border bg-review-panel px-2.5 py-1 text-[11px] font-medium text-review-text hover:bg-[#21262d]\">Last commit</button>\n <button id=\"scope-all-button\" class=\"cursor-pointer rounded-md border border-review-border bg-review-panel px-2.5 py-1 text-[11px] font-medium text-review-text hover:bg-[#21262d]\">All files</button>\n </div>\n <input id=\"sidebar-search-input\" type=\"text\" spellcheck=\"false\" autocomplete=\"off\" placeholder=\"Search files\" class=\"w-full rounded-md border border-review-border bg-review-panel px-3 py-2 text-sm text-review-text outline-none placeholder:text-review-muted focus:border-blue-500 focus:ring-1 focus:ring-blue-500\">\n </div>\n <div id=\"file-tree\" class=\"scrollbar-thin min-h-0 flex-1 overflow-auto px-2 pb-2\"></div>\n </aside>\n\n <main id=\"main-pane\" class=\"flex min-h-0 min-w-0 flex-1 flex-col bg-[#0d1117]\">\n <div class=\"flex items-center justify-between gap-4 border-b border-review-border bg-[#0d1117] px-4 py-2\">\n <div class=\"min-w-0\">\n <div id=\"current-file-label\" class=\"truncate text-sm font-semibold text-white\"></div>\n <div id=\"mode-hint\" class=\"mt-0.5 text-[11px] text-review-muted\"></div>\n </div>\n <div class=\"flex items-center gap-3\">\n <button id=\"toggle-reviewed-button\" class=\"cursor-pointer rounded-md border border-review-border bg-review-panel px-3 py-1 text-xs font-medium text-review-text hover:bg-[#21262d]\">Mark reviewed</button>\n <button id=\"toggle-wrap-button\" class=\"cursor-pointer rounded-md border border-review-border bg-review-panel px-3 py-1 text-xs font-medium text-review-text hover:bg-[#21262d]\">Wrap lines: on</button>\n <button id=\"toggle-unchanged-button\" class=\"cursor-pointer rounded-md border border-review-border bg-review-panel px-3 py-1 text-xs font-medium text-review-text hover:bg-[#21262d]\">Show changed areas only</button>\n <button id=\"file-comment-button\" class=\"cursor-pointer rounded-md border border-review-border bg-review-panel px-3 py-1 text-xs font-medium text-review-text hover:bg-[#21262d]\">Add file comment</button>\n </div>\n </div>\n <div id=\"file-comments-container\" class=\"hidden border-b border-review-border bg-[#0d1117] px-4 py-0\"></div>\n <div id=\"editor-container\" class=\"min-h-0 min-w-0 flex-1\"></div>\n </main>\n </div>\n</div>\n\n<script id=\"diff-review-data\" type=\"application/json\">__INLINE_DATA__</script>\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.52.2/min/vs/loader.min.js\"></script>\n<script>\n__INLINE_JS__\n</script>\n</body>\n</html>\n"}],"isError":false,"timestamp":1775440898028}}
|
| 12 |
+
{"type":"message","id":"0b32ec2b","parentId":"1bdec967","timestamp":"2026-04-06T02:01:38.062Z","message":{"role":"toolResult","toolCallId":"call_6hccWrX0RzmVy8XYmVf1JUA5|fc_0e8697260f912de60169d31401dcd0819183a1ff6d4234b810","toolName":"read","content":[{"type":"text","text":"import type { ExtensionAPI, ExtensionCommandContext } from \"@mariozechner/pi-coding-agent\";\nimport { Key, matchesKey, truncateToWidth } from \"@mariozechner/pi-tui\";\nimport { open, type GlimpseWindow } from \"glimpseui\";\nimport { getReviewWindowData, loadReviewFileContents } from \"./git.js\";\nimport { composeReviewPrompt } from \"./prompt.js\";\nimport type {\n ReviewCancelPayload,\n ReviewFile,\n ReviewFileContents,\n ReviewHostMessage,\n ReviewRequestFilePayload,\n ReviewSubmitPayload,\n ReviewWindowMessage,\n} from \"./types.js\";\nimport { buildReviewHtml } from \"./ui.js\";\n\nfunction isSubmitPayload(value: ReviewWindowMessage): value is ReviewSubmitPayload {\n return value.type === \"submit\";\n}\n\nfunction isCancelPayload(value: ReviewWindowMessage): value is ReviewCancelPayload {\n return value.type === \"cancel\";\n}\n\nfunction isRequestFilePayload(value: ReviewWindowMessage): value is ReviewRequestFilePayload {\n return value.type === \"request-file\";\n}\n\ntype WaitingEditorResult = \"escape\" | \"window-settled\";\n\nfunction escapeForInlineScript(value: string): string {\n return value.replace(/</g, \"\\\\u003c\").replace(/>/g, \"\\\\u003e\").replace(/&/g, \"\\\\u0026\");\n}\n\nexport default function (pi: ExtensionAPI) {\n let activeWindow: GlimpseWindow | null = null;\n let activeWaitingUIDismiss: (() => void) | null = null;\n\n function closeActiveWindow(): void {\n if (activeWindow == null) return;\n const windowToClose = activeWindow;\n activeWindow = null;\n try {\n windowToClose.close();\n } catch {}\n }\n\n function showWaitingUI(ctx: ExtensionCommandContext): {\n promise: Promise<WaitingEditorResult>;\n dismiss: () => void;\n } {\n let settled = false;\n let doneFn: ((result: WaitingEditorResult) => void) | null = null;\n let pendingResult: WaitingEditorResult | null = null;\n\n const finish = (result: WaitingEditorResult): void => {\n if (settled) return;\n settled = true;\n if (activeWaitingUIDismiss === dismiss) {\n activeWaitingUIDismiss = null;\n }\n if (doneFn != null) {\n doneFn(result);\n } else {\n pendingResult = result;\n }\n };\n\n const promise = ctx.ui.custom<WaitingEditorResult>((_tui, theme, _kb, done) => {\n doneFn = done;\n if (pendingResult != null) {\n const result = pendingResult;\n pendingResult = null;\n queueMicrotask(() => done(result));\n }\n\n return {\n render(width: number): string[] {\n const innerWidth = Math.max(24, width - 2);\n const borderTop = theme.fg(\"border\", `╭${\"─\".repeat(innerWidth)}╮`);\n const borderBottom = theme.fg(\"border\", `╰${\"─\".repeat(innerWidth)}╯`);\n const lines = [\n theme.fg(\"accent\", theme.bold(\"Waiting for review\")),\n \"The native review window is open.\",\n \"Press Escape to cancel and close the review window.\",\n ];\n return [\n borderTop,\n ...lines.map((line) => `${theme.fg(\"border\", \"│\")}${truncateToWidth(line, innerWidth, \"...\", true).padEnd(innerWidth, \" \")}${theme.fg(\"border\", \"│\")}`),\n borderBottom,\n ];\n },\n handleInput(data: string): void {\n if (matchesKey(data, Key.escape)) {\n finish(\"escape\");\n }\n },\n invalidate(): void {},\n };\n });\n\n const dismiss = (): void => {\n finish(\"window-settled\");\n };\n\n activeWaitingUIDismiss = dismiss;\n\n return {\n promise,\n dismiss,\n };\n }\n\n async function reviewRepository(ctx: ExtensionCommandContext): Promise<void> {\n if (activeWindow != null) {\n ctx.ui.notify(\"A review window is already open.\", \"warning\");\n return;\n }\n\n const { repoRoot, files } = await getReviewWindowData(pi, ctx.cwd);\n if (files.length === 0) {\n ctx.ui.notify(\"No reviewable files found.\", \"info\");\n return;\n }\n\n const html = buildReviewHtml({ repoRoot, files });\n const window = open(html, {\n width: 1680,\n height: 1020,\n title: \"pi review\",\n });\n activeWindow = window;\n\n const waitingUI = showWaitingUI(ctx);\n const fileMap = new Map(files.map((file) => [file.id, file]));\n const contentCache = new Map<string, Promise<ReviewFileContents>>();\n\n const sendWindowMessage = (message: ReviewHostMessage): void => {\n if (activeWindow !== window) return;\n const payload = escapeForInlineScript(JSON.stringify(message));\n window.send(`window.__reviewReceive(${payload});`);\n };\n\n const loadContents = (file: ReviewFile, scope: ReviewRequestFilePayload[\"scope\"]): Promise<ReviewFileContents> => {\n const cacheKey = `${scope}:${file.id}`;\n const cached = contentCache.get(cacheKey);\n if (cached != null) return cached;\n\n const pending = loadReviewFileContents(pi, repoRoot, file, scope);\n contentCache.set(cacheKey, pending);\n return pending;\n };\n\n ctx.ui.notify(\"Opened native review window.\", \"info\");\n\n try {\n const terminalMessagePromise = new Promise<ReviewSubmitPayload | ReviewCancelPayload | null>((resolve, reject) => {\n let settled = false;\n\n const cleanup = (): void => {\n window.removeListener(\"message\", onMessage);\n window.removeListener(\"closed\", onClosed);\n window.removeListener(\"error\", onError);\n if (activeWindow === window) {\n activeWindow = null;\n }\n };\n\n const settle = (value: ReviewSubmitPayload | ReviewCancelPayload | null): void => {\n if (settled) return;\n settled = true;\n cleanup();\n resolve(value);\n };\n\n const handleRequestFile = async (message: ReviewRequestFilePayload): Promise<void> => {\n const file = fileMap.get(message.fileId);\n if (file == null) {\n sendWindowMessage({\n type: \"file-error\",\n requestId: message.requestId,\n fileId: message.fileId,\n scope: message.scope,\n message: \"Unknown file requested.\",\n });\n return;\n }\n\n try {\n const contents = await loadContents(file, message.scope);\n sendWindowMessage({\n type: \"file-data\",\n requestId: message.requestId,\n fileId: message.fileId,\n scope: message.scope,\n originalContent: contents.originalContent,\n modifiedContent: contents.modifiedContent,\n });\n } catch (error) {\n const messageText = error instanceof Error ? error.message : String(error);\n sendWindowMessage({\n type: \"file-error\",\n requestId: message.requestId,\n fileId: message.fileId,\n scope: message.scope,\n message: messageText,\n });\n }\n };\n\n const onMessage = (data: unknown): void => {\n const message = data as ReviewWindowMessage;\n if (isRequestFilePayload(message)) {\n void handleRequestFile(message);\n return;\n }\n if (isSubmitPayload(message) || isCancelPayload(message)) {\n settle(message);\n }\n };\n\n const onClosed = (): void => {\n settle(null);\n };\n\n const onError = (error: Error): void => {\n if (settled) return;\n settled = true;\n cleanup();\n reject(error);\n };\n\n window.on(\"message\", onMessage);\n window.on(\"closed\", onClosed);\n window.on(\"error\", onError);\n });\n\n const result = await Promise.race([\n terminalMessagePromise.then((message) => ({ type: \"window\" as const, message })),\n waitingUI.promise.then((reason) => ({ type: \"ui\" as const, reason })),\n ]);\n\n if (result.type === \"ui\" && result.reason === \"escape\") {\n closeActiveWindow();\n await terminalMessagePromise.catch(() => null);\n ctx.ui.notify(\"Review cancelled.\", \"info\");\n return;\n }\n\n const message = result.type === \"window\" ? result.message : await terminalMessagePromise;\n\n waitingUI.dismiss();\n await waitingUI.promise;\n closeActiveWindow();\n\n if (message == null || message.type === \"cancel\") {\n ctx.ui.notify(\"Review cancelled.\", \"info\");\n return;\n }\n\n const prompt = composeReviewPrompt(files, message);\n ctx.ui.setEditorText(prompt);\n ctx.ui.notify(\"Inserted review feedback into the editor.\", \"info\");\n } catch (error) {\n activeWaitingUIDismiss?.();\n closeActiveWindow();\n const message = error instanceof Error ? error.message : String(error);\n ctx.ui.notify(`Review failed: ${message}`, \"error\");\n }\n }\n\n pi.registerCommand(\"diff-review\", {\n description: \"Open a native review window with git diff, last commit, and all files scopes\",\n handler: async (_args, ctx) => {\n await reviewRepository(ctx);\n },\n });\n\n pi.on(\"session_shutdown\", async () => {\n activeWaitingUIDismiss?.();\n closeActiveWindow();\n });\n}\n"}],"isError":false,"timestamp":1775440898050}}
|
| 13 |
+
{"type":"message","id":"60672e4d","parentId":"0b32ec2b","timestamp":"2026-04-06T02:01:40.101Z","message":{"role":"assistant","content":[{"type":"thinking","thinking":""}],"api":"openai-codex-responses","provider":"openai-codex","model":"gpt-5.4","usage":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"totalTokens":0,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"aborted","timestamp":1775440898063,"responseId":"resp_0e8697260f912de60169d314025f348191a52f7901ecdfe05a","errorMessage":"Operation aborted"}}
|
README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: coding agent session traces
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
license: other
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Coding agent session traces for badlogicgames/pi-diff-review
|
| 11 |
+
|
| 12 |
+
This dataset contains redacted coding agent session traces collected while working on https://github.com/badlogic/pi-diff-review.git. The traces were exported with [pi-share-hf](https://github.com/badlogic/pi-share-hf) from a local [pi](https://pi.dev) workspace and filtered to keep only sessions that passed deterministic redaction and LLM review.
|
| 13 |
+
|
| 14 |
+
## Data description
|
| 15 |
+
|
| 16 |
+
Each `*.jsonl` file is a redacted pi session. Sessions are stored as JSON Lines files where each line is a structured session entry. Entries include session headers, user and assistant messages, tool results, model changes, thinking level changes, compaction summaries, branch summaries, and custom extension data.
|
| 17 |
+
|
| 18 |
+
Pi session files are tree-structured via `id` and `parentId`, so a single session file may contain multiple branches of work. See the upstream session format documentation for the exact schema:
|
| 19 |
+
|
| 20 |
+
- https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/session.md
|
| 21 |
+
|
| 22 |
+
Source git repo: https://github.com/badlogic/pi-diff-review.git
|
| 23 |
+
|
| 24 |
+
## Redaction and review
|
| 25 |
+
|
| 26 |
+
The data was processed with [pi-share-hf](https://github.com/badlogic/pi-share-hf) using deterministic secret redaction plus an LLM review step. Deterministic redaction targets exact known secrets and curated credential patterns. The LLM review decides whether a session is about the OSS project, whether it is fit to share publicly, and whether any sensitive content appears to have been missed.
|
| 27 |
+
|
| 28 |
+
Embedded images may be preserved in the uploaded sessions unless the workspace was initialized with `--no-images`.
|
| 29 |
+
|
| 30 |
+
## Limitations
|
| 31 |
+
|
| 32 |
+
This dataset is best-effort redacted. Coding agent transcripts can still contain sensitive or off-topic content, especially if a session mixed OSS work with unrelated private tasks. Use with appropriate caution.
|
| 33 |
+
|
manifest.jsonl
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"file":"2026-03-29T17-39-42-625Z_b32c5970-fd4d-43bc-9811-dbe6f94ee427.jsonl","source_hash":"sha256:2a56eb75b4cb94e99147bebf4c508016f271ffd1717923eb0962e55d5f9f1e1b","redacted_hash":"sha256:2a56eb75b4cb94e99147bebf4c508016f271ffd1717923eb0962e55d5f9f1e1b"}
|
| 2 |
+
{"file":"2026-04-05T23-50-03-457Z_c79098cf-cf40-45cc-8c75-67faf7b90a3d.jsonl","source_hash":"sha256:ae7b2d2a8beda750f1cc04fb01b415ad244c9255c5b27e79f7610cf34c6833a7","redacted_hash":"sha256:ae7b2d2a8beda750f1cc04fb01b415ad244c9255c5b27e79f7610cf34c6833a7"}
|
| 3 |
+
{"file":"2026-04-06T00-14-41-662Z_3319d665-d224-434d-ae2b-0a8b1f989e26.jsonl","source_hash":"sha256:03eb3a6b6bed745e7c73f355614dfbd37b7cf813ac2b26a6dbd02fcc7697082b","redacted_hash":"sha256:03eb3a6b6bed745e7c73f355614dfbd37b7cf813ac2b26a6dbd02fcc7697082b"}
|
| 4 |
+
{"file":"2026-04-06T00-17-31-761Z_6eaaf9cc-748d-4ccc-af4a-c768943f1fd1.jsonl","source_hash":"sha256:f31a5848a12f268007a5e903043dfd4cf74060c72915dab5b05427b1faf3312c","redacted_hash":"sha256:f31a5848a12f268007a5e903043dfd4cf74060c72915dab5b05427b1faf3312c"}
|
| 5 |
+
{"file":"2026-04-06T01-23-24-023Z_bd2bd030-5c36-4b39-93a2-7a901966f4ad.jsonl","source_hash":"sha256:3db7eab47df3bdcb29cd640c44fc89737a741543e0269fd5000023172b5eca35","redacted_hash":"sha256:3db7eab47df3bdcb29cd640c44fc89737a741543e0269fd5000023172b5eca35"}
|
| 6 |
+
{"file":"2026-04-06T02-01-20-420Z_2b43958b-4ab3-4e75-9a0a-32b27ea1a011.jsonl","source_hash":"sha256:4033e59a484cd511619ebac57468889a6c8d0b54e88a45a66f533f54c620ca6a","redacted_hash":"sha256:4033e59a484cd511619ebac57468889a6c8d0b54e88a45a66f533f54c620ca6a"}
|