frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AISlop, a CLI for catching AI generated code smells

https://github.com/scanaislop/aislop
45•Heavykenny•54m ago
Hi, I’m Kenny, I’ve been building aislop. I starting working on this after using Claude Code, codex and opencode several times and noticing some slops. They aren’t syntax and passes most tests, they are patterns like empty catch blocks, useless comments, duplicated helpers, dead code and many more. So I built a tool to scan and check for these patterns and wired it into hooks so after each tool call, the agent checks for the slops.

You can try it out with npx aislop scan.

It’s all local and no code is transferred. Thank you.

Comments

hootz•44m ago
Ran it in my codebase, detected some good stuff, was able to pass the issues to my agent so they can be validated and fixed. Good job!

I'd love for it to have flags for Pi and Crush too :)

Heavykenny•28m ago
Thank you, really appreciate.
axod•37m ago
I don't think this approach is wise.

Concentrate on code quality, and whether it does what it needs to do. Not whether it was written by AI or not.

bigfishrunning•33m ago
I'm interpreting this not as a "catch ai submissions gotcha" tool, but as a "last pass in review catch mistakes AI made that i may have missed" tool. Having more linters is a good thing IMO (I say this as someone who doesn't use AI to generate code, but works with people who do and has to review a lot of AI generated code)
Heavykenny•32m ago
Thanks, I actually concentrated on improving code quality, the patterns I flagged are poor design choices that humans wouldn’t write. Examples are duplicated functions doing same thing, dead or redundant codes etc. These builds up and degrade the codebase over time.
axod•30m ago
> ...are poor design choices that humans wouldn’t write.

They certainly do in my experience. Maybe you've been lucky and haven't worked with really messy programmers.

Heavykenny•22m ago
I have worked and seen these in code reviews but the issue now is code reviews are overwhelming and non existent in some cases.
bigfishrunning•35m ago
A linter with rules for AI-specific weirdness is absolutely a great idea, thank you! Are there any plans to support other languages besides javascript?
Heavykenny•29m ago
Thank you. I currently support up to 8 languages: php, go, rust, python, js and ts
MonstraG•14m ago
thats 6?
genghisjahn•13m ago
7 and 8 are left as an exercise for the reader.
stymaar•8m ago
I have the implementation for languages 7 and 8 but it's too big to fit in this comment section.
Retr0id•9m ago
well, they did say "up to" 8
ryandrake•7m ago
The thread just became meta-ironic, with regard to AI hallucinations.
pixel_popping•33m ago
The intent is good, but frankly, credibility is lost by using "slop" words imo, OP you might seriously want to re-evaluate who is the target market, probably users that leverage high automation 24/7, startups and so-on, they don't want to incorporate products that talks about the modern way (and somehow only way to compete) of development as "slop" imo because soon enough, it's not true anymore (it's already not true with the right tooling).
hootz•29m ago
Yeah, to be honest, it really is a bit weird to incorporate a tool called slop into a corporate CICD flow. Anubis fixed a similar problem by creating a corp-safe version without the anime mascot.
Aurornis•24m ago
> Anubis fixed a similar problem by creating a corp-safe version without the anime mascot.

I wouldn’t say they fixed it. Rather it was an intentional choice to put an anime girl on websites unless you paid for the product.

trollbridge•12m ago
Imagine an operating system company making a product called “quick and dirty”.
Der_Einzige•32m ago
Related, we made "Antislop", a framework for removing repetitive phraseology from LLMs: https://arxiv.org/abs/2510.15061
throw03172019•25m ago
> I’ve been building aislop.

This made me chuckle.

Cool tool, the dead code checks can be very helpful. I’ve seen Claude leave unused functions when iterating which always frustrates me.

Heavykenny•11m ago
haha. I love the name - aislop
Retr0id•7m ago
Forgot to switch accounts?
beart•3m ago
OP seems to be an AI account.

> Don't post generated comments or AI-edited comments. HN is for conversation between humans.

eithed•17m ago
Can you explain the benefits of running this over rector / eslint? (and to certain degree phpstan / deptrac)
sync•13m ago
I tried it on my codebase. There's a lot of overlap with tools like Oxlint / ESLint, I'm not sure that's too valuable vs. a more focused tool that actually focuses solely on 'slop' signals. These lint rules tend to get very opinionated which is why those tools expose so many configuration options.

One real bug tho:

> [ERROR] Imports "mdast" but it's not declared in package.json

A type-only import like `import type { Blockquote, RootContent } from 'mdast';` is actually acceptable if `"@types/mdast": "^4.0.4"` is included in the package.json.

Heavykenny•6m ago
thanks for this catch, really appreciate. Can you create an issue on GitHub so you can easily track when I resolve this?
maddhruvhn•12m ago
awesome work, someone is caring about using less token :clap:
elpocko•11m ago
>They aren’t syntax and passes most tests

What?

vinnymac•6m ago
I tried it but see a lot of false positives.

One funny thing I see it doing is deleting seemingly random comments lines, for example if a file has a comment that spans multiple lines but doesn’t use a multi line comment syntax. It just chooses one at random transforming the once useful comment into slop.

fishgoesblub•5m ago
Apparently I need to check in with a Doctor because code written by myself is seen as AI, and the lazy AI bits aren't. More Human than Human?
ryandrake•2m ago
I think a lot of the telltale signs of AI can be found in the comments. Besides the slop writing style, I've found AI comments to 1. be overly verbose, 2. unnecessarily describe before/after code state (# This function used to do foo, but now it does bar), and 3. reference its own internal "plan" (# This function is part of Stage 3 of the implementation of Use Case X from the requirements doc) WTF is Stage 3? - says code reader 2 years from now. Although I bet you can probably prompt these behaviors away.
ronbenton•1m ago
Petition to rename this “SlopCop”

Show HN: AISlop, a CLI for catching AI generated code smells

https://github.com/scanaislop/aislop
46•Heavykenny•54m ago•33 comments

Show HN: Local-first semantic knowledge graph with magnetic-pull retrieval

https://github.com/Astralchemist/rig
3•akashi_dev•1h ago•0 comments

Show HN: Continue? Y/N: A 60-second game about AI agent permission fatigue

https://llmgame.scalex.dev
355•Wirbelwind•1d ago•144 comments

Show HN: Get a webhook the moment a webpage changes

https://docs.firecrawl.dev/features/monitoring
3•ericciarla•1h ago•1 comments

Show HN: Context-aware Japanese furigana using Sudachi and ModernBERT

https://www.ezfurigana.com/
3•epitrochoid413•2h ago•0 comments

Show HN: Ktx – Open-source executable context layer for data agents

https://github.com/Kaelio/ktx
79•lucamrtl•23h ago•17 comments

Show HN: Compile-time model-id validation with declared capability

https://github.com/yujonglee/openrouter-toolkit
5•yujonglee•3d ago•2 comments

Show HN: Open-Source AI Racing Harness

https://www.elodin.systems/post/elodin-ai-grand-prix-race-sim-harness
72•danAtElodin•1d ago•21 comments

Show HN: Hallucinate – Massively Multiplayer Online Rave

https://hallucinate.site
427•stagas•1d ago•190 comments

Show HN: TapToyPia

https://memalign.github.io/m/taptoypia/index.html
19•memalign•5d ago•8 comments

Show HN: Open-source Workspace (mail,docs,spreadsheet,drive) web/iOS

https://tinycld.org/
107•nathanstitt•1d ago•38 comments

Show HN: I made an emergency page for my family

https://help.delduca.org
80•delduca•2d ago•102 comments

Show HN: Static-allocation MLP inference in ANSI C using a 2-slot ring buffer

https://github.com/GiorgosXou/MLPico
3•xou•12h ago•0 comments

Show HN: htop for the airwaves — a live 802.11 RF dashboard in your terminal

https://github.com/yeet-src/airtop
6•r3tr0•12h ago•0 comments

Show HN: Terraforming game where the Python code you write IS the gameplay

https://store.steampowered.com/app/868160/Code_Terraform/
3•investorsHeaven•5h ago•2 comments

Show HN: Posthorn, self-hosted mail gateway

https://github.com/craigmccaskill/posthorn
79•craigmccaskill•2d ago•60 comments

Show HN: Bootstrap a team of coding agents from a template, OSS

https://github.com/awebai/aweb-team-coord-worktrees
3•juanre•20h ago•0 comments

Show HN: Mira – Search for files semantically – no exact filenames required

https://github.com/Heidar-An/Mira
3•Heidaradar•14h ago•1 comments

Show HN: Py-SQL-cleaner – format SQL embedded in Python strings

https://github.com/enumura1/py-sql-cleaner
5•enumura•21h ago•0 comments

Show HN: A website that tracks every stock trade Congress makes

https://congress.kadoa.com/
61•hubraumhugo•2d ago•23 comments

Show HN: Imagine Kickstarter, but doubters get paid if the project flops

https://trypieces.com/p/as9wuvhp1qwb4NvpMGG2FU
6•johndebord•16h ago•8 comments

Show HN: Audiomass – a free, open-source multitrack audio editor for the web

https://audiomass.co/?multitrack=1
547•pantelisk•4d ago•120 comments

Show HN: Tunnel.to – dead simple localhost reverse tunnels

https://tunnel.to
7•StuntPope•1d ago•1 comments

Show HN: Beacon CLI for self-hosted monitoring, remote access and deployments

https://github.com/Bajusz15/beacon
7•matebajusz•1d ago•1 comments

Show HN: OpenBrief – Local-first video downloader/summarizer

https://github.com/tantara/openbrief
92•tantara•3d ago•17 comments

Show HN: Scrolodex – A super simple window switcher for macOS

https://scrolodex.app/
4•Jaydenaus•18h ago•0 comments

Show HN: LiteParse v2, now in Rust 100x faster

https://github.com/run-llama/liteparse/
13•pierre•1d ago•0 comments

Show HN: Workout to Work – A desktop app that annoys you into exercising

https://gitlab.com/tivat/workout-to-work
3•blingojames•20h ago•0 comments

Show HN: Libfyaml adds a YAML/JSON parse cache; 427 MB reloads in 36 ms

https://github.com/pantoniou/libfyaml/releases/tag/v1.0.0-alpha7
3•fypanto•20h ago•0 comments

Show HN: Geomatic – A command-driven geometry studio enabled with autodiff

https://www.tinyvolt.com/geomatic
74•nivter•4d ago•17 comments