Skip to content

[bug] oc_grep tool is causing builtin Grep tool to use grep over ripgrep #57

@exploitJ

Description

@exploitJ

Description

I got this error while running opencode.

Now let me find the exact --grep occurrences in the plan file to fix them:
✱ Grep "--grep" in .sisyphus/plans/connector-manifest.md
Error: Command failed: grep -r -n --grep /path/to/project/plans/connector-manifest.md
grep: unrecognized option `--grep'
usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-A num] [-B num] [-C[num]]
	[-e pattern] [-f file] [--binary-files=value] [--color=when]
	[--context[=num]] [--directories=action] [--label] [--line-buffered]
	[--null] [pattern] [file ...]

In addition, I've seen many instances of failed Grep tool caused by mismatched parenthesies across many sessions.

OpenCode version

1.2.27

Operating System

macOS 26

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions