codescene-oss/CodeScene PR Refactoring Agent
Automated code refactoring and code health improvements for pull requests
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 8, 2026
- License
- None
Pinned Snippet
uses: codescene-oss/pr-refactoring-agent@bbc72fbfb8e514ed2dd0a1ba2dda2e0083abac73 # v1.0.8tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| pr_number | Pull request number (if running in PR context) | no | — |
| command | The refactoring command to execute (e.g., "skill:fix-code-health-degradations") | yes | — |
| model | AI model to use (e.g., "anthropic/claude-sonnet-4-20250514") | yes | — |
| version | Version of refactoring-agent to use | no | latest |
| github_token | GitHub token for API access and checkout | no | ${{ github.token }} |
| codescene_token | CodeScene API access token | yes | — |
| codescene_onprem_url | CodeScene On-prem URL (required for on-prem instances) | no | — |
| anthropic_api_key | Anthropic API key (required for anthropic/* models) | no | — |
| openai_api_key | OpenAI API key (required for openai/* models) | no | — |
| google_api_key | Google API key (required for google/* models) | no | — |
| opencode_auth_json | OpenCode auth JSON (required for github-copilot/* models) | no | — |
| ca_bundle | Path to a custom CA certificate bundle (PEM format) for SSL/TLS verification. Required for on-prem CodeScene instances with custom certificates. | no | — |
| print_logs | Print OpenCode logs into stdout | no | false |
Outputs
no outputs