Prerequisites
- Claude Code v1.x or later
- Complete the AI Integrations prerequisites (Root.io account,
rootio_patcherCLI, registry configuration)
Installation
Quick Install
Use the automated installer from the root-ai repository:rootio_patcherCLI- Claude Code plugin, hooks, and skills
- Package registry configuration (npm, Maven, pip)
Manual Install
If you prefer to install manually or already haverootio_patcher installed:
Verify Installation
Restart Claude Code and check that the plugin loaded:How It Works
The Claude Code integration uses a PostToolUse hook that triggers automatically when you edit dependency files. Triggers when:- Edit or Write tool modifies:
package.json,pom.xml,requirements.txt,pyproject.toml,Pipfile
- Runs
rootio_patcherin dry-run mode - If patches are available, Claude receives a notification with vulnerability counts
- Claude offers to apply the patches
- If you approve, Claude runs
rootio_patcherwith--dry-run=false
Example Interaction
When you edit a dependency file:- You or Claude edits
package.jsonto add a new dependency - Hook runs automatically -
rootio_patcher npm remediateruns in the background - Claude is notified - “Found 3 vulnerable packages with Root.io patches available”
- Claude offers to fix - “Would you like me to apply the Root.io patches?”
- You approve - Claude runs
rootio_patcher npm remediate --dry-run=falseandnpm install