Turn Claude Code into a refactor engine for your biggest repos.
Free, local-first. Advanced tech-debt reports when your team is ready.
Dev tier runs fully offline. No license required.
Real results from dogfooding CCG on itself
Built for Real Developer Workflows
No JSON wrangling. No complex setup. Just results.
CLI-First, No JSON
You never touch raw MCP JSON. Just run ccg quickstart and use natural language with Claude. The tools handle the rest.
IDE-Native
VS Code extension shows Tech Debt Index in your status bar. Claude Code MCP integration means you stay in your editor.
Fast Enough for Daily Use
Quickstart analyzes ~100k LOC in under a second. Heavy Latent Chain reasoning is there when you need it, not blocking your flow.
What It Does
Four capabilities organized by what you need and when.
Scan & Measure
Tech Debt Index (0-100, grade A-F) gives you one number for codebase health. Hotspot detection finds large files and high complexity.
Plan & Refactor with Claude
Latent Chain mode walks through Analysis, Plan, Impl, Review. Guard module blocks dangerous patterns before they ship.
Track Progress Over Time
Before/after metrics and TDI trend charts. Session history shows how your codebase improves sprint over sprint.
Integrate with Your Workflow
GitHub Action PR comments + quality gates. VS Code extension. Multi-repo config for monorepos. Claude Code MCP integration.
Real Results
From our own codebase analysis (yes, we dogfood).
| Rank | File | Score | Issue | Action |
|---|---|---|---|---|
| #1 | agents.service.ts | 90 | 542 lines, complexity 78 | split-module |
| #2 | workflow.service.ts | 89 | 518 lines, nesting 7 | split-module |
| #3 | commands.service.ts | 88 | 502 lines, complexity 72 | split-module |
| #4 | ccg.ts | 85 | 489 lines, nesting 6 | refactor |
| #5 | latent.service.ts | 83 | 467 lines, complexity 65 | refactor |
How It Works
From install to insights in 4 steps.
1. Install
One global install. Works on any Node.js project.
2. Run Quickstart
Scans repo, finds hotspots, writes markdown report to docs/reports/. Works offline.
3. Review & Refactor
Open the report in your editor. Start with worst-grade files. Use Claude Code + CCG MCP tools to refactor safely with Latent Chain.
4. Track Progress (Team)
Track TDI and hotspots over time. See trends across sessions.
Agent Collaboration Workflow
How CCG's specialized agents work together to solve complex tasks
For Open Source Maintainers
Automate code quality checks on every pull request.
Automatic PR Comments
Every PR gets a formatted comment showing top hotspots, TDI delta, and suggested fixes. No manual review needed.
Quality Gates
Set a TDI threshold and let CI fail on critical hotspots. Prevent complex code from being merged without review.
GitHub Actions Ready
Copy-paste our workflow file and start enforcing quality in minutes. Works with any Node.js project.
- run: npx codeguardian-studio code-optimize --ci --threshold 70
Pricing
Start free. Scale when ready.
Dev
For solo devs & side projects
- Core CLI & hotspot detection
- Tech Debt Index per run
- Basic markdown reports
- GitHub Actions template
- Fully local, no license
Team
For product teams & agencies
- Everything in Dev
- Advanced reports (before/after)
- TDI trends & session history
- Multi-repo config
- PR hotspot comments
- VS Code extension
- Email support
Enterprise
For large orgs & compliance
- Everything in Team
- Unlimited repos
- SSO / SAML
- Audit logs
- Dedicated cloud backend
- SLA + dedicated support
FAQ
Why not just use SonarQube + Claude?
You could! But Code Guardian Studio gives you:
- Tech Debt Index — one number for codebase health (0-100, grade A-F)
- Trend tracking — see how TDI changes sprint over sprint
- Multi-session reports — before/after comparisons out of the box
- Claude-native workflow — Latent Chain mode, MCP integration, no glue code
SonarQube is great for static analysis. CCG adds the "what changed" and "what to do next" layers that turn analysis into action.
Does the free tier have limits?
No artificial limits. Dev tier includes full CLI, hotspot detection, Tech Debt Index, and basic reports. It runs 100% offline with no license key required.
Team tier adds trend tracking, advanced reports, PR comments, and VS Code integration for teams who want visibility into progress over time.
What languages are supported?
JavaScript/TypeScript have the best support. Python, Java, Go, Rust, and C/C++ work with basic metrics. Any language with recognizable syntax gets file-level analysis.
Ready to clean up your codebase?
ccg quickstart
That's it. Report appears in docs/reports/.