Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

fix(codex): ship .agents/plugins/marketplace.json so the plugin is installable (#2780)

Maximilian Roos4489c5c4a833
diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json
new file mode 100644
index 000000000..df58e28d6
--- /dev/null
+++ b/.agents/plugins/marketplace.json
@@ -0,0 +1,18 @@
+{
+ "name": "worktrunk",
+ "interface": {
+ "displayName": "Worktrunk",
+ "shortDescription": "Git worktree workflows for parallel Codex sessions.",
+ "longDescription": "Use Worktrunk from Codex to manage linked worktrees, set up LLM commit workflows, configure hooks, and bundle activity markers for wt list.",
+ "developerName": "Worktrunk",
+ "category": "Productivity",
+ "websiteURL": "https://worktrunk.dev/claude-code/"
+ },
+ "plugins": [
+ {
+ "name": "worktrunk",
+ "description": "Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows. This plugin provides configuration guidance (LLM commit messages, project hooks, worktree paths) and automatic activity tracking (πŸ€–/πŸ’¬ indicators in `wt list` showing active Codex sessions).",
+ "source": "./"
+ }
+ ]
+}
diff --git a/tests/integration_tests/config_show.rs b/tests/integration_tests/config_show.rs
index c6bd29dab..dd33b69d6 100644
--- a/tests/integration_tests/config_show.rs
+++ b/tests/integration_tests/config_show.rs
@@ -3543,11 +3543,13 @@ fn test_codex_plugin_metadata_is_valid_json() {
&fs::read_to_string(project_root.join(".codex-plugin/plugin.json")).unwrap(),
)
.unwrap();
- // Codex falls back to .claude-plugin/marketplace.json when
- // .agents/plugins/marketplace.json is absent, so the existing Claude
- // marketplace doubles as the Codex marketplace.
+ // Codex discovers a marketplace's plugin list strictly from
+ // <repo-root>/.agents/plugins/marketplace.json β€” there is no fallback to
+ // the Claude .claude-plugin/marketplace.json. Without this file Codex
+ // registers the marketplace but enumerates zero plugins, so the plugin is
+ // uninstallable via /plugins (verified against codex-cli 0.130.0).
let marketplace: serde_json::Value = serde_json::from_str(
- &fs::read_to_string(project_root.join(".claude-plugin/marketplace.json")).unwrap(),
+ &fs::read_to_string(project_root.join(".agents/plugins/marketplace.json")).unwrap(),
)
.unwrap();
let hooks: serde_json::Value = serde_json::from_str(
@@ -3560,6 +3562,9 @@ fn test_codex_plugin_metadata_is_valid_json() {
assert_eq!(plugin["hooks"], "./.codex-plugin/hooks/hooks.json");
assert_eq!(marketplace["plugins"][0]["name"], "worktrunk");
assert_eq!(marketplace["plugins"][0]["source"], "./");
+ // Codex validates `interface` is an object and requires `displayName`;
+ // omitting it is what made the plugin undiscoverable in /plugins.
+ assert_eq!(marketplace["interface"]["displayName"], "Worktrunk");
assert_eq!(
hooks["hooks"]["UserPromptSubmit"][0]["hooks"][0]["command"],
"wt config state marker set \"πŸ€–\" >/dev/null 2>&1 || true"