←back to thread

136 points d-yoda | 1 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 #
xkbarkar ◴[] No.45483368{3}[source]
Hard disagree. Vibe code has its downsides but is not nearly as terrible as threatened coders on the forums make it seem.
replies(1): >>45485385 #
1. scuff3d ◴[] No.45485385{4}[source]
It's not a threat to software engineers at all. These things are worse than useless when someone who doesn't know what they're doing tries. If anything they're going to create jobs.

Vibe coders are the new script kiddies.