spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Bug: Plan contains absolute path to spec in Input field, should use relative paths

Open gingters opened this issue 1 year ago • 3 comments

Claude Sonnet created a plan from my spec, and it used an absolute path for that.

Observed behavior

**Branch**: `001-first-we-want` | **Date**: 2025-09-25 | **Spec**: [spec.md](spec.md)
**Input**: Feature specification from `/Users/sebastian/dev/sg/drk/training-journal/specs/001-first-we-want/spec.md`

Now, this path on my hobby project is not a secret so I am happy to share it. The issue is that another developer working with this most likely will have a different path (and maybe that dev works on windows and then the reference will be WAY off).

I also saw an absolute windows path in a plan in one video from @localden , so I assume this is a common behavior.

Expected behavior The LLM should be advised to always only use relative paths from within the current specs folder or (probably better) from the workspace/project root.

gingters avatar Sep 25 '25 17:09 gingters

For some reason this behaviour seems intentional. When you look at the /prompts/speckit.*.md files you'll see multiple instructions telling it to use absolute paths. I have the same problem. I'd like to check the specs into a repo and collaborate with my team on the specs and plans but the file absolute path will be different for them.

jdstuart avatar Jan 07 '26 18:01 jdstuart

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jun 07 '26 01:06 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar Jul 08 '26 00:07 github-actions[bot]