hosted-agents

Design sandboxed remote infrastructure for background coding agents with warm pools and session snapshots.

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/virahitvin8/crafty-gis --skill hosted-agents-virahitvin8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hosted-agents
Source: https://github.com/virahitvin8/crafty-gis/tree/main/GIT_STAR/assignment-generator/antigravity-skills-main/antigravity-skills-main/skills/hosted-agents
Command: npx skills add https://github.com/virahitvin8/crafty-gis --skill hosted-agents-virahitvin8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Building background coding agents that run independently of user devices requires solving cold-start latency, environment inconsistency, per-session state isolation, and commit attribution, which this Skill addresses with proven infrastructure patterns. ## Core Features & Use Cases - Sandbox Lifecycle Design: Pre-built environment images on a 30-minute cadence, warm pools, predictive warm-up on keystroke, and filesystem snapshots for instant session restore. - API and Client Architecture: Server-first agent frameworks, per-session state isolation with SQLite or Durable Objects, real-time WebSocket streaming, and multiplayer session support across Slack, web, and Chrome extension clients. - Auth and Output Extraction: GitHub App tokens for cloning, user-attributed commits and PRs, and explicit artifact extraction before sandbox teardown. - Use Case: A platform team building a background coding agent uses this Skill to design the full stack: image build pipelines, warm pool management, session state sync, and PR creation under the prompting user's identity. ## Quick Start Ask the agent to design the sandbox infrastructure and warm pool strategy for a hosted background coding agent that opens user-attributed pull requests.

Frequently Asked Questions about hosted-agents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce cold start latency for sandboxed coding agents?

Pre-build environment images on a regular cadence (around 30 minutes) with dependencies installed and caches warmed, then maintain a pool of pre-warmed sandboxes. Start warming a sandbox predictively when the user begins typing, not when they submit the prompt.

How do background agents create pull requests under a user's identity?

Use GitHub App installation tokens only for cloning inside the sandbox, then set git config user.name and user.email to the prompting user. The sandbox pushes the branch and notifies the API, which creates the PR using the user's OAuth token.

Can agents read files before the git sync completes in a sandbox?

Yes, reads are safe before sync completes because recently changed files rarely overlap with the agent's research targets. Block only writes until synchronization finishes to prevent conflicts, queueing pending writes in the meantime.

What sandbox providers work for hosted agent infrastructure?

Modal Sandboxes provide near-instant startup and filesystem snapshots, while Cloudflare Durable Objects handle per-session state with WebSocket hibernation. The patterns in this Skill are provider-agnostic and adapt to Fly.io or similar platforms.

Why do background agent sessions lose completed work?

Work is lost when sandboxes are recycled or time out before results are extracted. Always snapshot the filesystem before termination and explicitly extract artifacts such as branches, PRs, and files during session teardown.

When should I not use hosted agent infrastructure?

Avoid it when the task concerns the autonomous research loop, novelty gates, or merge boundaries, which belong to harness engineering, or when choosing agent topology without infrastructure concerns. This Skill covers only the hosted runtime layer.