Skip to content

Commit b604431

Browse files
worktrunk-botclaude
andcommitted
Drop .agents/ — Codex falls back to .claude-plugin/marketplace.json
Codex's marketplace lookup checks .agents/plugins/marketplace.json then .claude-plugin/marketplace.json (codex-rs/core-plugins/src/marketplace.rs:20). Both paths use the same lenient parser, and the existing Claude marketplace.json has the fields Codex needs (`name`, `plugins[].name`, `plugins[].source: "./"`). The plugins[].policy and category that the old Codex marketplace declared explicitly are also Codex's parser defaults (MarketplacePluginInstallPolicy::Available, MarketplacePluginAuthPolicy::OnInstall), so removal is a no-op. Net result: one new top-level path (.codex-plugin/) instead of two. We keep .codex-plugin/ because Codex's plugin.json parser declares `skills: Option<String>` (single path) but Claude's existing .claude-plugin/plugin.json uses `skills: ["./skills/worktrunk"]` (array) — type mismatch that fails serde parsing — so .claude-plugin/plugin.json cannot double-serve as Codex's plugin manifest. Co-Authored-By: Claude Opus 4.7 <[email protected]>
1 parent 2ec174e commit b604431

2 files changed

Lines changed: 5 additions & 22 deletions

File tree

‎.agents/plugins/marketplace.json‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎tests/integration_tests/config_show.rs‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,8 +3471,11 @@ fn test_codex_plugin_metadata_is_valid_json() {
34713471
&fs::read_to_string(project_root.join(".codex-plugin/plugin.json")).unwrap(),
34723472
)
34733473
.unwrap();
3474+
// Codex falls back to .claude-plugin/marketplace.json when
3475+
// .agents/plugins/marketplace.json is absent, so the existing Claude
3476+
// marketplace doubles as the Codex marketplace.
34743477
let marketplace: serde_json::Value = serde_json::from_str(
3475-
&fs::read_to_string(project_root.join(".agents/plugins/marketplace.json")).unwrap(),
3478+
&fs::read_to_string(project_root.join(".claude-plugin/marketplace.json")).unwrap(),
34763479
)
34773480
.unwrap();
34783481
let hooks: serde_json::Value = serde_json::from_str(
@@ -3484,7 +3487,7 @@ fn test_codex_plugin_metadata_is_valid_json() {
34843487
assert_eq!(plugin["skills"], "./skills/");
34853488
assert_eq!(plugin["hooks"], "./.codex-plugin/hooks/hooks.json");
34863489
assert_eq!(marketplace["plugins"][0]["name"], "worktrunk");
3487-
assert_eq!(marketplace["plugins"][0]["source"]["path"], "./");
3490+
assert_eq!(marketplace["plugins"][0]["source"], "./");
34883491
assert_eq!(
34893492
hooks["hooks"]["UserPromptSubmit"][0]["hooks"][0]["command"],
34903493
"wt config state marker set \"🤖\" >/dev/null 2>&1 || true"

0 commit comments

Comments
 (0)