Borrowing it
Nothing to install: this file belongs to nikzlabs/shipit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/nikzlabs/shipit/main/.agents/skills/session-containers/SKILL.mdgit clone --depth 1 https://github.com/nikzlabs/shipitWrote 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.
[](https://agentmods.dev/skills/nikzlabs/shipit/session-containers)<a href="https://agentmods.dev/skills/nikzlabs/shipit/session-containers"><img src="https://agentmods.dev/badge/skills/nikzlabs/shipit/session-containers/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nikzlabs/shipit/session-containers"><img src="https://agentmods.dev/badge/skills/nikzlabs/shipit/session-containers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.06363 |
| Opus 5.5 | $0.00022 | $0.02545 |
| Sonnet 5.5 | $0.00011 | $0.01273 |
| Haiku 4.5 | $0.00006 | $0.00636 |
Grade A, and why
session-containers 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 8d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 453 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Session Containers & Runners
This skill covers Docker container management, session runners, idle disposal, and reconnection. For session creation/activation/switching, see the session-lifecycle skill.
Key Components
| Component | Location | Role |
|---|---|---|
SessionRunner |
orchestrator/session-runner.ts |
In-process implementation (test-only). Spawns agent/terminal directly |
ContainerSessionRunner |
orchestrator/container-session-runner.ts |
Production implementation. Delegates to per-session Docker container via HTTP+SSE |
SessionContainerManager |
orchestrator/session-container.ts |
Docker orchestration: create, destroy, health monitor, orphan cleanup |
SessionRunnerRegistry |
orchestrator/session-runner.ts |
App-level map of session ID -> runner |
Runner Lifecycle
SessionRunnerRegistry
- Maintains
Map<string, SessionRunnerInterface>(session ID -> runner) getOrCreate(sessionId, sessionDir, agentId):- Return existing non-disposed runner if found
- Call runner factory to create new runner
- Register
"disposed"listener for auto-cleanup from map - Wire
runner.on("idle")->onRunnerIdle(sessionId)callback
get(sessionId): Returns runner if exists and not disposed- No runner-count cap; reclaim is memory-budget driven (see Idle Container Cleanup)
disposeAll(opts?)for graceful shutdown and full reset. Forced — it kills running agents unless the caller passes{ preserveAgent: true }, which shutdown does and full reset does not
Runner Factory (Production)
buildRunnerFactory() (in app-lifecycle.ts) handles three cases, keyed on the
container's current status. A pre-booted standby container (warm pool —
see the session-lifecycle skill) shows up here as an existing container that
is running or starting, so it's just a data condition on these same cases —
there is no separate "warm" code path.
factory(opts):
existing = containerManager.get(opts.sessionId)
CASE 1: existing && status === "running" (incl. a ready standby)
-> mgr.claimStandby(sessionId) (clears standby flag if set)
-> Reconnect: new ContainerSessionRunner({ workerUrl: existing.workerUrl })
-> No container creation -- SSE replay delivers current state. Instant.
CASE 2: existing && status === "starting" (standby still booting)
-> runner = new ContainerSessionRunner({ workerUrl: "http://0.0.0.0:0" })
-> poll up to 30s (500ms): once running -> claimStandby + setWorkerUrl
if it never becomes ready -> fall through to a fresh create
(returns runner immediately; the poll runs in a fire-and-forget async block)
CASE 3: no existing container, OR stale (stopping/stopped)
-> runner = new ContainerSessionRunner({ workerUrl: "http://0.0.0.0:0" })
-> createContainerForRunner({ destroyExisting: !!existing })
(destroys the stale one first, then mgr.create + runner.setWorkerUrl)
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.
- 8d ago Changed · +2 lines 2d37cef4b976
- 28d ago Changed 8d7e35c96254
- 1mo ago Changed · -8 lines f433e74b72ab
- 1mo ago Changed · +60 lines e83933a0e65f
- 1mo ago First seen · 399 lines · 56 tokens per session scan A 973b6317a747
session-containers is a skill published in the GitHub repository nikzlabs/shipit (9 stars, last pushed today), licensed Apache-2.0. It adds 56 tokens to every session and 6,363 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
moai-ref-secops
DevSecOps, container, and API operational defensive security reference: CI/CD pipeline hardening, secret scanning, IaC misconfiguration detection, SAST/DAST integration, container image scanning, Kubernetes RBAC hardening, container-escape defense, runtime threat detection, OWASP API Top 10 operational defense, WAF…
kelos
Install and configure Kelos; author, document, inspect, troubleshoot, and operate its Kubernetes custom resources and CRD schemas in the kelos.dev API group using manifests, kubectl, or the kelos CLI. Use when a request names Kelos or a distinctive Kelos kind such as AgentConfig or TaskSpawner and concerns an…
loom-kubernetes
Kubernetes deployment, cluster architecture, security, and operations. Not for: a loom orchestration job or CI pipeline job — see loom-ci-cd.
loom-docker
Docker and container expertise.
loom-kustomize
Kubernetes-native configuration management with Kustomize.
google-tag-manager
Skill "google-tag-manager" from VKirill/claude-lane-stack, covering 🎯 version requirements (june 2026), usage, use this skill when, do not use this skill when and purpose.