agentleFS
EthanLLLEthanLLL/loom/skills/sessions/SKILL.md

sessions

Skill4 starsChanged 4 days agoMITView on GitHub

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.

24 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tool-rename-deprecation, add-policy and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • gitpod-ioSkill

    tool-rename-deprecation

    Ensure renamed built-in tool references preserve backward compatibility. Use when renaming a toolReferenceName, tool set referenceName, or any tool identifier. Run on ANY change to tool registration code. Covers legacyToolReferenceFullNames for tools and legacyFullNames for tool sets.

    Also in 5 projects that use this

  • OpenCortexIDESkill

    add-policy

    Use when adding, modifying, or reviewing VS Code configuration policies. Covers the full policy lifecycle from registration to export to platform-specific artifacts. Run on ANY change that adds a `policy:` field to a configuration property.

    Also in 4 projects that use this

  • gitpod-ioSkill

    agent-sessions-layout

    Agent Sessions workbench layout — covers the fixed layout structure, grid configuration, part visibility, editor modal, titlebar, sidebar footer, and implementation requirements. Use when implementing features or fixing issues in the Agent Sessions workbench layout.

    Also in 3 projects that use this

  • slopusSkill

    metrics-graphana

    Query and manage Grafana dashboards and Prometheus metrics for Happy infrastructure. Covers grafanactl CLI usage, direct Prometheus queries through Grafana proxy, and dashboard-as-code workflows. Use when user asks about metrics, dashboards, monitoring, Grafana, Prometheus, or wants to add/modify panels.

    Also in 3 projects that use this

  • slopusSkill

    control-flow

    Analyze and design control flows and data structures. Produces compact ASCII tree diagrams showing triggers, call chains, payload shapes, state mutations, and re-render effects. Use when user asks to diagram, trace, visualize, or design a flow or data structure.

    Also in 3 projects that use this

  • TheKREATORSSkill

    refactor-clean

    No description

    Also in 3 projects that use this

  • +2 more from gitpod-io

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Default to working in the foreground.

    line 8

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 15 minutes after its last turn, and anything it was waiting on is lost.

The exception is a short subagent job your instructions call for (CLAUDE.md / AGENTS.md), such as transcribing a batch of images: it finishes within the turn, so nothing is left waiting.

Calling it

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.