frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Pyscn – Python code quality analyzer for vibe coders

https://github.com/ludo-technologies/pyscn
34•d-yoda•2h ago
Hi HN! I built pyscn for Python developers in the vibe coding era. If you're using Cursor, Claude, or ChatGPT to ship Python code fast, you know the feeling: features work, tests pass, but the codebase feels... messy.

Common vibe coding artifacts:

• Code duplication (from copy-pasted snippets)

• Dead code from quick iterations

• Over-engineered solutions for simple problems

• Inconsistent patterns across modules

pyscn performs structural analysis:

• APTED tree edit distance + LSH

• Control-Flow Graph (CFG) analysis

• Coupling Between Objects (CBO)

• Cyclomatic Complexity

Try it without installation:

  uvx pyscn analyze .          # Using uv (fastest)
  pipx run pyscn analyze .     # Using pipx
  (Or install: pip install pyscn)
Built with Go + tree-sitter. Happy to dive into the implementation details!

Comments

brynary•45m ago
This looks great! Duplication and dead code are especially tricky to catch because they are not visible in diffs.

Since you mentioned the implementation details, a couple questions come to mind:

1. Are there any research papers you found helpful or influential when building this? For example, I need to read up on using tree edit distance for code duplication.

2. How hard do you think this would be to generalize to support other programming languages?

I see you are using tree-sitter which supports many languages, but I imagine a challenge might be CFGs and dependencies.

I’ll add a Qlty plugin for this (https://github.com/qltysh/qlty) so it can be run with other code quality tools and reported back to GitHub as pass/fail commit statuses and comments. That way, the AI coding agents can take action based on the issues that pyscn finds directly in a cloud dev env.

d-yoda•20m ago
Thank you! 1.For tree edit distance, I referred to "APTED: A Fast Tree Edit Distance Algorithm" (Pawlik & Augsten, 2016), but the algorithm works as O(n²) so I also implemented LSH (classic one) for large codebases.The other analyses also use classical compiler theory and techniques. 2. Should be straightforward! tree-sitter gives us parsers for 40+ languages. CFG construction is just tracking control flow, and the core algorithm stays the same.

I focused on Python first because vibe coding with Python tends to accumulate more structural issues. But the same techniques should apply to other languages as well.

Excited about the Qlty integration - that would make pyscn much more accessible and would be amazing!

scuff3d•27m ago
This is an interesting idea but you might be better off marketing it as a tool for software engineers, maybe to help with old code bases. Or even for someone stuck cleaning up vibe coded nonsense.

Vibe coders don't care about quality and wouldn't understand why any of these things are a problem in the first place.

d-yoda•7m ago
"You're absolutely right!" - the messaging could be clearer. I built pyscn because more engineers than expected are using AI assistants these days (to varying degrees), and I wanted to give them a tool to check code quality. But the real value might be for engineers who inherit or maintain AI-generated codebases as you say, rather than those actively vibe coding.
xrd•11m ago
I absolutely love this. Tests and code coverage metrics are still important, but so easy to leave behind as you are running toward the vibe. This is a nice addition to the toolbox.
d-yoda•5m ago
Thank you! I'll keep improving it more and more!
aDyslecticCrow•7m ago
Current AI is most proficient in java-script and python because of the vast training data. But in the long-run, i feel like languages with good static analysis, static type checks, clear language rules, memory leak detection, fuzzing, test oriented code, and any number of other similar tooling is gonna be the true game-changer. Directed learning using this tooling could improve the models beyond their training set, or simply allow humans to constrain AI output within certain bounds.
CuriouslyC•2m ago
I'm surprised you went with go for this, you're going to encounter so much pain with large codebases.

Azure Ad B2C to Entra External ID: Migration Strategies You Need to Know [audio]

https://entra.news/p/azure-ad-b2c-to-entra-external-id
1•mooreds•30s ago•0 comments

Reimagining US democracy for the next generation

https://www.democracy2076.org
1•mooreds•46s ago•0 comments

Explore proposed amendments to the U.S. Constitution

https://amendmentsproject.org/
1•mooreds•1m ago•0 comments

Interactive Forgetting Curve

https://interactive-forgetting-curve.streamlit.app/
1•joshdavham•1m ago•0 comments

Universal Donor Organs for Transplantation

https://news.ubc.ca/2025/10/universal-organ-transplant/
1•gmays•2m ago•0 comments

Ask HN: Is Gang of Four still the standard on design patterns?

1•Desafinado•2m ago•0 comments

Westjet is going to make you pay to recline your seat

https://www.thestreet.com/travel/a-major-airline-is-going-to-make-you-pay-to-recline-your-seat
1•raw_anon_1111•3m ago•1 comments

Acoustic Eavesdropping via Mouse Sensors

https://arxiv.org/abs/2509.13581
1•chrononaut•4m ago•0 comments

Working 5M parameter ChatGPT AI model in Minecraft, made with 439M blocks

https://www.tomshardware.com/tech-industry/artificial-intelligence/famed-gamer-creates-working-5-...
1•gnabgib•4m ago•0 comments

Highrises

https://highrises.hythacg.com/highrises.hythacg.com
1•jxmorris12•4m ago•0 comments

The 19th International Fryderyk Chopin Piano Competition [video]

https://www.youtube.com/watch?v=6YYhQB7OMns
1•franczesko•6m ago•0 comments

The Making of Digital Identity – The Birth of Digital Authentication

https://syntheticauth.ai/posts/synthetic-auth-the-making-of-digital-identity-01-the-birth-of-digi...
1•zerolayers•8m ago•1 comments

Show HN: ASCII Drawing Board

https://www.delopsu.com/draw.html
1•delopsu•8m ago•0 comments

How Rockefeller and His Partners Built Standard Oil

https://austinvernon.substack.com/p/how-rockefeller-and-his-partners
1•spenrose•9m ago•0 comments

Language Agnostic Programming: Why you may still need code

https://joaquimrocha.com/2025/08/31/language-agnostic-programming-why-you-may-still-need-code/
2•kimr•10m ago•0 comments

Microui: A tiny, portable, immediate-mode UI library written in ANSI C

https://github.com/rxi/microui
2•welovebunnies•12m ago•0 comments

The first rule of Taser Knife Fight Club is

https://sfstandard.com/2025/10/05/san-francisco-taser-knife-fight-clubs-are-growing/
2•tomwiddles•13m ago•0 comments

Nuclear in my backyard? More of America, and the market, seems OK with it

https://www.cnbc.com/2025/10/05/nuclear-power-modular-reactor-energy-demand-public-market-risks.html
4•rntn•16m ago•1 comments

TerraCycle offers free recycling for K-cups, toothpaste; hard-to-recycle stuff

https://mashable.com/article/what-is-terracycle
3•gnabgib•19m ago•0 comments

Show HN: LibreCash – Open-Source USDT/Cash Exchange for Small Amounts

https://librecash.org/en/
1•RomanPushkin•19m ago•0 comments

Orbitronics in Two-Dimensional Materials

https://www.nature.com/articles/s44306-025-00103-1
2•bookofjoe•19m ago•0 comments

Birth of Prettier

https://blog.vjeux.com/2025/javascript/birth-of-prettier.html
1•garretruh•21m ago•0 comments

Apple created the privacy dystopia it wants to save you from (2019)

https://www.fastcompany.com/90352021/apple-created-the-privacy-dystopia-it-wants-to-save-you-from
1•1vuio0pswjnm7•24m ago•0 comments

Design engineering 101: Typeahead like Spotlight and Omnibox

https://blog.florianschulz.info/2025/10/typeahead/
1•florians•31m ago•0 comments

The Demonization of DeepSeek: How NIST Turned Open Science into a Security Scare

https://erichartford.com/the-demonization-of-deepseek
2•aratahikaru5•32m ago•0 comments

Clair Obscur: Expedition 33

https://store.steampowered.com/app/1903340/Clair_Obscur_Expedition_33/
2•doener•32m ago•0 comments

Small Nuclear Reactors Will Not Save the Day

https://oilprice.com/Energy/Energy-General/Small-Nuclear-Reactors-Will-Not-Save-The-Day.html
4•PaulHoule•34m ago•1 comments

The Official Svelte MCP server is here

https://svelte.dev/docs/mcp/overview
2•pablopang•35m ago•1 comments

The Queens' Daughters: State Mandated Prostitution in British India

https://old.reddit.com/r/IndianHistory/comments/1km7flq/prostitution_during_british_india/
3•haltingproblem•36m ago•1 comments

Remembering Steve Jobs

https://www.macrumors.com/2025/10/05/remembering-steve/
16•ksec•43m ago•5 comments