Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Support for multi-root workspaces

Open rajulbhatnagar opened this issue 1 year ago • 14 comments

Operating System

MacOs 15.5

Kiro Version

0.1.0

Bug Description

As a user, I want to be able to access files from all folders in my multi-root workspace, so that I can efficiently work on projects that span across multiple repositories or directories. Currently, it seems only the first folder is recognized.

Steps to Reproduce

  • Create a workspace with multiple root folders.
  • Open the workspace.
  • Kiro only recognizes and creates steering files for the 1st folder

Expected Behavior

All files from all folders in the workspace should be discoverable and I should be able to create steering documents for each folder as well as top level folder

Conversation ID

No response

Additional Context

This is a common workflow for developers working with microservices, monorepos, or related but separate projects. Lack of this feature forces workarounds and reduces productivity.

rajulbhatnagar avatar Jul 15 '25 21:07 rajulbhatnagar

Hey @rajulbhatnagar, Thanks for the suggestion! Kiro doesn't have this feature yet, but we've been thinking about it. I'll mark this as a feature request so the team can consider it for future releases.

AnilMaktala avatar Jul 15 '25 21:07 AnilMaktala

I was able to achieve this by checking out two separate GitHub projects into the same local directory and then opening that directory in Kiro. It successfully reads and writes to both projects without issue. Might be a helpful workaround for others in the meantime!

skercher avatar Jul 16 '25 00:07 skercher

FYI not sure if you're capturing here but Kiro also doesn't work with 'simple' code-workspace files either - ie multiple folders in the same root:

{
  "folders": [
    {
      "path": "admin-ui"
    },
    {
      "path": "core-api"
    },
    {
      "path": "web-app"
    }
  ],
  "settings": {
  }
}

jamescrowley avatar Jul 17 '25 01:07 jamescrowley

I have a workspace with 6 different Git repositories as root folders. It seems that the context can detect most files and folders down to about 2 levels, but after that, it cannot find lower-level files.

jinsley8 avatar Jul 22 '25 19:07 jinsley8

Also a must have for me. I tried forcing it using the steering docs. At some point it started placing files intended for project 2 inside project 1, writing code in it, and then copying the contents to the correct location in project 2, leaving empty files in project 1.

guruvash avatar Jul 22 '25 20:07 guruvash

+1 for this. I'm a Cursor user and testing Kiro. This is a blocker for me moving from Cursor at the moment.

Fraserhardy avatar Aug 18 '25 19:08 Fraserhardy

@AnilMaktala Any plans to implement this? I really liked Kiro but this is blocking me from using it on my main project. I'd rather not have to merge everything into a single git repo. Cursor works nicely across projects in a single workspace.

Fraserhardy avatar Sep 26 '25 14:09 Fraserhardy

@AnilMaktala this a real blocker for moving away from cursor. Please prioritize this if possible or let me know if there are any suggested workarounds :(

ashishsaxena1104 avatar Oct 23 '25 06:10 ashishsaxena1104

+1 here; I was so confused at first then I realized what changed

Josefpa avatar Nov 03 '25 02:11 Josefpa

i'm a kiro user, using git worktrees and feature branches, after creating the worktree in a folder suffixed "-clone" i get this message, even after adding the new folder to the workspace in kiro.

avelops avatar Nov 12 '25 12:11 avelops

Hello All, We are actively working on this feature and plan to release it soon.

AnilMaktala avatar Nov 12 '25 16:11 AnilMaktala

+1

M4h45amu7x avatar Nov 13 '25 16:11 M4h45amu7x

I saw it was released.

However, I am encounting issues with Kiro verion 0.6.0 where file referencing appears broken every time I use it.

If I right click on a selection of text, select Kiro, click Chat, it will add the file and text reference to the side bar chat.

However, Kiro reading the files always fails with "Could not resolve" errors.

Could not resolve 'packages/python-model/src/azkaban_api_model_python/resources/resource_client.py' to a URI within any workspace folder. The reference must be relative to one of the workspace roots in this multi-root workspace. Available workspace folders: 📦 ROOT, 📦 ROOT/packages/python-model, 📦 ROOT/packages/api-lambda, 📦 ROOT/packages/website, 📦 ROOT/packages/api-lambda-graviton-build, 📦 ROOT/packages/customer-libraries-graviton-build, 📦 ROOT/packages/python-test-client-mypy, 📦 ROOT/packages/website-tests, 📦 ROOT/packages/cdk.. The agent has seen this error and will try a different approach to write the file if needed.

rhermes62 avatar Nov 18 '25 17:11 rhermes62

Hey all, Thank you for your continued interest in this feature! Multi-root workspace support was released in version 0.6.0.

@rhermes62 - Thank you for reporting the file resolution issue you're encountering in version 0.6.0. We'll investigate the "Could not resolve" errors you're seeing with file references in multi-root workspaces. Could you please open a new issue with the details so we can track and address it separately?

For others still on earlier versions, please upgrade to the latest version of Kiro to access this feature.

AnilMaktala avatar Jan 20 '26 19:01 AnilMaktala