Vib3Craft

Vib3Craft

Vib3Craft是一个Minecraft Fabric模组,让你能在游戏内聊天中与Claude AI对话并直接运行Claude Code,支持设置工作目录、文件权限以及在你的PC上执行多步骤编码任务,全程无需离开Minecraft。

工具

VibeCraft

无需离开你最喜欢的游戏即可氛围编程。 编写代码、审查 PR、发布功能——全都在你最喜欢的游戏场景中完成。

当你能在《我的世界》的山顶上写代码时,为什么要切到终端?
VibeCraft 将 Claude Code 直接放进你的游戏里。把它指向你电脑上的任意项目,授予它权限,然后让它工作——而你则可以继续挖矿、建造,或者只是放松一下。


它能做什么?

  • 无需离开游戏即可与 Claude AI 聊天
  • 将 Claude 指向你电脑上的任意文件夹,让它读取、写入和编辑文件
  • 运行多步骤编码任务——Claude 会自动串联工具调用
  • 完整的 Claude Code CLI 工具集:文件读写、bash、搜索等
  • 可选的 Anthropic API 直连方式,支持游戏内终端命令审批

命令

命令 描述
/claude <message> 与 Claude 聊天(使用本地 Claude Code CLI)
/claude api <message> 通过 Anthropic API 聊天(需要 API 密钥)
/claude setdir <path> 将 Claude 指向一个项目文件夹
/claude dir 显示当前工作目录
/claude allow <tools> 授予 Claude 特定工具权限
/claude deny 撤销所有权限
/claude clear 重置对话、目录和权限
/claude yes / /claude no 批准或拒绝提议的终端命令
/claude setkey <key> 保存你的 Anthropic API 密钥

示例

只是聊天和放松

/claude What's the best way to find ancient debris?
/claude Write me a haiku about creepers

从你的基地开始一个新项目

/claude setdir C:\Users\hungm\Documents\MyApp
/claude allow Write,Edit,Read
/claude Create a REST API with Express.js and basic CRUD routes

在建造的同时审查并修复代码

/claude setdir C:\Users\hungm\Documents\HelloWorld
/claude allow Read,Edit
/claude Review all my Java files and fix any bugs you find
/claude Add unit tests for the login class

安全地探索代码库

/claude setdir C:\Users\hungm\Documents\BigProject
/claude allow Read,Glob,Grep
/claude How does authentication work in this project?
/claude Where are the API routes defined?

放手一搏——让 Claude 搞定一切

/claude setdir C:\Users\hungm\Documents\MyApp
/claude allow all
/claude Scaffold a full Next.js app with Tailwind and a login page

使用 API 方式控制终端

/claude setkey sk-ant-api03-...
/claude api Check my disk space and list the 5 largest folders on C:\

Claude 会逐条提议命令,并等待你的批准:

[Claude] wants to run this command:
  > dir C:\ /s /o-s
Type /claude yes to allow or /claude no to deny

权限

精确控制 Claude 被允许执行的操作:

权限 效果
Read,Glob,Grep 只读——适合安全探索
Read,Write,Edit 创建和编辑文件,无 shell
Read,Write,Edit,Bash 完整编码能力,包括运行构建
all 无提示——Claude 可自由行动
/claude allow Read,Edit       — files only, no shell
/claude allow all             — full trust mode
/claude deny                  — lock it back down

需求

  • Minecraft 1.21 – 1.21.11(Fabric)
  • Fabric Loader 0.18.6+
  • Fabric API
  • 已安装 Claude Code CLI 并位于你的 PATH 中

从你的城堡里写代码。从你的生存世界中发布。随时随地氛围编程。