This sample is a command hook that writes an agent's transcript to Oracle AI Database. It works directly with the [Codex `Stop` hook](https://learn.chatgpt.com/docs/hooks#stop) and can be adapted to other agents that provide a session identifier and transcript file path.
What this sample demonstrates
AI Agents
Runnable AI Agents behavior on Oracle AI Database.
Use when AI Agents needs to be tested against real database behavior.
Observability
Tracing and client metadata samples for following application work into database sessions.
Use when teams need to correlate HTTP, JDBC, JMS, and database activity during operations.
Highlights
- Python 3.13+
- uv
- An Oracle AI Database user with permission to create a table and read and write its rows