跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

提交记录
修改README.md+1 −1看文件
@@ -87,7 +87,7 @@ agent-vm run docker compose up -d # Start services
8787Each directory gets its own persistent VM. You can manage it with:
8888
8989```bash
90删除:agent-vm status # Show VM status for the current directory
90新增:agent-vm status # Show status of all VMs (current dir marked with >)
9191agent-vm stop # Stop the VM (can be restarted later)
9292agent-vm destroy # Stop and permanently delete the VM
9393agent-vm destroy-all # Stop and delete all agent-vm VMs
修改agent-vm.sh+18 −12看文件
@@ -15,7 +15,7 @@
1515# agent-vm stop - Stop the VM for cwd
1616# agent-vm destroy - Stop and delete the VM for cwd
1717# agent-vm list - List all agent-vm VMs
18删除:# agent-vm status - Show VM status for cwd
18新增:# agent-vm status - Show status of all VMs (current dir marked with >)
1919# agent-vm help - Show help
2020#
2121
@@ -250,7 +250,7 @@ Commands:
250250 destroy Stop and delete the VM for the current directory
251251 destroy-all Stop and delete all agent-vm VMs
252252 list List all agent-vm VMs
253删除: status Show VM status for the current directory
253新增: status Show status of all VMs (current dir marked with >)
254254 help Show this help
255255
256256VM options (for claude, opencode, codex, shell, run):
@@ -580,16 +580,22 @@ _agent_vm_list() {
580580_agent_vm_status() {
581581 local host_dir
582582 host_dir="$(pwd)"
583删除: local vm_name
584删除: vm_name="$(_agent_vm_name "$host_dir")"
583新增: local current_vm_name
584新增: current_vm_name="$(_agent_vm_name "$host_dir")"
585585
586删除: if ! _agent_vm_exists "$vm_name"; then
587删除: echo "No VM for this directory."
588删除: echo "VM name: $vm_name"
589删除: return 0
590删除: fi
586新增: local header
587新增: header=$(limactl list | head -1)
591588
592删除: echo "VM name: $vm_name"
593删除: limactl list | head -1
594删除: limactl list | grep "$vm_name"
589新增: echo "VMs (current directory: $host_dir):"
590新增: echo ""
591新增: echo "$header" | sed 's/^/ /'
592新增: limactl list | grep "^agent-vm-" | while read -r line; do
593新增: local vm_name
594新增: vm_name=$(echo "$line" | awk '{print $1}')
595新增: if [[ "$vm_name" == "$current_vm_name" ]]; then
596新增: echo "$line" | sed 's/^/> /'
597新增: else
598新增: echo "$line" | sed 's/^/ /'
599新增: fi
600新增: done || echo " (no VMs)"
595601}