{"by":"d-yoda","descendants":84,"id":45481298,"kids":[45481994,45483781,45482142,45482348,45482303,45489095,45490469,45482499,45482457,45486252,45505530,45483847,45482404,45482779,45482976,45482522,45482790,45484561,45483596,45481447,45481304],"score":136,"text":"Hi HN! I built pyscn for Python developers in the vibe coding era.\nIf you&#x27;re using Cursor, Claude, or ChatGPT to ship Python code fast, you know the feeling: features work, tests pass, but the codebase feels... messy.<p>Common vibe coding artifacts:<p>• Code duplication (from copy-pasted snippets)<p>• Dead code from quick iterations<p>• Over-engineered solutions for simple problems<p>• Inconsistent patterns across modules<p>pyscn performs structural analysis:<p>• APTED tree edit distance + LSH<p>• Control-Flow Graph (CFG) analysis<p>• Coupling Between Objects (CBO)<p>• Cyclomatic Complexity<p>Try it without installation:<p><pre><code>  uvx pyscn analyze .          # Using uv (fastest)\n  pipx run pyscn analyze .     # Using pipx\n  (Or install: pip install pyscn)\n</code></pre>\nBuilt with Go + tree-sitter. Happy to dive into the implementation details!","time":1759670551,"title":"Show HN: Pyscn – Python code quality analyzer for vibe coders","type":"story","url":"https://github.com/ludo-technologies/pyscn"}