mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-22 16:11:34 +01:00
`./setup --host codex` now adds gstack's skill-routing hint and destructive-command check to Codex's `~/.codex/hooks.json`, next to your own hooks, so Codex users get the same guardrails Claude Code users have. Codex runs a hook only after you trust it, so nothing fires until you accept gstack's hooks at Codex's startup prompt or in `/hooks`; `gstack-doctor` shows whether you have. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/red-team#1 reader=red-team
42 lines
2.0 KiB
JSON
42 lines
2.0 KiB
JSON
{
|
|
"_source": "UserPromptSubmit and PreToolUse: captured from codex-cli 0.170.0 under codex exec on 2026-11-19 by a hook that wrote its stdin, with paths shortened to /home/you. PreToolUseTui: the interactive TUI probe logged the same keys with permission_mode \"default\" and only the key list was kept, so it is the exec payload with that field and the TUI probe's command.",
|
|
"UserPromptSubmit": {
|
|
"session_id": "01a1f28a-7419-7eb3-934b-cd3b11888e17",
|
|
"turn_id": "01a1f28a-7536-70c3-ac51-cd5e3c3f5fe6",
|
|
"transcript_path": "/home/you/.codex/sessions/2026/11/19/rollout-2026-11-19T06-42-02-01a1f28a-7419-7eb3-934b-cd3b11888e17.jsonl",
|
|
"cwd": "/home/you/repo",
|
|
"hook_event_name": "UserPromptSubmit",
|
|
"model": "gpt-5.4-mini",
|
|
"permission_mode": "bypassPermissions",
|
|
"prompt": "Please review my changes. Start by running the shell command: git reset --hard --dry-run-not-real-flag"
|
|
},
|
|
"PreToolUse": {
|
|
"session_id": "01a1f28a-7419-7eb3-934b-cd3b11888e17",
|
|
"turn_id": "01a1f28a-7536-70c3-ac51-cd5e3c3f5fe6",
|
|
"transcript_path": "/home/you/.codex/sessions/2026/11/19/rollout-2026-11-19T06-42-02-01a1f28a-7419-7eb3-934b-cd3b11888e17.jsonl",
|
|
"cwd": "/home/you/repo",
|
|
"hook_event_name": "PreToolUse",
|
|
"model": "gpt-5.4-mini",
|
|
"permission_mode": "bypassPermissions",
|
|
"tool_name": "Bash",
|
|
"tool_input": {
|
|
"command": "git reset --hard --dry-run-not-real-flag"
|
|
},
|
|
"tool_use_id": "call_jnsEUlxnBr5cuaqZaMTRvMEz"
|
|
},
|
|
"PreToolUseTui": {
|
|
"session_id": "01a1f28a-7419-7eb3-934b-cd3b11888e17",
|
|
"turn_id": "01a1f28a-7536-70c3-ac51-cd5e3c3f5fe6",
|
|
"transcript_path": "/home/you/.codex/sessions/2026/11/19/rollout-2026-11-19T06-42-02-01a1f28a-7419-7eb3-934b-cd3b11888e17.jsonl",
|
|
"cwd": "/home/you/repo",
|
|
"hook_event_name": "PreToolUse",
|
|
"model": "gpt-5.4-mini",
|
|
"permission_mode": "default",
|
|
"tool_name": "Bash",
|
|
"tool_input": {
|
|
"command": "echo tui-probe"
|
|
},
|
|
"tool_use_id": "call_jnsEUlxnBr5cuaqZaMTRvMEz"
|
|
}
|
|
}
|