Repository navigation
feat(lanes): start and stop a lane from the main tree, CLI and MCP - #108
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #103.
Problem
An agent in the main working tree had no way to start a lane:
devstack upstarts a lane only when run in its worktree;lanes,lane_move,lane_shareandpromote_lane.So it built a separate environment instead of starting a worktree that already existed as a lane.
statusin the main tree didn't mention lanes either.Change
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, asdevstack upin the worktree does. It uses the lane's own stack file to know which services to wait for.lane_start {lane, on?, timeout_s?}waits likeupand returns the lane's status;lane_stop {lane};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>.lane start, test on the shifted ports,lane stop,git worktree remove. A worktree another tool created is a lane too.stack-file.mdand the changelog are updated.The issue's optional point is already there:
statusalready says when the installed skills are outdated (skills::outdated_note).Tests
a_worktree_runs_as_a_lanegets a step 7:statusnames the lane,lane startfrom the main tree starts it,statusthen shows it started, andlane stopstops it. It passes locally on Windows (DEVSTACK_INTEGRATION=1, .NET).cargo test -p devstack --binsandclippypass.🤖 Generated with Claude Code