You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: give codex system prompt via personality (#1482)
## Problem
The Codex adapter was not receiving custom instructions/system prompts, and token usage tracking was incomplete, limiting its ability to follow user-specific guidance and provide accurate usage metrics during task execution.
## Changes
- Added `instructions` parameter to `TaskExecutionOptions` and `CodexProcessOptions` interfaces
- Modified the Codex spawn logic to pass instructions as a configuration parameter with proper escaping for backslashes and quotes
- Moved system prompt building earlier in the agent service to make it available during initial connection setup
- Enhanced token usage tracking in the Codex adapter to accumulate usage across prompts and emit turn completion notifications
- Updated the Codex client to track per-message token usage including cached read/write tokens
- Added proper usage accumulation in session state for comprehensive token tracking
## How did you test this?
I wont lie, i didnt test this more than a quick test prompt. trust the agents bro
0 commit comments