Skip to content

The fastest browser for AI agents to run browser automation, built for sharing your logged-in browser state with your AI agents, like Codex or Claude Code, without disturbing you. Zero cost, zero config.

fix(plugins): move the Codex plugin root to the archive root

0x0e3b5e33fb7ec
diff --git a/plugins/ego/.codex-plugin/plugin.json b/plugins/ego/.codex-plugin/plugin.json
index e208ae7..ed4ccd7 100644
--- a/plugins/ego/.codex-plugin/plugin.json
+++ b/plugins/ego/.codex-plugin/plugin.json
@@ -17,7 +17,7 @@
"shortDescription": "Automate the user's ego browser",
"longDescription": "Control ego lite through the packaged ego-browser Skill while keeping agent browsing isolated from the user's own tabs.",
"developerName": "citrolabs",
- "category": "Engineering",
+ "category": "Developer Tools",
"capabilities": ["Interactive", "Read", "Write"],
"defaultPrompt": [
"Use ego-browser to inspect https://example.com and report its title."
diff --git a/plugins/ego/README.md b/plugins/ego/README.md
index db664a1..f9ed3b1 100644
--- a/plugins/ego/README.md
+++ b/plugins/ego/README.md
@@ -23,7 +23,7 @@ The output directory is `dist/plugins/ego-v2.0.0/`:
| Host | Artifact | Contents |
| ---------------- | --------------------------------- | --------------------------------------------------- |
| Claude Code | `ego-claude-code-v2.0.0.zip` | Claude plugin |
-| Codex | `ego-codex-v2.0.0.zip` | Local marketplace and Codex plugin |
+| Codex | `ego-codex-v2.0.0.zip` | Codex plugin at the archive root, plus marketplace |
| Cursor | `ego-cursor-v2.0.0.zip` | Cursor plugin |
| GitHub Copilot | `ego-github-copilot-v2.0.0.zip` | Claude-compatible plugin |
| Grok Build | `ego-grok-build-v2.0.0.zip` | Agent Plugins manifest and Skill |
@@ -33,8 +33,11 @@ The output directory is `dist/plugins/ego-v2.0.0/`:
| DeepSeek Harness | `ego-deepseek-harness-v2.0.0.tgz` | `@citrolabs/ego-deepseek-harness` npm bundle |
Every ZIP includes a host-specific `README.md` at its root; npm archives include
-it under `package/`. Codex and WorkBuddy ZIPs contain a marketplace root with the
-plugin under `plugins/ego/`. Other ZIPs start directly at the plugin root.
+it under `package/`. The WorkBuddy ZIP contains a marketplace root with the
+plugin under `plugins/ego/`. Other ZIPs start directly at the plugin root. The
+Codex ZIP starts there too and carries its marketplace file alongside, because
+the public plugin directory rejects an archive whose manifest is not at the
+root.
The two npm packages have separate names and exports so their adapters cannot
be confused by package caches. All nine packages contain real Skill files;
@@ -79,8 +82,11 @@ See the [Claude Code plugin reference](https://code.claude.com/docs/en/plugins-r
### Codex
-Extract the Codex ZIP, keeping `.agents/plugins/marketplace.json` and
-`plugins/ego/` together. Add the extracted marketplace root:
+The Codex ZIP serves both install routes. `.codex-plugin/plugin.json` and
+`skills/` sit at the archive root, and `.agents/plugins/marketplace.json`
+points at that same root with `"path": "./"`.
+
+To install locally, extract the ZIP and add the extracted directory:
```bash
codex plugin marketplace add /absolute/path/to/ego-codex
@@ -88,8 +94,14 @@ codex plugin add ego@ego-codex-local
```
Restart Codex if the plugin does not appear, then ask it to use `$ego-browser`.
-The contained plugin uses `.codex-plugin/plugin.json`. Remove the installed
-plugin with `codex plugin remove ego@ego-codex-local`.
+Remove the installed plugin with `codex plugin remove ego@ego-codex-local`.
+
+To publish, upload the same ZIP as a skills-only plugin in the submission
+portal and select the verified developer identity that matches `author.name`.
+The listing copy comes from the manifest's `interface` object, whose `category`
+must be one of the values the portal accepts. See
+[Submit plugins](https://developers.openai.com/plugins/deploy/submission) and
+the [submission error reference](https://developers.openai.com/plugins/deploy/submission-errors).
See the [OpenAI plugin guide](https://developers.openai.com/plugins/build/plugins).
diff --git a/plugins/ego/tests/plugin-packaging.test.mjs b/plugins/ego/tests/plugin-packaging.test.mjs
index e888dcb..b885811 100644
--- a/plugins/ego/tests/plugin-packaging.test.mjs
+++ b/plugins/ego/tests/plugin-packaging.test.mjs
@@ -21,7 +21,13 @@ import test from "node:test";
const repositoryRoot = fileURLToPath(new URL("../../..", import.meta.url));
const targets = [
["claude-code", "Claude Code", [".claude-plugin"]],
- ["codex", "Codex", [".codex-plugin"], ".agents/plugins/marketplace.json"],
+ [
+ "codex",
+ "Codex",
+ [".codex-plugin"],
+ ".agents/plugins/marketplace.json",
+ true,
+ ],
["cursor", "Cursor", [".cursor-plugin"]],
["github-copilot", "GitHub Copilot", [".claude-plugin"]],
["grok-build", "Grok Build", []],
@@ -183,14 +189,13 @@ function assertArtifacts(root, output, name, version, skillName) {
);
try {
for (const target of targets) {
- const [id, title, manifests, marketplacePath] = target;
+ const [id, title, manifests, marketplacePath, flat] = target;
const contents = unpack(
join(release, artifactName(name, version, target)),
join(extracted, id),
);
- const plugin = marketplacePath
- ? join(contents, "plugins", name)
- : contents;
+ const plugin =
+ marketplacePath && !flat ? join(contents, "plugins", name) : contents;
const expected = [
"LICENSE",
"README.md",
@@ -256,6 +261,7 @@ function assertArtifacts(root, output, name, version, skillName) {
}
packages.set(id, plugin);
}
+ if (flat) expected.push(marketplacePath);
assert.deepEqual(
files(plugin),
expected.sort(),
@@ -285,16 +291,21 @@ function assertArtifacts(root, output, name, version, skillName) {
assert.deepEqual(
marketplace.plugins[0].source,
id === "codex"
- ? { source: "local", path: `./plugins/${name}` }
+ ? { source: "local", path: "./" }
: `./plugins/${name}`,
);
assert.deepEqual(
files(contents),
- [
- "README.md",
- marketplacePath,
- ...expected.map((path) => `plugins/${name}/${path}`),
- ].sort(),
+ flat
+ ? expected.sort()
+ : [
+ "README.md",
+ marketplacePath,
+ ...expected.map((path) => `plugins/${name}/${path}`),
+ ].sort(),
+ flat
+ ? "the public directory requires the plugin root at the archive root"
+ : "a marketplace archive nests the plugin under plugins/",
);
}
}
diff --git a/plugins/scripts/package-plugins.mjs b/plugins/scripts/package-plugins.mjs
index 154f905..065ad67 100755
--- a/plugins/scripts/package-plugins.mjs
+++ b/plugins/scripts/package-plugins.mjs
@@ -27,6 +27,7 @@ const TARGETS = [
title: "Codex",
files: [".codex-plugin/plugin.json"],
marketplace: ".agents/plugins/marketplace.json",
+ flat: true,
},
{ id: "cursor", title: "Cursor", files: [".cursor-plugin/plugin.json"] },
{
@@ -281,9 +282,10 @@ async function packagePlugin(repositoryRoot, name, outputRoot) {
try {
for (const target of TARGETS) {
const stagingRoot = join(temporaryRoot, target.id);
- const payloadRoot = target.marketplace
- ? join(stagingRoot, "plugins", name)
- : stagingRoot;
+ const payloadRoot =
+ target.marketplace && !target.flat
+ ? join(stagingRoot, "plugins", name)
+ : stagingRoot;
const entries = [
"LICENSE",
...target.files,
@@ -308,7 +310,7 @@ async function packagePlugin(repositoryRoot, name, outputRoot) {
const hostReadme = `# ${name} for ${target.title}\n\n## Requirements\n\n${requirements}\n\n## Installation\n\n${installation}\n`;
await writeFile(join(payloadRoot, "README.md"), hostReadme);
if (target.marketplace) {
- const source = `./plugins/${name}`;
+ const source = target.flat ? "./" : `./plugins/${name}`;
const catalog =
target.id === "codex"
? {
@@ -342,7 +344,9 @@ async function packagePlugin(repositoryRoot, name, outputRoot) {
name: `${name}-${target.id}-local`,
...catalog,
});
- await writeFile(join(stagingRoot, "README.md"), hostReadme);
+ if (!target.flat) {
+ await writeFile(join(stagingRoot, "README.md"), hostReadme);
+ }
}
const archiveName = `${name}-${target.id}-v${manifest.version}.${target.npm ? "tgz" : "zip"}`;
const archive = join(temporaryRoot, archiveName);