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-processes/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-processes)<a href="https://agentmods.dev/skills/nikzlabs/shipit/session-processes"><img src="https://agentmods.dev/badge/skills/nikzlabs/shipit/session-processes/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-processes"><img src="https://agentmods.dev/badge/skills/nikzlabs/shipit/session-processes.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.00066 | $0.01922 |
| Opus 5.5 | $0.00026 | $0.00769 |
| Sonnet 5.5 | $0.00013 | $0.00384 |
| Haiku 4.5 | $0.00007 | $0.00192 |
Grade A, and why
session-processes scanned grade A with 1 finding 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 18d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
Spawned with `child_process.spawn("claude", args)` using `--output-format stream-json`, `--permission-mode` How it starts
The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Session Worker Processes
Each session runs in a Docker container with a Fastify server (port 9100) that manages the agent CLI, file watcher, and terminal. Preview/dev servers are not among them — they moved to Docker Compose under the orchestrator's ServiceManager. The orchestrator communicates with session workers via HTTP (commands) and SSE (events).
Session Worker
src/server/session/session-worker.ts — Fastify server running inside each container.
Endpoints
| Method | Path | Purpose |
|---|---|---|
POST |
/agent/start |
Start Claude with prompt, images, system prompt |
POST |
/agent/interrupt |
Graceful interrupt (Ctrl+C) |
POST |
/agent/kill |
Force terminate |
POST |
/agent/stdin |
Write to agent stdin (answer questions) |
POST |
/terminal/start |
Start interactive shell |
POST |
/terminal/input |
Write to terminal |
POST |
/terminal/resize |
Resize terminal |
POST |
/files/watch |
Start file watcher (idempotent) |
POST |
/files/unwatch |
Stop file watcher |
GET |
/files/tree |
Scan file tree |
GET |
/events |
SSE event stream |
GET |
/health |
Health check |
SSE Event Stream
The /events endpoint is a long-lived SSE connection. The worker broadcasts events from all managed processes:
| Event | Source | Data |
|---|---|---|
agent_event |
Claude CLI | Parsed NDJSON agent events |
agent_done |
Claude CLI | Exit code |
agent_error |
Claude CLI | Error message |
agent_auth_required |
Claude CLI | Auth URL |
agent_log |
Claude CLI | Non-JSON output lines |
terminal_data |
Terminal | Output data |
terminal_exit |
Terminal | Exit code |
file_changes |
FileWatcher | Changed file paths |
On SSE connect (or reconnect), the worker replays current state:
- If terminal is alive -> sends empty
terminal_datasignal
Note: Preview/dev servers are now managed by Docker Compose via ServiceManager in the orchestrator, not inside the session worker. See service-manager.ts and compose-generator.ts.
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.
- 18d ago Changed · +1 lines 6c6bfae9590c
- 1mo ago Changed · -11 lines 084fe31c6501
- 1mo ago Changed · +8 lines d78d2722fca6
- 1mo ago First seen · 159 lines · 66 tokens per session scan A 034683bfdcda
session-processes is a skill published in the GitHub repository nikzlabs/shipit (9 stars, last pushed today), licensed Apache-2.0. It adds 66 tokens to every session and 1,922 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
lanes-forms
Use when the user wants a form backend or contact form set up (a live POST endpoint that captures submissions and emails them), OR wants an agent to fill in / submit to a form on their behalf. Lanes Forms creates and manages hosted form endpoints from Claude Code. Triggers on "set up a contact form", "provision a…
build-teaql-app
Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C#/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries. Mandatory order: first draft and save a complete KSML model, then verify the client and evaluate that saved model, repair it through repeated evaluation…
moai-platform-deployment
Deployment and hosting platform specialist covering Vercel, Railway, and Convex. Use when deploying applications, configuring edge functions, setting up continuous deployment, or managing serverless infrastructure.
moai-ref-api-patterns
REST/GraphQL API design patterns, error handling conventions, and input validation reference for backend development. Agent-extending skill that amplifies backend domain work (spawned via Agent(general-purpose) with backend instructions) with production-grade API patterns. Use when designing APIs, implementing…
moai-platform-auth
Authentication and authorization specialist covering Auth0, Clerk, and Firebase Auth. Use when implementing authentication, MFA, SSO, passkeys, WebAuthn, social login, or security features.
moai-domain-backend
Backend development specialist covering API design, database integration, microservices architecture, and modern backend patterns. Use when designing APIs, implementing server logic, authentication, or authorization.