Skip to content

Commit ac43cb6

Browse files
committed
feat: add experimental Codex auto-sync hooks
1 parent 216591a commit ac43cb6

14 files changed

Lines changed: 1821 additions & 111 deletions

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,16 @@ flowchart TD
217217
```
218218
## Auto-Sync
219219
### What is Auto-Sync
220-
Claude Code Hooks allow Vibe-Log to automatically sync your Claude Code sessions. Codex sessions are supported through manual sync.
220+
Claude Code hooks and Codex hooks allow Vibe-Log to automatically sync local sessions in the background. Claude Code auto-sync is stable. Codex auto-sync is experimental and sync-only.
221221

222-
What are Claude Code Hooks?
222+
What are hooks?
223223

224-
• Small commands that run at specific moments in Claude Code
224+
• Small commands that run at specific moments in Claude Code or Codex
225225

226226
• They work silently in the background (you won't notice them)
227227

228228

229-
Which hooks do we use?
229+
Which Claude Code hooks do we use?
230230

231231
📍 SessionStart - Syncs previous sessions when you start/resume work
232232
(Triggers: startup, resume, clear commands)
@@ -240,6 +240,14 @@ Why we recommend both:
240240
✓ SessionStart ensures nothing is lost between sessions
241241

242242
✓ PreCompact syncs everything before Claude compresses context
243+
244+
Which Codex hooks do we use?
245+
246+
📍 SessionStart - Syncs recent Codex sessions when work starts
247+
248+
🔚 Stop - Syncs after Codex finishes responding
249+
250+
Codex hooks write Vibe-Log commands to Codex `hooks.json` and enable `[features].codex_hooks = true` in Codex `config.toml`. Vibe-Log does not install Codex prompt coach or statusline hooks.
243251

244252
### Setup Auto-sync
245253
1. Run `npx vibe-log-cli`
@@ -250,7 +258,7 @@ Why we recommend both:
250258

251259
Currently supported:
252260
- ✅ Claude Code
253-
- ✅ Codex (manual cloud sync, local standups, local reports)
261+
- ✅ Codex (manual cloud sync, experimental auto-sync hooks, local standups, local reports)
254262

255263
Future:
256264
- 🔜 Cursor

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ program.addCommand(createTestPersonalityCommand());
182182
// Add install-auto-sync command for direct access to auto-sync configuration
183183
program
184184
.command('install-auto-sync')
185-
.description('Configure automatic session sync (Claude Code hooks)')
185+
.description('Configure automatic session sync (Claude Code or Codex hooks)')
186186
.action(async () => {
187187
try {
188188
await installAutoSync();
@@ -209,7 +209,8 @@ function showHelp(): void {
209209
console.log(' npx vibe-log-cli privacy Preview what data gets sent (privacy first!)');
210210
console.log('');
211211
console.log('For hooks (automatic sync):');
212-
console.log(' npx vibe-log-cli send --silent Used by Claude Code hooks');
212+
console.log(' npx vibe-log-cli send --silent Used by Claude Code hooks');
213+
console.log(' npx vibe-log-cli send --source codex --silent Used by Codex hooks');
213214
console.log('');
214215
console.log('Learn more at: https://vibe-log.dev');
215216
console.log('');

0 commit comments

Comments
 (0)