frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Brokk: AI for Large Codebases

https://brokk.ai
43•handfuloflight•6h ago

Comments

jbellis•6h ago
Hi all, Brokk creator here, happy to answer any questions!

I made an intro video with a live demo here: https://www.youtube.com/watch?v=Pw92v-uN5xI

soco•5h ago
Is there something also to read for those of us who will never watch videos?
lutzleonhardt•5h ago
Hi, yes there are some blog posts:

https://brokk.ai/blog/brokk-under-the-hood

bchapuis•4h ago
Really cool project! I tried it a couple of weeks ago with an Anthropic API key and will give it another shot.

Could you share a bit more about how you handle code summarization? Is it mostly about retaining method signatures so the LLM gets a high-level sense of the project? In Java, could this work with dependencies too, like source JARs?

More generally, how’s it been working with Java for this kind of project? Does limited GPU access ever get in the way of summarization or analysis (Jlama)?

jbellis•4h ago
That officially makes you an early adopter, thanks!

Yes, it's basically just parsing for declarations. (If you doubleclick on any context in the Workspace it will show you exactly what's inside.)

You have to import the dependencies via File -> Decompile Dependency and then it gets parsed like the rest of your source, only read-only.

I have a love-hate relationship with Java, mostly love lately, the OpenJDK team is doing a great job driving the language forward. It's so much faster than Python, it's nice being able to extend a language in itself and get native performance.

Since we're just using Jlama to debounce the LLM requests, we can use a tiny model that runs fine on CPU alone. The latest Jlama supports GPU as well but we're not using that.

neoncontrails•4h ago
I'd be interested to try this out. I'm especially keen on AI tools that implement a native RAG workflow. I've given Cursor documentation links, populated my codebase with relevant READMEs and diagram files that I'm hoping might provide useful context, and yet when I ask it to assist on some refactoring task it often spends 10-20 minutes simply grepping for various symbol names and reading through file matches before attempting to generate a response. This doesn't seem like an efficient way for an LLM to navigate a medium-sized codebase. And for an IDE with first-class LLM tooling, it is a bit surprising that it doesn't seem to provide powerful vector-based querying capabilities out of the box — if implemented well, a Google-like search interface to one's codebase could be useful to humans as well as to LLMs.

What does this flow look like in Brokk? Do models still need to resort to using obsolete terminal-based CLI tools in order to find stuff?

lutzleonhardt•4h ago
We implemented a multi-step process to find the required context:

1. Quick Context Shows the most relevant files based on a pagerank algorithm (static analysis) and semantic embeddings (JLama inference engine). The input are the instructions and the AI workspace fragments (i.e. files).

2. Deep Scan A richer LLM receives the summaries of the AI workspace files (+instructions) and returns a recommendation of files and tests. It also recommends the type of inclusion (editable, read-only, summary/skeleton).

3. Agentic Search The AI has access to a set of tools for finding the required files. But the tools are not limited to grep/rg. Instead you can: - find symbols (classes, methods, ...) in the project - ask for summaries/skeletons of files - provide class or method implementations - find usages of symbols (where is x used?) - call sites (in/out) ...

You can read more about this in the Brokk.ai blog: https://brokk.ai/blog/brokk-under-the-hood

silverlake•4h ago
No offense, but that video is brutally boring. Even at 1.5x speed I couldn’t get past 10 min. You should transcribe the audio and use an LLM to write a punchy sales pitch.
corysama•3h ago
How large is "Large"? Are we testing on Unreal Engine? :D
jbellis•3h ago
no, but I've tested on intellij (~5M loc, takes forever to import b/c of delombok, do not recommend)
lutzleonhardt•3h ago
I tested it with Ghidra recently and got very good results
saratogacx•3h ago
Likely not an important note but the name sounds close enough to grok that I assumed this was a spin off of some xAI product. I had to look around to see if it was actually associated (it looks like it isn't) but it may be something to be aware of.
tschellenbach•5h ago
wrote a guide on how to use cursor for large codebases here: https://getstream.io/blog/cursor-ai-large-projects/ working well over here

cool to see more AI tools address this

ElijahLynn•5h ago
Thank you! I think this is the next evolution of using LLM for coding. Understanding all the context from large codebases...
lutzleonhardt•5h ago
The amazing thing here is that the Brokk AI can access your code like an IDE, can ask for usages or gather the summary of a file before deciding to get the implementation of a method! It mimics like a Dev is navigating the codebase. And this is more reliable and token-efficient than the usual grep/rg approach
esafak•4h ago
This ought to be an IDE plugin. Don't make me context switch.
danjl•4h ago
The "Read" file list sounds a lot like Copilot Edit mode, where you manually specify the list of files that are added to the context. Similarly, Copilot has an Ask (Chat) mode that doesn't change the code. One of the downsides of all these new IDEs is that it is difficult, even for the developers of those tools, to have enough time to test out coding in each of their competitors. Also, the switching cost of changing IDEs is pretty high, even if they are forks of the same code base, which makes it hard for the users to really test out all the options. In the long run, I expect that the "larger" IDE providers will purchase the smaller ones. IOW, if you wait long enough, all the good bits will be in Copilot (or maybe Cursor with their new funding).
jbellis•3h ago
(creator here)

idk, everyone else seems to want to take the 40 year old IDE paradigm we're all used to (really! that's how old Turbo Pascal 3 is!) and graft AI onto it. I think we need a fundamentally different design to truly take advantage of the change from "I'm mostly reading and writing code at human speeds" to "I'm mostly supervising the AI which is better at generating syntax than I am."

of course the downside to going against the crowd is that the crowd is usually right, we'll see how it goes!

danjl•3h ago
I am a huge supporter of completely re-working the IDE UI as well. I'm not arguing for keeping the existing IDE interfaces. I like that folks are experimenting with entirely new interfaces. In fact, I'd go further and suggest that all of the overly complex interfaces used on any sort of content-creation app, like Unity, Unreal, Photoshop, as well as code IDEs, will eventually be completely refactored to remove all the old complexity in favor of either chat-based or other AI-driven interfaces. My point is simply that there are too many new AI-driven IDEs for folks to try out, even the developers of those IDEs. Many of the features in Brokk that were seemingly described in the Brokk 101 blog video as "differentiators" are existing Copilot features. Has the author ever used Copilot? Or just Cursor? Or another AI variant?
danjl•3h ago
I'd love to see things like Brokk experiment a bit more with what other information to include in our git repositories, besides the code, that helps improve AI-based code generation. For example, perhaps the repo should include more design information about the look-and-feel, as visual information or Figma files, rather than just, say the CSS and HTML. Or it might help if the repository included more business requirements so that the AI has better information to guide prioritization of changes. Obviously other bits, like coding standards, should be included as well, though perhaps using a larger context might mitigate the need for coding standards if the generated code followed the existing code (which often doesn't happen).
insin•1h ago
LLM for Large Codebases

Void: Open-source Cursor alternative

https://github.com/voideditor/void
515•sharjeelsayed•7h ago•219 comments

A flat pricing subscription for Claude Code

https://support.anthropic.com/en/articles/11145838-using-claude-code-with-your-max-plan
73•namukang•2h ago•47 comments

Fui: C library for interacting with the framebuffer in a TTY context

https://github.com/martinfama/fui
29•Bhulapi•2h ago•13 comments

Reservoir Sampling

https://samwho.dev/reservoir-sampling/
252•chrisdemarco•7h ago•58 comments

From: Steve Jobs. "Great idea, thank you."

https://blog.hayman.net/2025/05/06/from-steve-jobs-great-idea.html
592•mattl•5h ago•155 comments

Notes on rolling out Cursor and Claude Code

https://ghiculescu.substack.com/p/nobody-codes-here-anymore
139•jermaustin1•7h ago•51 comments

Progress toward fusion energy gain as measured against the Lawson criteria

https://www.fusionenergybase.com/articles/continuing-progress-toward-fusion-energy-breakeven-and-gain-as-measured-against-the-lawson-criteria
138•sam•8h ago•63 comments

Stability by Design

https://potetm.com/devtalk/stability-by-design.html
43•potetm•4h ago•8 comments

When Abandoned Mines Collapse

https://practical.engineering/blog/2025/5/6/when-abandoned-mines-collapse
119•impish9208•2d ago•32 comments

Show HN: Using eBPF to see through encryption without a proxy

https://github.com/qpoint-io/qtap
186•tylerflint•7h ago•55 comments

Newsreels from the UCLA Film and Television Archive

https://newsreels.net/
7•billfor•1h ago•0 comments

Show HN: Req Update Check

https://github.com/ontherivt/req-update-check
9•hookedonwinter•1h ago•0 comments

How to start a school with your friends

https://prigoose.substack.com/p/how-to-start-a-university
43•geverett•4h ago•8 comments

Podfox: First Container-Aware Browser

https://val.packett.cool/blog/podfox/
11•pierremenard•1h ago•0 comments

First American pope elected and will be known as Pope Leo XIV

https://www.cnn.com/world/live-news/new-pope-conclave-day-two-05-08-25
438•saikatsg•7h ago•666 comments

Using NASA’s SMAP satellite to detect L-band interference

https://radioandnukes.substack.com/p/how-dare-you-transmit-at-14-ghz
291•c16•15h ago•65 comments

Mathematical Problem Solving

https://www.cip.ifi.lmu.de/~grinberg/t/20f/
50•ibobev•3d ago•1 comments

Implementing State Machines in PostgreSQL (2017)

https://felixge.de/2017/07/27/implementing-state-machines-in-postgresql/
20•todsacerdoti•3h ago•1 comments

Phoenician culture spread mainly through cultural exchange

https://www.mpg.de/24574685/0422-evan-phoenician-culture-spread-mainly-through-cultural-exchange-150495-x
28•gmays•3d ago•2 comments

Ciro (YC S22) is hiring a software engineer to build AI agents for sales

https://www.ycombinator.com/companies/ciro/jobs
1•dwiner•7h ago

Static as a Server

https://overreacted.io/static-as-a-server/
74•danabramov•6h ago•43 comments

The Rise and Fall of the Visual Telegraph (2017)

https://parisianfields.com/2017/11/05/the-rise-and-fall-of-the-visual-telegraph/
21•geox•4h ago•4 comments

Block Diffusion: Interpolating Autoregressive and Diffusion Language Models

https://m-arriola.com/bd3lms/
32•t55•5h ago•4 comments

How the US Built 5k Ships in WWII

https://www.construction-physics.com/p/how-the-us-built-5000-ships-in-wwii
12•rbanffy•3h ago•1 comments

The second birth of JMW Turner

https://www.newstatesman.com/culture/art-design/2025/04/the-second-birth-of-jmw-turner
11•prismatic•2d ago•0 comments

A Brief History of Cursor's Tab-Completion

https://www.coplay.dev/blog/a-brief-history-of-cursor-s-tab-completion
9•josvdwest•2d ago•2 comments

Shape and topology morphing of closed surfaces integrating origami and kirigami

https://www.science.org/doi/10.1126/sciadv.ads5659
18•bryanrasmussen•2d ago•2 comments

How Obama’s BlackBerry got secured (2013)

https://www.electrospaces.net/2013/04/how-obamas-blackberry-got-secured.html
190•lastdong•3d ago•71 comments

Prepare your apps for Google Play's 16 KB page size compatibility requirement

https://android-developers.googleblog.com/2025/05/prepare-play-apps-for-devices-with-16kb-page-size.html
10•ingve•2h ago•1 comments

Egyptologist uncovers hidden messages on Paris’s iconic obelisk

https://news.artnet.com/art-world/hidden-messages-paris-luxor-obelisk-2636508
74•isaacfrond•16h ago•67 comments