Building the Infrastructure for Real-Time AI Autocomplete (Part 2)
In this 2 part series, we build Cursor-style AI tab completion/autocomplete from scratch. The final output will be a VS Code Extension. Tutorial GitHub Link: https://github.com/RivaanRanawat/tab_... Contribute to the project here: https://github.com/RivaanRanawat/taba... VS Code Extension: https://marketplace.visualstudio.com/... Discord Server - / discord Part 1: • The AI Feature You Use 100x a Day (Built F... Resources: languageUtils.ts File: https://github.com/RivaanRanawat/tab_... download-grammar.js File: https://github.com/RivaanRanawat/tab_... src/services/astAnalysis.ts file: https://github.com/RivaanRanawat/tab_... promptBuilder.ts file: https://github.com/RivaanRanawat/tab_... Timestamps: (00:00:00) Introduction (00:00:56) LSP vs AST - Why we need AST? (00:03:40) Tree Sitter Parsing Setup + Working Explained + Web Assembly (WASM) (00:20:39) AST Parsing (00:35:52) Replacement Region Architecture (00:41:02) Coding up Replacement Region Stage (01:26:14) Suffix Stage (01:44:17) Cross File Symbols + Indexing Files + Reference Extraction (03:14:08) Wiring up all Context Gathering Stages (03:21:46) Prompt Builder + Fit To Token Budget (03:54:09) Next Steps - What's Missing (03:56:53) LLM Output Cleaning (04:03:19) Deduplication (05:02:15) Compute Minimal Edit (05:25:23) Deletion Decoration (05:39:12) Custom Tab Accept & Escape Reject Command + Intent Tracking (05:59:38) Cheap, Fast LLM vs Strong, Slow LLMs (06:03:18) Groq LLM Support (06:14:53) Fireworks AI (06:25:38) Testing Fireworks (06:31:36) Conclusion Connect With Me Here: GitHub: https://github.com/rivaanranawat Linkedin: / rivaan-ranawat X: https://x.com/RanawatRivaan Substack: https://rivaanranawat.substack.com Instagram: / optimalcoding

The AI Feature You Use 100x a Day (Built From Scratch)

Cameron DaCamara on his cool code editor - fred

Why Aliens Would NEVER Invade Africa

Android 17 sucks. So I put Linux on a phone.

Sebastián Ramirez What's New in FastAPI - PyAI Conf 2026

A love letter to Pi | Lucas Meijer

Something is jamming GPS over Europe. Here's what we found

Harnesses in AI: A Deep Dive — Tejas Kumar, IBM

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

Professor Jiang: World War 3 Is About To Begin, Let Me Explain!

It finally happened

Why The Russian Accent Terrifies Everyone

Is AI Hiding Its Full Power? With Geoffrey Hinton

Vite is now part of Cloudflare

How Ghost Shops Triggered China’s Biggest Food Scandal | AB Explained

How Rockstar fit an entire city into PlayStation 2 memory

Full Walkthrough: Workflow for AI Coding — Matt Pocock

LIVE: Conan O’Brien speaks at Harvard graduation ceremony (full)

Create Your Own Backend Framework (like FastAPI, Express, Flask) using Python

