frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Free local security checks for AI coding in VSCode, Cursor and Windsurf

30•jaimefjorge•10h ago
Hi HN!

We just launched Codacy Guardrails, an IDE extension with a CLI for code analysis and MCP server that enforces security & quality rules on AI-generated code in real-time. It hooks into AI coding assistants (like VS Code Agent Mode, Cursor, Windsurf), silently scanning and fixing AI-suggested code that has vulnerabilities or violates your coding standards, while the code it’s being generated.

We built this because coding agents can be a double-edged sword. They do boost productivity, but can easily introduce insecure or non-compliant code. One recent research team at NYU found that 40% of Copilot’s outputs were buggy or exploitable [1]. Other surveys mention that people are spending more time debugging AI-generated code [2].

That's why we created “guardrails” to catch security problems early.

Codacy Guardrails uses a collection of open-source static analyzers (like Semgrep and Trivy) to scan the AI’s output against 2000+ rules. We currently support JavaScript/TypeScript, Python, and Java, focusing on things like OWASP Top 10 vulns, hardcoded secrets, dependency checks, code complexity and styling violations, and you can customize the rules to match your project’s needs. We're not using any AI models, it's “classic” static code analysis working alongside your AI assistant.

Here’s a quick demo: https://youtu.be/pB02u0ntQpM

The extension is free for all developers. (We do have paid plans for teams to apply rules centrally, but that’s not needed to use the extension and local code analysis with agents.)

Setup is pretty straightforward: Install the extension and enable Codacy’s CLI and MCP Server from the sidebar.

We’re eager to hear what the HN community thinks! Does this approach sound useful in your AI coding workflow? Have you encountered security issues from AI-generated code?

We hope Codacy Guardrails can make AI-assisted development a bit safer and more trustworthy. Thanks for reading!

Get extension: https://www.codacy.com/get-ide-extension Docs: https://docs.codacy.com/codacy-guardrails/codacy-guardrails-...

Sources [1]: NYU Research: https://www.researchgate.net/publication/388193053_Asleep_at... [2]: https://devops.com/survey-ai-tools-are-increasing-amount-of-...

Comments

tosh•9h ago
kudos @ shipping this jaime

Can you explain how/when the "guardrails" are run in Cursor? I mean: how does the extension hook in so that the code in the diff view gets changed?

Does this also work with agents like Claude Code and Amp? I guess since there is an MCP it can already work even though it's not explicitly mentioned in the docs?

What are your thoughts on running something like guardrails during dev-time vs CI time?

jaimefjorge•9h ago
thanks tosh!

The guardrails are ran every time there is code being generated by the agent. We give instructions to the coding agents to run the guardrails on the code that is changed. It doesn't YET work with Claude Code and Amp but because it leverages an MCP server, we can easily do it. It's in the plans to do.

I think dev-time is critical, because AI is producing large swaths of code as we speak. We also make sure that regardless of what happens in dev time, we can always run our cloud checks in CI time. Thanks for your questions!

rdevzw•9h ago
Just gave this a try, pretty interesting how a simple python script generated with two un-named models uses requests library version with CVE's. The scary part is, the script ran. This changes things in terms of leveraging AI. I will come back with more feedback soon, but for now, this is amazing
jaimefjorge•9h ago
Hey thanks for testing! That's been my experience well, it's very frequent to see libraries with vulnerable versions being introduced in code. What's also interesting is that, despite using incredible AI coding models like Sonnet 4, you still get CVEs in your code. Try this with Codacy Guardrails: "create a Java server using undertow".

Thanks for testing. Please do share your feedback when you test further!

im3w1l•1h ago
I mean it's almost inherent to LLM's right? Like they only know about version before it's knowledge cutoff. I guess it's a big argument for not putting exact versions in files generated by LLM, only major (+minor?)
jaimefjorge•1h ago
Yes. My point is that because of training cutoffs it should be mandatory to run SCA scans when dealing with AI code generation. Not putting exact versions would be a good idea. But that’s not what’s happening today.
SpikedCola•5h ago
On the https://www.codacy.com/get-ide-extension page, clicking the logo in the top-left corner of your webpage goes to https://www.codacy.com/home?hsLang=en which is 404. The logo link on other pages is working.
jaimefjorge•1h ago
Thanks. We’look into it right now. EDIT: should be fixed. Thanks
godzillabrennus•4h ago
Working on a 100% AI generated monolith so I plugged your web app into the repo and I installed the plugin in Windsurf. I'll see how it does and report back.
jaimefjorge•1h ago
Thanks for testing. Please do share feedback. Windsurf is crucially important to us as we’re working with their team to make the experience good. Would you mind sending any feedback to Jaime at Codacy.com?
brynary•4h ago
@jaimefjorge — Congrats on the launch!

How would you compare this to the Qlty CLI (https://github.com/qltysh/qlty)?

Do you plan to support CLI-based workflows for tools like Claude Code and linting?

jaimefjorge•1h ago
Hi Brian. Thanks!

I think at first glance we try to establish a strong bond between what’s running in the IDE with our CLI and what tool configs you have running on the cloud in Codacy. We spend a lot of time on coding standards, gates, and making all the tools that we integrate (which seems to be pretty comparable to qlty - we do have our own tools right now for example for secret scanning) run well with good standards for large teams. We also have an MCP server and we found that tying code analysis with code agents is not trivial so I think that’s also something different. Beyond that, DAST + Pen testing, etc. We’ve become a full-on security company and that’s been our focus.

We do and we’re looking into it. It really started for us when we launched an MCP server.

prophesi•3h ago
Is it open source, and can the MCP server run locally in a sandboxed environment?
mdaniel•3h ago
I guess "partially?" https://docs.codacy.com/chart/#2-installing-codacy:~:text=Th... but https://github.com/codacy/codacy-vscode-extension is MIT and https://github.com/codacy/codacy-mcp-server?tab=License-1-ov... is Apache 2

Also, a big fat raspberry for their use of tinyurl to obfuscate https://marketplace.visualstudio.com/items?itemName=codacy-a... -- just cruel

jaimefjorge•57m ago
Honestly, I’ll take that big fat raspberry. Our website is made in Hubspot and that poses all sorts of limitations. I deeply regret that. So yes.. workarounds unfortunately
jaimefjorge•1h ago
Hi there. Yes, the extension, the cli and the MCP server are open source.

The local analysis can run locally in a sandboxes environment (provided you download the dependencies and tools etc).

Only if you want to then use our cloud scans, or let your coding agent interact with data from Codacy, then you’d need the MCP server connecting to our API.

samschooler•3h ago
quick nit: clicking on your logo on https://www.codacy.com/get-ide-extension goes to: https://www.codacy.com/home which 404s
jaimefjorge•1h ago
Sorry about that and thanks for flagging. EDIT: should be fixed. Thanks
romain_batlle•2h ago
Congrats on launch!
jaimefjorge•1h ago
Thank you!
SkyPuncher•2h ago
What's the use case for this compared to "standard" Codacy? What problem is solved by running this at code generation time vs the standard PR based feedback?

How do you avoid "context pollution" when the LLM inevitably cycles on an issue? I've specifically disable Cursor's "fix linter errors" feature because it constantly clogs up context.

jaimefjorge•1h ago
Hi there. Codacy runs in the cloud when PRs acre created. We run a large number of tools and we have gates, and coding standards, etc. It’s a standardization use case. Codacy Guardrails is about local code analysis with a special focus on coding agents. The problem is that AI generates insecure code and if you don’t have Codacy centrally analyzing things, you’ll introduce vulnerabilities in your repo.

On context pollution unfortunately we rely a lot on the model actually being used. One thing we do is: clear instructions to only analyze the code being produced and not act on ALL issues/problems identified. Still we recommend a good small selection of tools to start and go from there: an SCA (mandatory really), a secret scanner and a good curated list of security issues. If we feed too many issues to the models they.. well.. don’t work

The unreasonable effectiveness of fuzzing for porting programs

https://rjp.io/blog/2025-06-17-unreasonable-effectiveness-of-fuzzing
161•Bogdanp•6h ago•33 comments

Show HN: Workout.cool – Open-source fitness coaching platform

https://github.com/Snouzy/workout-cool
516•surgomat•10h ago•163 comments

My iPhone 8 Refuses to Die: Now It's a Solar-Powered Vision OCR Server

https://terminalbytes.com/iphone-8-solar-powered-vision-ocr-server/
176•hemant6488•7h ago•61 comments

Websites Are Tracking You via Browser Fingerprinting

https://engineering.tamu.edu/news/2025/06/websites-are-tracking-you-via-browser-fingerprinting.html
21•gnabgib•2h ago•7 comments

Writing documentation for AI: best practices

https://docs.kapa.ai/improving/writing-best-practices
120•mooreds•6h ago•35 comments

The Matrix (1999) Filming Locations – Shot-for-Shot – Sydney, Australia [video]

https://www.youtube.com/watch?v=UVf7rMqnwI0
33•keepamovin•2d ago•30 comments

DropZap World – my falling block game with lasers, released after years of work

https://apps.apple.com/us/app/dropzap-world/id1072858930
8•amichail•2d ago•2 comments

Poline – An enigmatic color palette generator using polar coordinates

https://meodai.github.io/poline/
183•zdw•3d ago•36 comments

Homomorphically Encrypting CRDTs

https://jakelazaroff.com/words/homomorphically-encrypted-crdts/
182•jakelazaroff•10h ago•56 comments

Show HN: I built a tensor library from scratch in C++/CUDA

https://github.com/nirw4nna/dsc
82•nirw4nna•8h ago•17 comments

Introduction to the A* Algorithm (2014)

https://www.redblobgames.com/pathfinding/a-star/introduction.html
229•auraham•1d ago•87 comments

Terpstra Keyboard

http://terpstrakeyboard.com/web-app/keys.htm
206•xeonmc•12h ago•69 comments

Game Hacking – Valve Anti-Cheat (VAC)

https://codeneverdies.github.io/posts/gh-2/
81•LorenDB•6h ago•72 comments

MiniMax-M1 open-weight, large-scale hybrid-attention reasoning model

https://github.com/MiniMax-AI/MiniMax-M1
315•danboarder•16h ago•68 comments

Bento: A Steam Deck in a Keyboard

https://github.com/lunchbox-computer/bento
10•MichaelThatsIt•1h ago•2 comments

Is there a half-life for the success rates of AI agents?

https://www.tobyord.com/writing/half-life
194•EvgeniyZh•12h ago•105 comments

Yes I Will Read Ulysses Yes

https://www.theatlantic.com/magazine/archive/2025/07/zachary-leader-richard-ellmann-james-joyce-review/682907/
54•petethomas•5h ago•71 comments

Scrappy – Make little apps for you and your friends

https://pontus.granstrom.me/scrappy/
408•8organicbits•18h ago•130 comments

Attimet (YC F24) – Quant Trading Research Lab – Is Hiring Founding Engineer

https://www.ycombinator.com/companies/attimet/jobs/b1w9pjE-founding-engineer
1•kbanothu•6h ago

Revisiting Minsky's Society of Mind in 2025

https://suthakamal.substack.com/p/revisiting-minskys-society-of-mind
64•suthakamal•7h ago•20 comments

Framework Laptop 12 review

https://arstechnica.com/gadgets/2025/06/framework-laptop-12-review-im-excited-to-see-what-the-2nd-generation-looks-like/
191•moelf•8h ago•247 comments

Locally hosting an internet-connected server

https://mjg59.dreamwidth.org/72095.html
150•pabs3•18h ago•141 comments

I counted all of the yurts in Mongolia using machine learning

https://monroeclinton.com/counting-all-yurts-in-mongolia/
216•furkansahin•15h ago•84 comments

A different take on S-expressions

https://gist.github.com/tearflake/569db7fdc8b363b7d320ebfeef8ab503
50•tearflake•3d ago•35 comments

PWM flicker: Invisible light that's harming our health?

https://caseorganic.medium.com/the-invisible-light-thats-harming-our-health-and-how-we-can-light-things-better-d3916de90521
55•SLHamlet•5h ago•70 comments

New US visa rules will force foreign students to unlock social media profiles

https://www.theguardian.com/us-news/2025/jun/18/social-media-student-visa-screening
11•sva_•10m ago•1 comments

Real-time action chunking with large models

https://www.pi.website/research/real_time_chunking
67•pr337h4m•1d ago•7 comments

Should we design for iffy internet?

https://bytes.zone/posts/should-we-design-for-iffy-internet/
50•surprisetalk•2d ago•34 comments

Building agents using streaming SQL queries

https://www.morling.dev/blog/this-ai-agent-should-have-been-sql-query/
85•rmoff•7h ago•7 comments

Show HN: Trieve CLI – Terminal-based LLM agent loop with search tool for PDFs

https://github.com/devflowinc/trieve/tree/main/clients/cli
24•skeptrune•9h ago•8 comments