hosted-agents
This skill should be used when designing hosted or background agent infrastructure: sandboxed execution, remote coding environments, warm pools, session…
Skill by muratcankoylan
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/muratcankoylan-hosted-agents
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/hosted-agents
What's inside
- Skill name
hosted-agents- Description
- 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.
- License
- MIT
- Instructions
- 298 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- infrastructure-patterns.md · references/
- sandbox_manager.py · scripts/
SKILL.md (first lines)
# 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.name` and `user.email` when 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 client **Code as Source of Truth** Select frameworks where the agent can read its own source code to understand behavior. Prioritize this because having code as source of truth prevents the agent from hallucinating about its own capabilities -- an underrated failure mode in AI development. **Plugin System Requirements** Require a plugin system that supports runtime interception because this enables safety controls and observability without modifying core agent logic: - Listen to tool execution events (e.g., `tool.execute.before`) - Block or modify tool calls conditionally - Inject context or state at runtime ### Speed Optimizations **Predictive Warm-Up** Start warming the sandbox as soon as a user begins typing their prompt, not when they submit it, because the typing interval (5-30 seconds) is enough to complete most setup: - Clone latest changes in parallel with user typing - Run initial setup before user hits enter - For fast spin-up, sandbox can be ready before user finishes typing **Parallel File Reading** Allow the agent to start reading files immediately even if sync from latest base branch is not complete, because in large repositories incoming prompts rarely touch recently-changed files: - Agent can research immediately without waiting for git sync - Block file edits (not reads) until synchronization completes - This separation is safe because read-time data staleness of 30 minutes rarely matters for research **Maximize Build-Time Work** Move everything possible to the image build step because build-time duration is invisible to users: - Full dependency installation - Database schema setup - Initial app and test suite runs (populates caches) ### Self-Spawning Agents **Agent-Spawned Sessions** Build tools that allow agents to spawn new sessions because frontier models are capable of decomposing work and coordinating sub-tasks: - Research tasks across different repositories - Parallel subtask execution for large changes - Multiple smaller PRs from one major task Expose three primitives: start a new session with specified parameters, read status of any session (check-in capability), and continue main work while sub-sessions run in parallel. **Prompt Engineering for Self-Spawning** Engineer prompts that guide when agents should spawn sub-sessions rather than doing work inline: - Research tasks that require cross-repository exploration - Breaking monolithic changes into smaller PRs - Parallel exploration of different approaches ### API Layer **Per-Session State Isolation** Isolate state per session (SQLite per session works well) because cross-session interference is a subtle and hard-to-debug failure mode: - Dedicated database per session
From muratcankoylan/Agent-Skills-for-Context-Engineering, MIT.
More from muratcankoylan/Agent-Skills-for-Context-Engineering
- 0.865score
context-optimization
muratcankoylan
This skill should be used for improving context efficiency: context budgeting, observation masking, prefix or KV-cache strategy, partitioning, token-cost…
SkillAFreshness: A★ 18.2KClaude Code +9 - 0.858score
context-engineering-collection
muratcankoylan
A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and production agent systems.
SkillAFreshness: A★ 18.2KClaude Code +9 - 0.821score
CLAUDE.md · muratcankoylan/Agent-Skills-for-Context-Engineering
muratcankoylan
CLAUDE.md from muratcankoylan/Agent-Skills-for-Context-Engineering: 131 lines covering Project Overview, Repository Structure, Build & Test Commands, Skill…
TemplateAFreshness: A★ 18.2KClaude Code - 0.818score
AGENTS.md · muratcankoylan/Agent-Skills-for-Context-Engineering
muratcankoylan
AGENTS.md from muratcankoylan/Agent-Skills-for-Context-Engineering: 47 lines covering Learned User Preferences, Learned Workspace Facts, Repository Operating…
TemplateAFreshness: A★ 18.2KCodex +5 - 0.765score
context-fundamentals
muratcankoylan
This skill should be used to explain or reason about the foundational concepts of context engineering: what context is, the anatomy of a context window, how…
SkillCFreshness: C★ 18.2KClaude Code +9 - 0.761score
book-sft-pipeline
muratcankoylan
This skill should be used for book-to-SFT pipelines: ePub extraction, literary segmentation, author-voice dataset construction, style-transfer training, LoRA…
SkillCFreshness: C★ 18.2KClaude Code +9 - 0.761score
advanced-evaluation
muratcankoylan
This skill should be used for advanced LLM evaluation: LLM-as-judge systems, direct scoring, pairwise comparison, rubric calibration, evaluator bias…
SkillCFreshness: C★ 18.2KClaude Code +9 - 0.761score
context-degradation
muratcankoylan
This skill should be used for diagnosing and mitigating context degradation: lost-in-middle failures, context poisoning, context clash, context confusion…
SkillCFreshness: C★ 18.2KClaude Code +9 - 0.761score
evaluation
muratcankoylan
This skill should be used when building agent evaluation systems: deterministic checks, regression suites, multi-dimensional rubrics, quality gates…
SkillCFreshness: C★ 18.2KClaude Code +9 - 0.751score
reasoning-trace-optimizer
muratcankoylan
Debug and optimize AI agents by analyzing reasoning traces, context degradation, tool confusion, instruction drift, repeated task failures, and performance…
SkillCFreshness: C★ 18.2KClaude Code +9 - 0.730score
self-improvement-loops
muratcankoylan
This skill should be used when the harness, scaffold, workflow, or optimizer itself is the optimization target: recursive self-improvement (RSI) loops…
SkillAFreshness: A★ 18.2KClaude Code +9 - 0.730score
long-horizon-prompting
muratcankoylan
This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent or a parallel multi-agent orchestration…
SkillAFreshness: A★ 18.2KClaude Code +9
Compare and alternatives
Featured in
Signals
- Stars
- 18,201
- Forks
- 1,505
- Open issues
- 16
- Last commit (this folder)
- Jun 29, 2026 (4 months ago)
- Last release
- May 22, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from muratcankoylan
- 0.865score
context-optimization
muratcankoylan
This skill should be used for improving context efficiency: context budgeting, observation masking, prefix or KV-cache strategy, partitioning, token-cost…
SkillAFreshness: A★ 18.2KClaude Code +9 - 0.858score
context-engineering-collection
muratcankoylan
A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and production agent systems.
SkillAFreshness: A★ 18.2KClaude Code +9 - 0.821score
CLAUDE.md · muratcankoylan/Agent-Skills-for-Context-Engineering
muratcankoylan
CLAUDE.md from muratcankoylan/Agent-Skills-for-Context-Engineering: 131 lines covering Project Overview, Repository Structure, Build & Test Commands, Skill…
TemplateAFreshness: A★ 18.2KClaude Code - 0.818score
AGENTS.md · muratcankoylan/Agent-Skills-for-Context-Engineering
muratcankoylan
AGENTS.md from muratcankoylan/Agent-Skills-for-Context-Engineering: 47 lines covering Learned User Preferences, Learned Workspace Facts, Repository Operating…
TemplateAFreshness: A★ 18.2KCodex +5 - 0.765score
context-fundamentals
muratcankoylan
This skill should be used to explain or reason about the foundational concepts of context engineering: what context is, the anatomy of a context window, how…
SkillCFreshness: C★ 18.2KClaude Code +9 - 0.761score
advanced-evaluation
muratcankoylan
This skill should be used for advanced LLM evaluation: LLM-as-judge systems, direct scoring, pairwise comparison, rubric calibration, evaluator bias…
SkillCFreshness: C★ 18.2KClaude Code +9
Cite this page
hosted-agents skill. Agent Mart. https://agentmart.dev/skills/muratcankoylan-hosted-agents (last updated 2026-10-24)