Aller au contenu
Skillpedia
Agents6.9k · #13715

coding-agent

Ce qu’il fait

Met en place une machine virtuelle séparée dans laquelle un agent de code peut modifier votre projet et installer des outils, tandis que votre ordinateur reste protégé. Il s'adresse aux développeurs qui veulent qu'un agent fonctionne avec tous les droits.

Quand l’utiliser

  • ✓Quand vous voulez qu'un agent de code fonctionne sans demander d'autorisation à chaque étape.
  • ✓Quand vous voulez que les installations et expérimentations d'un agent restent à l'écart de votre propre ordinateur.
  • ✓Quand vous voulez un environnement jetable qui peut tout de même accéder à votre dossier de projet.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/smol-machines/smolvm/blob/main/docs/coding-agent/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Configure une machine virtuelle sécurisée pour que Claude Code puisse fonctionner avec tous les droits sur mon dossier de projet.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Un fichier Smolfile configure la machine et monte votre projet. Vous démarrez la machine et lancez l'agent à l'intérieur ; les modifications de fichiers apparaissent dans votre dossier de projet sur votre ordinateur.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

  • 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.
Questions fréquentes

L'agent modifiera-t-il les fichiers de mon ordinateur ?

Les modifications du dossier de projet monté apparaissent sur votre ordinateur. L'agent s'exécute dans la machine et non directement sur votre système.

Quels agents sont pris en charge ?

Le skill cite Claude Code, OpenCode et Codex, et indique que tout agent disposant d'une commande d'installation peut fonctionner.

A-t-il besoin de mon agent SSH ?

Le Smolfile transmet votre agent SSH, il faut donc qu'un agent tourne sur l'hôte, sinon vous pouvez supprimer ce bloc du fichier.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
6.9k
Position au classement
#13715
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires