Chuyển đến nội dung
Skillpedia
Agent6.9k · #13715

coding-agent

Skill này làm gì

Thiết lập một máy ảo riêng nơi agent lập trình có thể chỉnh sửa dự án và cài công cụ, trong khi máy tính của bạn vẫn được bảo vệ. Nó dành cho nhà phát triển muốn agent chạy với toàn quyền.

Khi nào nên dùng

  • ✓Khi bạn muốn agent lập trình chạy mà không hỏi xin phép ở mỗi bước.
  • ✓Khi bạn muốn việc cài đặt và thử nghiệm của agent được giữ tách khỏi máy tính của mình.
  • ✓Khi bạn muốn một môi trường dùng một lần vẫn truy cập được thư mục dự án.

Liên kết skill

https://github.com/smol-machines/smolvm/blob/main/docs/coding-agent/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/smol-machines/smolvm/blob/main/docs/coding-agent/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thiết lập một máy ảo an toàn để Claude Code chạy với toàn quyền trên thư mục dự án của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Một Smolfile thiết lập máy và gắn dự án của bạn vào. Bạn khởi động máy và chạy agent bên trong, còn các thay đổi tệp xuất hiện trong thư mục dự án trên máy tính của bạn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

A coding agent in a machine

Verified on smolvm v1.27.4 on Linux x86_64, 2026-10-14, and on v1.29.0 on macOS arm64, 2026-10-15. Done means the agent runs inside the machine from the project directory, its edits appear on the host, and git works on the mounted repo.

Procedure

1. Copy the Smolfile into the project. Edit the npm install line in init to the agents you use; any install command works.

cp docs/coding-agent/assets/agent.smolfile ./Smolfile

2. Create and start the machine. Pass API keys as references so they are read from your host at launch, never written to the machine record:

smolvm machine create --name agent -s Smolfile --secret-env ANTHROPIC_API_KEY=ANTHROPIC_API_KEY
smolvm machine start --name agent      # first start runs init: under a minute once the image is pulled

The Smolfile forwards your SSH agent, so start needs SSH_AUTH_SOCK set on the host: without it, it stops with ssh-agent: SSH_AUTH_SOCK is not set. Start one with eval $(ssh-agent), or delete the [auth] block.

3. Run the agent.

smolvm machine exec --name agent -it -- claude --dangerously-skip-permissions
smolvm machine exec --name agent -it -- opencode

machine shell --name agent gives a shell in /workspace for anything else.

4. Check git. smolvm machine exec --name agent -- git status must print the repo's status, not dubious ownership; if it does not, the safe.directory line in init did not run.

5. Stop or delete. machine stop --name agent keeps the installed agents for next time, and the next start takes about a second. machine delete --name agent -f removes the machine; the project stays on the host.

Notes

  • init runs once. Changing it later needs a new machine, or run the new commands with exec.
  • To keep the agent off your LAN and the host's ports, add block_private = true under [network] (from v1.28.1). See README.md.
  • An agent that needs Docker: add "/var/lib/docker", "/var/lib/containerd" to [dev] volumes (from v1.28.1) and see docker-in-machine.
Câu hỏi thường gặp

Agent có thay đổi tệp trên máy tính của tôi không?

Các chỉnh sửa trong thư mục dự án được gắn sẽ hiện trên máy tính của bạn. Agent chạy bên trong máy ảo, không trực tiếp trên hệ thống của bạn.

Nó hỗ trợ những agent nào?

Skill nêu Claude Code, OpenCode và Codex, và nói bất kỳ agent nào có lệnh cài đặt đều có thể dùng.

Nó có cần SSH agent của tôi không?

Smolfile chuyển tiếp SSH agent của bạn, nên máy chủ cần có một SSH agent đang chạy, hoặc bạn có thể xóa khối đó khỏi tệp.

Chi tiết

Mô tả gốc của tác giả

Runs a coding agent (Claude Code, OpenCode, Codex or any other) inside a persistent smolvm machine with the project mounted, so it can run with full permissions without touching the host. Use when someone wants to sandbox their coding agent, run it in skip-permissions or YOLO mode safely, or give it a disposable environment it can install anything into. Do not use it to run untrusted code with no network; use throwaway-machine for that.

repo: smol-machines/smolvm

Độ phổ biến

Sao GitHub
6.9k
Vị trí xếp hạng
#13715
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự