乐于分享
好东西不私藏

opencode插件: uv-plugin

opencode插件: uv-plugin
在 opencode 中运行代码的时候,默认使用系统的 python/python3,但很多时候都是直接使用 uv 来管理项目依赖。这个插件对 bash/shell 执行进行 hook,执行相关命令时会被自动替换成对应的 uv 命令
地址: https://github.com/recall704/uv-plugin/
使用方式,项目要求先执行 uv init
cp uv-plugin.ts ~/.config/opencode/plugins/
效果: