frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: VT Code – Rust TUI coding agent with Tree-sitter and AST-grep

https://github.com/vinhnx/vtcode
3•vinhnx•18h ago
I’ve been building VT Code, a Rust-based terminal coding agent that combines semantic code intelligence (Tree-sitter + ast-grep) with multi-provider LLMs and a defense-in-depth execution model. It runs in your terminal with a streaming TUI, and also integrates with editors via ACP and a VS Code extension.

* Semantic understanding: parses your code with Tree-sitter and does structural queries with ast-grep.

* Multi-LLM with failover: OpenAI, Anthropic, xAI, DeepSeek, Gemini, Z.AI, Moonshot, OpenRouter, MiniMax, and Ollama for local—swap by env var.

* Security first: tool allowlist + per-arg validation, workspace isolation, optional Anthropic sandbox, HITL approvals, audit trail.

* Editor bridges: Agent Conext Protocol supports (Zed); VS Code extension (also works in Open VSX-compatible editors like Cursor/Windsurf).

* Configurable: vtcode.toml with tool policies, lifecycle hooks, context budgets, and timeouts.

GitHub: https://github.com/vinhnx/vtcode

Comments

billconan•17h ago
I have a question, how do you reliably find the original code line and apply the ai generated code?

I'm not building a coding agent, I'm building an English writing improvement agent.

I ask the agent to generate things like:

{ original_sentence: xxxx, improved_sentence: yyyy }

and I use the original_sentence to locate the original content, and replace it with the improved_sentence.

but, the thing is, ai would hallucinate the original_sentence. in some cases, the generated original_sentence doesn't match the actual original sentence.

How does a coding agent solve it?

vinhnx•16h ago
Hi, for me, I will try my best to answer. In my experience, it all about giving the agent the right tool for job. We give them a grep tool and search, then the accuracy and reliability rely on the capable of the running model.

> I ask the agent to generate things like: > { original_sentence: xxxx, improved_sentence: yyyy } > and I use the original_sentence to locate the original content, and replace it with the improved_sentence.

To mitigate this, I build the apply patch pattern. [0][1]

[0] https://github.com/vinhnx/vtcode/blob/main/vtcode-core/tests...

[1] https://github.com/vinhnx/vtcode/blob/main/vtcode-core/src/t...

Show HN: I scraped 3B Goodreads reviews to train a better recommendation model

https://book.sv
535•costco•2d ago•218 comments

Show HN: OSS implementation of Test Time Diffusion that runs on a 24gb GPU

https://github.com/eamag/MMU-RAG-competition
15•eamag•7h ago•0 comments

Show HN: Dynamic code and feedback walkthroughs with your coding Agent in VSCode

https://www.intraview.ai/hn-demo
37•cyrusradfar•1d ago•7 comments

Show HN: See chords as flags – Visual harmony of top composers on musescore

https://rawl.rocks/
119•vitaly-pavlenko•2d ago•28 comments

Show HN: Linguistic RL – A 7B model discovers Occam's Razor through reflection

https://github.com/DRawson5570/linguistic-rl-scheduling
2•drawson5570•4h ago•0 comments

Show HN: Lanturn – A smart headlamp running voice+vision on ESP32

https://github.com/getchannel/lanturn
2•Aeroi•4h ago•1 comments

Show HN: qqqa – A fast, stateless LLM-powered assistant for your shell

https://github.com/matisojka/qqqa
148•iagooar•1d ago•84 comments

Show HN: XML-Lib – An over-engineered XML workflow with guardrails and proofs

https://github.com/farukalpay/xml-lib
3•HenryAI•4h ago•0 comments

Show HN: TabPFN-2.5 – SOTA foundation model for tabular data

https://priorlabs.ai/technical-reports/tabpfn-2-5-model-report
71•onasta•1d ago•12 comments

Show HN: A Lightweight Kafka Alternative

5•kellyviro•5h ago•0 comments

Show HN: Ambient light sensor control of keyboard and screen brightness in Linux

https://github.com/donjajo/als-led-backlight
20•donjajo•5d ago•1 comments

Show HN: Extending LLM SVG generation beyond pelicans and bicycles

https://gally.net/temp/20251107pelican-alternatives/index.html
2•tkgally•6h ago•0 comments

Show HN: I made a better DOM morphing algorithm

https://joel.drapper.me/p/morphlex/
4•joeldrapper•7h ago•0 comments

Show HN: [npm] Recreation of YouTube's "ambient glow" effect

https://www.npmjs.com/package/video-ambient-glow
2•JSXJedi•8h ago•1 comments

Show HN: Flutter_compositions: Vue-inspired reactive building blocks for Flutter

https://github.com/yoyo930021/flutter_compositions
43•yoyo930021•1d ago•23 comments

Show HN: Chess960v2 – 100 Rounds Done, Some Openings Still Undefeated

https://chess960v2.com/en
2•lavren1974•12h ago•0 comments

Show HN: I built a search engine for all domains on the internet

https://domainexplorer.io
5•iryndin•13h ago•3 comments

Show HN: Switchport – A/B Test Your LLM Prompts in Production

https://switchport.ai/
2•rjfc•13h ago•0 comments

Show HN: A CSS-Only Terrain Generator

https://terra.layoutit.com
362•rofko•3d ago•82 comments

Show HN: FlashVSR – High-Speed 4K Video Super-Resolution

https://www.aiupscaler.net/flashvsr
2•lu794377•15h ago•0 comments

Show HN: Practice your captcha skills with Google's weirdest Street Views

https://street-captcha.netlify.app/
2•SantiDev•15h ago•1 comments

Show HN: What Is Hacker News Working On?

https://waywo.eamag.me/
10•eamag•1d ago•2 comments

Show HN: ApiMug – Terminal UI for Browsing / Testing APIs from OpenAPI/Swagger

https://github.com/doganarif/ApiMug
2•Arifcodes•18h ago•0 comments

Show HN: VT Code – Rust TUI coding agent with Tree-sitter and AST-grep

https://github.com/vinhnx/vtcode
3•vinhnx•18h ago•2 comments

Show HN: BookPace – Track your reading time (with NFC tags for physical books)

https://www.bookpace.app
3•wjhypo•19h ago•4 comments

Show HN: Completely free Claude Sonnet 4.5, supported by contextual ads

4•namanyayg•22h ago•2 comments

Show HN: Strange Attractors

https://blog.shashanktomar.com/posts/strange-attractors
798•shashanktomar•6d ago•78 comments

Show HN: a Rust ray tracer that runs on any GPU – even in the browser

https://github.com/tchauffi/rust-rasterizer
95•tchauffi•4d ago•29 comments

Show HN: DIY accessibility mouse helps people even with complete paralysis

https://github.com/aradzhabov/AbleMouse
4•aradzhabov•1d ago•0 comments

Show HN: ShellAI – Local Terminal Assistance with SLM

https://github.com/micrictor/shellai
5•mtud•1d ago•2 comments