cocheck 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +17 -3
  2. package/dist/agent-transcripts.js +15 -12
  3. package/dist/attribution/evidence.js +2 -1
  4. package/dist/attribution/reconstruct.js +19 -0
  5. package/dist/attribution/tag.js +3 -3
  6. package/dist/build-info.json +1 -1
  7. package/dist/cli.js +31 -11
  8. package/dist/connector/export-view.js +1 -1
  9. package/dist/coverage.js +5 -3
  10. package/dist/credit-guard.js +59 -54
  11. package/dist/harness-cmd/create.js +76 -0
  12. package/dist/harness-cmd/index.js +19 -0
  13. package/dist/harness-cmd/record.js +327 -0
  14. package/dist/harness-cmd/scrub.js +25 -0
  15. package/dist/harness-cmd/test.js +318 -0
  16. package/dist/harnesses/README.md +5 -0
  17. package/dist/harnesses/claude/cocheck-harness.json +344 -0
  18. package/dist/harnesses/codex/cocheck-harness.json +212 -0
  19. package/dist/harnesses/copilot/cocheck-harness.json +296 -0
  20. package/dist/{copilot-helpers.js → helper-linker.js} +43 -32
  21. package/dist/hook-adapter.js +287 -63
  22. package/dist/hook-cli.js +73 -36
  23. package/dist/hook-journal.js +40 -12
  24. package/dist/hosts/claude.js +23 -159
  25. package/dist/hosts/codex.js +41 -81
  26. package/dist/hosts/compile.js +275 -0
  27. package/dist/hosts/copilot.js +7 -162
  28. package/dist/hosts/extras.js +55 -0
  29. package/dist/hosts/harnesses.js +66 -0
  30. package/dist/hosts/index.js +176 -8
  31. package/dist/hosts/install-block.js +332 -0
  32. package/dist/hosts/manifest.js +372 -0
  33. package/dist/hosts/shared.js +21 -0
  34. package/dist/hosts/tool-classes.js +6 -0
  35. package/dist/hosts/types.js +1 -0
  36. package/dist/install.js +69 -22
  37. package/dist/ledger.js +11 -0
  38. package/dist/normalize.js +33 -9
  39. package/dist/open-pick.js +5 -3
  40. package/dist/patch-secrets.js +11 -11
  41. package/dist/review-server.js +2 -2
  42. package/dist/timeline/attribution.js +2 -2
  43. package/dist/timeline/describe.js +20 -17
  44. package/dist/timeline/load.js +2 -2
  45. package/dist/timeline/rail/assets/review.js +1 -1
  46. package/dist/timeline/rail/model.js +8 -8
  47. package/dist/timeline/read-signal.js +4 -4
  48. package/dist/timeline/render/view-v1.js +2 -13
  49. package/dist/timeline/runs.js +9 -9
  50. package/dist/timeline/timeline.js +8 -8
  51. package/dist/timeline/write-signal.js +4 -3
  52. package/package.json +2 -2
  53. package/public-kit/harness/GUIDE.md +81 -0
  54. package/public-kit/harness/README.md +10 -0
  55. package/public-kit/harness/cases/claude/shell-writes-file.json +120 -0
  56. package/public-kit/harness/cases/codex/apply-patch-writes-files.json +177 -0
  57. package/public-kit/harness/cases/codex/helper-writes-file.json +160 -0
  58. package/public-kit/harness/cases/codex/shell-writes-and-fails.json +110 -0
  59. package/public-kit/harness/cases/copilot/camel-case-patch-and-failure.json +126 -0
  60. package/public-kit/harness/cases/copilot/helper-writes-file.json +209 -0
  61. package/public-kit/harness/cases/copilot/vscode-helper-writes-file.json +236 -0
  62. package/public-kit/harness/examples/toyagent/cases/write-notes.json +142 -0
  63. package/public-kit/harness/examples/toyagent/cocheck-harness.json +47 -0
  64. package/public-kit/harness/examples/toyagent/recordings/payloads.jsonl +8 -0
  65. package/public-kit/harness/harnesses/antigravity/README.md +32 -0
  66. package/public-kit/harness/harnesses/antigravity/cases/failed-edit.json +99 -0
  67. package/public-kit/harness/harnesses/antigravity/cases/helper-writes-file.json +270 -0
  68. package/public-kit/harness/harnesses/antigravity/cases/shell-ok-fail-and-denied.json +211 -0
  69. package/public-kit/harness/harnesses/antigravity/cases/write-then-edit.json +191 -0
  70. package/public-kit/harness/harnesses/antigravity/cocheck-harness.json +62 -0
  71. package/public-kit/harness/harnesses/antigravity/recordings/payloads.jsonl +63 -0
  72. package/public-kit/harness/harnesses/cursor/README.md +40 -0
  73. package/public-kit/harness/harnesses/cursor/cases/editor-write-edit-shell-helper.json +359 -0
  74. package/public-kit/harness/harnesses/cursor/cases/read-then-write-one-call-id.json +159 -0
  75. package/public-kit/harness/harnesses/cursor/cocheck-harness.json +67 -0
  76. package/public-kit/harness/harnesses/cursor/recordings/payloads.jsonl +28 -0
  77. package/public-kit/harness/scaffold/README.md +42 -0
  78. package/public-kit/harness/scaffold/cocheck-harness.json +72 -0
  79. package/public-kit/harness/scaffold/recordings/.gitkeep +0 -0
  80. package/public-kit/harness/spec/v1.md +286 -0
  81. package/scripts/hook-launch.sh +1 -1
@@ -0,0 +1,63 @@
1
+ {"event":"SessionStart","argv":["--event","SessionStart","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"SessionStart\",\"lastUserInput\":\"Create a file named notes.txt in the current folder containing the single line: hello from agy. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363733.146}
2
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":1,\"invocationNum\":0,\"lastUserInput\":\"Create a file named notes.txt in the current folder containing the single line: hello from agy. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363733.256}
3
+ {"event":"PreToolUse","argv":["--event","PreToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreToolUse\",\"lastUserInput\":\"Create a file named notes.txt in the current folder containing the single line: hello from agy. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":2,\"toolCall\":{\"args\":{\"Content\":\"hello from agy\\n\",\"Path\":\"<folder>/notes.txt\"},\"id\":\"call_4434537565764973465\",\"name\":\"write_file\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363738.053}
4
+ {"event":"PostToolUse","argv":["--event","PostToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"error\":\"\",\"hookEventName\":\"PostToolUse\",\"lastUserInput\":\"Create a file named notes.txt in the current folder containing the single line: hello from agy. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":2,\"toolCall\":{\"args\":{\"Content\":\"hello from agy\\n\",\"Path\":\"<folder>/notes.txt\"},\"id\":\"call_4434537565764973465\",\"name\":\"write_file\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363738.164}
5
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":1,\"invocationNum\":0,\"lastUserInput\":\"Create a file named notes.txt in the current folder containing the single line: hello from agy. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363738.28}
6
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":3,\"invocationNum\":1,\"lastUserInput\":\"Create a file named notes.txt in the current folder containing the single line: hello from agy. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363738.396}
7
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":3,\"invocationNum\":1,\"lastUserInput\":\"Create a file named notes.txt in the current folder containing the single line: hello from agy. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363745.759}
8
+ {"event":"Stop","argv":["--event","Stop","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"continuationActive\":false,\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"error\":\"\",\"executionNum\":0,\"fullyIdle\":true,\"hookEventName\":\"Stop\",\"lastUserInput\":\"Create a file named notes.txt in the current folder containing the single line: hello from agy. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"terminationReason\":\"NO_TOOL_CALL\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363745.869}
9
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":6,\"invocationNum\":0,\"lastUserInput\":\"In notes.txt, replace the word hello with goodbye using your file edit tool. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363761.78}
10
+ {"event":"PreToolUse","argv":["--event","PreToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreToolUse\",\"lastUserInput\":\"In notes.txt, replace the word hello with goodbye using your file edit tool. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":8,\"toolCall\":{\"args\":{\"Path\":\"<folder>/notes.txt\",\"Replacement\":\"goodbye\",\"Target\":\"hello\"},\"id\":\"call_14687691418455473523\",\"name\":\"edit_file\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363765.599}
11
+ {"event":"PostToolUse","argv":["--event","PostToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"error\":\"\",\"hookEventName\":\"PostToolUse\",\"lastUserInput\":\"In notes.txt, replace the word hello with goodbye using your file edit tool. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":8,\"toolCall\":{\"args\":{\"Path\":\"<folder>/notes.txt\",\"Replacement\":\"goodbye\",\"Target\":\"hello\"},\"id\":\"call_14687691418455473523\",\"name\":\"edit_file\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363765.711}
12
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":6,\"invocationNum\":0,\"lastUserInput\":\"In notes.txt, replace the word hello with goodbye using your file edit tool. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363765.824}
13
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":9,\"invocationNum\":1,\"lastUserInput\":\"In notes.txt, replace the word hello with goodbye using your file edit tool. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363765.936}
14
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":9,\"invocationNum\":1,\"lastUserInput\":\"In notes.txt, replace the word hello with goodbye using your file edit tool. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363768.828}
15
+ {"event":"Stop","argv":["--event","Stop","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"continuationActive\":false,\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"error\":\"\",\"executionNum\":0,\"fullyIdle\":true,\"hookEventName\":\"Stop\",\"lastUserInput\":\"In notes.txt, replace the word hello with goodbye using your file edit tool. Do nothing else.\",\"modelName\":\"gemini-3.8-flash-medium\",\"terminationReason\":\"NO_TOOL_CALL\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363768.94}
16
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":11,\"invocationNum\":0,\"lastUserInput\":\"Run exactly this one shell command and nothing else: echo shell-ok \\u003e out.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363776.201}
17
+ {"event":"PreToolUse","argv":["--event","PreToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreToolUse\",\"lastUserInput\":\"Run exactly this one shell command and nothing else: echo shell-ok \\u003e out.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":13,\"toolCall\":{\"args\":{\"CommandLine\":\"echo shell-ok \\u003e out.txt\",\"WaitMsBeforeAsync\":5000,\"toolSummary\":\"Write shell-ok to out.txt\"},\"id\":\"call_3625523412236189924\",\"name\":\"run_command\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363779.103}
18
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":15,\"invocationNum\":0,\"lastUserInput\":\"Run exactly this one shell command and nothing else: echo shell-ok \\u003e out.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363787.523}
19
+ {"event":"PreToolUse","argv":["--event","PreToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreToolUse\",\"lastUserInput\":\"Run exactly this one shell command and nothing else: echo shell-ok \\u003e out.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":17,\"toolCall\":{\"args\":{\"CommandLine\":\"echo shell-ok \\u003e out.txt\",\"WaitMsBeforeAsync\":5000,\"toolSummary\":\"Write shell-ok to out.txt\"},\"id\":\"call_7504157474929434860\",\"name\":\"run_command\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363790.919}
20
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":19,\"invocationNum\":0,\"lastUserInput\":\"Run exactly this one shell command and nothing else: echo shell-ok\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363806.14}
21
+ {"event":"PreToolUse","argv":["--event","PreToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreToolUse\",\"lastUserInput\":\"Run exactly this one shell command and nothing else: echo shell-ok\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":22,\"toolCall\":{\"args\":{\"CommandLine\":\"echo shell-ok\",\"WaitMsBeforeAsync\":5000,\"toolSummary\":\"Echo shell-ok\"},\"id\":\"call_11179024411799172756\",\"name\":\"run_command\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363808.586}
22
+ {"event":"PostToolUse","argv":["--event","PostToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"error\":\"\",\"hookEventName\":\"PostToolUse\",\"lastUserInput\":\"Run exactly this one shell command and nothing else: echo shell-ok\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":22,\"toolCall\":{\"args\":{\"CommandLine\":\"echo shell-ok\",\"WaitMsBeforeAsync\":5000,\"toolSummary\":\"Echo shell-ok\"},\"id\":\"call_11179024411799172756\",\"name\":\"run_command\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363808.712}
23
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":19,\"invocationNum\":0,\"lastUserInput\":\"Run exactly this one shell command and nothing else: echo shell-ok\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363808.84}
24
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":23,\"invocationNum\":1,\"lastUserInput\":\"Run exactly this one shell command and nothing else: echo shell-ok\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363809.006}
25
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":23,\"invocationNum\":1,\"lastUserInput\":\"Run exactly this one shell command and nothing else: echo shell-ok\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363811.632}
26
+ {"event":"Stop","argv":["--event","Stop","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"continuationActive\":false,\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"error\":\"\",\"executionNum\":0,\"fullyIdle\":true,\"hookEventName\":\"Stop\",\"lastUserInput\":\"Run exactly this one shell command and nothing else: echo shell-ok\",\"modelName\":\"gemini-3.8-flash-medium\",\"terminationReason\":\"NO_TOOL_CALL\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363811.742}
27
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":25,\"invocationNum\":0,\"lastUserInput\":\"Run exactly this one shell command and nothing else, even if it fails: cat missing.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363821.256}
28
+ {"event":"PreToolUse","argv":["--event","PreToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreToolUse\",\"lastUserInput\":\"Run exactly this one shell command and nothing else, even if it fails: cat missing.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":27,\"toolCall\":{\"args\":{\"CommandLine\":\"cat missing.txt\",\"WaitMsBeforeAsync\":5000,\"toolSummary\":\"Cat missing.txt\"},\"id\":\"call_10750150322497914145\",\"name\":\"run_command\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363823.337}
29
+ {"event":"PostToolUse","argv":["--event","PostToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"error\":\"\",\"hookEventName\":\"PostToolUse\",\"lastUserInput\":\"Run exactly this one shell command and nothing else, even if it fails: cat missing.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":27,\"toolCall\":{\"args\":{\"CommandLine\":\"cat missing.txt\",\"WaitMsBeforeAsync\":5000,\"toolSummary\":\"Cat missing.txt\"},\"id\":\"call_10750150322497914145\",\"name\":\"run_command\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363823.462}
30
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":25,\"invocationNum\":0,\"lastUserInput\":\"Run exactly this one shell command and nothing else, even if it fails: cat missing.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363823.576}
31
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":28,\"invocationNum\":1,\"lastUserInput\":\"Run exactly this one shell command and nothing else, even if it fails: cat missing.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363823.689}
32
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":28,\"invocationNum\":1,\"lastUserInput\":\"Run exactly this one shell command and nothing else, even if it fails: cat missing.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363825.991}
33
+ {"event":"Stop","argv":["--event","Stop","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"continuationActive\":false,\"conversationId\":\"9ad8b8c6-e007-414f-89ed-c58731436fc2\",\"cwd\":\"<folder>\",\"error\":\"\",\"executionNum\":0,\"fullyIdle\":true,\"hookEventName\":\"Stop\",\"lastUserInput\":\"Run exactly this one shell command and nothing else, even if it fails: cat missing.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"terminationReason\":\"NO_TOOL_CALL\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/9ad8b8c6-e007-414f-89ed-c58731436fc2/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363826.104}
34
+ {"event":"SessionStart","argv":["--event","SessionStart","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8\",\"conversationId\":\"979ee305-5d49-433f-8009-b3398b08c5f8\",\"cwd\":\"<folder>\",\"hookEventName\":\"SessionStart\",\"lastUserInput\":\"Do these two steps in order, then stop. Step 1: use your file edit tool on notes.txt to replace the text NOTPRESENT with x (it is fine if this fails; do not retry). Step 2: run exactly this shell command: echo from-shell \\u003e shell.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363841.046}
35
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8\",\"conversationId\":\"979ee305-5d49-433f-8009-b3398b08c5f8\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":1,\"invocationNum\":0,\"lastUserInput\":\"Do these two steps in order, then stop. Step 1: use your file edit tool on notes.txt to replace the text NOTPRESENT with x (it is fine if this fails; do not retry). Step 2: run exactly this shell command: echo from-shell \\u003e shell.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363841.162}
36
+ {"event":"SessionStart","argv":["--event","SessionStart","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c\",\"conversationId\":\"56c63931-2014-4a71-a515-b765ee65203c\",\"cwd\":\"<folder>\",\"hookEventName\":\"SessionStart\",\"lastUserInput\":\"Use your invoke_subagent tool to start one helper subagent whose only task is to create a file named helper.txt in the current folder containing the line: from helper. Wait for it to finish, then stop.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363843.462}
37
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c\",\"conversationId\":\"56c63931-2014-4a71-a515-b765ee65203c\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":1,\"invocationNum\":0,\"lastUserInput\":\"Use your invoke_subagent tool to start one helper subagent whose only task is to create a file named helper.txt in the current folder containing the line: from helper. Wait for it to finish, then stop.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363843.805}
38
+ {"event":"PreToolUse","argv":["--event","PreToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8\",\"conversationId\":\"979ee305-5d49-433f-8009-b3398b08c5f8\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreToolUse\",\"lastUserInput\":\"Do these two steps in order, then stop. Step 1: use your file edit tool on notes.txt to replace the text NOTPRESENT with x (it is fine if this fails; do not retry). Step 2: run exactly this shell command: echo from-shell \\u003e shell.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":2,\"toolCall\":{\"args\":{\"Path\":\"<folder>/notes.txt\",\"Replacement\":\"x\",\"Target\":\"NOTPRESENT\"},\"id\":\"call_2074186915962693775\",\"name\":\"edit_file\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363846.875}
39
+ {"event":"PostToolUse","argv":["--event","PostToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8\",\"conversationId\":\"979ee305-5d49-433f-8009-b3398b08c5f8\",\"cwd\":\"<folder>\",\"error\":\"target content not found in the file; the Target must exactly match existing file text, including whitespace\",\"hookEventName\":\"PostToolUse\",\"lastUserInput\":\"Do these two steps in order, then stop. Step 1: use your file edit tool on notes.txt to replace the text NOTPRESENT with x (it is fine if this fails; do not retry). Step 2: run exactly this shell command: echo from-shell \\u003e shell.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":2,\"toolCall\":{\"args\":{\"Path\":\"<folder>/notes.txt\",\"Replacement\":\"x\",\"Target\":\"NOTPRESENT\"},\"id\":\"call_2074186915962693775\",\"name\":\"edit_file\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363846.996}
40
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8\",\"conversationId\":\"979ee305-5d49-433f-8009-b3398b08c5f8\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":1,\"invocationNum\":0,\"lastUserInput\":\"Do these two steps in order, then stop. Step 1: use your file edit tool on notes.txt to replace the text NOTPRESENT with x (it is fine if this fails; do not retry). Step 2: run exactly this shell command: echo from-shell \\u003e shell.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363847.115}
41
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8\",\"conversationId\":\"979ee305-5d49-433f-8009-b3398b08c5f8\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":3,\"invocationNum\":1,\"lastUserInput\":\"Do these two steps in order, then stop. Step 1: use your file edit tool on notes.txt to replace the text NOTPRESENT with x (it is fine if this fails; do not retry). Step 2: run exactly this shell command: echo from-shell \\u003e shell.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363847.229}
42
+ {"event":"PreToolUse","argv":["--event","PreToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c\",\"conversationId\":\"56c63931-2014-4a71-a515-b765ee65203c\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreToolUse\",\"lastUserInput\":\"Use your invoke_subagent tool to start one helper subagent whose only task is to create a file named helper.txt in the current folder containing the line: from helper. Wait for it to finish, then stop.\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":2,\"toolCall\":{\"args\":{\"Prompt\":\"Create a file named helper.txt in the current workspace directory (<folder>) containing exactly the line:\\nfrom helper\\nWhen finished, confirm completion.\",\"Role\":\"Helper Subagent\",\"TypeName\":\"self\"},\"id\":\"call_17570829882686036564\",\"name\":\"invoke_subagent\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363849.363}
43
+ {"event":"PostToolUse","argv":["--event","PostToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c\",\"conversationId\":\"56c63931-2014-4a71-a515-b765ee65203c\",\"cwd\":\"<folder>\",\"error\":\"\",\"hookEventName\":\"PostToolUse\",\"lastUserInput\":\"Use your invoke_subagent tool to start one helper subagent whose only task is to create a file named helper.txt in the current folder containing the line: from helper. Wait for it to finish, then stop.\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":2,\"toolCall\":{\"args\":{\"Prompt\":\"Create a file named helper.txt in the current workspace directory (<folder>) containing exactly the line:\\nfrom helper\\nWhen finished, confirm completion.\",\"Role\":\"Helper Subagent\",\"TypeName\":\"self\"},\"id\":\"call_17570829882686036564\",\"name\":\"invoke_subagent\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363849.489}
44
+ {"event":"SessionStart","argv":["--event","SessionStart","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"hookEventName\":\"SessionStart\",\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363849.503}
45
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c\",\"conversationId\":\"56c63931-2014-4a71-a515-b765ee65203c\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":1,\"invocationNum\":0,\"lastUserInput\":\"Use your invoke_subagent tool to start one helper subagent whose only task is to create a file named helper.txt in the current folder containing the line: from helper. Wait for it to finish, then stop.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363849.605}
46
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":0,\"invocationNum\":0,\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363849.616}
47
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c\",\"conversationId\":\"56c63931-2014-4a71-a515-b765ee65203c\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":3,\"invocationNum\":1,\"lastUserInput\":\"Use your invoke_subagent tool to start one helper subagent whose only task is to create a file named helper.txt in the current folder containing the line: from helper. Wait for it to finish, then stop.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363849.719}
48
+ {"event":"PreToolUse","argv":["--event","PreToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8\",\"conversationId\":\"979ee305-5d49-433f-8009-b3398b08c5f8\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreToolUse\",\"lastUserInput\":\"Do these two steps in order, then stop. Step 1: use your file edit tool on notes.txt to replace the text NOTPRESENT with x (it is fine if this fails; do not retry). Step 2: run exactly this shell command: echo from-shell \\u003e shell.txt\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":4,\"toolCall\":{\"args\":{\"CommandLine\":\"echo from-shell \\u003e shell.txt\",\"WaitMsBeforeAsync\":5000,\"toolSummary\":\"Echo to shell.txt\"},\"id\":\"call_9797148230101955734\",\"name\":\"run_command\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/979ee305-5d49-433f-8009-b3398b08c5f8/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363851.082}
49
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c\",\"conversationId\":\"56c63931-2014-4a71-a515-b765ee65203c\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":3,\"invocationNum\":1,\"lastUserInput\":\"Use your invoke_subagent tool to start one helper subagent whose only task is to create a file named helper.txt in the current folder containing the line: from helper. Wait for it to finish, then stop.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363852.737}
50
+ {"event":"Stop","argv":["--event","Stop","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c\",\"continuationActive\":false,\"conversationId\":\"56c63931-2014-4a71-a515-b765ee65203c\",\"cwd\":\"<folder>\",\"error\":\"\",\"executionNum\":0,\"fullyIdle\":false,\"hookEventName\":\"Stop\",\"lastUserInput\":\"Use your invoke_subagent tool to start one helper subagent whose only task is to create a file named helper.txt in the current folder containing the line: from helper. Wait for it to finish, then stop.\",\"modelName\":\"gemini-3.8-flash-medium\",\"terminationReason\":\"NO_TOOL_CALL\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363852.848}
51
+ {"event":"PreToolUse","argv":["--event","PreToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreToolUse\",\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":2,\"toolCall\":{\"args\":{\"Content\":\"from helper\\n\",\"Path\":\"<folder>/helper.txt\"},\"id\":\"call_11463291596007606126\",\"name\":\"write_file\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363854.58}
52
+ {"event":"PostToolUse","argv":["--event","PostToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"error\":\"\",\"hookEventName\":\"PostToolUse\",\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":2,\"toolCall\":{\"args\":{\"Content\":\"from helper\\n\",\"Path\":\"<folder>/helper.txt\"},\"id\":\"call_11463291596007606126\",\"name\":\"write_file\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363854.693}
53
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":0,\"invocationNum\":0,\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363854.807}
54
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":3,\"invocationNum\":1,\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363854.921}
55
+ {"event":"PreToolUse","argv":["--event","PreToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreToolUse\",\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":4,\"toolCall\":{\"args\":{\"Message\":\"I have created the file helper.txt in <folder> with the line:\\nfrom helper\",\"Recipient\":\"56c63931-2014-4a71-a515-b765ee65203c\"},\"id\":\"call_16740207760375984009\",\"name\":\"send_message\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363857.855}
56
+ {"event":"PostToolUse","argv":["--event","PostToolUse","--grouped"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"error\":\"\",\"hookEventName\":\"PostToolUse\",\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"stepIdx\":4,\"toolCall\":{\"args\":{\"Message\":\"I have created the file helper.txt in <folder> with the line:\\nfrom helper\",\"Recipient\":\"56c63931-2014-4a71-a515-b765ee65203c\"},\"id\":\"call_16740207760375984009\",\"name\":\"send_message\"},\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363857.975}
57
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c\",\"conversationId\":\"56c63931-2014-4a71-a515-b765ee65203c\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":4,\"invocationNum\":0,\"lastUserInput\":\"Use your invoke_subagent tool to start one helper subagent whose only task is to create a file named helper.txt in the current folder containing the line: from helper. Wait for it to finish, then stop.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363857.985}
58
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":3,\"invocationNum\":1,\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363858.093}
59
+ {"event":"PreInvocation","argv":["--event","PreInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"hookEventName\":\"PreInvocation\",\"initialNumSteps\":5,\"invocationNum\":2,\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363858.209}
60
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":5,\"invocationNum\":2,\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363864.909}
61
+ {"event":"Stop","argv":["--event","Stop","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"continuationActive\":false,\"conversationId\":\"702197ce-b8e6-4f37-9271-dfa733ae4a8a\",\"cwd\":\"<folder>\",\"error\":\"\",\"executionNum\":0,\"fullyIdle\":true,\"hookEventName\":\"Stop\",\"lastUserInput\":\"\",\"modelName\":\"gemini-3.8-flash-medium\",\"terminationReason\":\"NO_TOOL_CALL\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/702197ce-b8e6-4f37-9271-dfa733ae4a8a/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363865.025}
62
+ {"event":"PostInvocation","argv":["--event","PostInvocation","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c\",\"conversationId\":\"56c63931-2014-4a71-a515-b765ee65203c\",\"cwd\":\"<folder>\",\"hookEventName\":\"PostInvocation\",\"initialNumSteps\":4,\"invocationNum\":0,\"lastUserInput\":\"Use your invoke_subagent tool to start one helper subagent whose only task is to create a file named helper.txt in the current folder containing the line: from helper. Wait for it to finish, then stop.\",\"modelName\":\"gemini-3.8-flash-medium\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363925.838}
63
+ {"event":"Stop","argv":["--event","Stop","--flat"],"stdin":"{\"artifactDirectoryPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c\",\"continuationActive\":false,\"conversationId\":\"56c63931-2014-4a71-a515-b765ee65203c\",\"cwd\":\"<folder>\",\"error\":\"\",\"executionNum\":0,\"fullyIdle\":true,\"hookEventName\":\"Stop\",\"lastUserInput\":\"Use your invoke_subagent tool to start one helper subagent whose only task is to create a file named helper.txt in the current folder containing the line: from helper. Wait for it to finish, then stop.\",\"modelName\":\"gemini-3.8-flash-medium\",\"terminationReason\":\"NO_TOOL_CALL\",\"transcriptPath\":\"/Users/<user>/.gemini/antigravity-cli/brain/56c63931-2014-4a71-a515-b765ee65203c/.system_generated/logs/transcript_full.jsonl\",\"workspacePaths\":[\"<folder>\"]}","ts":1795363925.953}
@@ -0,0 +1,40 @@
1
+ # Cursor
2
+
3
+ A manifest for Cursor, written from a real recording of the 3.31.15 editor agent chat on macOS and checked by its case. It is not built in: it loads as a harness from your own folder (`cocheck harness test --cases public-kit/harness/harnesses/cursor/cases --manifest public-kit/harness/harnesses/cursor`, or copy the folder to `<CoCheck data home>/harnesses/cursor/`), so its credit basis is `inferred`. The platform record is `platforms/cursor/`.
4
+
5
+ ## How the recording was made
6
+
7
+ A scratch project whose `.cursor/hooks.json` sent 13 events through the logging hook of `cocheck harness record`, opened and trusted in Cursor 3.31.15, and one agent-chat prompt: create hello.txt, edit seed.txt, run `ls -la`, run a failing `cat`, read hello.txt through a Task helper. Permission events were answered with JSON so nothing was blocked. `recordings/payloads.jsonl` holds all 28 hook calls; the project path is replaced by `<folder>`, the home folder by `/Users/<user>`, the user name by `<user>` and the account email by `user@example.com`.
8
+
9
+ ## What Cursor sends
10
+
11
+ Every payload carries `conversation_id`, `session_id` (the same value), `generation_id`, `model`, `hook_event_name`, `cursor_version`, `workspace_roots`, `user_email` and `transcript_path` (a path on `stop` and `afterAgentResponse`, null elsewhere).
12
+
13
+ - `preToolUse`, `postToolUse`, `postToolUseFailure`: `tool_name`, `tool_input` (an object for Read and Shell, JSON text for Write and Task), `tool_use_id`; Post adds `tool_output` and `duration`; the failure event adds `error_message`, `failure_type` and `is_interrupt`.
14
+ - `beforeShellExecution`, `afterShellExecution`: the Shell call's `command`, `cwd` (empty), `sandbox`, and its `tool_use_id`; after adds `output`.
15
+ - `afterFileEdit`: `file_path` and `edits` (`old_string`, `new_string`), no call id, sent between the Write call's Pre and Post.
16
+ - `subagentStart`, `subagentStop`: `subagent_id`, `subagent_type`, `task`, `description`, `parent_conversation_id`; stop adds `child_conversation_id` and `status`.
17
+ - `beforeSubmitPrompt`: `prompt`. `afterAgentResponse`: `text`. `stop`: `status`, token counts.
18
+
19
+ Tool names seen: `Read`, `Write` (new files and edits alike, whole `content`), `Shell`, `Task`.
20
+
21
+ ## Level and gaps
22
+
23
+ Calls with a real call id and a failure event: L2 for calls.
24
+
25
+ - `afterFileEdit` is read as context, not as a call: it has no call id and arrives inside the Write call, so as a call of its own it would share that call's credit. It also drops events in batch edits (a confirmed Cursor bug); the Write call is the record.
26
+ - Checkpoint restore, Tab completions and Accept-All formatting change files with no tool event: CoCheck's folder check shows them as changes made outside the agents.
27
+ - File-tool call ids hold a line break, and consecutive calls of one model step can share one id (a failed Read, then a Write): the credit names the id both share.
28
+ - No closing message: `stop` has none; the text is on `afterAgentResponse`, which may fire more than once a turn.
29
+ - A Task helper's calls carry `parent_agent_id`, so they join the main session; they are not told apart from the main agent's (no `agentId` mapped).
30
+ - The headless CLI skips the prompt, stop and closing events (Cursor docs); the CLI was not recorded.
31
+ - Cloud agents run hooks remotely, out of CoCheck's reach.
32
+ - Cursor's docs say a permission hook (`preToolUse`, `beforeShellExecution`, `subagentStart`) whose answer is not valid JSON blocks the action. CoCheck's hook prints nothing on these events, and whether Cursor blocks on that is not yet tested.
33
+
34
+ ## Hook config
35
+
36
+ Project level, `{project}/.cursor/hooks.json`, merged into the file: `{"version": 1, "hooks": {"<event>": [{"command": ..., "timeout": 30}]}}`. User-level hooks are reported broken in CLI 2026.11.05. Cursor runs project hooks only in a trusted workspace.
37
+
38
+ ## Claude hooks
39
+
40
+ Cursor 3.31.15 also runs the Claude Code hooks in `~/.claude/settings.json` ("from claude-user config" in Cursor's hooks log), with the same Cursor payload it gives its own hooks: Cursor event names (`preToolUse`, not `PreToolUse`), `conversation_id`, `cursor_version` and `workspace_roots`. Without a guard, CoCheck's Claude hook would record Cursor's work as Claude's. The manifest declares `readsForeignHooks` and a `foreignHookFingerprint` keyed on `cursor_version` (present in every Cursor payload, never sent by Claude Code or by Copilot's runs of Claude hooks), with `workspace_roots` present and `conversation_id` and `hook_event_name` as text. While CoCheck's Cursor entries are in that folder's `.cursor/hooks.json`, the Claude hook skips these payloads and the Cursor entry records them; before that, the Claude hook records them as it did. `cocheck status` shows `Claude hook skips payloads from Cursor` while the guard is in force.