-
Notifications
You must be signed in to change notification settings - Fork 2
Feature: richer Codex metrics and request inspection commands #6
Copy link
Copy link
Open
Labels
artifact:issueRefined GitHub issue tracked by kanban toolingRefined GitHub issue tracked by kanban toolingblockedeffort-largeLarge effort issues - more than 12 hours of workLarge effort issues - more than 12 hours of workkanbanTracked in the OpenHax Kanban FSMTracked in the OpenHax Kanban FSMmetricsIssues related to request inspection and performance metricsIssues related to request inspection and performance metricspriority-mediumMedium priority issues - important features or significant improvementsMedium priority issues - important features or significant improvementspriority:P2Medium priorityMedium prioritystate:blockedCanonical Kanban FSM state: BlockedCanonical Kanban FSM state: Blockedtriage:staleStale item that likely needs revive/close/defer decisionStale item that likely needs revive/close/defer decision
Metadata
Metadata
Assignees
Labels
artifact:issueRefined GitHub issue tracked by kanban toolingRefined GitHub issue tracked by kanban toolingblockedeffort-largeLarge effort issues - more than 12 hours of workLarge effort issues - more than 12 hours of workkanbanTracked in the OpenHax Kanban FSMTracked in the OpenHax Kanban FSMmetricsIssues related to request inspection and performance metricsIssues related to request inspection and performance metricspriority-mediumMedium priority issues - important features or significant improvementsMedium priority issues - important features or significant improvementspriority:P2Medium priorityMedium prioritystate:blockedCanonical Kanban FSM state: BlockedCanonical Kanban FSM state: Blockedtriage:staleStale item that likely needs revive/close/defer decisionStale item that likely needs revive/close/defer decision
Summary
Extend the plugin's diagnostics with Codex-style metrics and request inspection commands (e.g.
/codex-metrics,/codex-inspect) that expose structured information similar toResponsesRequestinopenai/codex.Background
In
openai/codex:codex-rs/core/tests/common/responses.rsandcore/tests/suite/tool_harness.rsuse aResponsesRequesthelper to inspect:body_json,input,function_call_output,custom_tool_call_output,call_output,header,path,query_param.In this plugin:
/codex-metricscommand and logging controlled byENABLE_PLUGIN_REQUEST_LOGGING.There is still room to provide more structured, Codex-CLI-like diagnostics that make it easier to debug tool calls, prompt caching, and request transformation.
Proposed Features
Enhanced
/codex-metricsoutputshell,apply_patch, custom tools, MCP tools).New
/codex-inspectcommandResponsesRequest):chatgpt-account-id, beta headers).model,prompt_cache_key,store,stream,include.toolsandtool_choice/parallel_tool_callsafter normalization.inputafter filtering (stripped IDs, filtered system prompts, injected bridge/tool-remap message).Optional JSON output for automation
/codex-inspectto return a JSON-encoded structure when a flag is present (e.g./codex-inspect --json) so that advanced users can pipe it into other tools.Testing and observability
/codex-metricsand/codex-inspectwork without making additional network calls.Rationale
ResponsesRequest-driven tests and tooling.Acceptance Criteria
/codex-metricsexposes richer per-session stats without regressing existing output./codex-inspectcan show at least the last request in a structured, partially redacted way.