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

Spec Kit and Opencode problem using /speckit.specify in Opencode

Open hakan-andersson-treetop opened this issue 11 months ago • 3 comments

First of all, thanks for a great product!

I've installed the latest versions of Opencode and Spec Kit. After that, I opened a PowerShell window and went to a new, empty folder, entering commands to start things up. "git init" "specify init ." (selected Opencode and PowerShell) "opencode ."

So, I'm in the Opencode TUI with a local AI agent running on llama.cpp. First command "/speckit.constitution ..:" works great. I get the file .specify\memory\constitution.md The second command "/speckit.specify ..." is issued, and I now have some problems.

This is part of the log:

# Fetch all remote branches to ensure latest information
$ git fetch --all --prune

# Check remote branches for matching pattern
$ git ls-remote --heads origin | grep -E 'refs/heads/[0-9]+-A chat-based platform$' || echo "No remote branches found"
'grep' is not recognized as an internal or external command,
operable program or batch file.

# Check local branches for matching pattern
$ git branch | grep -E '^[* ]*[0-9]+-A chat-based platform$' || echo "No local branches found"
'grep' is not recognized as an internal or external command,
operable program or batch file.

→ List .

# Check for specs directories matching the feature name
$ powershell -Command "Get-ChildItem -Path specs -Directory -Filter '*A chat-based platform*' | ForEach-Object { Write-Output $_.Name }"
Get-ChildItem : Cannot find path 'C:\source\JourMedV1\JM5\specs' because it does not exist.
At line:1 char:1
+ Get-ChildItem -Path specs -Directory -Filter '*A chat-based platform* ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\source\JourMedV1\JM5\specs:String) [Get-ChildItem], ItemNotFoundExce 
   ption
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

For some reason, "grep" is not recognized as a command, which seems to be the problem. However, running Windows and a PowerShell shell, grep is (from what I understand) not a known command.

Can anyone clarify what is going on and if it is an issue with Spec Kit or with Opencode? Thanks.

hakan-andersson-treetop avatar Dec 05 '25 14:12 hakan-andersson-treetop

Same problem here. /bump

Korck-lab avatar Dec 30 '25 14:12 Korck-lab

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 May 30 '26 01:05 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 Jun 29 '26 01:06 github-actions[bot]