Show HN: Archprint, infer architecture lint rules from your repo's import graph

Infers architecture rules from your TypeScript repo's real import graph, gates each on statistical evidence, and emits them into the tools you already use (ESLint, dependency-cruiser, ts-arch)....
3 points by Tommkruix123 44 days ago github.com 2 comments
Summary not yet generated for this article.

Original Text

This tool started as a research for me trying to answer the question "Does AI agents drift from your architecture conventions or if you need enforcement instead?". So I started out building a benchmark to test that premise and on the scope I tested, the agents did not drift and I had to stop that research line. So to reuse what I have learnt from that research, I started out trying to catch engineer's regressions through review and CI and create those conventions codebases already follows with the evidence instead of leaving them in someone's head.

Before I started building this tool, I also mostly write the rules by hand and linter's documentations for every linter I wanted to use. But after my research, the tool automates the process and I'm excited to see how it can help other engineers too. I ran the full package workflow (scan, recommend) across 92,861 real public TypeScript repositories on github and it completed on every one without a single crash and the reversible install/uninstall round-trip held. I will appreciates any feedback you have on the rules it infers for your repo and how it can help you enforce them or not.

The study is public here https://github.com/Tommkruix/agentrulebench and Archprint is public here https://github.com/Tommkruix/archprint also.

Comments (2 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open