Skip to content

Ubuntu环境下,grep工具在rg未安装的时候无法使用 #111

@asto18089

Description

@asto18089

What version of Kimi Code is running?

0.3.0

Which open platform/subscription were you using?

Kimi Code

Which model were you using?

kimi-for-coding

What platform is your computer?

Ubuntu 26.04 x86_64

What issue are you seeing?

如标题所述,Kimi Code内置的grep工具在rg未安装的时候无法使用。模型调用时必现出错(然后模型自己会知道错误并使用bash+grep代替)。
apt安装ripgrep后故障消失。

注意:根据packages/agent-core/src/tools/builtin/file/grep.md所述,模型应当被指示用内置的grep工具,而不是系统自带的grep或者rg。grep工具任何主流Linux发行版都有,但rg是不一定的。可考虑适配此tool到系统自带grep,或者做其他处理(如安装时一并/提示用户安装rg)

What steps can reproduce the bug?

如上所述。

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions