Subagents and plugins: run a skill on three sheets in parallel

Day 6, 30 minutes · beginner

Goal of this lessonCheck three product sheets in parallel with subagents in each agent, get one combined report and decide how to package the skill.

Why it matters

Before the spring fair Elske has three sheets to check at once: the webshop, the market stall and the wholesale list. One agent can check them one after the other, but each check fills the conversation with JSON she does not need to see. Subagents fix that. The main agent hands each sheet to a separate helper with its own clean context, the helpers work in parallel, and only their short results come back.

All three agents can do this, each with its own command. And once a skill works this well, the next question is how to hand it to people outside the project. That is what plugins are for, and it is where the three tools differ most.

Today you check three sheets in parallel with subagents in every agent you use and get one combined report. Then you compare how each tool packages a skill as a plugin and decide whether Elske needs one at all.

When subagents help

The Codex docs explain the idea well. A long chat full of logs and tool output gets less reliable over time. Subagents keep that noise out of the main thread: they explore, test or check, and return a summary. Two warnings from the same page:

  • They cost more. Each subagent does its own model and tool work, so a subagent run uses more tokens than one agent doing the same job.
  • Prefer reading jobs. Parallel checks, searches and summaries are safe. Several agents editing the same files at once can clash.

Checking three sheets that nobody edits is a perfect fit.

Agent How you ask for subagents How you watch them
Codex Ask for subagents or parallel work in your prompt. Codex also follows skill or AGENTS.md instructions that ask for it /subagents to switch between agent threads
GitHub Copilot CLI Start the prompt with /fleet. The model may also delegate on its own /tasks to see the subtasks
Antigravity CLI Ask in your prompt; the main agent decides whether to start subagents. /swarm is a bigger option for broad jobs /agents opens the Agent Manager panel

In Antigravity, subagents inherit the main agent's permissions and sandbox settings, and any approval request comes back to you in the main view.

The steps

  1. Make a sheets folder in mosswick-candles with three files. Copy products.csv to sheets/shop.csv, copy the wholesale sheet from day five to sheets/wholesale.csv, and save this as sheets/market.csv:
sku,name,price_eur,burn_hours
MK-301,Tea Light Bag of 10,6.50,4
MK-302,Beeswax Taper,7.25,8.5
  1. Ask for one subagent per sheet. Each one follows the product-sheet-check skill for its own sheet. The main agent combines the results.
  2. Watch the subagents while they run, with the command of your tool.
  3. Check the combined report. It should list five problems in total: three in shop.csv, the burn time 8.5 in market.csv and the price 70 in wholesale.csv.
  4. Save the report as fair-check.md and commit it with the sheets folder.

Pick your tool below and follow the steps.

Packaging the skill as a plugin

A plugin is an installable bundle. All three tools let a plugin carry skills, plus other parts such as MCP servers (connections to outside tools). In all three, the skill goes into a skills/ folder inside the plugin, unchanged:

mosswick-tools/
  plugin.json
  skills/
    product-sheet-check/
      SKILL.md
      scripts/check_products.py

The skill folder travels as it is. The manifest, plugin.json, does not:

  • Codex (OpenAI's plugins docs) and GitHub Copilot both describe a portable format called Agent Plugins: a root plugin.json that declares the Agent Plugins schema from agent-plugins.org. Copilot CLI tests a local plugin with copilot plugin install ./mosswick-tools. OpenAI says to install and test a local plugin in the ChatGPT desktop app, through a marketplace file; Codex CLI has a /plugins browser to install from marketplaces.
  • Antigravity uses its own manifest schema, from antigravity.google. For a repository that also ships plugins for other tools, it reads .antigravity-plugin/plugin.json, which wins over a root plugin.json. You check and install with agy plugin validate and agy plugin install ./mosswick-tools. A skill from a plugin gets the name <plugin>:<skill>.
  • MCP files differ too: mcp.json in the Agent Plugins format, mcp_config.json in Antigravity.

So one plugin folder can serve all three, but only with two manifests side by side, and only Copilot and Antigravity document a plain command to test a local plugin from the terminal. Antigravity's validator warns about files meant for other tools; its docs say that is expected in a multi-tool repository.

For Elske the answer is simple. Her skill lives in the shop repository, where every agent finds it, and in her personal folder. She needs a plugin only when she wants to hand the check to people outside that repository, or bundle it with a connection to her webshop.

Where to go next

Common mistakes

  • Using subagents for a tiny job. Three sheets of a few lines is a practice run. In daily work, a single agent is cheaper for small checks.
  • Letting subagents edit the same file. Keep parallel work to reading and checking, and let the main agent write the report.
  • Expecting one plugin manifest to work everywhere. Test the plugin in every tool you ship it for.

Today's actions

Ticks are not saved without an account

Do it in your tool

OpenAI Codex

  1. Start the agent in the practice folder, where you made the sheets folder.
    cd mosswick-candles
    codex
  2. Ask for subagents in plain words. Codex starts them when you ask directly.
    Check the three sheets in the sheets folder in parallel. Use one subagent per sheet, and have each subagent follow the product-sheet-check skill for its own sheet. Then give me one table with sheet, line, sku and problem, and the total number of problems.
  3. While it runs, type /subagents and pick a thread to see what one subagent is doing. Switch back to the main thread the same way.
  4. If a subagent asks to run the script, read the command and approve it.
  5. Check that the table lists 5 problems: 3 in shop.csv, 1 in market.csv and 1 in wholesale.csv. Ask the agent to save it as fair-check.md.
    Save that table as fair-check.md in this folder.
  6. Type /exit and commit the sheets folder and fair-check.md yourself.
    git add -A
    git commit -m "Fair check of three sheets"

Note: Current Codex releases turn subagent workflows on by default. Each subagent does its own model and tool work, so a run uses more tokens than a single agent. Codex can also delegate when a skill's instructions ask for it.

Paid planOpenAI lists the Codex CLI for ChatGPT Plus, Pro, Business, Edu and Enterprise. Free and Go list Codex in the desktop app only, subject to rollout. An API key also works.

Checked on 4 December 2026 · Source: Codex docs: Subagents (opens in a new tab)

Create a free account to save your progress. Sign in or sign up