# CodeScene

> Behavioral code analysis platform that measures CodeHealth, prioritizes technical debt, and guards AI-generated code with PR reviews, IDE/CLI tools and an MCP server.

CodeScene, made by CodeScene AB and founded in 2015 by Adam Tornhill, is a code analysis platform that combines code metrics with behavioral data on how teams work with the code. It scores code with its CodeHealth metric, highlights high-impact technical debt hotspots, and offers automated reviews, IDE extensions, a CLI and an MCP server for AI coding assistants.

## What It Is

CodeScene analyzes a codebase's history and team interaction to find the parts of a system that slow delivery and carry the most risk. The CodeHealth metric, which the vendor describes as research-backed, combines factors such as code complexity and code smells into a score from 1 to 10. Dashboards cover code quality, team dynamics (knowledge distribution, bus factor simulation, coordination needs) and software delivery (unplanned work, branch analysis, cost metrics). The site states support for over 25 languages.

## Guarding AI-Generated Code

CodeScene positions CodeHealth as a way to assess whether code is ready for AI agents. Its CodeHealth MCP Server gives AI coding assistants deterministic code health feedback so they can detect and fix issues in a self-correcting loop. A PR Refactoring Agent proposes guided refactorings from pull requests, and CodeScene ACE offers AI-assisted refactoring in the editor. CodeScene states that AI agents introduce at least 60% more defects in unhealthy code and that 9.5 is the Code Health level at which AI works reliably.

## Workflow Integration

Automated CodeHealth pull request reviews act as quality gates, and code coverage gates can enforce test thresholds. Developers can use a free IDE extension and a CLI tool, while a REST API and plugin system feed data into other tools. Issue tracker integrations include Jira, Trello, Azure DevOps and GitHub Issues.

## Deployment and Security

CodeScene runs as a cloud service working with GitHub, GitLab, Azure DevOps and Bitbucket, or on-premise on Mac, Linux or Windows, including an offline mode. The enterprise page lists SSO, role-based access control, ISO 27001 certification and GDPR compliance.

## Features
- CodeHealth metric for code quality
- Technical debt hotspot prioritization
- Behavioral code analysis
- Team dynamics and knowledge distribution
- Bus factor simulation
- Software delivery and unplanned work insights
- Automated CodeHealth pull request reviews
- Code coverage gates
- IDE extensions
- CLI tool
- CodeHealth MCP Server for AI assistants
- PR Refactoring Agent
- CodeScene ACE AI refactoring
- REST API and plugin system
- Single Sign-On and role-based access control
- Cloud and on-premise deployment
- Support for over 25 languages

## Integrations
GitHub, GitLab, Azure DevOps, Bitbucket, Jira, Trello, GitHub Issues, GitHub Copilot, Model Context Protocol

## Platforms
WINDOWS, MACOS, LINUX, WEB, API, VSC_EXTENSION, JETBRAINS_PLUGIN, CLI

## Pricing
Freemium — Free tier available with paid upgrades

## Links
- Website: https://codescene.com
- Documentation: https://codescene.io/docs/index.html
- EveryDev.ai: https://www.everydev.ai/tools/codescene
