hosted-agents
Ce qu’il fait
Cette skill explique comment concevoir des agents IA qui tournent sur des serveurs distants dans des bacs à sable, pour fonctionner sans ordinateur portable et en exécuter plusieurs à la fois. Elle s'adresse aux équipes qui construisent des agents de codage en arrière-plan ou des sessions d'agents partagées.
Quand l’utiliser
- ✓Quand vous voulez qu'un agent IA continue à travailler en arrière-plan sans votre appareil.
- ✓Lorsque plusieurs sessions d'agents doivent tourner en même temps, dans des bacs à sable isolés.
- ✓Lorsque plusieurs personnes doivent partager une même session d'agent avec le même état.
Lien du skill
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/hosted-agents/SKILL.mdCopiez-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
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Aide-moi à concevoir une configuration cloud où des agents de codage tournent dans des bacs à sable et conservent leur session après que je ferme mon ordinateur portable.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
La skill explique qu'il faut préparer l'environnement avant le démarrage de la session, pour que l'utilisateur n'attende surtout que la première réponse du modèle d'IA.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Hosted Agent Infrastructure
Hosted agents run in remote sandboxed environments rather than on local machines. When designed well, they provide unlimited concurrency, consistent execution environments, and multiplayer collaboration. The critical insight is that session speed should be limited only by model provider time-to-first-token, with all infrastructure setup completed before the user starts their session.
When to Activate
Activate this skill when:
- Building background coding agents that run independently of user devices
- Designing sandboxed execution environments for agent workloads
- Implementing multiplayer agent sessions with shared state
- Creating multi-client agent interfaces (Slack, Web, Chrome extensions)
- Scaling agent infrastructure beyond local machine constraints
- Building systems where agents spawn sub-agents for parallel work
Do not activate this skill for adjacent work owned by other skills:
- Designing the autonomous research loop, novelty gates, rollback policy, or merge boundaries:
harness-engineering. - Choosing supervisor, swarm, or handoff topology without hosted infrastructure concerns:
multi-agent-patterns. - Designing the tools used by a hosted agent, such as spawn/status tools or PR tools:
tool-design. - Managing file-backed state inside a session rather than the hosted runtime itself:
filesystem-context.
Core Concepts
Move agent execution to remote sandboxed environments to eliminate the fundamental limits of local execution: resource contention, environment inconsistency, and single-user constraints. Remote sandboxes unlock unlimited concurrency, reproducible environments, and collaborative workflows because each session gets its own isolated compute with a known-good environment image.
Design the architecture in three layers because each layer scales independently. Build sandbox infrastructure for isolated execution, an API layer for state management and client coordination, and client interfaces for user interaction across platforms. Keep these layers cleanly separated so sandbox changes do not ripple into clients.
Detailed Topics
Sandbox Infrastructure
The Core Challenge Eliminate sandbox spin-up latency because users perceive anything over a few seconds as broken. Development environments require cloning repositories, installing dependencies, and running build steps -- do all of this before the user ever submits a prompt.
Image Registry Pattern Pre-build environment images on a regular cadence (every 30 minutes works well) because this makes synchronization with the latest code a fast delta rather than a full clone. Include in each image:
- Cloned repository at a known commit
- All runtime dependencies installed
- Initial setup and build commands completed
- Cached files from running app and test suite once
When starting a session, spin up a sandbox from the most recent image. The repository is at most 30 minutes out of date, making the remaining git sync fast.
Snapshot and Restore Take filesystem snapshots at key points to enable instant restoration for follow-up prompts without re-running setup:
- After initial image build (base snapshot)
- When agent finishes making changes (session snapshot)
- Before sandbox exit for potential follow-up
Git Configuration for Background Agents Configure git identity explicitly in every sandbox because background agents are not tied to a specific user during image builds:
- Generate GitHub app installation tokens for repository access during clone
- Set git config
user.nameanduser.emailwhen committing and pushing changes - Use the prompting user's identity for commits, not the app identity
Warm Pool Strategy Maintain a pool of pre-warmed sandboxes for high-volume repositories because cold starts are the primary source of user frustration:
- Keep sandboxes ready before users start sessions
- Expire and recreate pool entries as new image builds complete
- Start warming a sandbox as soon as a user begins typing (predictive warm-up)
Agent Framework Selection
Server-First Architecture Structure the agent framework as a server first, with TUI and desktop apps as thin clients, because this prevents duplicating agent logic across surfaces:
- Multiple custom clients share one agent backend
- Consistent behavior across all interaction surfaces
- Plugin systems extend functionality without client changes
- Event-driven architectures deliver real-time updates to any connected cli
Questions fréquentes
Qu'est-ce qu'un bac à sable ?
C'est un environnement isolé où l'agent exécute du code sans affecter les autres systèmes.
Pourquoi préparer avant le démarrage de la session ?
Une configuration faite à l'avance rend la session rapide, qui n'est alors limitée que par le temps de réponse du modèle.
Couvre-t-elle les outils de l'agent ?
La conception des outils est un sujet distinct, alors que cette skill porte sur l'infrastructure hébergée.
Détails
Description originale de l’auteur
This skill should be used when designing hosted or background agent infrastructure: sandboxed execution, remote coding environments, warm pools, session persistence, multiplayer collaboration, self-spawning agents, or Modal-style sandboxes.
Popularité
- Étoiles GitHub
- 18k
- Position au classement
- #10644
- Licence
- MIT
- Mis à jour
- 11/10/2026
Commentaires
- …
Autres skills de ce dépôt
context-engineering-collection
18kAide votre agent à gérer le contenu de la fenêtre de contexte d'un modèle d'IA, de la mémoire et des outils aux configurations multi-agents et à l'évaluation.
advanced-evaluation
18kApprend à votre agent à juger les réponses d'IA à l'aide d'une autre IA, avec notation, comparaison côte à côte et contrôles de biais.
bdi-mental-states
18kApprend à votre agent à modéliser ses croyances, ses buts et ses plans selon l'approche BDI, pour que ses décisions puissent être retracées et expliquées.
context-compression
18kAide votre agent à raccourcir de longues sessions d'IA en résumés qui conservent les décisions, les fichiers, les risques et les prochaines étapes.
Skills similaires
openclaw-update
394kAide votre agent à mettre à jour une passerelle OpenClaw existante, en choisissant la méthode adaptée à son installation et en gardant votre session active.
diagnose-gateway
394kAide votre agent à trouver pourquoi votre passerelle OpenClaw échoue, en vérifiant les paramètres, les canaux et les ports sans rien modifier.
crabbox-apps
394kAide votre agent à ouvrir et exécuter une application sur une machine cloud temporaire, puis à afficher sa vue dans le panneau latéral de votre chat.