Skip to content
Back to skills

Lanes

ASecurity

Use when the work is several independent tickets or a multi-part project whose parts would each end in their own pull request - run them as lanes, one background session per ticket in its own worktree - or when you are already the lead of a project's lanes. Not for a question, a single change, or tightly coupled edits.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
ai-agentsgoapi

Works with

  • api
  • mcp

Security analysis

A100/100

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

Scanned December 1, 2026

npx -y skills add felipemelendez/llm-orchestrator --skill lanes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lanes?

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

Security grade badge for Lanes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/felipemelendez-lanes/badge)](https://www.skillsdirectory.com/skills/felipemelendez-lanes)

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: lanes
description: Use when the work is several independent tickets or a multi-part project whose parts would each end in their own pull request - run them as lanes, one background session per ticket in its own worktree - or when you are already the lead of a project's lanes. Not for a question, a single change, or tightly coupled edits.
---

# Lanes

A lane is a background session (`lane-<id>`) owning one ticket in its own
worktree; its pull request body is its card. Design: `docs/specs/lanes.md`.

## Rules

1. One lead: the session the ledger records, under whatever name it has. The
   first session to `add` or `start` is recorded by that command. Any other
   session starts nothing and does nothing with lane messages.
2. The lead does not work on a lane's ticket; anything else the owner asks
   for in this session it does as usual.
3. Only the lead lands, one at a time. Lanes cannot merge or push to the base.
4. Only the lead talks to the owner. A lane brings its question to the lead.
5. A lane does its own ticket only; other work goes on its card.

## Commands

`scripts/orch-lane.sh` in this plugin, run by the lead:

| Command | Does |
|---|---|
| `add <id> "<title>" [--ticket <path>] [--blocked-by <id,id>]` | adds a ready task |
| `start <id> [--model <m>]` | worktree `orch/lanes/<id>` from the fetched base branch, session `lane-<id>` |
| `status` | the recorded lead, each lane's state and pull request, owner questions; last line says what is ready |
| `fix <id> "<what>"` | continues a finished lane's session with your words |
| `restart <id> [--model <m>]` | stops the lane's session and starts a fresh one on the same worktree and branch |
| `takeover` | records this session and its name as the lead; any earlier lead is retired |
| `done <id> [--dropped]` | after its PR merged (or to drop it): removes the worktree and the merged branch, files the task |

If `.llm-orchestrator.json` sets `roles.writer.model`, pass it as `--model`. Questions for the owner go in
`owner.md` in the ledger folder (`~/.llm-orchestrator/sessions/<hash>/lanes/`),
one complete `## ` heading each.

A project's `.llm-orchestrator/lane-settings.json` is merged over the lane
settings (fewer plugins or MCP servers, `fallbackModel`). Accounts need no setup:
a session at its usage limit moves to the next of `~/.claude` and `~/.claude-*`
that has this plugin enabled. A project script named in `ORCH_LANE_ENV` is
optional and chooses instead.

## Loop

1. Start with `orch-lane.sh status`; there is no handoff file and nothing to
   set up. `add` and `start` make you the lead, taking over from any earlier
   one, and say so. To carry on lanes without adding work, run
   `orch-lane.sh takeover` when the owner asked you to; `fix`, `restart` and
   `done` refuse you only while another lead is still running; if it is gone
   they make you the lead too.
   If `status` later says you are not the recorded lead, a newer lead took
   over: stop acting on lane messages, start and land nothing, and tell the
   owner once.
2. Start every task on the `ready and unassigned:` line unless you have a
   written reason to hold it. No fixed number of lanes.
3. After each start, `SendMessage` to `lane-<id>` asking to be notified when
   idle. The notice fires once, so ask again after every message and `status`.
4. On every lane message or idle notice, run `status` first: it is where a
   retired lead learns it is retired. When a lane reports, or `status` says
   `handed in`, read the card (the pull request body):
   - `READY`: land it with `finishing-a-branch`, keeping the card at the top
     of the body; visual work still waits for the owner's look. Then
     `orch-lane.sh done <id>`. Land only `READY` cards. On the short path
     of `finishing-a-branch`, skip its delete-branch step: `done` does it.
   - A question for the owner: ask it in full and add it to `owner.md`.
   - Something wrong: `orch-lane.sh fix <id> "<what to change>"`.
5. A lane's question (`asks:` in `status`; its message only wakes you): put
   it to the owner, then `fix <id> "<the answer>"`.
6. A lane `done` with a draft or no pull request and no message stopped early:
   `fix <id> "continue; write your card when done"`. `failed` or `stopped`:
   `fix <id> "continue"`. A `working` or `blocked` lane takes words by
   `SendMessage`; a `blocked` one may wait on a prompt (`claude attach <id>`).
7. A lane that meets its account's usage limit restarts itself on the next
   account when one is left, and the owner gets a notification.
   If it still shows `at-limit`, no account was left: run the
   `orch-lane.sh restart <id>` that `status` prints when one is.
8. After a reboot, restart dead lanes one per command.

## The lead

No start command: the owner opens `claude` in the project, and the session
that starts using lanes is the lead. Lanes send their messages to its recorded
name. A lead in bypass-permissions mode would hold those messages; use
default, acceptEdits or auto.

The plugin's `StopFailure` hook watches the lead. At its usage limit, a new
lead starts on the next account if one is offered. On any other API error
nothing is stopped or restarted: the owner is told, and the lead carries on at
the next lane message or anything he types. A lane handing in or asking starts
a new lead if the recorded one is no longer running. The owner gets a notification each time. A restarted
lead is a background session named `lead`: open it with `claude agents`, then
attach, or open `claude` and say to carry on.

If a lane's message never arrives, `status` still shows its pull request as
handed in.

Files in this skill

  • SKILL.md4.8 KB
  • references/lane.md2.9 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.