Skip to content
Back to skills

Sessions

BSecurity

Run work in parallel as new Loom sessions the user can watch in the sidebar — start one per task, hand each a prompt, check on them and collect their answers. Use when the user asks for parallel work ("并行", "同时跑", "开几个会话", "分头", "in parallel", "spawn sessions"), instead of background agents or background shell tasks.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
ai-agentsgoshellbackend

Security analysis

B88/100
  • criticalSends environment variables or credentials to an external URL

Pro shows the line behind each finding and how to fix it

Scanned November 22, 2026

npx -y skills add EthanLLL/loom --skill sessions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sessions?

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

Security grade badge for Sessions
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/ethanlll-sessions/badge)](https://www.skillsdirectory.com/skills/ethanlll-sessions)

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: sessions
description: Run work in parallel as new Loom sessions the user can watch in the sidebar — start one per task, hand each a prompt, check on them and collect their answers. Use when the user asks for parallel work ("并行", "同时跑", "开几个会话", "分头", "in parallel", "spawn sessions"), instead of background agents or background shell tasks.
---

# sessions: parallel work as Loom sessions

Default to working in the foreground. When the user asks for parallel work, start
new Loom sessions rather than background agents: they show up in the sidebar,
the user can read and steer them, and they survive this process. A background
agent or shell task does not — Loom releases an idle backend a few minutes after
its last turn, and anything it was waiting on is lost.

The exception is a short subagent job run in the foreground, such as
transcribing a batch of images (Loom's instructions say how): it finishes
within the turn, so nothing is left waiting.

## Calling it

```sh
B="$(dirname "$LOOM_ENV_FILE")/_build/prod/rel/loom/bin/loom"
$B rpc "$(cat <<'EOF'
id = "a_" <> Base.url_encode64(:crypto.strong_rand_bytes(9), padding: false)
{:ok, _} = Loom.Agent.start_session(id, backend: :claude_code, title: "Short title")
IO.inspect({id, Loom.Agent.submit(id, ~S"""
The task, written to stand on its own.
""")})
EOF
)"
$B rpc 'IO.inspect(Loom.Agent.info("a_xxx").status)'       # :running, :idle, :interrupted…
$B rpc '{:ok, %{events: ev}} = Loom.Agent.attach("a_xxx")
IO.puts(ev |> Enum.filter(&(&1.kind == :assistant_text)) |> List.last() |> then(& &1.payload.text))'   # last reply
```

- `backend:` is `:claude_code` or `:codex`, fixed for the session's life.
- The new session knows nothing of this conversation: put the goal, inputs,
  paths, constraints and what "done" means in the prompt, and say where to
  write results (a file both can read beats parsing replies).
- Tell the user the titles you started. Each new session costs a fresh context
  (~20k tokens before it does anything), so start as many as the work needs.
- To wait for them, don't poll in a loop: check once when the user asks, or
  schedule a check-in on this session with the `cron` skill.
- `Loom.Agent.delete_session(id)` discards one and its history; only when the
  user asks.

## Not for apps

This is for an agent splitting its work across sessions. An app that wants
AI calls a model itself first (see the `apps` skill, "Using a model").
`Loom.Agent.submit` into an existing session sends that session's whole
context with every turn, and re-bills all of it after a pause. If an app has
to use it anyway, tell the user what it will cost per call and how often it
will fire, and get their agreement first.

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.