Author portable plugins for coding-agent hosts.
HostPlugin inspects a project or CLI, maps the requested behavior onto each host's native plugin components, previews every affected file, and writes only after explicit confirmation. It creates new standalone or embedded plugins and safely updates existing ones.
HostPlugin supports Codex, Claude Code, Grok Build, GitHub Copilot CLI, OpenCode, and Cursor.
codex plugin marketplace add baldaworks/hostplugin
codex plugin add hostplugin@hostpluginInvoke with $hostplugin:author.
claude plugin marketplace add baldaworks/hostplugin
claude plugin install hostplugin@hostplugin --scope userInvoke with /hostplugin:author.
grok plugin install 'baldaworks/hostplugin#plugins/hostplugin' --trustInvoke with /hostplugin-author.
copilot plugin marketplace add baldaworks/hostplugin
copilot plugin install hostplugin@hostpluginInvoke with /hostplugin-author.
agent plugin marketplace add https://github.com/baldaworks/hostplugin.gitThen install HostPlugin from the marketplace UI and invoke the hostplugin-author skill.
From the project where you want to install HostPlugin, run:
hostplugin_source="$(mktemp -d)"
git clone --depth 1 https://github.com/baldaworks/hostplugin.git "$hostplugin_source"
mkdir -p .opencode
cp -R "$hostplugin_source"/integrations/opencode/{skills,references,commands} .opencode/
rm -rf "$hostplugin_source"Invoke with /hostplugin-author. For a global installation, copy the same directories below ~/.config/opencode/ instead; keep the skills/ and references/ relative layout together.
Describe the plugin outcome in natural language:
$hostplugin:author Inspect this repository and write a plugin for using its CLI on all supported hosts.
HostPlugin performs read-only repository and CLI discovery, asks only for missing product decisions, and presents:
- a host-by-component capability report;
- metadata, invocation names, prerequisites, and security effects;
- the exact file manifest and concise diff;
- validation commands and known limitations.
No files are written until you confirm that preview. Unsupported components are reported and block generation until you choose to remove the target, remove the component, or explicitly redesign it.
HostPlugin understands the current native component families of each target, including skills, commands, agents, hooks, MCP and LSP integrations, rules, Codex apps, Cursor subagents, and OpenCode JS/TS plugins. It does not pretend those component models are interchangeable.
Provider contracts are pinned under plugins/hostplugin/references/ and include their review date and official sources. Installed host help and native validators take precedence when they reveal a newer contract.
Run the dependency-free contract suite:
python3 -m unittest discover -s tests -vThen validate the canonical and prefixed skills, the Codex plugin, and available native host manifests. See AGENTS.md for the required completion checks.
HostPlugin is available under the MIT License.