Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AI-Native Codebases x BLR Kotlin

AI-Native Codebases x BLR Kotlin

Avatar for Ragunath Jawahar

Ragunath Jawahar

April 04, 2026

More Decks by Ragunath Jawahar

Other Decks in Programming

Transcript

  1. Agenda • Background • 4 Pillars of research • What

    is an AI-Native codebase? • Factors in fl uencing AI-Native development • Cognitive Debt • Case Study: Clarity
  2. 01 Mechanized Comprehension How large-scale software systems can be understood

    through tooling that extracts meaning, structure, and intent from code at scale. 02 Mechanized Veri fi cation How correctness and gaps in evolving software can be identi fi ed systematically and autonomously. 03 Mechanized Remediation How problems, once identi fi ed, can be addressed through targeted, tool-assisted intervention rather than expensive rewrites. 04 Directed Evolution How problems, once identi fi ed, can be addressed through targeted, tool-assisted intervention rather than expensive rewrites.
  3. 01 Mechanized Comprehension How large-scale software systems can be understood

    through tooling that extracts meaning, structure, and intent from code at scale. 02 Mechanized Veri fi cation How correctness and gaps in evolving software can be identi fi ed systematically and autonomously. 03 Mechanized Remediation How problems, once identi fi ed, can be addressed through targeted, tool-assisted intervention rather than expensive rewrites. 04 Directed Evolution How problems, once identi fi ed, can be addressed through targeted, tool-assisted intervention rather than expensive rewrites.
  4. Implications • Improved throughput • Higher-level of abstraction • Programming

    languages • Frameworks • Platforms • Manage and work across multiple codebases • Behavior reviews over code reviews • Long running tasks and therefore higher spend on tokens • High AVOT (Autonomously Veri fi ed Output Tokens)
  5. An AI-Native codebase is one engineered primarily for contributions from

    coding agents and equally from human developers.
  6. Factors In fl uencing Development 1. Developer skills 2. Coding

    agents 3. Codebase 4. Environment 5. Tooling 6. Feedback loops 7. Cognitive Debt
  7. 1. Developer Skills • Level of abstraction • 🚩 Treating

    coding agents as junior developers • Shifting gears & experimentation • Tool building (dismantling identity)* • AI spends • Tool obsolescence
  8. 3. Codebase • Stack • Guardrails • Forma tt ers

    • Linters (Default + Custom) • Git hooks • Structure • Replicate • Screaming architecture • Balancing act for humans and agents • A tt ributes • Ownership • AI Use • Prompts • Skills • Subagents
  9. 6. Feedback Loops • Speed (long feedback loops ☠) •

    Granularity • Reliability • Cost 💰 💰 💰 • Who is the receiver? • Who’s closing the loop? • Humans • Agents • Environments • Tools
  10. Development Patterns • Slicing • Horizontal • Vertical • Builds

    • Top-down (Outside-in) • Bo tt om-up (Inside-out) • ✨ Single-shot • ✨ Spike & stabilize discard
  11. System Comprehension • PRD, TDD, ADR, RFC, etc., • Reviewing

    designs & user fl ows • Writing code • Reading existing documents • Speaking with colleagues • AI • Agentic code generation • Conversing with an agent • Reading code from an IDE • Reviewing PRs • ✨ Deliberate study time
  12. 01 Mechanized Comprehension How large-scale software systems can be understood

    through tooling that extracts meaning, structure, and intent from code at scale. 02 Mechanized Veri fi cation How correctness and gaps in evolving software can be identi fi ed systematically and autonomously. 03 Mechanized Remediation How problems, once identi fi ed, can be addressed through targeted, tool-assisted intervention rather than expensive rewrites. 04 Directed Evolution How problems, once identi fi ed, can be addressed through targeted, tool-assisted intervention rather than expensive rewrites.
  13. Clarity • Initially built as a review tool for AI-generated

    code • Clarity is a software design tool for developers and coding agents • Go (30K LOC) • Supports 15 programming languages • Recursively developed • Deterministic, no token usage
  14. Use Cases: Developers • Comprehension during development • Examine module

    and directory structures • Find paths between fi les (explore system edges) • Works best when you have one type per fi le
  15. Use Cases: Coding Agents • Remediation • Identify • Missing

    abstractions • Incorrect abstraction • Find and fi x cyclic dependencies
  16. Making Clarity AI-Native • ✅ Stack • ✅ Guardrails •

    🟠 Contribution from agents and developers • ✅ Regression protection • ❌ Adding support for new languages
  17. SKILL.md (truncated) - - - name: verify-language-support description: End-to-end workflow

    for validating language support changes in the clarity dependency graph analyzer - - - Use this workflow to validate language support end-to-end in `clarity`. ## Prepare 1. Identify the target language module under `depgraph/<language>/`. 2. Identify affected command output in `cmd/languages/` when maturity level changes. 3. Confirm current local changes with `git status - - short`. ## Validate on a Real Repository (Always Interactive) 1. Pick a representative repo for the language. 2. Clone into `/tmp`. 3. Build a review queue before rendering graphs: - Use non-merge commits only. - Use commits with `5-30` changed files. - Prioritize commits that are mostly about the target language (based on file extensions/paths). - Each selected commit should include at least a few files in the target language (minimum 3 unless unavailable). - Default queue size is 10 commits unless the user requests a different count. 4. Show the queue to the user before starting graph renders.
  18. Implications • Enable external contributions from agents and developers •

    Capture requirements from real-world codebases • Access global knowledge and expertise • Focus optimizing for human a tt ention, expertise, and judgement
  19. References • Clarity (h tt ps://github.com/LegacyCodeHQ/clarity-cli) • Working E ff

    ectively with Legacy Code (Michael Feathers) • Refactoring (Martin Fowler) • Your Code as a Crime Scene (Adam Tornhill) • Software Design X-Rays (Adam Tornhill) • Glamorous Toolkit (h tt ps://gtoolkit.com/)