News for hackers. Stuff that matters.
Re:Zed AI by simonw on Tuesday August 20, 2024 @03:38PM (#41303262)
This feature does exactly that. You can open up the chat panel, run "/tab name-of-tab" or "/file path-to-file" and then start asking questions about the code.
Re:Zed AI by iamnbutler on Tuesday August 20, 2024 @04:10PM (#41303556)
Hey! I'm Nate from Zed. You can also use the /file command to drop entire directories, or even globs into the assistant.

For example, you can do /file *.rs to load all of the rust files in your project into context.

Here is a simple but real example I used a while back:

"/file zed/crates/gpui/src/text_system.rs

I have a font I want to check if it exists on the system. I currently have a &'static str.

Is there something in here that will help me do that?"

I haven't interfaced with the lower level TextSystem that much, so rather than dig through 800 lines of code, I was able to instantly find `is_font_available()` and do what I needed to do.

Re:Zed AI by d4rkp4ttern on Sunday August 25, 2024 @09:21PM (#41353100)
Loading a large number of files into context uses up a lot of the context length and may often even exceed the context length of the LLM. Is there any RAG-like feature planned so that only relevant parts of the code are loaded?