Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Error(s) while creating or accessing .kiro/specs files

Open ocobra opened this issue 9 months ago • 5 comments

Before opening, please confirm:

Operating System

linux

Kiro Version

0.9.2

Bug Description

Access denied: File access is restricted to workspace. Attempted path: /h. The agent has seen this error and will try a different approach to write the file if needed.

Steps to Reproduce

proceed to tasks.md creation

Kiro I'll delegate the tasks.md creation to the feature-requirements-first-workflow subagent.

Error(s) while reading file(s)

/home/cokochu/.kiro/specs/dicom-sr-ingestion/requirements.md

/home/cokochu/.kiro/specs/dicom-sr-ingestion/design.md

/home/cokochu/.kiro/specs/dicom-sr-ingestion/requirements.md 327 - EOF

/home/cokochu/.kiro/specs/dicom-sr-ingestion/design.md 860 - EOF Error(s) while creating

Access denied: File access is restricted to workspace. Attempted path: /hom. The agent has seen this error and will try a different approach to write the file if needed. use sudo and the files are in this dir - /home/cokochu/code/githubrepos/sono/.kiro/specs

use sudo and the files are in this dir - /home/cokochu/code/githubrepos/sono/.kiro/specs

I'll delegate the tasks.md creation to the feature-requirements-first-workflow subagent.

Including Steering Documents

coding-standards.md

project-overview.md

structure.md Error(s) while reading file(s)

/home/cokochu/code/githubrepos/sono/.kiro/specs/dicom-sr-ingestion/requirements.md

/home/cokochu/code/githubrepos/sono/.kiro/specs/dicom-sr-ingestion/design.md

/home/cokochu/code/githubrepos/sono/.kiro/specs/dicom-sr-ingestion/requirements.md 327 - EOF

/home/cokochu/code/githubrepos/sono/.kiro/specs/dicom-sr-ingestion/design.md 860 - EOF

Expected Behavior

proceed to tasks.md creation

Kiro I'll delegate the tasks.md creation to the feature-requirements-first-workflow subagent.

Error(s) while reading file(s)

/home/cokochu/.kiro/specs/dicom-sr-ingestion/requirements.md

/home/cokochu/.kiro/specs/dicom-sr-ingestion/design.md

/home/cokochu/.kiro/specs/dicom-sr-ingestion/requirements.md 327 - EOF

/home/cokochu/.kiro/specs/dicom-sr-ingestion/design.md 860 - EOF Error(s) while creating

Access denied: File access is restricted to workspace. Attempted path: /hom. The agent has seen this error and will try a different approach to write the file if needed. use sudo and the files are in this dir - /home/cokochu/code/githubrepos/sono/.kiro/specs

use sudo and the files are in this dir - /home/cokochu/code/githubrepos/sono/.kiro/specs

I'll delegate the tasks.md creation to the feature-requirements-first-workflow subagent.

Including Steering Documents

coding-standards.md

project-overview.md

structure.md Error(s) while reading file(s)

/home/cokochu/code/githubrepos/sono/.kiro/specs/dicom-sr-ingestion/requirements.md

/home/cokochu/code/githubrepos/sono/.kiro/specs/dicom-sr-ingestion/design.md

/home/cokochu/code/githubrepos/sono/.kiro/specs/dicom-sr-ingestion/requirements.md 327 - EOF

/home/cokochu/code/githubrepos/sono/.kiro/specs/dicom-sr-ingestion/design.md 860 - EOF

Conversation ID

9aef02e4-95f3-4955-a1f3-a86cedfc7b47 9d813c7d-cee1-4b1c-b16e-f05099db0da3 a2443959-c6e7-4605-908b-26ac43e82dfe 21ee8f06-6a0b-4913-be9a-998e2c3eeb6d

Additional Context

No response

ocobra avatar Feb 17 '26 15:02 ocobra

Facing same issue

arunabhcode avatar Feb 21 '26 02:02 arunabhcode

Image

seems to happen when creating specs for extremely big repos

arunabhcode avatar Feb 21 '26 02:02 arunabhcode

Appears to have been fixed here: https://github.com/kirodotdev/Kiro/issues/5496#issuecomment-3867661598

ocobra avatar Feb 21 '26 03:02 ocobra

Hi @ocobra, thanks for the report and for following up with the resolution link! 🙏

This has been resolved — please refer to #5496 for details. We'll go ahead and close this issue.

If you continue to experience any issues, feel free to open a new issue and we'll take a look. Thanks again!

AnilMaktala avatar Mar 09 '26 13:03 AnilMaktala

Same issue here on Windows.

The agent attempts to write files using filename.md instead of the actual workspace path (e.g. c:\Users<user><project>\filename.md). This results in:

Access denied: File access is restricted to workspace. Attempted path: /workspace/filename.md
The agent then retries with the correct path, but the failed attempt is unnecessary and costs credits.

Environment:

  • OS: Windows 11
  • Session type: Vibe (chat)

Expected behavior: The agent should use the actual workspace path from the system context on the first attempt, without defaulting to a non-existent /workspace/ prefix.

Workaround: Adding a steering file (.kiro/steering/) that explicitly tells the agent to use the correct path prefix. This shouldn't be necessary.

Cloud-Ninja-de avatar Jun 07 '26 08:06 Cloud-Ninja-de