# troll plugin for Codex
Install `troll` on the host's PATH, then run `troll setup codex`. It writes this package under its own data directory and prints a marketplace command and a plugin command.
Before running either printed command, establish what it would act on. Setup's five destinations, relative to the directory it reports, are:
- `.agents/plugins/marketplace.json`
- `integrations/codex/.codex-plugin/plugin.json`
- `integrations/codex/.mcp.json`
- `integrations/codex/skills/troll/SKILL.md`
- `integrations/codex/README.md` (this file)
Those are the paths setup may write, not the ones it will: it skips every one whose contents already match what it would put there, and writes only the rest. Resolve all five fully, following every symlinked parent directory — each destination's parent is resolved on its own, so a symlinked directory redirects the paths beneath it and no others — and confirm each resolved path lands inside the package you intend. A path that does not exist yet is published by hard link; only a path being replaced is published by rename. Those two are setup's choices; `path_resolution(7)`, `link(2)` and `rename(2)` are where to read what they mean on disk. Then confirm that the marketplace `troll-local` and the plugin `troll@troll-local` would name this package rather than a registration already held under those names on this account. The `setup codex` section of `troll --llm-guide --full` has the directory resolution rules in full.
Then start a fresh session and select the troll skill. The plugin starts `troll mcp` over stdio and has no hooks.
The skill text is identical in both plugin packages. Update both copies together.