Skip to content

Commit 399c369

Browse files
authored
docs(codex): update notify config format to argv array (#100)
1 parent 618542d commit 399c369

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ peon-ping works with any agentic IDE that supports hooks. Adapters translate IDE
139139
| IDE | Status | Setup |
140140
|---|---|---|
141141
| **Claude Code** | Built-in | `curl \| bash` install handles everything |
142-
| **OpenAI Codex** | Adapter | Add `command = "bash ~/.claude/hooks/peon-ping/adapters/codex.sh"` to `~/.codex/config.toml` under `[notify]` |
142+
| **OpenAI Codex** | Adapter | Add `notify = ["bash", "/absolute/path/to/.claude/hooks/peon-ping/adapters/codex.sh"]` to `~/.codex/config.toml` |
143143
| **Cursor** | Adapter | Add hook entries to `~/.cursor/hooks.json` pointing to `adapters/cursor.sh` |
144144
| **OpenCode** | Adapter | `curl -fsSL https://raw.githubusercontent.com/PeonPing/peon-ping/main/adapters/opencode.sh \| bash` |
145145
| **Google Antigravity** | Adapter | `bash ~/.claude/hooks/peon-ping/adapters/antigravity.sh` (requires `fswatch`: `brew install fswatch`) |

adapters/codex.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
# Translates Codex notify events into peon.sh stdin JSON
44
#
55
# Setup: Add to ~/.codex/config.toml:
6-
# [notify]
7-
# command = "bash ~/.claude/hooks/peon-ping/adapters/codex.sh"
6+
# notify = ["bash", "/absolute/path/to/.claude/hooks/peon-ping/adapters/codex.sh"]
87
#
98
# Or if installed locally:
10-
# command = "bash .claude/hooks/peon-ping/adapters/codex.sh"
9+
# notify = ["bash", "/absolute/path/to/peon-ping/adapters/codex.sh"]
1110

1211
set -euo pipefail
1312

0 commit comments

Comments
 (0)