execute-lane

A command for carrying out one swim lane from a phase plan by coordinating separate agents for its tasks.

In plain words
What is it for?
It helps extract a lane's scope and tasks, assign them to sub-agents, track dependencies, and verify the lane's result.
Why use it?
It checks that required interfaces, branch state, and other prerequisites are ready before parallel work begins.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/consiliency/code-index-mcp/execute-lane
Clone the repo
git clone --depth 1 https://github.com/Consiliency/Code-Index-MCP

Made for: Claude Code.

Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,308 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00020 $0.01308
Opus 5 $0.00010 $0.00654
Sonnet 5 $0.00004 $0.00262
Haiku 4.5 $0.00002 $0.00131

Measured 2d ago against content hash 07480696a8c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

execute-lane scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/execute-lane.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Execute Swim Lane with Parallel Sub-Agents

Inputs

  • $1 = Phase document path (e.g., plans/phase-2-ingestion.md)
  • $2 = Swim lane identifier (e.g., SL-1, lane-api-routes, etc.)

Execution Strategy

1. Load Phase Plan & Extract Swim Lane

Read the phase implementation document:

  • @$1

Locate swim lane $2 within the document. Extract:

  • Swim lane scope: Component boundaries, files, interfaces owned
  • Task list: Individual work items with their dependencies
  • Interface contracts: Frozen interfaces this lane depends on or provides
  • Acceptance criteria: Definition of done for this lane

2. Verify Preconditions

Before spawning agents, check:

Interface Dependencies:

  • All interfaces this lane consumes must be frozen (have IF-* gate marked complete)
  • If any dependency is not ready, list them and STOP with message:
  ⚠️ Cannot proceed - waiting on interface freeze gates:
  - IF-0-xyz: [description]
  
  Recommend: Execute dependent lanes first or request interface definition

Git State:

  • Current branch: !git branch --show-current
  • Verify branch matches expected feature branch for this phase
  • Check for uncommitted changes: !git status --short
  • If dirty, warn but allow continuation (agents will commit their changes)

File Conflicts:

  • Check if any files in this lane's scope are already modified in working tree
  • List conflicts and ask user to confirm continuation

3. Task Dependency Analysis

From the task list for lane $2:

  • Build dependency graph (which tasks can run in parallel vs sequential)
  • Identify tasks with no dependencies ("ready" tasks)
  • Group related tasks that should execute sequentially in one agent

Grouping heuristics:

  • Tasks touching the same file → same agent (sequential)
  • Tasks with direct data dependencies → same agent (sequential)
  • Tasks on different files with no dependencies → parallel agents
  • Avoid creating more than 5 parallel agents (diminishing returns)

Read the full file on GitHub · 187 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 187 lines · 0 tokens per session scan A 07480696a8c9

Subscribe to this mod's changes

execute-lane is a command published in the GitHub repository Consiliency/Code-Index-MCP (57 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 1,308 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.