frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

I'm 60 years old. Claude Code has ignited a passion again

7•shannoncc•29m ago•1 comments

Turns out making games is the easy part

2•clamlotus•41m ago•1 comments

Ask HN: Anyone else feel this community has changed recently?

3•kypro•49m ago•2 comments

Ask HN: How many of you hold an amateur radio license in your country?

60•ToddWBurgess•3d ago•81 comments

Tell HN: The proposed KIDS Act (HR 7757) effectively mandates biometric browsing

6•fokdelafons•4h ago•0 comments

Self taught gen-xers with senior dev/pm exp. Where's my imposter syndrome team?

3•_hugerobots_•5h ago•2 comments

Ask HN: Why do we still buy things by browsing catalogs?

5•dannythecount•6h ago•4 comments

I started making money online in 10th grade – some lessons about capital

3•udit_50•7h ago•1 comments

Ask HN: Who wants to be hired? (March 2026)

126•whoishiring•4d ago•406 comments

Ask HN: How are you using multi-agent AI systems in your daily workflow?

13•paifamily•22h ago•11 comments

Ask HN: Anyone fought a big corp over IP theft courts?

6•NatalijaAAD•12h ago•0 comments

Ask HN: Do You Have a Homelab?

10•ricardbejarano•10h ago•5 comments

Ask HN: Do You Enjoy Your Career in Tech Nowadays?

26•karakoram•1d ago•24 comments

Ask HN: Who is hiring? (March 2026)

247•whoishiring•4d ago•392 comments

Ask HN: How are LLMs supposed to be used for warfare?

4•sirnicolaz•18h ago•7 comments

Ask HN: Has anyone noticed the fear-driven prompt suggestions that GPT5.3 makes?

14•cedarscarlett•1d ago•8 comments

Self-Learning Customer Marketing

3•davismartens•22h ago•0 comments

Aura-State: Formally Verified LLM State Machine Compiler

22•rohanmunshi08•5d ago•6 comments

Ask HN: How are you all staying sane?

150•throwaway53463•4d ago•159 comments

How do I get startups to use my open-code project?

5•ErezShahaf•1d ago•12 comments

Amazon degraded shopping- you have to put in cart to see the price

15•talkingtab•1d ago•13 comments

Ask HN: What sources like HN do you consume?

61•DavidHaerer•4d ago•37 comments

Tell HN: Digital Ocean has run out of GPU droplets

17•nathannaveen•2d ago•4 comments

Ask HN: If your project is free, what are you building and why keep it free?

11•LeanVibe•2d ago•22 comments

HATEOAS Works with an LLM in the Mix

2•charlieflowers•1d ago•1 comments

Why is arstechnica.com still running dev story advertorials for a game that...

6•chrisjj•1d ago•5 comments

I lost my ability to learn anything new because of AI and I need your opinions

22•dokdev•3d ago•28 comments

Ask HN: What's your experience self-hosting in 2026?

27•rustcore•3d ago•11 comments

Ask HN: How do you give AI agents real codebase context without burning tokens?

4•donhardman•1d ago•1 comments

We don't need continual learning for AGI. What top labs are currently doing

6•kok14•1d ago•6 comments
Open in hackernews

Ask HN: How do you give AI agents real codebase context without burning tokens?

4•donhardman•1d ago
Working on a large Rust codebase. The token problem is real — Claude Code will happily spend $5 of context just trying to understand how two modules relate before writing a single line. And once context compaction kicks in, it's even worse — the agent loses the thread completely and starts grepping the same files again from scratch.

Approaches I've tried:

Feeding CLAUDE.md / architecture docs manually — helps, but gets stale fast. Cursor's built-in indexing — breaks on monorepos, and I don't love proprietary code going to their servers. Basic MCP server with grep — works for exact matches, useless for semantic queries.

Eventually built something more serious: a local Tree-sitter indexer that builds a knowledge graph of file relationships and exposes it via MCP so agents query semantically instead of grepping blind. One tool call instead of 15 grep iterations. Published it here: https://github.com/Muvon/octocode

But genuinely curious what others are doing before I go deeper on it.

Three specific questions:

1. How do you handle the "ripple effect" problem — knowing that changing one file semantically affects others that aren't obviously linked?

2. Do you trust closed-source indexing with proprietary code, or have you gone local-first?

3. Has anyone gotten GraphRAG-style relationship mapping to work in practice at scale, or is it still mostly hype?

Comments

journal•1d ago
I feel like people will never understand because it's too easy to think that it should just work.

Answer: the more you know yourself, the less you rely on the model.

Do your own reasoning or you won't be able to afford to use these things soon.