Skip to content

bug: "bash" tool uses the user's shell but most models don't work well with anything but bash #546

@sdroege

Description

@sdroege

Component

CLI

Summary

While the system prompt contains the user's shell, most models are not able to use e.g. the fish shell properly and try to run valid bash code (which then fails). It probably also doesn't help that the tool is called "bash".

It would probably be better if the "bash" tool would indeed use bash by default and the system prompt would not contain the user's shell.

To work around that I'm currently using an alias for vibe that sets the SHELL environment variable to /bin/bash.

Reproduction steps

Wait until the model comes up with a non-trivial shell command, which then fails because it's in bash syntax but the user's shell is not bash.

Versions / environment

2.7.0 on Linux

Logs & screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIRelated to CLIbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions