Support for multi-root workspaces
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.
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.
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!
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": {
}
}
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.
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.
+1 for this. I'm a Cursor user and testing Kiro. This is a blocker for me moving from Cursor at the moment.
@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.
@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 :(
+1 here; I was so confused at first then I realized what changed
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.
Hello All, We are actively working on this feature and plan to release it soon.
+1
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.
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.