anomalyco / anomalyco/opencode
The shell tool expects `command`, but the model sends `cmd`, causing the missing-key error.
Open
Nobody has claimed this yet.
2.0
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Invalid arguments for tool "shell":
- command: Missing key
Arguments provided:
{
"cmd": "ls -la /home/dev/workspace/scripts/archive/ && cat /home/dev/workspace/scripts/archive/* 2>/dev/null | head -100",
"description": "Read scripts archive directory"
}
Update the arguments and call the tool again.
Plugins
No third party plugins
OpenCode version
opencode v2.0.7
Steps to reproduce
- Run
opencode2. - Use a dumb model like Laguna S 2.1.
Screenshot and/or share link
Operating System
Arch Linux runs a 7.2.6-arch2-1 x86_64 GNU/Linux kernel.
Terminal
st — suckless terminal
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by running opencode2 with Laguna S 2.1 and the reported archive-listing command. Trace the shell tool's argument validation from the missing command key, then rerun the example to verify the arguments are accepted without the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell, typescript
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100