Codity Claude Code Plugin
The Codity Claude Code plugin brings Codity review, security scanning, PR triage, and fix workflows into Claude Code.
The plugin uses the Codity CLI under the hood, so install and authenticate the CLI before using plugin commands.
Install
In Claude Code, add the marketplace and install the plugin:
/plugin marketplace add codity-ai/codity-plugin
/plugin install codity@codity
Then authenticate the CLI once:
codity login
For Codity email accounts, use:
codity login --email
Slash Commands
| Command | What it does |
|---|---|
/code-review | Reviews local changes and helps fix findings. |
/autofix | Applies Codity PR comments with approval before each fix, then resolves threads when possible. |
/check-pr | Checks PR readiness by waiting for CI, reading review comments, and summarizing merge status. |
/codity-loop | Runs review, fix, and re-review cycles until critical and high findings are cleared or the loop limit is reached. |
The plugin can also trigger from natural language in Claude Code, such as "review my code" or "fix the Codity comments".
Typical Workflows
Review Local Changes
- Make changes in your repository.
- Ask Claude Code to run
/code-review. - Review the grouped findings.
- Approve fixes you want applied.
Fix Existing PR Comments
- Open Claude Code in the repository for the PR.
- Run
/autofix. - Approve or skip each proposed fix.
- Let the plugin resolve threads that were fixed successfully.
Check Whether a PR Is Ready
Run:
/check-pr
The plugin gathers CI status, review comments, and Codity findings, then reports what still needs attention before merge.
Iterate Until Clean
Run:
/codity-loop
Codity reviews, fixes actionable findings, and re-reviews in a loop until no critical or high issues remain, up to a maximum of 5 iterations.
Requirements
- Codity CLI installed and available on
PATH. - An authenticated Codity CLI session.
- Repository access for the PR or local changes you want reviewed.
- GitHub or GitLab CLI tools may be useful for provider-specific PR operations, but Codity can also talk to supported providers directly.
Troubleshooting
If a plugin command cannot run:
- Run
codity --versionto confirm the CLI is installed. - Run
codity doctorto check service connectivity. - Run
codity loginorcodity login --emailif authentication expired. - Run the command from inside the target git repository.