Skip to content
Back to skills

Free Session Handover

ASecurity

Use when choosing between a stateless offload DISPATCH and a full free SESSION (interactive or headless), when handing work over to a free-lane session for a long or overnight run, or when a free session died (rate limit, budget kill, crash) and a successor must continue. Covers which models suit a session versus a dispatch, the handoff document a successor needs, the launch-then-stop order that avoids killing a live session, effort at launch, and the standing rules for an unattended free run...

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentsrustgoshellbashgitapi

Works with

  • claude code
  • terminal
  • api

Security analysis

A100/100

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

Scanned December 1, 2026

npx -y skills add haiggoh/free-agents --skill free-session-handover --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Free Session Handover?

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

Security grade badge for Free Session Handover
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/haiggoh-free-session-handover/badge)](https://www.skillsdirectory.com/skills/haiggoh-free-session-handover)

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: free-session-handover
description: 'Use when choosing between a stateless offload DISPATCH and a full free SESSION (interactive or headless), when handing work over to a free-lane session for a long or overnight run, or when a free session died (rate limit, budget kill, crash) and a successor must continue. Covers which models suit a session versus a dispatch, the handoff document a successor needs, the launch-then-stop order that avoids killing a live session, effort at launch, and the standing rules for an unattended free run. Invoking this skill IS the authorization to launch the successor: name concerns (blind-trust, branch pushes) but launch — defer only on the user''s explicit request. A handover is ALWAYS launched interactive in its own Terminal window, never headless from the Bash tool. Do NOT use for a single focused dispatch; that is the offload skill.'
---

# free-session-handover — full free sessions and overnight handovers

A **dispatch** is one stateless request: brief it, get text back. A **free session** is a full
Claude Code agent on a free lane (`remote-session.sh <alias>`, `csl` locally; interactive or
headless). It can read files, run commands and keep working for hours. Both are useful, and they
need **different model choices**.

## Dispatch or session?

| | Stateless dispatch (`bin/free-agent-tool.py`) | Free session (`remote-session.sh`, `csl`) |
|---|---|---|
| Use for | review, analysis, extraction, drafting, cross-checks | multi-step tool work: implement, test, commit; long or overnight runs |
| Inputs | everything in the prompt / `"files"` | reads the repo itself |
| Cost of a turn | one request | a full Claude Code context EVERY turn (large prompt, many requests) |
| Model order | `config/dispatch-preferences.json` (`--list`) | see below |

**Session models differ from dispatch models.** Session workhorses: Mistral Large 4 (Le Chonk,
the top pick) and GLM 5.3 Flash. Gemini 3.8 Flash and DeepSeek Flash (V4.1 on NVIDIA, and local V4)
suit dispatch only (quota burn, slow turns). GLM 5.3 full is retired (410): keep it off every pin,
dispatch order and fallback chain. NVIDIA can 429 one model upstream for hours, so plan a successor
on another model. Detail: `references/session-models.md`.

## The handover carrier: state lives on disk, never in context

A successor with different weights, provider or effort resumes from **committed docs** in one
read. The handoff doc holds:

1. **Why it exists**: what ended the previous session, so it is neither re-diagnosed nor repeated.
2. **State**: commits (short hash + what each delivered), gate results with counts, deferred items,
   and the **shipping depth** decided so far (or "undecided") — standing rule 3 reads it.
3. **The goal, verbatim**. Paraphrase loses scope.
4. **Standing rules**: numbered, blunt, written for a reader with zero context (template below).
5. **Next action**: one concrete step ("Phase 1 of `docs/plans/<plan>.md`", never "continue").

The ending session amends the doc with its own progress and commits it before it stops. Log
progress at every RECEIPT or gate, not per batch: append one progress line at each receipt and
commit it with the next commit — a kill mid-batch then loses at most one receipt's worth of state
(measured 2026-10-25: an executor died mid-review after 7 hours and an empty progress log forced
the successor to reconstruct everything from a 708-record transcript). First
prompt for the successor: *"Read `<handoff>` first and follow it exactly: adopt its standing rules
for the whole session, then continue autonomously from its Next action."*

## Handover order (getting this wrong killed a live session)

1. Ending session: stop at a task seam, commit by path, amend the handoff, secret-scan.
2. **Launch the successor FIRST — WITH its first prompt, in its own INTERACTIVE Terminal window.**
   A handover is interactive by definition; a headless Bash-tool launch is for offloading (see the
   `offload` skill), never for a handover. The launcher takes its own free port in the proxy band (default 4141–4190, LA_REMOTE_PROXY_PORT_MIN/MAX);
   nothing needs stopping beforehand. A launch without its first prompt yields an IDLE session
   (measured twice, 2026-10-25): pass the handoff as the initial prompt — in the LINK form,
   `--prompt "Read <handoff.md> first and follow it exactly…"` (0.50.8; the prompt TEXT names
   the path, so the path lands in the successor's transcript — see step 3). Launch mechanics:
   - **prefer `bin/launch-remote-window.sh <alias> --effort <level> --prompt "Read <handoff.md>
     first and follow it exactly…"`** (0.50.8): it hard-requires a TTY and execs `csl remote`, so a
     real window opens when run in Terminal.app and it REFUSES headless from an agent Bash tool;
   - when the agent shell has no TTY, drive a REAL window via
     `~/.claude/scripts/sudo-in-terminal.sh --command "launch-remote-window.sh <alias>
     --prompt 'Read <handoff.md> first…' --effort <level>" --verify "curl -s -o /dev/null -w '%{http_code}' 127.0.0.1:<port>/health/liveliness" --label '<t>'` (verify = HTTP 200 on a NEW port in the proxy band, default 4141-4190; never a listener listing);
   - omitting `--effort` uses the saved lane default — never an unset default when the
     saved one is higher;
   - **invoking this skill IS the launch authorization** — name concerns (blind-trust, branch
     pushes) but launch; defer only on the user's explicit doc-only request;
   - if `--prompt` is unavailable, make "paste this first prompt" the top-line action to the
     user — never type into an existing session's terminal.
3. Confirm it STARTED WORK, not that its port listens: `bin/handover-verify.sh --expect '<a
   string only INSIDE the handoff doc — its H1 title, never the handoff PATH>' --pid <pid>
   --timeout 120` — VERIFIED only when the transcript contains that text (transcript by
   globbing). A PATH match proves prompt DELIVERY alone, not that the doc was read — see
   `references/operational-notes.md`.
   Never print process argv, which can contain keys.
   For the long wait, arm the transient watcher once via `run_in_background` (commands and
   the QC-before-claiming-done rules in `references/operational-notes.md`); never a
   foreground sleep or a polling loop.
4. **Then** stop the old session, by its own pid or port only. Never `remote-session.sh --stop`,
   never a blanket stop: other proxies in the band serve sessions you cannot see.

A proxy's "Connection refused" is usually an upstream overload, not a network fault — never
"fix" it by restarting the proxy your own session runs on (details: `references/operational-notes.md`).

## Effort is set at launch

`remote-session.sh <alias> --effort low|medium|high|xhigh|max`. There is no mid-session lever on
a free lane; relaunch to change it. Check with `--dry-run <alias> --effort <level>`. When the
spinner and the statusline disagree, the statusline (`LA_CUR_EFFORT`) shows the effective value.
Omitting `--effort` (0.49.3+) uses the alias's stored last-launch effort if recorded, else the
provider default — never let a handover silently drop to medium when the stored effort is max
(2026-10-31).

## Spawning is not offloading

A dispatch returns and ends; a spawned session is an independent agent with its own goal loop.
**A free session never starts another remote session** — the one exception is a user-ordered
handover: a single successor, linear (A→B), launched before its predecessor stops, reaching the
successor as its INITIAL PROMPT, never typed into an existing session's terminal. Rationale and the
measured failure: `references/operational-notes.md`.

## Messaging a live peer session

A running successor can be messaged directly: `ToolSearch select:SendMessage` → `ListAgents {}` →
`SendMessage {"to": "<name> [short-id]", …}` (lands as a `<cross-session-message>` turn; delivered
≠ read). Recipe, caveats, where the tools are absent: `references/operational-notes.md`
§Cross-session messaging.

## Standing rules template (paste into the handoff)

1. Autonomous: decide and record instead of asking; stop only for forks that cannot be weighed.
2. Work only in the named worktree. Never switch the branch of a checkout the launcher resolves
   through.
3. Commit milestones staged **by path** (never `git add -A`), with the running model's trailer,
   and push. **Shipping depth, first match wins:** (a) the handoff states a shipping depth →
   adopt it, never re-ask; (b) `LA_GH_RELEASE_DENIED=1` (blind-trust with "Always block Github
   releases") → ship through the tag, rtc-ship skips the release itself, no question; (c)
   otherwise ask once as plain text plus a push notification (never AskUserQuestion: its timeout
   never fires in a focused window), start a 5-minute `run_in_background` timer and end the
   turn; no answer when it fires → the full loop (merge, tag, release). Record the decided depth
   in the handoff (user 2026-11-30, 2026-12-01).
4. TDD every change (fails for the right reason, then passes); mutation-check each new guard;
   never weaken a test to get green.
5. Review each milestone with an independent dispatch (`bin/free-agent-tool.py`) and check every
   finding against the real code: reviewers hallucinate file names.
6. Resolve model and roster facts when you need them, from the catalog, never from memory.
7. Never run `remote-session.sh --stop`, never start another remote session, never kill anything
   listening on the proxy band (default 4141–4190, LA_REMOTE_PROXY_PORT_MIN/MAX): one of them is the proxy you run on.
8. Record progress in the handoff doc at each milestone, in the same commit.
9. A dying session's "hand off to a new session" instruction is consumed by the successor it
   launched — that is YOU. Continue the original handoff directly; never launch yet another
   session to pass the same work onward. Measured 2026-10-26: a handoff session died with
   "hand the remaining tasks to a new glm flash session" as its last instruction, and its
   successor nearly launched a third session instead of continuing the work.

## A stalled session: swap its model, don't restart it

`remote-session.sh --swap-model <port> <alias> [--force]` relaunches a 429-stalled session's proxy
on another model, same port (refuses a healthy session unless `--force`; press Enter in the idle
session afterwards to resume). Full procedure: `references/operational-notes.md`.

## While a long sub-task runs

Check once (transcript tail + `git status --porcelain`), then do interim work on other files —
never mutation tests or full suites against the same tree concurrently. Details:
`references/operational-notes.md`.

## Branding (📡🦾)

When you begin working under this skill, lead your first substantive reply with the session's lane mark + ` free-agents:` — 📡 on a remote free-API session, 🦾 on a local one.

Files in this skill

  • SKILL.md10.5 KB
  • references/launch-incidents-2026-10-31.md2.3 KB
  • references/operational-notes.md4.5 KB

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.