←back to thread

136 points d-yoda | 2 comments | | HN request time: 0s | source

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!
Show context
scuff3d ◴[] No.45482142[source]
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.

replies(4): >>45482349 #>>45482429 #>>45483207 #>>45483698 #
CuriouslyC ◴[] No.45482429[source]
Vibe coders do care about quality, at least the ones that try to ship and get burned by a mountain of tech debt. People aren't as stupid and one dimensional as you assume.
replies(2): >>45482622 #>>45483402 #
scuff3d ◴[] No.45482622[source]
Given an entire industry is cropping up to fix the mess these people make, I think less of them care then you think.
replies(2): >>45483368 #>>45483518 #
_joel ◴[] No.45483518{3}[source]
Is it an industry, or just a meme job title? Serious question.
replies(1): >>45483782 #
scuff3d ◴[] No.45483782{4}[source]
There have been plenty of articles about it recently, seems real enough to me.
replies(1): >>45483982 #
1. _joel ◴[] No.45483982{5}[source]
I wonder if that's sustainable though, as either the tools get better or companies realise it's not a magic bullet? Time will tell.
replies(1): >>45484589 #
2. scuff3d ◴[] No.45484589[source]
It's not. The cost of fixing the garbage will outweigh any savings on the front end. Any experienced dev will tell you it's easier to spend a little extra up front to make things more maintainable then it is to fix a mess later.

And even the tools get better, they'll never get to the point where you don't need experts to utilize them, as long as LLMs are the foundation.