anomalyco / anomalyco/opencode

The shell tool expects `command`, but the model sends `cmd`, causing the missing-key error.

Open
#49,725 2 comments 0 reactions 0 assignees View on GitHub

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
  1. Run opencode2.
  2. Use a dumb model like Laguna S 2.1.
Screenshot and/or share link
Image Image
Operating System

Arch Linux runs a 7.2.6-arch2-1 x86_64 GNU/Linux kernel.

Terminal

st — suckless terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.