openai / openai/codex-plugin-cc

Feature request: --fast flag for task command (service_tier=fast support)

Open
#210 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
33.3k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Feature Request

Add a --fast flag to the task command in codex-companion.mjs that enables the Codex fast tier (service_tier = "fast") — 1.5x speed at 2x credits.

Motivation

The Codex CLI supports fast mode via config.toml (service_tier = "fast") and interactive /fast on, but the companion script has no programmatic way to request the fast tier. This matters for:

  • CI/automation workflows that invoke Codex via the companion script and want to trade credits for speed on time-sensitive tasks
  • Claude Code plugin integrations that dispatch parallel Codex tasks and benefit from faster turnaround
  • Selective fast mode — some tasks (broad code scans) benefit from speed, while others (deep audits) benefit from quality. A per-invocation flag is more useful than a global config toggle.

Proposed Usage

node codex-companion.mjs task --fast --prompt "analyze this code"
node codex-companion.mjs task --fast --prompt-file prompt.md --effort high
node codex-companion.mjs task --fast --background --prompt-file prompt.md

Implementation

We have a working prototype in PR #209 that threads serviceTier: "fast" through buildTaskRequestexecuteTaskRunrunAppServerTurnbuildThreadParams/buildResumeParams.

However, in our testing the speed improvement was inconsistent — 1.35x faster on a simple task (18.8s → 13.9s) but actually slower on a heavier code analysis task (1m37s → 2m12s). This may indicate that serviceTier needs to be set at a different level in the app-server protocol (e.g., at the turn level rather than thread level), or that the fast tier has startup overhead that only amortizes over longer sessions.

Questions for the team

  1. Is serviceTier the correct parameter name for the app-server thread/start request? Or does it need to be passed differently (e.g., at the turn/start level, or as a separate API call)?
  2. Does the fast tier apply per-thread or per-turn? If per-turn, should the flag be on turn/start instead of thread/start?
  3. Are there known limitations of fast tier when invoked via the app-server (as opposed to the interactive CLI)?

Related

  • PR #209 — working prototype implementation
  • Codex Speed docs — documents service_tier = "fast" in config.toml

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in codex-companion.mjs and inspect the prototype in PR #209, following serviceTier from buildTaskRequest through executeTaskRun, runAppServerTurn, and the thread or resume parameter builders. Compare that flow with the Codex Speed documentation and determine whether the flag belongs on thread/start or turn/start; done means the documented task examples request the fast tier through the correct app-server parameter.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.