@automann/swarm-discussion-installer
v0.1.0
Published
Installer and doctor for the swarm-discussion Codex plugin and swarm-expert custom agent.
Downloads
115
Readme
swarm-discussion-installer
Tiny installer and doctor for the swarm-discussion Codex plugin.
The Codex plugin package includes agents/swarm-expert.toml, but Codex custom agents are discovered from
standalone agent directories, not from the plugin package internals. This wrapper installs the plugin through
the native Codex plugin commands, then copies swarm-expert.toml from the installed plugin directory into the
expected custom-agent location.
Install Globally
npx @automann/swarm-discussion-installer install --globalThis runs:
codex plugin marketplace add automann/swarm-discussion
codex plugin add swarm-discussion@swarm-discussionThen it writes:
~/.codex/agents/swarm-expert.tomlInstall For A Project
npx @automann/swarm-discussion-installer install --projectThis writes:
./.codex/agents/swarm-expert.tomlRun this command from the project root.
Doctor
npx @automann/swarm-discussion-installer doctorThe doctor command does not modify files. It checks:
- Codex CLI availability and version.
swarm-discussion@swarm-discussionplugin installed and enabled.- global custom-agent file.
- project custom-agent file.
- TOML
name = "swarm-expert". - file hash equality with the template from the installed
swarm-discussionplugin.
Optional real spawn smoke test:
npx @automann/swarm-discussion-installer doctor --verify-spawnThis may consume a Codex model call, so it is opt-in.
Repair
npx @automann/swarm-discussion-installer repair --globalor:
npx @automann/swarm-discussion-installer repair --projectrepair reruns the native Codex plugin install/update commands, reads the current
agents/swarm-expert.toml from the installed plugin, and rewrites the selected custom-agent target when it is
missing or stale. It uses the same overwrite policy as install.
Uninstall Custom-Agent Registration
npx @automann/swarm-discussion-installer uninstall --globalor:
npx @automann/swarm-discussion-installer uninstall --projectuninstall only removes the swarm-expert.toml custom-agent registration file. It does not remove the Codex
plugin or marketplace.
The command is conservative:
- target missing: succeeds as already absent.
- target matches the installed plugin template: removes it.
- target differs from the installed plugin template: refuses to remove it.
To remove a modified file anyway:
npx @automann/swarm-discussion-installer uninstall --global --backup --forceClean Uninstall
npx @automann/swarm-discussion-installer uninstall --global --allor:
npx @automann/swarm-discussion-installer uninstall --project --all--all is intentionally destructive and does not create backups. It removes:
- the selected custom-agent registration file.
- the
swarm-discussion@swarm-discussionCodex plugin. - the
swarm-discussionCodex marketplace.
Use --global --all to remove ~/.codex/agents/swarm-expert.toml. Use --project --all from a project root to
remove ./.codex/agents/swarm-expert.toml.
Overwrite Policy
The installer is idempotent and refuses to silently overwrite a different existing agent file.
Use a backup:
npx @automann/swarm-discussion-installer install --global --backupForce overwrite without a backup:
npx @automann/swarm-discussion-installer install --global --forceManual Fallback
Manual copy is a troubleshooting path, not the normal install path:
mkdir -p ~/.codex/agents
cp /path/to/installed/swarm-discussion/plugins/codex/agents/swarm-expert.toml ~/.codex/agents/swarm-expert.tomlYou can find the installed plugin path with:
codex plugin list | rg swarm-discussion@swarm-discussion