Prerequisites
- Codex installed and configured
- Complete the AI Integrations prerequisites (Root.io account,
rootio_patcherCLI, registry configuration)
Installation
Codex supports three installation methods for plugins. Choose the one that fits your workflow.Option 1: Clone the Repository
Clone the root-ai repository and register the plugin path in Codex:<clone-path>/root-ai/platforms/codex
Option 2: Repository Marketplace
Add the plugin to your project’smarketplace.json:
Option 3: Personal Marketplace
Add the plugin to your personalmarketplace.json file (location varies by Codex configuration):
Plugin Structure
The plugin consists of:- Plugin root:
platforms/codex - Manifest:
platforms/codex/.codex-plugin/plugin.json - Skill:
platforms/codex/skills/rootio-patcher/SKILL.md
How It Works
The Codex plugin automatically triggers when you’re working with dependency files: Triggers when:- Editing or discussing:
package.json,pom.xml,requirements.txt,pyproject.toml,Pipfile
- Codex recognizes dependency management context
- The rootio-patcher skill becomes available
- Codex can suggest vulnerability checks and patches
- You can manually invoke the skill or let Codex suggest it
Example Interaction
When working with dependencies:- You add a package - Edit
package.jsonto add a new dependency - Codex detects context - Recognizes you’re managing dependencies
- Codex suggests check - “Would you like me to check for vulnerabilities with Root.io?”
- You approve - Codex runs
rootio_patcher npm remediate - Patches applied - If vulnerable packages found, Codex offers to apply Root.io patches