# 🔍 CodePulse CLI

### 🚀 Advanced Architectural Intelligence & Code Health Engine
**Architectural Intelligence • Semantic Modeling • Real-time Monitoring • AI-Agentic Ready**
CodePulse is a next-generation architectural health engine designed for large-scale JavaScript, TypeScript, Python, and mixed-language projects. It provides deep, systemic insights into code structure, dependency risks, and evolutionary trends, enabling teams and AI agents to maintain robust and maintainable codebases with surgical precision.
**v5.2 Evolution:** Featuring our new non-linear scoring model, 🛡️️ Confidence Metric, and **Architectural Ghost Mode**.

[](https://www.npmjs.com/package/@archpulse/codepulse)
[](https://opensource.org/licenses/MIT)
[](https://nodejs.org/)
---
### 🌐 Multi-Language Support
[English](./README.md) | [Українська](./translations/README.ua.md) | [Русский](./translations/README.ru.md) | [Čeština](./translations/README.cs.md) | [한국어](./translations/README.ko.md) | [Deutsch](./translations/README.de.md) | [Français](./translations/README.fr.md)
### 📖 Full Documentation
[English](./docs/CODEPULSE_FULL_DOCS.md) | [Українська](./translations/CODEPULSE_FULL_DOCS.ua.md) | [Русский](./translations/CODEPULSE_FULL_DOCS.ru.md) | [Čeština](./translations/CODEPULSE_FULL_DOCS.cs.md) | [한국어](./translations/CODEPULSE_FULL_DOCS.ko.md) | [Deutsch](./translations/CODEPULSE_FULL_DOCS.de.md) | [Français](./translations/CODEPULSE_FULL_DOCS.fr.md)
---
## ⚡ Quick Start
### Installation
```bash
npm install -g @archpulse/codepulse
```
### First Scan
```bash
# Analyze your project and generate an HTML report
codepulse scan .
# Start the real-time TUI dashboard
codepulse watch .
```
---
## 🚀 Performance & Analysis Engines
CodePulse provides two distinct analysis paths optimized for different workflows. We build a comprehensive systemic model of your entire project, going far beyond standard file-based linting.
### Fast Mode (Ultra-fast scanning)
*Focus: Instant feedback on core structural health and basic issues.*
| Tool | Engine | Runtime (s) |
|------|--------|-------------|
| **ESLint** | Baseline | ~4.8s |
| **CodePulse** | **Oxlint Engine** | **~2.8s** |
### Extended Analysis Mode (Full Ecosystem Compatibility)
*Focus: Deep architectural insights, complex dependency analysis, and full ESLint rule compatibility.*
| Tool | Engine | Runtime (s) |
|------|--------|-------------|
| **ESLint** | Raw Baseline | ~3.3s |
| **CodePulse** | **ESLint + Systemic Analysis** | **~5.5s** |
> **Why the difference?**
> In **Extended Analysis Mode**, CodePulse executes your project's full ESLint suite **plus** its own systemic analysis (dependency graph, circularity detection, architectural boundary checks, and historical churn). The result is a unified report that combines ecosystem-standard linting with deep structural intelligence.
---
## 🔍 Scan Modes & Engines
### Engine Selection
```bash
# Auto-detect (Default)
# Uses ESLint if config is found, otherwise Oxlint
codepulse scan .
# Force ultra-fast mode (Oxlint-powered)
codepulse scan . --engine oxlint
# Force extended analysis mode (higher precision & compatibility)
codepulse scan . --engine eslint
# or
codepulse scan . --precision
```
### Verbose / Debug Modes
```bash
# Show program-level issues only
codepulse scan . -d
# Linter debug mode (surfaces raw output from underlying tools)
codepulse scan . -ld
```
---
## 🏆 Core Features & Competitive Advantage
CodePulse is the only tool that seamlessly unifies AST static analysis, Git-based churn & coupling analytics, and native MCP integration for AI-agent workflows. Optimized for modern development environments, it answers 'how it was, how it is, and what to do next'.
| Feature | Description |
|---------|-------------|
| **🏛️️ Architectural Radar** | Define layers and catch boundary violations automatically |
| **💡 Semantic Duplication** | AST-based structural hashing finds identical logic, not just identical lines |
| **🔄 Circular Dependency Breaker** | Detect and visualize circular imports and dependency loops |
| **⚡ Real-time Watch Mode** | Interactive TUI dashboard that updates as you code |
| **🚀 Parallel Pipeline** | Core analysis, fast linters, and security checks run concurrently |
| **📦 Smart Caching** | Efficiently reuses results from unchanged files |
| **🛠️️ Auto Linter Setup** | Automatically installs required external linters for your project |
| **🎨 Professional TUI/CLI** | Rich colors, interactive visualizations, and clear feedback |
| **🌐 7-Language Support** | Full localization for global development teams |
| **📄 License Management** | Instantly generate and verify open-source licenses |
---
## 📋 Command Reference
### Primary Commands
| Command | Description |
|---------|-------------|
| `codepulse scan [dir]` | Full analysis + HTML report + status badge |
| `codepulse watch [dir]` | Interactive real-time TUI dashboard |
| `codepulse verify [dir]` | **[GOD TIER]** Deep verification: Build, Typecheck, and Tests |
| `codepulse audit [dir]` | **[NEW]** Comprehensive architectural audit and `AUDIT.md` generation |
| `codepulse ghost