Skip to content

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

Closed

Description

@guysoft

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 bdfa213

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

Activity

  1. changed the title [-]Docs dont say you need ripgrep installed, but edit prompt does[/-] [+]Docs don't say you need ripgrep installed, but edit prompt says all opencode users have it installed[/+] on Nov 17, 2025
  2. github-actions commented on Nov 17, 2025

    @github-actions
    Contributor

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

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

  3. rekram1-node commented on Nov 17, 2025

    @rekram1-node
    Contributor

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

  4. self-assigned this
    on Nov 17, 2025
  5. Hona commented on Nov 17, 2025

    @Hona
    Member

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

    Adding it to my tracker

  6. rekram1-node commented on Nov 17, 2025

    @rekram1-node
    Contributor

    good to know

  7. guysoft commented on Nov 18, 2025

    @guysoft
    Author

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

  8. vanyauhalin commented on Dec 8, 2025

    @vanyauhalin
    Contributor

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions