Skip to main content

Overview

This example shows how to activate EventLog for an AgentCtrl execution, run one Codex request through the builder path, then read the generated JSONL file and print the captured entries on screen. Key concepts:
  • EventLog::enable(): activates the default JSONL sink for the current process
  • AgentCtrl::codex(): uses the builder path, which currently honors EventLog
  • JSONL readback: inspect execution, pipeline, and process events after the run

Example

Expected Output

Key Points

  • Builder path: AgentCtrl::codex() flows through the bridge builder, which is currently wired to EventLog
  • Opt-in activation: the JSONL sink is off until EventLog::enable() is called
  • Post-run inspection: reading the JSONL file is a simple troubleshooting workflow for CLI-based agent runs
  • Current limitation: direct bridge constructors still need separate wiring work to match this behavior