In short.
Hosted Agents is a design skill for developers building remote AI coding agents, with example infrastructure code that remains unfinished pseudocode. Its strongest contribution is a concrete checklist connecting sandbox preparation, session state, authentication, collaboration and output delivery. The Python helper contains missing provider operations and coordination problems that require correction before deployment. Runtime correctness, startup speed, security and operating costs are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes all three supplied files in skills/hosted-agents at revision 9ff0c99108b36d3b886defd825d8ac1f47dba374: SKILL.md, references/infrastructure-patterns.md and scripts/sandbox_manager.py, together with the repository-root MIT LICENSE. The remaining repository, neighboring skills and linked external documentation are outside the available evidence. Original source addresses and the reusable Python file are preserved. No code or hosted session was executed; deployment behavior, provider compatibility, performance, security enforcement and operating costs remain unverified.
The overview
identity
The resource is the hosted-agents skill in muratcankoylan/Agent-Skills-for-Context-Engineering. Its main document is titled Hosted Agent Infrastructure and credits Agent Skills for Context Engineering Contributors. The original source location is [https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/hosted-agents].
The package consists of SKILL.md, references/infrastructure-patterns.md and scripts/sandbox_manager.py. Together they supply assistant instructions, architecture examples and a Python lifecycle skeleton. The supplied source revision is 9ff0c99108b36d3b886defd825d8ac1f47dba374.
assessment
The skill is useful for turning a broad goal such as running coding agents in the cloud into explicit infrastructure decisions. It connects preparation before a prompt arrives with session recovery, repository synchronization, identity, streaming updates and delivery of completed work.
Its practical value is primarily architectural. The Python module explicitly calls itself pseudocode, and essential operations such as command execution, sandbox creation, snapshot restoration and image finalization are placeholders. The reference adds implementation sketches, but supplies no complete deployment or demonstrated operating results.
users
The closest fit is a platform or backend developer building background coding agents, shared coding sessions or agent access through several interfaces. Experienced developers can use the lifecycle checklist to expose missing infrastructure decisions. Beginners can learn how the parts relate, although implementation assumes familiarity with Git, authentication tokens, asynchronous programming, APIs and cloud execution.
capabilities
The instructions cover prebuilt repository images, warm pools of already prepared environments, filesystem snapshots, predictive preparation while a user types, and coordination between repository synchronization and file edits. They also cover session-specific storage, live event streaming, shared sessions, user-attributed commits and pull requests, and tools for starting additional agent sessions.
The reference sketches Modal infrastructure, Cloudflare Durable Objects with SQLite, Slack repository classification, browser DOM extraction, authorship tracking and metrics. These are examples developers can adapt; the package does not provide all of those integrations as an assembled application.
Using it
requirements
The instructions can be read directly or supplied to an assistant that supports this form of skill. The files do not establish a compatible assistant list or an installation procedure for a particular host.
Building the described system requires a remote execution provider, repository access, an agent runtime and model access, image and snapshot storage, and an API for session coordination. The examples additionally use GitHub authentication, Python and TypeScript; optional interfaces introduce Slack or browser APIs. Dependency versions, minimum runtime versions and a verified compatibility matrix are unknown.
mechanism
The proposed architecture has three layers: isolated remote workspaces, an API that manages session state, and client interfaces. Repository cloning, dependency installation, builds and cache preparation happen during image creation. A warm pool keeps some environments ready so less preparation remains when a prompt arrives.
The intended session then synchronizes repository changes, configures the prompting user's Git identity, runs agent work, preserves a snapshot and returns artifacts through branches, pull requests, files or logs. Reads may begin before synchronization finishes, while writes wait. The helper suggests 30-minute image rebuilds and 25-minute warm-environment expiry; these are example defaults, with no measured suitability for a particular workload.
setup
Keep SKILL.md with its references and scripts directories so its relative references remain meaningful. The source does not supply a universal installer or a command that deploys the whole system.
Implementation starts with choosing a sandbox provider and completing the provider-specific methods. Developers must also connect repository synchronization to file access, implement image scheduling and cleanup, configure GitHub authentication, and provide session storage and artifact delivery. Repository build commands must be adapted: the examples assume npm-based projects.
example
An illustrative use is an internal assistant asked to change a frontend repository. Its API allocates a prepared remote workspace, synchronizes the branch, and lets the agent inspect files before edits are permitted. After editing and running the project's checks, the system preserves the workspace, pushes a branch and creates a pull request through the API using the user's token. Connected clients receive progress and the resulting artifacts.
That sequence is the document's intended workflow. The supplied helper implements only parts of its coordination; it does not contain a complete agent execution or pull-request delivery path. No successful session or execution result is supplied.
Assessment & evidence
limitations
The helper leaves core infrastructure operations unimplemented. Sandbox termination only changes an in-memory state value, resource limits are not enforced, and removing expired warm entries does not demonstrate provider cleanup. The image-building example suppresses test-command failures with || true, so it cannot establish that an image passed its checks.
Several coordination problems are visible in the source. start_session chooses an available warm sandbox before considering a supplied snapshot_id. on_user_typing claims a warm sandbox without carrying that reservation into the later session request. AgentSession.write_file flushes a queued write and then writes it again. Its synchronization flag also needs external wiring, and the example never marks it complete; synchronization waits have no timeout.
Authentication and isolation need further implementation. Examples interpolate repository and identity values into shell commands and place an access token in a clone URL. The multiplayer Author record contains a GitHub token and is passed to an undefined participant-broadcast hook, leaving credential exposure unresolved. Network restrictions and blocked-command lists are configuration sketches without demonstrated enforcement. These are source-level findings; runtime behavior was not assessed.
reasoning
The design rationale is coherent: preparing environments earlier moves work away from prompt submission, snapshots can preserve continuity, and separate infrastructure, state and client layers allow independent changes. The likely tradeoffs are higher idle resource use, image freshness management and more recovery logic. Their practical size is unknown.
The source makes broad claims about unlimited concurrency, near-instant startup and inexpensive multiplayer support without accompanying measurements. Reading before synchronization also permits stale observations; blocking writes alone does not ensure that earlier reasoning used current files. A robust implementation would need to associate observations with repository revisions and recheck affected conclusions.
alternatives
The skill defines useful boundaries with neighboring resources: harness-engineering addresses autonomous-loop governance and approval boundaries, multi-agent-patterns addresses coordination topology, and tool-design addresses agent tool contracts. Their contents are outside the supplied files, so their quality and completeness are not assessed.
Modal, Cloudflare Durable Objects and OpenCode appear as component references, and the Python helper mentions adaptation to providers such as Fly.io. The evidence supplies no comparative provider evaluation or build-versus-buy results. It does not establish a best provider or a cheaper alternative.
evidence
The original instruction file is available at [https://raw.githubusercontent.com/muratcankoylan/Agent-Skills-for-Context-Engineering/9ff0c99108b36d3b886defd825d8ac1f47dba374/skills/hosted-agents/SKILL.md]. Its implementation reference is at [https://raw.githubusercontent.com/muratcankoylan/Agent-Skills-for-Context-Engineering/9ff0c99108b36d3b886defd825d8ac1f47dba374/skills/hosted-agents/references/infrastructure-patterns.md].
The original Python helper is at [https://raw.githubusercontent.com/muratcankoylan/Agent-Skills-for-Context-Engineering/9ff0c99108b36d3b886defd825d8ac1f47dba374/skills/hosted-agents/scripts/sandbox_manager.py]. The supplied evidence contains design text and source examples, with no execution logs, deployment receipts, benchmark data or security validation. Nothing was executed.
Access & freshness
costs
The files provide no purchase price, cloud rates, model prices or measured operating costs. Total cost is unknown. Potential cost components include sandbox compute, repeated image builds, snapshots and storage, idle warm environments, session services and model calls. The Slack classification example adds a model request to choose a repository.
The skill recommends timeouts, session spending ceilings and pool sizing based on demand. Its four-hour timeout field is configuration data; the helper does not implement a spending meter or demonstrate enforcement of that limit. Predictive preparation and warm pools trade additional resource use for the possibility of shorter waits.
rights
The repository-root MIT License permits use, copying, modification, distribution, sublicensing and sale of the software and associated documentation. Copies or substantial portions must retain the copyright and permission notice. The notice names Context Engineering Agent Skills Contributors and supplies the material without warranty. Original license: [https://raw.githubusercontent.com/muratcankoylan/Agent-Skills-for-Context-Engineering/9ff0c99108b36d3b886defd825d8ac1f47dba374/LICENSE].
Those permissions cover the supplied resource. Terms for cloud providers, model services, dependencies and repositories processed by a resulting system are not established by this license.
freshness
SKILL.md identifies itself as version 1.2.0, created on January 12, 2026 and last updated on May 15, 2026. The supplied source snapshot is dated November 16, 2026 and pinned to revision 9ff0c99108b36d3b886defd825d8ac1f47dba374. These dates do not establish compatibility with current provider APIs. Dependency versions and current SDK compatibility are unknown.
actions
Use the hosted-agent checklist to specify session startup, recovery, synchronization, identity, artifact extraction and teardown before implementing the architecture. Decide explicitly whether a follow-up must restore an existing snapshot, and correct the helper's reservation, write-queue and synchronization behavior before adapting it.
Complete the provider operations, enforce resource and authorization limits, and keep credentials out of client events and exposed command data. Then verify current provider APIs and evaluate a representative repository for startup latency, recovery, concurrent sessions, cleanup and total cost. These are recommended next steps; no such results are established by the supplied resource.
