coding-agent
できること
コーディングエージェントがプロジェクトを編集し、ツールをインストールできる別の仮想マシンを設定します。コンピュータは保護されたままです。すべての権限を与えてエージェントを動かしたい開発者向けです。
使う場面
- ✓コーディングエージェントに、各ステップごとの許可を求めずに動かしてほしいとき。
- ✓エージェントのインストールや試行を、自分のコンピュータから切り離しておきたいとき。
- ✓プロジェクトフォルダには届く、使い捨ての環境がほしいとき。
スキルのリンク
https://github.com/smol-machines/smolvm/blob/main/docs/coding-agent/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Claude Codeが私のプロジェクトフォルダ上ですべての権限で動けるよう、安全な仮想マシンを設定してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
Smolfileがマシンを設定し、あなたのプロジェクトをマウントします。マシンを起動し、その中でエージェントを動かします。ファイルの編集は、お使いのコンピュータのプロジェクトフォルダに反映されます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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
initruns once. Changing it later needs a new machine, or run the new commands withexec.- To keep the agent off your LAN and the host's ports, add
block_private = trueunder[network](from v1.28.1). SeeREADME.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.
よくある質問
エージェントは私のコンピュータ上のファイルを変更しますか?
マウントされたプロジェクトフォルダへの編集は、お使いのコンピュータに表示されます。エージェントは、システムの上で直接ではなく、マシンの中で動きます。
どのエージェントに対応していますか?
スキルはClaude Code、OpenCode、Codexを挙げています。インストールコマンドを持つエージェントならどれでも使えるとされています。
SSHエージェントが必要ですか?
Smolfileはお使いのSSHエージェントを転送するため、ホストで SSHエージェントが動いている必要があります。ファイルからそのブロックを削除することもできます。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 6.9k
- ランキング
- #13715
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
branch-and-checkpoint
6.9kエージェントが、実行中のsmolvm仮想マシンをチェックポイントとして保存し、後で復元し、一時停止と再開をし、コピーとして分岐させられるよう支援します。
credentials
6.9kエージェントが、キーがその仮想マシンの中に入ることなく、あなたのキーでAPIを呼び出せるようにします。信頼できないコードがキーを読むことはできません。
dev-env
6.9kエージェントが、ツールをインストール済みのsmolvm開発マシンを保つ方法を教えます。マシンは素早く再起動し、セッションをまたいでパッケージを保持します。
docker-in-machine
6.9kエージェントが、smolvm仮想マシンの中でDockerデーモンを動かせるよう支援します。テスト、ビルド、コンテナを起動するエージェントがそこで動けるようになります。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。