frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: XRAY MCP – AST-grep wrapped in a tiny server for code-aware AI

https://github.com/srijanshukla18/xray
5•srijanshukla18•6mo ago
Hi HN,

I built XRAY MCP after discovering that AI assistants were scanning my projects with plain grep and guessing. I tried direct tree-sitter integration and language servers; both felt heavy for a lightweight tool.

ast-grep hit a sweet spot: syntax-aware search in a single binary. XRAY MCP wraps it behind three endpoints—map, find, impact—so a model (or human) can answer questions like “what breaks if I change this function?” on demand.

It’s stateless, supports Python/JS/TS/Go, and installs quickly.

Repo: https://github.com/srijanshukla18/xray

Would love to know your thoughts!

Comments

tcpip84•6mo ago
Nice. Will check it out. I’ve tried using AI-assisted code search before and always hit the “grep guessing” problem you mentioned.
srijanshukla18•6mo ago
exactly yep, hate it when it just keeps going in circles. thats a lot of extra tokens also you know! let me know your thoughts once you check it out
satyajeetjadhav•6mo ago
Looks interesting. In my experience the way current coding agents behave is - they make a change, then rely on linter to highlight errors due to the change. Once linter errors are highlighted, they try to fix them.

Providing access to something like this via mcp might help these coding agents plan better and limit or atleast understand the blast radius for refactors.

Will try.

srijanshukla18•6mo ago
You've hit the nail on the head! "Understanding the blast radius" is the core problem xray mcp tries to solve.

The whole idea behind tools like what_breaks is to give the agent that foresight before it makes a change, moving it from a reactive "change -> lint -> fix" cycle to a more proactive "plan -> analyze -> change" workflow.

Thanks for checking it out!

About the linting use case specifically, I've found claude code hooks to be very beneficial. Not sure if other tools have an equivalent. Check that out too!

importhuman•6mo ago
Will check this out. Is there a prompt I can use in the beginning that doesn't need me to add the xray prompt in future calls?
srijanshukla18•6mo ago
Yes! depends on the code agent you are using. CLAUDE.md or GEMINI.md for example - you can be adding a one liner there - "always use xray mcp tools to make any changes or to explore a new codebase"
tushr•6mo ago
I am surprised that tools like Gemini CLI and Claude Code are not doing this by default.
srijanshukla18•6mo ago
I know right! I am surprised that many of these cli tools just keep running around the codebase read whole files at once and grepping vaguely
swatimodi•6mo ago
This is amazing, such tools for supporting the ai tools to do a better job at helping us is what we need!
srijanshukla18•6mo ago
Hey, thanks for checking it out!
vaibhavdaga07•6mo ago
Neat project - I liked that you used ast-grep to help the LLM better understand codebases. looks promising for improving code navigation.
srijanshukla18•6mo ago
hey thanks for checking it out!

Show HN: AI Agent Tool That Keeps You in the Loop

https://github.com/dshearer/misatay
1•dshearer•19s ago•0 comments

Why Every R Package Wrapping External Tools Needs a Sitrep() Function

https://drmowinckels.io/blog/2026/sitrep-functions/
1•todsacerdoti•42s ago•0 comments

Achieving Ultra-Fast AI Chat Widgets

https://www.cjroth.com/blog/2026-02-06-chat-widgets
1•thoughtfulchris•2m ago•0 comments

Show HN: Runtime Fence – Kill switch for AI agents

https://github.com/RunTimeAdmin/ai-agent-killswitch
1•ccie14019•5m ago•1 comments

Researchers surprised by the brain benefits of cannabis usage in adults over 40

https://nypost.com/2026/02/07/health/cannabis-may-benefit-aging-brains-study-finds/
1•SirLJ•6m ago•0 comments

Peter Thiel warns the Antichrist, apocalypse linked to the 'end of modernity'

https://fortune.com/2026/02/04/peter-thiel-antichrist-greta-thunberg-end-of-modernity-billionaires/
1•randycupertino•7m ago•1 comments

USS Preble Used Helios Laser to Zap Four Drones in Expanding Testing

https://www.twz.com/sea/uss-preble-used-helios-laser-to-zap-four-drones-in-expanding-testing
2•breve•12m ago•0 comments

Show HN: Animated beach scene, made with CSS

https://ahmed-machine.github.io/beach-scene/
1•ahmedoo•13m ago•0 comments

An update on unredacting select Epstein files – DBC12.pdf liberated

https://neosmart.net/blog/efta00400459-has-been-cracked-dbc12-pdf-liberated/
1•ks2048•13m ago•0 comments

Was going to share my work

1•hiddenarchitect•17m ago•0 comments

Pitchfork: A devilishly good process manager for developers

https://pitchfork.jdx.dev/
1•ahamez•17m ago•0 comments

You Are Here

https://brooker.co.za/blog/2026/02/07/you-are-here.html
3•mltvc•21m ago•0 comments

Why social apps need to become proactive, not reactive

https://www.heyflare.app/blog/from-reactive-to-proactive-how-ai-agents-will-reshape-social-apps
1•JoanMDuarte•22m ago•1 comments

How patient are AI scrapers, anyway? – Random Thoughts

https://lars.ingebrigtsen.no/2026/02/07/how-patient-are-ai-scrapers-anyway/
1•samtrack2019•22m ago•0 comments

Vouch: A contributor trust management system

https://github.com/mitchellh/vouch
2•SchwKatze•22m ago•0 comments

I built a terminal monitoring app and custom firmware for a clock with Claude

https://duggan.ie/posts/i-built-a-terminal-monitoring-app-and-custom-firmware-for-a-desktop-clock...
1•duggan•23m ago•0 comments

Tiny C Compiler

https://bellard.org/tcc/
1•guerrilla•24m ago•0 comments

Y Combinator Founder Organizes 'March for Billionaires'

https://mlq.ai/news/ai-startup-founder-organizes-march-for-billionaires-protest-against-californi...
1•hidden80•25m ago•2 comments

Ask HN: Need feedback on the idea I'm working on

1•Yogender78•25m ago•0 comments

OpenClaw Addresses Security Risks

https://thebiggish.com/news/openclaw-s-security-flaws-expose-enterprise-risk-22-of-deployments-un...
2•vedantnair•26m ago•0 comments

Apple finalizes Gemini / Siri deal

https://www.engadget.com/ai/apple-reportedly-plans-to-reveal-its-gemini-powered-siri-in-february-...
1•vedantnair•26m ago•0 comments

Italy Railways Sabotaged

https://www.bbc.co.uk/news/articles/czr4rx04xjpo
5•vedantnair•27m ago•0 comments

Emacs-tramp-RPC: high-performance TRAMP back end using MsgPack-RPC

https://github.com/ArthurHeymans/emacs-tramp-rpc
1•fanf2•28m ago•0 comments

Nintendo Wii Themed Portfolio

https://akiraux.vercel.app/
2•s4074433•32m ago•2 comments

"There must be something like the opposite of suicide "

https://post.substack.com/p/there-must-be-something-like-the
1•rbanffy•35m ago•0 comments

Ask HN: Why doesn't Netflix add a “Theater Mode” that recreates the worst parts?

2•amichail•36m ago•0 comments

Show HN: Engineering Perception with Combinatorial Memetics

1•alan_sass•42m ago•2 comments

Show HN: Steam Daily – A Wordle-like daily puzzle game for Steam fans

https://steamdaily.xyz
1•itshellboy•44m ago•0 comments

The Anthropic Hive Mind

https://steve-yegge.medium.com/the-anthropic-hive-mind-d01f768f3d7b
1•spenvo•44m ago•0 comments

Just Started Using AmpCode

https://intelligenttools.co/blog/ampcode-multi-agent-production
1•BojanTomic•45m ago•0 comments