Code-Index-MCP: Command for Claude Code

.claude/commands/execute-lane.md

execute-lane is a command for Claude Code from Consiliency/Code-Index-MCP. It costs 0 tokens per session (1,308 once invoked), scanned A, original, MIT.

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

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; positional $N argument.

This is Consiliency/Code-Index-MCP's own configuration. It tells Claude Code how to work on Code-Index-MCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Code-Index-MCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Consiliency/Code-Index-MCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Consiliency/Code-Index-MCP/main/.claude/commands/execute-lane.md
Clone the repo
git clone --depth 1 https://github.com/Consiliency/Code-Index-MCP

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for execute-lane

README.md
[![agentmods](https://agentmods.dev/badge/commands/consiliency/code-index-mcp/execute-lane/github.svg)](https://agentmods.dev/commands/consiliency/code-index-mcp/execute-lane)
Your own site
<a href="https://agentmods.dev/commands/consiliency/code-index-mcp/execute-lane"><img src="https://agentmods.dev/badge/commands/consiliency/code-index-mcp/execute-lane/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for execute-lane

Your own site · 80×15
<a href="https://agentmods.dev/commands/consiliency/code-index-mcp/execute-lane"><img src="https://agentmods.dev/badge/commands/consiliency/code-index-mcp/execute-lane.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.01308
Opus 5.5 $0.00000 $0.00523
Sonnet 5.5 $0.00000 $0.00262
Haiku 4.5 $0.00000 $0.00131

Measured 2mo ago against content hash 07480696a8c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (60 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,308 tokens. 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.

Related

execute-lane compared with commands from other repositories

execute-lane next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
execute-laneConsiliency/Code-Index-MCPCommand60yesterdayMITA0Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand148kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand148kyesterdayMITA26Claude Code
convergegithub/spec-kitCommand148kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand148kyesterdayMITA14Claude Code