Skip to content

feat(lanes): start and stop a lane from the main tree, CLI and MCP - #108

Merged
7schmiede merged 2 commits into
mainfrom
feat/lanes-from-the-main-tree
Oct 19, 2026
Merged

7schmiede merged 2 commits into
mainfrom
feat/lanes-from-the-main-tree

Conversation

@7schmiede

Copy link
Copy Markdown
Member

Closes #103.

Problem

An agent in the main working tree had no way to start a lane:

  • devstack up starts a lane only when run in its worktree;
  • the MCP server is bound to the main tree and had only lanes, lane_move, lane_share and promote_lane.

So it built a separate environment instead of starting a worktree that already existed as a lane. status in the main tree didn't mention lanes either.

Change

  • CLI: devstack lane start <lane> [--on <node>], from anywhere in the repository. It takes the lane's name or its branch, starts the daemon if needed and waits for the services, as devstack up in the worktree does. It uses the lane's own stack file to know which services to wait for.
  • MCP:
    • lane_start {lane, on?, timeout_s?} waits like up and returns the lane's status;
    • lane_stop {lane};
    • both refuse bad lane names, like the other lane tools.
  • status (CLI and MCP) in the main tree adds one line: lanes: 3 worktree(s), 1 started (feature-x on build-node); devstack lane list, devstack lane start <lane>.
  • Skill: the lane tools in the MCP section, plus the recipe "run another branch or commit beside the main stack": worktree on the commit, lane start, test on the shifted ports, lane stop, git worktree remove. A worktree another tool created is a lane too.
  • README, stack-file.md and the changelog are updated.

The issue's optional point is already there: status already says when the installed skills are outdated (skills::outdated_note).

Tests

  • a_worktree_runs_as_a_lane gets a step 7: status names the lane, lane start from the main tree starts it, status then shows it started, and lane stop stops it. It passes locally on Windows (DEVSTACK_INTEGRATION=1, .NET).
  • cargo test -p devstack --bins and clippy pass.

🤖 Generated with Claude Code

7schmiede and others added 2 commits October 19, 2026 14:01
An agent in the main working tree could list lanes but not start one: `up`
starts a lane only in its worktree, and the MCP server is bound to the main
tree. It built a separate environment instead (#103).

- `devstack lane start <lane> [--on <node>]`: as `devstack up` in that
  worktree, from anywhere in the repository (name or branch)
- MCP `lane_start` (waits like `up`) and `lane_stop`
- `status` (CLI and MCP) in the main tree names the lanes in one line
- the `devstack` skill: the lane tools, and the recipe "run a commit beside
  the main stack"

Closes #103

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ain-tree

# Conflicts:
#	CHANGELOG.md
#	crates/devstack/tests/daemon_lifecycle.rs
@7schmiede
7schmiede merged commit df5af1d into main Oct 19, 2026
@7schmiede
7schmiede deleted the feat/lanes-from-the-main-tree branch October 19, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agents cannot start or stop a lane over MCP, and status in the main tree does not mention lanes

1 participant