Documentation Index
Fetch the complete documentation index at: https://agentlogs.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Codex Integration
Codex is OpenAI’s CLI for coding with GPT models. AgentLogs provides automatic transcript capture through Codex hooks.Features
- Automatic capture - Transcripts are uploaded after each agent response
- Native hooks - Uses Codex’s built-in hook system instead of a background watcher
- Git commit tracking - Uses
PreToolUseandPostToolUseto link Codex-made commits back to the session in AgentLogs
Installation
1. Authentication
Run the following command in the terminal:2. Install AgentLogs Hooks
Run:- Adds
codex_hooks = trueunder[features]in~/.codex/config.toml - Writes AgentLogs
SessionStart,PreToolUse,PostToolUse, andStopentries to~/.codex/hooks.json
hooks.json when codex_hooks is enabled in ~/.codex/config.toml.
3. Manual Configuration
Manual configuration
Manual configuration
If you prefer to configure Codex yourself, first enable hook support in Then create If you’re testing a local AgentLogs checkout, export
~/.codex/config.toml:~/.codex/hooks.json with the following contents:AGENTLOGS_CLI_PATH='bun /absolute/path/to/packages/cli/src/index.ts' before starting Codex to force hooks to use your local CLI instead of npm.You can also place the same hooks.json file in a project-local .codex/ directory if you want the integration enabled only for one repository.How It Works
- SessionStart confirms the hook wiring and gives AgentLogs a native Codex integration point.
- PreToolUse uploads the current transcript before
git commitso the session already exists in AgentLogs. - PostToolUse records successful git commits against that session in AgentLogs.
- Stop uploads the current transcript after each completed agent response.
PreToolUse, so AgentLogs can track commits in the dashboard but cannot automatically append a transcript URL to the git commit message body.
Manual Upload
You can manually upload transcripts using the CLI:upload command discovers transcripts from all agents and lets you pick one to upload.