frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Brokk: AI for Large Codebases

https://brokk.ai
51•handfuloflight•4mo ago

Comments

jbellis•4mo 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•4mo ago
Is there something also to read for those of us who will never watch videos?
lutzleonhardt•4mo ago
Hi, yes there are some blog posts:

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

bchapuis•4mo 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•4mo 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•4mo 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•4mo 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•4mo 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•4mo ago
How large is "Large"? Are we testing on Unreal Engine? :D
jbellis•4mo ago
no, but I've tested on intellij (~5M loc, takes forever to import b/c of delombok, do not recommend)
lutzleonhardt•4mo ago
I tested it with Ghidra recently and got very good results
saratogacx•4mo 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•4mo 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•4mo ago
Thank you! I think this is the next evolution of using LLM for coding. Understanding all the context from large codebases...
lutzleonhardt•4mo 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•4mo ago
This ought to be an IDE plugin. Don't make me context switch.
danjl•4mo 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•4mo 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•4mo 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•4mo 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).
bb88•4mo ago
I think that's what's going to happen over time. We're going to be writing more and more code, but supervising an AI mostly.

The big problem is that we're treating the AI as an all knowing oracle. And probably what we should be doing is treating the AI as a colleague -- allowing it to ask questions about the code base to develop the subtle clues.

Often what happens is that subtlety is lost on the code base, and sometimes, AI will think it's an outright error, when in fact it's completely on purpose.

Comments go a long way towards this end, but in large legacy codebases, comments may not exist, and the coders expected people to understand at first glance the code was correct.

Test driving Junie, I've had it remove a feature it thought was broken code, and then it fixes the unit tests, instead of trying to understand if the unit test was actually broken or the feature was broken.

insin•4mo ago
LLM for Large Codebases

Virtual Agent Economies

https://arxiv.org/abs/2509.10147
1•fcpguru•2m ago•0 comments

Tonemaps

https://mini.gmshaders.com/p/tonemaps
1•bpierre•4m ago•0 comments

A Membraneless Electrochemically Mediated Amine Regeneration for Carbon Capture

https://www.nature.com/articles/s41467-025-61525-3
1•PaulHoule•5m ago•0 comments

One Token to rule them all – obtaining Global Admin in every Entra ID tenant

https://dirkjanm.io/obtaining-global-admin-in-every-entra-id-tenant-with-actor-tokens/
1•colinprince•5m ago•0 comments

ABC Pulls Jimmy Kimmel Live from the Air 'Indefinitely'

https://www.vulture.com/article/abc-pulls-jimmy-kimmel-live-from-the-air-indefinitely.html
3•pulisse•7m ago•2 comments

ABC yanks Jimmy Kimmel's show 'indefinitely' after remarks about Charlie Kirk

https://www.cnn.com/2025/09/17/media/jimmy-kimmel-charlie-kirk-trump-fcc-brendan-carr
11•VikingCoder•8m ago•2 comments

Thanks for Subscribing

https://www.fsf.org/free-software-supporter/success
2•okcead•10m ago•0 comments

A Cheaper Way to Test Ventilation Rates?

https://chillphysicsenjoyer.substack.com/p/i-made-a-cheaper-way-to-test-ventilation
1•crescit_eundo•11m ago•0 comments

D port of meta tic-tac-toe game written for the GNU assembler

https://github.com/dkorpel/tictac
1•teleforce•13m ago•0 comments

Scientists' 'pivotal step' in bringing back the dodo for first time in 300 years

https://www.theguardian.com/science/2025/sep/17/dodo-birds-gene-editing-advance
1•bookofjoe•14m ago•0 comments

The Customer Is Always Right (but not always human)

https://sergey.substack.com/p/ai-agent-economy
1•neural_thing•14m ago•0 comments

Morse code beyond the solar system

https://www.johndcook.com/blog/2025/09/17/morse-code-beyond-the-solar-system/
1•ibobev•15m ago•0 comments

The Gentrification of Videogame History

https://felipepepe.medium.com/the-gentrification-of-video-game-history-dfe11f1e08ae
1•akkartik•15m ago•0 comments

Collection of mental math posts, basic and more advanced

https://www.johndcook.com/blog/2025/09/17/mental-math-posts/
1•ibobev•15m ago•0 comments

An Engineer's Perspective on the Texas Floods [video]

https://www.youtube.com/watch?v=3FfMzWa6LKg
1•bjourne•17m ago•0 comments

Anthropic admits they nerfed their Claude model in August

https://twitter.com/aiflux/status/1968443609470091277
3•tensorlibb•18m ago•1 comments

Rectified Linear Units Improve Restricted Boltzmann Machines (2010) [pdf]

https://www.cs.toronto.edu/~fritz/absps/reluICML.pdf
1•lawrenceyan•19m ago•0 comments

Children in Mental Health Crisis Don't Need These Tests

https://www.medscape.com/viewarticle/children-mental-health-crisis-dont-need-these-tests-are-2025...
3•wjb3•20m ago•0 comments

Signed URLs for Embedded Devices

https://blog.golioth.io/signed-urls-for-embedded-devices/
1•hasheddan•20m ago•0 comments

Led By Donkeys attacks arrests after Trump Windsor projections

https://www.theguardian.com/us-news/2025/sep/17/four-arrested-after-image-of-trump-and-epstein-pr...
5•colinprince•21m ago•0 comments

Hieroglyphs are easier than they look [video]

https://www.youtube.com/watch?v=90An1dnvwyc
1•rapawel•24m ago•0 comments

Phishing: Slash-like Unicode characters in URL [video]

https://www.youtube.com/watch?v=nxVr4ERhrPQ
2•rapawel•25m ago•0 comments

Federal Reserve cuts US interest rates for first time since December

https://www.theguardian.com/business/2025/sep/17/us-federal-reserve-interest-rates-jerome-powell
4•wslh•27m ago•0 comments

Moco

https://moco.ao
1•edlavio•27m ago•1 comments

Dyson Spheres are a joke [video]

https://www.youtube.com/watch?v=fLzEX1TPBFM
1•baking•29m ago•0 comments

Tubi launches "Productubity" to help fans stream at work

https://corporate.tubitv.com/press/tubi-launches-productubity-to-help-fans-stream-smarter-and-sne...
1•wibbily•29m ago•0 comments

Most Splendid Housing Bubbles in America, Aug 2025

https://wolfstreet.com/2025/09/16/the-most-splendid-housing-bubbles-in-america-aug-2025-price-dro...
1•rendang•30m ago•1 comments

macOS Tahoe Incompatible with Mac Studio M3 Ultra

https://eclecticlight.co/2025/09/17/macos-26-0-tahoe-build-25a354-is-incompatible-with-mac-studio...
30•lawgimenez•30m ago•9 comments

Shai-Hulud: The novel self-replicating worm infecting NPM packages

https://www.sysdig.com/blog/shai-hulud-the-novel-self-replicating-worm-infecting-hundreds-of-npm-...
4•Bogdanp•34m ago•0 comments

Prediction markets are booming. Oversight is barely there

https://www.citationneeded.news/prediction-markets-oversight/
4•herbertl•36m ago•0 comments