zlacker

[return to "Show HN: One Human + One Agent = One Browser From Scratch in 20K LOC"]
1. storys+jC1[view] [source] 2026-01-27 20:09:02
>>embedd+(OP)
How did you handle the context window for 20k lines? I assume you aren't feeding the whole codebase in every time given the API costs. I've struggled to keep agents coherent on larger projects without blowing the budget, so I'm curious if you used a specific scoping strategy here.
◧◩
2. nurett+MJ1[view] [source] 2026-01-27 20:36:25
>>storys+jC1
You don't load the entire project into the context. You let the agent work on a few 600-800 line files one feature at a time.
◧◩◪
3. storys+J72[view] [source] 2026-01-27 22:07:25
>>nurett+MJ1
Right, but how does it know which files to pick? I'm curious if you're using a dependency graph or embeddings for that discovery step, since getting the agent to self-select the right scope is usually the main bottleneck.
◧◩◪◨
4. nurett+C43[view] [source] 2026-01-28 05:14:08
>>storys+J72
If you don't trigger the discovery agents, claude cli uses a search tool and greps 50-100 lines at a go. If discovery is triggered, claude sends multiple agents to the code with different tasks which return with overall architecture notes.
[go to top]