<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ai-coding-agents-leave-massive-tech-debt-we-built-an-engine-to-scan-1-270-files-in-minutes--nrfsgouis" -->

---
title: AI Coding Agents Leave Massive Tech Debt. We Built an...
description: An audit of a 1,270-file Kotlin Multiplatform project found 55 compile-breaking errors and 13,246 architectural warnings, including dead code, deprecated APIs,...
canonical: https://daily.dev/posts/ai-coding-agents-leave-massive-tech-debt-we-built-an-engine-to-scan-1-270-files-in-minutes--nrfsgouis
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: AI Coding Agents Leave Massive Tech Debt. We Built an Engine to Scan 1,270 Files in Minutes. | daily.dev
og:description: An audit of a 1,270-file Kotlin Multiplatform project found 55 compile-breaking errors and 13,246 architectural warnings, including dead code, deprecated APIs,...
og:url: https://daily.dev/posts/ai-coding-agents-leave-massive-tech-debt-we-built-an-engine-to-scan-1-270-files-in-minutes--nrfsgouis
og:image: https://api.daily.dev/og/posts/Nrfsgouis.png
og:image:alt: AI Coding Agents Leave Massive Tech Debt. We Built an Engine to Scan 1,270 Files in Minutes.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Coding Agents Leave Massive Tech Debt. We Built an Engine to Scan 1,270 Files in Minutes.

**[Just Kotlin](https://daily.dev/sources/justkotlin)** · [@techsoneai](https://daily.dev/techsoneai) · 1 min read · 1 upvotes · 0 comments

## Summary

An audit of a 1,270-file Kotlin Multiplatform project found 55 compile-breaking errors and 13,246 architectural warnings, including dead code, deprecated APIs, and scope leaks. Standard IDE batch inspections on the project took over 30 minutes and choked memory. The team built ComposeBridge, a tool that interfaces directly with the IDE's compiler PSI daemon for sub-50ms local diagnostics at zero AI token cost. It also syncs edits to physical hardware in real time and feeds compilation diagnostics back to local AI agents via MCP so they self-correct before a diff is reviewed. The core tools and MCP server are open-source.

## Content

The hidden cost of AI coding agents isn't just the API bill—it's the silent technical debt left behind in production codebases.

To test this, I ran an audit on a real-world **1,270-file Kotlin Multiplatform (KMP)** project.

The findings:

- **55 compile-breaking errors**
- **13,246 architectural warnings** (dead code, deprecated APIs, scope leaks)

Running standard IDE batch inspections on a project this large took over 30 minutes and choked memory.

### How We Solved It Locally

Instead of relying on heavy cloud linters or sluggish Gradle tasks, we built **ComposeBridge**:

1. **Sub-50ms Local Diagnostics:** Interfacing directly with the IDE's compiler PSI daemon to audit AST changes instantly with **0 AI token cost**.
2. **Bi-directional Live Sync:** Edits reflect on physical hardware in real-time, bypassing emulator bloat.
3. **Hard-Gated Agent Feedback:** Feeding precise compilation diagnostics back to local AI agents (via MCP) so they self-correct before you ever review the diff.

The core tools and MCP server are completely open-source.

👉 **GitHub:** https://github.com/JALAL591/compose-bridge

👉 **JetBrains Marketplace:** https://plugins.jetbrains.com/plugin/35226-composebridge

Would love to hear how your teams handle AI code auditing and AST linting at scale!

![1001116142.png](https://media.daily.dev/image/upload/s--RCOoQNDC--/f_auto/v1793794283/ugc/content_89e5ca51-2f5b-4977-b876-7e5099a08c2f?_a=BAMAMiiw0)

## Similar posts on daily.dev

- [We Gave Agents IDE-Native Search Tools. They Got Faster and Cheaper.](https://daily.dev/posts/we-gave-agents-ide-native-search-tools-they-got-faster-and-cheaper--41sxgagpk) · JetBrains · 1 upvotes · 0 comments
- [How we eliminated $1 million a year of wasted AI agent spend in one hour](https://daily.dev/posts/how-we-eliminated-1-million-a-year-of-wasted-ai-agent-spend-in-one-hour-sl4y8p7za) · databricks · 1 upvotes · 0 comments
- [Agents Refactor 300K Lines in Three Weeks, and Practitioners Ask What It Proves](https://daily.dev/posts/agents-refactor-300k-lines-in-three-weeks-and-practitioners-ask-what-it-proves-qtk43gheh) · InfoQ · 0 upvotes · 0 comments

---

Tags: [#mcp](https://daily.dev/tags/mcp), [#kotlin](https://daily.dev/tags/kotlin), [#jetbrains](https://daily.dev/tags/jetbrains)

[View this post on daily.dev](https://daily.dev/posts/ai-coding-agents-leave-massive-tech-debt-we-built-an-engine-to-scan-1-270-files-in-minutes--nrfsgouis)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/ai-coding-agents-leave-massive-tech-debt-we-built-an-engine-to-scan-1-270-files-in-minutes--nrfsgouis","headline":"AI Coding Agents Leave Massive Tech Debt. We Built an Engine to Scan 1,270 Files in Minutes.","text":"An audit of a 1,270-file Kotlin Multiplatform project found 55 compile-breaking errors and 13,246 architectural warnings, including dead code, deprecated APIs, and scope leaks. Standard IDE batch inspections on the project took over 30 minutes and choked memory. The team built ComposeBridge, a tool that interfaces directly with the IDE's compiler PSI daemon for sub-50ms local diagnostics at zero AI token cost. It also syncs edits to physical hardware in real time and feeds compilation diagnostics back to local AI agents via MCP so they self-correct before a diff is reviewed. The core tools and MCP server are open-source.","url":"https://daily.dev/posts/ai-coding-agents-leave-massive-tech-debt-we-built-an-engine-to-scan-1-270-files-in-minutes--nrfsgouis","datePublished":"2026-11-05T07:12:31.614Z","dateModified":"2026-11-05T07:12:52.608Z","author":{"@type":"Person","name":"جلال عباس","url":"https://daily.dev/techsoneai","image":"https://lh3.googleusercontent.com/a/ACg8ocKKgOeUyfz4X9LWWyJ1S-bL8JObpLumLedkYbhMfgk-fKygzEGH=s96-c","description":"Android \u0026 KMP Engineer | Creator of ComposeBridge (Featured in Android Weekly #746)","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":500}},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/justkotlin","name":"Just Kotlin"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Just Kotlin","item":"https://daily.dev/squads/justkotlin"},{"@type":"ListItem","position":3,"name":"AI Coding Agents Leave Massive Tech Debt. We Built an Engine to Scan 1,270 Files in Minutes."}]}
```

