Skip to content

[Feature]: Add Codex (--loop=codex) support to init-agents #40816

@0xharkirat

Description

@0xharkirat

Feature Request

Add --loop=codex to npx playwright init-agents so the Playwright Test Agents (planner, generator, healer) work in OpenAI Codex (CLI and desktop app).

Why now

Codex now supports project-scoped custom subagents via .codex/agents/*.toml. Docs: https://developers.openai.com/codex/subagents

Previous request #38530 was closed because Codex did not yet ship subagents.

Example

npx playwright init-agents --loop=codex

Writes .codex/agents/{planner,generator,healer}.toml using the Codex schema (name, description, sandbox_mode, developer_instructions, mcp_servers.playwright-test with command/args/enabled_tools).

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions