About one repo for five agents¶
Loom installs in Claude Code, GitHub Copilot CLI, Codex, Pi and OpenCode from the same files. Why is it built that way, and what does that cost?
Everything exists once¶
Each agent has its own format for add-ons. The usual answer is one package for each agent, with the same skill copied into each. Then someone fixes a skill in one package and forgets the other four, and the copies no longer match.
Loom keeps each skill, subagent, MCP server and hook in one place. Where an agent needs a different shape, a small adapter reads the same files and hands them over in that shape.
flowchart LR
F[One set of files: skills, subagents, MCP servers, hooks]
F --> MP[marketplace.json]
F --> PI[hosts/pi.ts]
F --> OC[hosts/opencode.ts]
MP --> CC[Claude Code, Copilot, Codex]
PI --> P[Pi]
OC --> O[OpenCode]
How each agent finds the parts¶
Claude Code, Copilot and Codex share a plugin format. They read .claude-plugin/marketplace.json, which points at the repo root, and they find the folders by their names.
Pi and OpenCode have no such format. Each loads one file of code from Loom:
| Agent | Loads | Named in |
|---|---|---|
| Pi | hosts/pi.ts |
the pi key of package.json |
| OpenCode | hosts/opencode.ts |
the main key of package.json |
That file reads the same folders and registers the skills, the subagents and the MCP servers with the agent.
Hooks run through one script¶
Loom holds each hook once, as a script in hooks/scripts/, and lists it in hooks/hooks.json. Claude Code and Copilot run that list themselves. Pi and OpenCode run it through hosts/hooks.ts.
The always-on skills use this path. A hook prints a skill's text when a session starts, and the agent takes the text as part of its instructions.
Skills from other people stay theirs¶
Many skills in Loom come from other authors. Loom installs each one with a tool and records its source and version in skills-lock.json. Nobody edits an installed skill in Loom, so an update can replace it and lose no work.
When Loom needs a skill to behave differently, it keeps its own version in place of the installed one. The skills reference says which is which.
What the choice costs¶
One set of files cannot use everything that each agent offers:
- Codex gets the skills and the MCP servers only. It has no subagents, hooks or extensions.
- Copilot ignores roles and always gets every skill. It runs hooks only in a folder you trust, and extensions only with
--experimental. - OpenCode runs the hooks but drops the text they print, so the always-on skills are not on there.
- A role limits skills only. Each role still brings every subagent, hook and MCP server.
- Two roles side by side in Claude Code and Codex each bring their own copy of the subagents and the MCP servers.
In my opinion the cost is worth paying. A fix to a skill reaches all five agents at once, and the limits fall on the agents that support the least.