hosted-agents

hosted-agents is a skill for Claude Code, Codex from docxology/template. It costs 46 tokens per session (3,473 once invoked), scanned A, a copy of hosted-agents, Apache-2.0.

A design guide for coding agents that run in remote, sandboxed environments instead of on a developer's computer. It covers persistent sessions, shared workspaces, background agents, multiple users, and scaling agent workloads.

In plain words
What is it for?
Use it to design hosted coding agents, remote development environments, warm worker pools, multiplayer sessions, session persistence, and agents that can start other agents.
Why use it?
It helps plan consistent remote execution while addressing credentials, repository inputs, approvals, and destructive operations. It also considers keeping environments ready so sessions start quickly.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/docxology/template/hosted-agents
Any agent
npx skills add docxology/template --skill hosted-agents
Clone the repo
git clone --depth 1 https://github.com/docxology/template

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hosted-agents

README.md
[![agentmods](https://agentmods.dev/badge/skills/docxology/template/hosted-agents.svg)](https://agentmods.dev/skills/docxology/template/hosted-agents)
Your own site
<a href="https://agentmods.dev/skills/docxology/template/hosted-agents"><img src="https://agentmods.dev/badge/skills/docxology/template/hosted-agents.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,473 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00046 $0.03473
Opus 5 $0.00023 $0.01736
Sonnet 5 $0.00009 $0.00695
Haiku 4.5 $0.00005 $0.00347

Measured 4d ago against content hash e7c77582d519, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hosted-agents scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sandbox_manager.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to hosted-agents — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/hosted-agents/SKILL.md · 308 lines

How it starts

The opening of the file, as written. The whole thing — 308 lines — stays where its author put it; the contents beside it link to each section on 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.

Local safety overlay: bundled Python and shell fragments are architectural examples, not trusted entry points. Do not execute them automatically. Use argv-based subprocess APIs, keep credentials out of clone URLs and process listings, validate repository/identity inputs, and preserve human approval for pushes, deployments, credentials, and destructive lifecycle operations.

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.

Read the full file on GitHub · 308 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 308 lines · 46 tokens per session scan A e7c77582d519

Subscribe to this mod's changes

hosted-agents is a skill published in the GitHub repository docxology/template (19 stars, last pushed today), licensed Apache-2.0. It adds 46 tokens to every session and 3,473 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to hosted-agents, differing in 6 lines, and is treated as a copy.

Related

Other skills, from other repositories

planning-with-files

Persistent file-based planning for multi-step AI-agent work. Keeps taskplan.md, findings.md, and progress.md on disk; lifecycle hooks inject selected project planning context. Automatic recovery reads project planning files only. Explicit session-catchup.py --metadata reads same-project local agent session records and…

mxyhi/ok-skills · 117 tokens

aerospace-engineering-technician

Use when a task needs the judgment of an Aerospace Engineering and Operations Technologist/Technician — verifying an installed fastener's preload against a drawing's torque callout via the T=K·D·F relationship, reducing strain-gauge data from a structural proof-load test into stress and checking it against an…

wonsukchoi/domain-experts · 169 tokens

actor

Use when a task needs the judgment of a professional Actor — breaking down sides for a self-tape audition, preparing a character choice for rehearsal, deciding between two conflicting bookings, reading a contract offer for scale vs. scale-plus terms, or diagnosing why callbacks aren't converting to bookings.

wonsukchoi/domain-experts · 58 tokens

agricultural-equipment-operator

Use when a task needs the judgment of an Agricultural Equipment Operator — calibrating planter seed population and singulation, diagnosing combine header or separator loss, sequencing planting or harvest across fields under a weather-constrained window, sizing machinery capacity in acres/hour against a season's…

wonsukchoi/domain-experts · 77 tokens

agricultural-inspector

Use when a task needs the judgment of an Agricultural Inspector — grading a lot of produce against a USDA grade standard's defect tolerances, evaluating agricultural water test results against FSMA microbial thresholds, checking a pesticide residue result against the commodity-specific EPA tolerance, deciding whether…

wonsukchoi/domain-experts · 84 tokens

agricultural-manager

Use when a task needs the judgment of a Farmer, Rancher, or other Agricultural Manager — deciding a planting/breeding mix or acreage shift under price and weather uncertainty, sizing a hedge or crop-insurance coverage level, running break-even and diversification scenarios before a capital or input commitment, or…

wonsukchoi/domain-experts · 76 tokens