frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: 58% cost by replacing file reads with a dependency graph on AI Coding

3•nicola_alessi•1h ago
I got tired of watching Claude Code read entire files when it needed one function. Built an MCP server that pre-computes a dependency graph with tree-sitter and serves only the relevant code nodes to the agent.

Ran a proper benchmark to see if it actually matters.

Setup: FastAPI codebase (800 Python files), Claude Sonnet 4.6, 7 tasks (bug fixes, features, refactors, code understanding), 3 runs per task per arm, 42 total executions. Both arms run in full isolation with --strict-mcp-config. Results collected via headless claude -p with --output-format stream-json.

Results:

  Cost per task:  $0.78 → $0.33  (-58%)
  Duration:       170s → 132s    (-22%)
  Output tokens:  504 → 189      (-63%)
Savings by task type:

  Code understanding:  -57%
  New features:        -53%
  Refactoring:         -48%
  Bug fixes:           -29%
The pattern: baseline Claude makes ~15 Read + 4 Grep + 4 Glob calls per task, accumulating context incrementally. With the graph, it averages 2.3 run_pipeline calls that return pre-ranked context in one shot. Less cache creation, fewer round trips, and the agent writes more concise responses because it already has the right context.

Code understanding benefits the most because that's where the agent spends the most tool calls exploring. Bug fixes benefit the least because the scope is usually narrow enough that a few Read calls get you there anyway.

The graph is built with tree-sitter (functions, classes, types, imports, call references), stored in SQLite, updated incrementally on file save. Also does cross-session memory — observations linked to graph nodes, auto-flagged stale when the code changes.

Single Rust binary, everything local, zero network calls except an optional license check.

https://vexp.dev — free tier, no account needed.

Happy to answer questions about the approach, the benchmark setup, or where it breaks down.

Comments

sjkoelle•1h ago
is one function per file the righteous path here?
nicola_alessi•1h ago
vexp works regardless of how you organize files. The graph is at the symbol level (functions, classes, types) not the file level, so whether you have one function per file or 50, it resolves the same dependency chain and serves the same capsule.

The savings actually increase with larger files because that's where the baseline wastes the most, Claude reads a 500-line file to use 20 lines of it.

Why are Agents better at searching with grep than embeddings?

1•CShorten•2m ago•0 comments

Agents will pay like locals, not tourists

https://a16zcrypto.substack.com/p/agents-arent-tourists
1•gmays•3m ago•0 comments

Show HN: DevToolKit – Free, Client-Side Dev Tools (Chmod, Cron, Docker Compose)

https://dev-tools.devtoolsite.workers.dev/
1•THatch26•5m ago•0 comments

Show HN: Llmdoc – annotate codebase with LLM summaries only re-scan what changed

https://github.com/tristanMatthias/llmdoc
1•tristanMatthias•5m ago•0 comments

No Code by Hand

https://ashwch.com/no-code-by-hand-agentic-platform-acceleration.html
1•ashwch•5m ago•1 comments

Learning What Will Happen Next: Predictive Coding in Hyperspace

https://blog.brojo.ai/learning-what-will-happen-next-predictive-coding-in-hyperspace/
1•bojo•5m ago•0 comments

Autogenerate Docs from GitHub

https://www.mintlify.com/blog/auto-generate-docs-from-repos
1•denssumesh•5m ago•0 comments

Teaching Al to Understand What Words Mean

https://sublius.substack.com/p/teaching-ai-to-understand-what-words-d58
1•spacebacon•6m ago•0 comments

Show HN: Goodthinking – PM skills for Claude Code

https://www.extremeclarity.ai/goodthinking
1•faizanbhat•7m ago•0 comments

Google Gemini Agent for multi-step tasks

https://gemini.google/overview/agent/
1•sheepscreek•10m ago•0 comments

Asking the raw Gemini 3.1 Pro API what kind of human it would choose to be

1•PerlBlueDot•11m ago•0 comments

Show HN: A One-Page Field Guide to Questioning

https://stefankober.github.io/essays/questioning-a-field-guide/questioning-guide/
1•kbrkbr•12m ago•0 comments

When Video Games Were Brown

https://www.youtube.com/watch?v=TTjGDkDI49I
1•CharlesW•13m ago•0 comments

Saturday Night Live criticised for 'hurtful' Tourette's sketch

https://www.bbc.co.uk/news/articles/c05v0ln6nq3o
1•mellosouls•13m ago•0 comments

Show HN: OnCallMate – AI agent for autonomous Docker incident RCA

https://github.com/ismailperim/oncallmate
1•ismailperim•14m ago•0 comments

The Pentagon's Favorite Tech Guy Is This Hawaiian Shirt-Wearing Founder

https://www.nytimes.com/2026/03/02/technology/pentagon-anduril-palmer-luckey.html
2•saikatsg•16m ago•0 comments

Fentanyl-Rewired: A 2-Azaspiro[3.3]heptane Core Preserves μ-Opioid Function

https://pubs.acs.org/doi/10.1021/acsmedchemlett.5c00672
1•PaulHoule•16m ago•0 comments

Directus Hits 500 Contributors

https://500-contributors-thingee.vercel.app/
1•haynesben•18m ago•0 comments

State of WASI support for CPython: March 2026

https://snarky.ca/state-of-wasi-support-for-cpython-march-2026/
1•ingve•18m ago•0 comments

Era of Polycrisis

https://en.wikipedia.org/wiki/Era_of_Polycrisis
2•maxwell•19m ago•0 comments

British Columbia to end time changes, adopt year-round daylight time

https://www.cbc.ca/news/canada/british-columbia/b-c-adopting-year-round-daylight-time-9.7111657
11•ireflect•19m ago•3 comments

America's Ranks of Immigrant Truckers Find a Roadblock: English Tests

https://www.wsj.com/business/logistics/americas-ranks-of-immigrant-truckers-find-a-roadblock-engl...
3•petethomas•19m ago•2 comments

Dabao Evaluation Board Risks and Challenges

https://www.crowdsupply.com/baochip/dabao#risks-challenges
1•Confiks•20m ago•0 comments

We Interviewed Our OpenClaw Agent Using a Voice Avatar

https://twitter.com/ptservlor/status/2028518999747915953
1•arbayi•20m ago•1 comments

Show HN: Exquisite.Monster – Telephone Pictionary with strangers and friends

https://exquisite.monster/
1•Swayworn•21m ago•0 comments

32 TB Gone

https://twitter.com/1v100000/status/2028319935626371137
4•worik•21m ago•2 comments

Maps and charts of Iran crisis: The global chokepoint in the Strait of Hormuz

https://www.reuters.com/graphics/IRAN-CRISIS/MAPS/znpnmelervl/
2•giuliomagnifico•23m ago•0 comments

Show HN: CrowPay – add x402 in a few lines, let AI agents pay per request

https://www.crowpay.ai/
1•ssistilli•23m ago•0 comments

Free IP Geolocation Database

https://ip66.dev/
2•todsacerdoti•26m ago•0 comments

Vykar is a fast, encrypted, deduplicated backup tool written in Rust

https://vykar.borgbase.com/
2•havaloc•29m ago•2 comments