Docs don't say you need ripgrep installed, but edit prompt says all opencode users have it installed #2921

Open
opened 2026-02-16 17:37:48 -05:00 by yindo · 6 comments
Owner

Originally created by @guysoft on GitHub (Nov 17, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Hey,
I would add a PR but I am not sure where to PR the docs.

I was trying to understand why opencode kept using rg which is not installed, found this:

  - If you _still_ need to run `grep`, STOP. ALWAYS USE ripgrep at `rg` (or /usr/bin/rg) first, which all opencode users have pre-installed.

In this file:
https://github.com/sst/opencode/blob/dev/packages/opencode/src/tool/bash.txt#L25

OpenCode version

dev branch https://github.com/sst/opencode/commit/bdfa213ccf365f23a3efd32de7dab2aeed59fdb3

Steps to reproduce

  1. use open code and make it search for something using the edit tool
    eg grep for x. or just ask them
Image
  1. See its trying to use rg says it should.

Screenshot and/or share link

No response

Operating System

Ubuntu 25.04

Terminal

Kitty

Originally created by @guysoft on GitHub (Nov 17, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Hey, I would add a PR but I am not sure where to PR the docs. I was trying to understand why opencode kept using rg which is not installed, found this: ``` - If you _still_ need to run `grep`, STOP. ALWAYS USE ripgrep at `rg` (or /usr/bin/rg) first, which all opencode users have pre-installed. ``` In this file: https://github.com/sst/opencode/blob/dev/packages/opencode/src/tool/bash.txt#L25 ### OpenCode version dev branch https://github.com/sst/opencode/commit/bdfa213ccf365f23a3efd32de7dab2aeed59fdb3 ### Steps to reproduce 1. use open code and make it search for something using the edit tool eg grep for x. or just ask them <img width="1305" height="721" alt="Image" src="https://github.com/user-attachments/assets/e7bb6c82-f5e0-4a59-92c5-ec4d5a063aa0" /> 2. See its trying to use rg says it should. ### Screenshot and/or share link _No response_ ### Operating System Ubuntu 25.04 ### Terminal Kitty
yindo added the bug label 2026-02-16 17:37:48 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 17, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #4247: RipgrepExtractionFailedError - Similar ripgrep availability issues where OpenCode fails due to ripgrep not being properly installed/accessible

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 17, 2025): This issue might be a duplicate of existing issues. Please check: - #4247: RipgrepExtractionFailedError - Similar ripgrep availability issues where OpenCode fails due to ripgrep not being properly installed/accessible Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 17, 2025):

We install ripgrep for you if you don't have it installed, but that prompt should prolly be tweaked

@rekram1-node commented on GitHub (Nov 17, 2025): We install ripgrep for you if you don't have it installed, but that prompt should prolly be tweaked
Author
Owner

@Hona commented on GitHub (Nov 17, 2025):

@rekram1-node This is a windows issue, rg doesn't get installed/work in its current state.

Adding it to my tracker

@Hona commented on GitHub (Nov 17, 2025): @rekram1-node This is a windows issue, rg doesn't get installed/work in its current state. Adding it to my tracker
Author
Owner

@rekram1-node commented on GitHub (Nov 17, 2025):

good to know

@rekram1-node commented on GitHub (Nov 17, 2025): good to know
Author
Owner

@guysoft commented on GitHub (Nov 18, 2025):

I installed on ubuntu using brew install. So its not only on windows

@guysoft commented on GitHub (Nov 18, 2025): I installed on ubuntu using brew install. So its not only on windows
Author
Owner

@vanyauhalin commented on GitHub (Dec 8, 2025):

We install ripgrep for you if you don't have it installed, but that prompt should prolly be tweaked

Please do not do it. I do not want OpenCode to install any dependencies by itself. You can declare all dependencies in package managers like Homebrew. I do not want OpenCode to pollute the bin directory with something that OpenCode thinks would be better for the end user or something that needs for OpenCode to operate. I have a package manager that controls all dependencies. I can clearly see all dependencies through this package manager. I will not see dependencies installed by OpenCode. You are not a package manager.

@vanyauhalin commented on GitHub (Dec 8, 2025): > We install ripgrep for you if you don't have it installed, but that prompt should prolly be tweaked Please do not do it. I do not want OpenCode to install any dependencies by itself. You can declare all dependencies in package managers like Homebrew. I do not want OpenCode to pollute the bin directory with something that OpenCode thinks would be better for the end user or something that needs for OpenCode to operate. I have a package manager that controls all dependencies. I can clearly see all dependencies through this package manager. I will not see dependencies installed by OpenCode. You are not a package manager.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2921