-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Open
Description
Bug
update-agent-context.sh doesn't check if the target agent file (e.g., CLAUDE.md) is a symlink before writing to it. This converts the symlink into a regular file.
Steps to Reproduce
- Create
AGENTS.mdwith your agent instructions - Create symlink:
ln -s AGENTS.md CLAUDE.md - Run
/speckit.planwhich callsupdate-agent-context.sh claude - Check
CLAUDE.md- it's now a regular file instead of a symlink
Expected Behavior
The script should either:
- Detect symlinks and update the target file instead
- Skip updating symlinked files
- Warn the user that a symlink will be converted
Workaround
Manually restore the symlink after running the script:
rm CLAUDE.md && ln -s AGENTS.md CLAUDE.mdMetadata
Metadata
Assignees
Labels
No labels