Title: Engineering practices for environment dependencies and pa...
URL Source: https://www.bestblogs.dev/status/2037025797744033932
Published Time: 2026-03-26 04:36:10
Markdown Content: 
因为现在nodejs比较普及,而 bun 可以通过 npx -y bun 运行的,这样只要有nodejs就可以用bun,所以我在 skills 里面都会让 agent 自己检查并灵活选择。 还有一点,我在 skills 里面用的路径都是相对路径,但告诉了 agent 基础目录(baseDir)在哪,这样基本不会找路径出错。 x.com/RookieRicardoR…
#### 耳朵
@RookieRicardoR · 2h ago @dotey 是个好办法 唯一的问题就是很多人电脑上有 npm node 但是没有 bun
0
0
0
4,068
1 Replies
0 Retweets
4 Likes
3,881 Views 
One Sentence Summary
Baoyu shares engineering practices for AI Agent development, utilizing npx -y bun to resolve environment dependencies and relative paths with baseDir to optimize file management.
Summary
This tweet provides two practical engineering solutions for common pain points in AI Agent development: first, using npx -y bun to dynamically run Bun in environments that only have Node.js, effectively lowering the barrier for environment configuration; second, recommending the use of relative paths combined with baseDir within the Agent's skills to avoid file path errors. These insights are directly valuable for improving the robustness and usability of Agents.
AI Score
82
Influence Score 2
Published At Today
Language
Chinese
Tags
AI Agent
Bun
Node.js
Engineering Practices
Development Tips