hosted-agents
できること
このスキルは、ノートPCがなくても動き、同時に多数動かせるように、リモートサーバーのサンドボックスで動くAIエージェントを設計する方法を扱います。バックグラウンドのコーディングエージェントや、共有のエージェントセッションを作るチーム向けです。
使う場面
- ✓デバイスがなくても、AIエージェントをバックグラウンドで動かし続けたいとき。
- ✓多数のエージェントセッションを、隔離されたサンドボックスで同時に動かす必要があるとき。
- ✓複数の人が、同じ状態を持つ1つのエージェントセッションを共有する必要があるとき。
スキルのリンク
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/hosted-agents/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“コーディングエージェントがサンドボックスで動き、ノートPCを閉じた後もセッションを保つクラウドの構成を設計してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、セッションが始まる前に環境を準備することを説明します。こうすることで、ユーザーが待つのは主にモデルの最初の応答の時間だけになります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
サンドボックスとは何ですか?
エージェントが他のシステムに影響を与えずにコードを動かす、隔離された環境です。
なぜ開始前に準備するのですか?
事前に行った設定によりセッションが速く感じられ、速度はモデルの応答時間だけに制限されるためです。
エージェントのツールも扱いますか?
ツールの設計は別のテーマで、このスキルはホストされたインフラに焦点を当てます。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 18k
- ランキング
- #10644
- ライセンス
- MIT
- 更新日
- 2026/10/11
コメント
- …
このリポジトリの他のスキル
context-engineering-collection
18kエージェントが、AIモデルのコンテキストウィンドウに何を入れるかを管理するよう支援します。メモリやツールから、マルチエージェントの構成、評価までを扱います。
advanced-evaluation
18kエージェントが、スコアリング、並べての比較、バイアスの確認を使って、別のAIによりAIの回答を判定する方法を教えます。
bdi-mental-states
18kエージェントが、BDIの方法を使って信念、目標、計画をモデル化するよう教えます。そのため、各決定を追跡して説明できます。
context-compression
18kエージェントが、長いAIのセッションを、決定、ファイル、リスク、次のステップを残した要約に短縮するよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。