Skip to content
Back to skills

Orchestrator

ASecurity

Run one long session that talks to the owner and delegates bounded work to cheaper workers, waits on events instead of polling, and saves state before compacting. Use when planning to hand work to another model or agent CLI, when a long session nears its context limit, or when setting up watchers for background jobs.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 28, 2026
ai-agentsshell

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add rpinho/rstack --skill orchestrator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orchestrator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orchestrator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rpinho-orchestrator/badge)](https://www.skillsdirectory.com/skills/rpinho-orchestrator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: orchestrator
description: Run one long session that talks to the owner and delegates bounded work to cheaper workers, waits on events instead of polling, and saves state before compacting. Use when planning to hand work to another model or agent CLI, when a long session nears its context limit, or when setting up watchers for background jobs.
---

# Orchestrator: running a long session that delegates

## Delegate bounded work

- Keep owner-facing decisions, writing, signed-in browser actions and final review in the
  main session. Delegate self-contained, checkable work above roughly 20 tool turns.
- Use the cheapest capable worker or a second vendor's CLI. Reserve consultation-grade
  models for second opinions, reviews and plans. Check file ownership before launch.
- Use the [job spec template](references/job-spec-template.md). Name the job, isolated
  output directory, inputs, allowed writes, budget, deadline, checkpoints and acceptance
  test. Start non-interactive workers with stdin from `/dev/null`. The runner owns retries
  and resumptions.
- Give workers zero sends or publication authority. Keep credentials at their configured
  source and minimize private extracts. Escalate money, sign-ins, sends in the owner's name,
  irreversible actions, privacy or egress, and unsandboxed third-party code. Keep decisions
  awaiting the owner in the state file.
- Use an independent referee for science claims, with final selection targets outside the
  producer's reach. Follow the [science job rules](../../../tools/RULES.md).
- The [launcher](../../../tools/launch.sh) limits the job, and records the first lines of
  `STATUS.md` and `REPORT.md`.
  Check the unattended-routing override's actual expiry
  before a batch. Respect permission denials and safety stops when routing work.

## Wait on completion events

Run multi-hour builds as bounded background shell jobs. Let the agent exit and resume
from the result when ready. Use [event-watch](../../../rstack/tools/event-watch) or a
scheduled script to wake an agent on a result marker, a stale log, a matching log pattern,
a process exit or the deadline. Keep the terminal `quiet` result so silence can be checked.

Before relaunch, count jobs with `pgrep -f JOBNAME | wc -l`. Process checks must keep
other sessions' command lines out of output. On completion, verify the harvest and inspect
ownership and parentage before stopping any leftover worker.

## Save before compaction

Keep the full context window and reduce wakes. See [cost math](references/cost-math.md).

1. Set up [fleet-context-watch](../../../rstack/tools/fleet-context-watch) with the session
   threshold and skip list. The reference configuration checks every 15 minutes and requests
   a state save at 500k tokens.
2. Write enough durable state for a fresh context and reply `SAVED <path>`.
3. The watcher uses any `SAVED` reply after the request. After two quiet minutes, it types
   `/compact Full saved state is in <path>` into the terminal. It re-asks after two hours and
   resets below 300k. Inter-session messages cannot run the compaction command.

Report the shipped result, evidence and limitations from `REPORT.md`. Surface new owner
decisions once and preserve the durable queue across compaction.

Files in this skill

  • SKILL.md3.3 KB
  • references/cost-math.md1.7 KB
  • references/job-spec-template.md935 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.