Skip to main content

Crate edda_bridge_codex

Crate edda_bridge_codex 

Source
Expand description

Codex CLI bridge for edda.

Handles the subset of Codex hook events that carry equivalent semantics to Claude Code’s events:

Codex eventedda action
SessionStartinject doctrine + hot pack + workspace context
UserPromptSubmitinject lightweight workspace context (peer diff)
PreToolUseevaluate L3 rules against the pending command
PostToolUsedetect decision signals, emit nudges
SessionEnd / Stopauto-digest, cleanup
SubagentStart/Stopwrite / clear sub-agent heartbeat
PermissionRequestCodex-only: L3 can decline permission at the gate

Design rule: this crate reuses edda-bridge-claude’s shared machinery (peers, pack, digest, render, state, postmortem hooks) — none of that is Claude-specific. Only the parse/dispatch/admin layer is bridge-specific.

Structs§

HookResult

Functions§

doctor
Print a health report for the Codex bridge.
hook_entrypoint_from_stdin
Fail-open: every internal error becomes {"continue":true} so a broken bridge cannot brick the user’s session.
install
Write (or merge) edda hooks into the Codex hooks config.
uninstall
Remove edda hooks from the Codex config (preserving other users’ entries).