kern: Open-Source Tool Maps Codebases Locally for AI Agents via AST Analysis

Developer Jayveer Prajapati has released kern, a free open-source tool that builds a local Abstract Syntax Tree index of code repositories to give AI agents like Claude and Cursor precise, context-aware code insights. The tool integrates with AI workflows through the Model Context Protocol and runs entirely on the user's machine, eliminating cloud data exposure and API costs. kern detects over 74 programming frameworks and uses native AST parsing to map call paths, identify dead code, and flag architectural issues without relying on regex guesswork. It also includes a reusable GitHub Action that calculates a mathematical risk score for pull requests and can automatically block high-risk merges before they reach production. Users can set up and index a project with a few commands, and the tool tracks token and cost savings natively through built-in analytics commands.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in