---
title: "Priyanshu Roy (@roypriyanshu02) | Hashnode"
description: "Think big. Start small. Build now. Read the latest articles by Priyanshu Roy on Hashnode."
url: "https://hashnode.com/@roypriyanshu02"
---

@roypriyanshu02

# Priyanshu Roy

@roypriyanshu02 · Bangalore, India · Joined December 2022

Think big. Start small. Build now.

[Website](https://about.me/roypriyanshu02)

## Comments

[Thanks Mateo! Completely agree that retrieval overhead is where most latency and token burn happen on larger projects. Testing incremental re-indexing on large codebases is high on my list. Spelunk tracks mtimes and file hashes in SQLite, so rescans only re-parse modified files instead of running full passes. Combining AST indexing with RAG or embeddings is a great idea. AST gives exact symbol resolution while RAG handles semantic search. I'm focusing on Amar right now, but I've noted this down for when I get back to Spelunk features. If you have thoughts on how that hybrid setup should work, feel free to open a GitHub issue.](https://hashnode.com/posts/ai-agent-codebase-indexer-skill-spelunk/6a609b9ba874e83d3cbc81e5/comment/6a60a7df0865fa0f4a1513cc#reply-6a624be5f7a3d39949bfb835)

Reply · Article · Jul 23 · [My AI coding agent kept grepping my repo to find one function — so I cut its token usage by 90%](https://hashnode.com/posts/ai-agent-codebase-indexer-skill-spelunk/6a609b9ba874e83d3cbc81e5)

[Thanks Kartik. Stale index invalidation was the exact issue that broke my earlier manual workarounds. Spelunk handles disk changes by checking mtimes and diffing the AST on call time, while the agent keeps its own active session edits in working memory. Together, those cover most stale read scenarios. Good point to bring up.](https://hashnode.com/posts/ai-agent-codebase-indexer-skill-spelunk/6a609b9ba874e83d3cbc81e5/comment/6a6113d8377eaf776b54f181#reply-6a62491ea043a23a8d93266b)

Reply · Article · Jul 23 · [My AI coding agent kept grepping my repo to find one function — so I cut its token usage by 90%](https://hashnode.com/posts/ai-agent-codebase-indexer-skill-spelunk/6a609b9ba874e83d3cbc81e5)
