# Cross-sectional analysis of multiple Repo

**URL:** <https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186>\
**Category:** Discussions\
**Created:** [October 22, 2023, 9:36am UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186 "2023-10-22T09:36:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mati](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Mati](https://forum.cursor.com/u/Mati)\
**Post date:** [October 22, 2023, 9:36am UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/1 "2023-10-22T09:36:20Z")

</div>

Hi

If I want to analyze across multiple Repo’s, can I create a workspace and display multiple folders so that Codebase can analyze multiple files?

If anyone has any good ideas, please let me know.

\*However, since Codebase’s reference area is limited, we think we need to use it in combination with Langchain or something similar.  
\*By the way, I am a non-programmer.

---

<div class="post-metadata">

**Author:** ![Jakob](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jakob/32/93_2.png) [@Jakob](https://forum.cursor.com/u/Jakob)\
**Post date:** [October 22, 2023, 11:52am UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/2 "2023-10-22T11:52:55Z")

</div>

If you use the “Add Folder to Workspace…” option to add a second folder to your workspace, the Codebase context features still only use the codebase of the first folder in your workspace. But with the “@” symbol, you can still reference files from both folders. This seems to be a bug because the advanced codebase context settings provide the option to use “all” or a specific folder. We’ll investigate.

However, if you put both folders into one folder and open that one parent folder in Cursor, the codebase context features can use both folders simultaneously. So I would recommend that you do that.

---

<div class="post-metadata">

**Author:** ![Mati](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Mati](https://forum.cursor.com/u/Mati)\
**Post date:** [October 22, 2023, 1:43pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/3 "2023-10-22T13:43:08Z")

</div>

・Thanks for your suggestion well said as you suggested.  
・On the other hand, what I’m wondering is whether GPT holds that much memory space. While it can take in large amounts of information, can it actually process all of that information?  
・Does Cursor introduce its own storage space, etc. in Langchain compared to, for example, the web version of GPT?

---

<div class="post-metadata">

**Author:** ![Jakob](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jakob/32/93_2.png) [@Jakob](https://forum.cursor.com/u/Jakob)\
**Post date:** [October 22, 2023, 1:57pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/4 "2023-10-22T13:57:26Z")

</div>

The AI itself can only remember a limited amount of text at once. However, what codebase indexing does is make your codebase highly searchable in a smart manner. When you ask a question, it retrieves the most relevant snippets from your codebase related to your question and presents them within the limited context of the AI. This way, the AI only sees what it needs to answer your question, and its memory space doesn’t need to be excessively large.

---

<div class="post-metadata">

**Author:** ![Mati](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Mati](https://forum.cursor.com/u/Mati)\
**Post date:** [October 22, 2023, 2:11pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/5 "2023-10-22T14:11:30Z")

</div>

・Okay, so if I still want to implement Langchain, can I combine Cursor and Langchain? Probably not…  
・On a related note, you can’t read a large number of files like this like all Codebase can with the web version of GPT, can Codebase increase the accuracy of GPT compared to regular GPT? Or is it the same?

---

<div class="post-metadata">

**Author:** ![Jakob](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jakob/32/93_2.png) [@Jakob](https://forum.cursor.com/u/Jakob)\
**Post date:** [October 22, 2023, 2:26pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/6 "2023-10-22T14:26:49Z")

</div>

1. I’m not sure if I understand your question correctly. LangChain is a framework for developing applications powered by language models. It has helpful methods that you can use when developing your own AI application to make the AI context-aware, for example. Cursor is its own application that has its own logic to make the AI context-aware.

2. The ChatGPT website can’t read a large number of files because it’s limited by its own context size. It doesn’t have indexing logic built into it like Cursor, which makes it able to retrieve the most relevant snippets, as I described in my previous answer. Yes, it will greatly improve the accuracy of the AI answers when you ask something about your codebase. With ChatGPT, the relevant parts of your codebase would likely be excluded from the limited context, and it wouldn’t even know what code you wrote.

---

<div class="post-metadata">

**Author:** ![Mati](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Mati](https://forum.cursor.com/u/Mati)\
**Post date:** [October 22, 2023, 2:40pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/7 "2023-10-22T14:40:02Z")

</div>

・Thanks for the great answer, github copilot doesn’t have an indexing feature either, right?

---

<div class="post-metadata">

**Author:** ![Jakob](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jakob/32/93_2.png) [@Jakob](https://forum.cursor.com/u/Jakob)\
**Post date:** [October 22, 2023, 2:42pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/8 "2023-10-22T14:42:22Z")

</div>

Correct. As far as I know, Copilot only sees the code that’s actually visible in your Visual Studio Code window, and that can’t be a lot of code, so they don’t need indexing.

---

<div class="post-metadata">

**Author:** ![boqihua123](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@boqihua123](https://forum.cursor.com/u/boqihua123)\
**Post date:** [October 24, 2023, 7:18am UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/9 "2023-10-24T07:18:36Z")

</div>

意思是cursor的gpt4无法理解多文件夹内容，也无法处理

---

<div class="post-metadata">

**Author:** ![Jakob](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jakob/32/93_2.png) [@Jakob](https://forum.cursor.com/u/Jakob)\
**Post date:** [October 24, 2023, 11:26am UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/10 "2023-10-24T11:26:25Z")

</div>

@boqihua123 Please read [my reply here](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/2). Cursor can handle multiple folders.

---

<div class="post-metadata">

**Author:** ![JhonW00d](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jhonw00d/32/4079_2.png) [@JhonW00d](https://forum.cursor.com/u/JhonW00d)\
**Post date:** [February 13, 2025, 8:08pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/12 "2025-02-13T20:08:39Z")

</div>

@Jakob is that still the case in february 2025, and Cursor still having issues with “Add Folder to Workspace…” and having access to all context?

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [February 22, 2025, 4:24pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/13 "2025-02-22T16:24:07Z")

</div>

Hey, Cursor does not yet support workspaces made up of files or folders in different directories on your system.

As Jakob’s original answer stated, while you can @ files when using Workspace projects, codebase indexing will not index files from more than one source folder correctly yet.

We are hoping to add this functionality soon!

---

<div class="post-metadata">

**Author:** ![brando90](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/brando90/32/35038_2.png) [@brando90](https://forum.cursor.com/u/brando90)\
**Post date:** [March 26, 2025, 10:52pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/14 "2025-03-26T22:52:45Z")

</div>

related: [Indexing only reads first folder in the workspace](https://forum.cursor.com/t/indexing-only-reads-first-folder-in-the-workspace/2585)

---

<div class="post-metadata">

**Author:** ![brando90](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/brando90/32/35038_2.png) [@brando90](https://forum.cursor.com/u/brando90)\
**Post date:** [March 26, 2025, 10:54pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/15 "2025-03-26T22:54:15Z")

</div>

@danperks when will this be available? This is one of the key features needed for me to keep using cursor in the long term. Who else doesn’t use more than one folder? Surprising this isn’t supported if one folder already works. I’d assume a simple os.walk recurse over what you guys already have should work. Why does that not work?

---

<div class="post-metadata">

**Author:** ![brando90](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/brando90/32/35038_2.png) [@brando90](https://forum.cursor.com/u/brando90)\
**Post date:** [March 27, 2025, 12:08am UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/16 "2025-03-27T00:08:22Z")

</div>

Hi @danperks , thanks for your reply. To avoid double posting, do you know why my solution of creating a “father” folder with sym links doesn’t seem to work as expected, full reference here: [Indexing only reads first folder in the workspace - #28 by brando90](https://forum.cursor.com/t/indexing-only-reads-first-folder-in-the-workspace/2585/28) (feel free to respond over there)

---

<div class="post-metadata">

**Author:** ![heyJonBray](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/heyjonbray/32/32918_2.png) [@heyJonBray](https://forum.cursor.com/u/heyJonBray)\
**Post date:** [March 27, 2025, 1:20am UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/17 "2025-03-27T01:20:27Z")

</div>

What OS are you on?

If you’re on mac or linux you can use symbolic links to make links to both repos inside of some `main` directory, then open cursor in `main`. For instance say you have two directories `~/path/to/one/` and `~/path/to/two/` you can do the following:

```auto
mkdir main
ln -s ~/path/to/one ~/main/one
ln -s ~/path/to/two ~/main/two

```

now when you open Cursor in `~/main` you’ll have access to both repos

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [March 27, 2025, 5:03pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/18 "2025-03-27T17:03:37Z")

</div>

We are working on this as we speak. I’d hope that it will be added in v0.49!

---

<div class="post-metadata">

**Author:** ![brando90](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/brando90/32/35038_2.png) [@brando90](https://forum.cursor.com/u/brando90)\
**Post date:** [March 27, 2025, 11:00pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/19 "2025-03-27T23:00:04Z")

</div>

Amazing! If possible, may I ask when the expected timeline for delivery is? 🙂

I’m also genuinely curious why this is a challenge, since recursion is usually simple to implement. But I understand if this is a private proprietary detail that can’t be shared but interested!

Thank you!

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [March 28, 2025, 5:02pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/20 "2025-03-28T17:02:03Z")

</div>

The difficulty comes from indexing a codebase that doesn’t physically exist in the same directory on your machine. A lot of the relationship between files is dictated from where they are located relative to each other.

With workspaces, this structure is defined in a kind of “virtual filesystem” that is not actually in the same directory, so we have to do the work to support such a setup for our existing indexing functionality.

Unfortunately, I don’t currently have a timeframe on when v0.49 will be available

---

<div class="post-metadata">

**Author:** ![epaga](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/epaga/32/43526_2.png) [@epaga](https://forum.cursor.com/u/epaga)\
**Post date:** [April 28, 2025, 12:47pm UTC](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186/21 "2025-04-28T12:47:18Z")

</div>

I noticed 0.49 is out and the change notes mention “better folder parsing” - can you confirm that working with a workspace with various folders now works? @danperks

[Next page](https://forum.cursor.com/t/cross-sectional-analysis-of-multiple-repo/1186.md?page=2)
