Repository navigation
Conversation
Each parallel agent can now get its own sub-worktree via the agents.isolateParallel setting or --isolate-parallel CLI flag, eliminating file conflicts structurally instead of relying on careful task partitioning. - New src/lib/worktree-isolation.ts module with create, merge-back, and cleanup functions - git merge --no-ff strategy with conflict detection and reporting - Sub-worktrees nested at .exec-agents/agent-<N>/ inside issue worktree - node_modules symlinked (~13ms) instead of npm install (~30s) - Orphaned sub-worktree cleanup in cleanup-worktree.sh - 19 unit tests covering branch naming, merge, conflict, and cleanup - Investigation docs at docs/reference/worktree-isolation.md Closes #485
20 tasks
…ktreeinclude Three gaps fixed: 1. CLI flag propagation: --isolate-parallel now flows through ExecutionConfig → phase-executor → SEQUANT_ISOLATE_PARALLEL env var. SKILL.md checks env var first, settings.json second. 2. Dead code bridge: new scripts/worktree-isolation.ts CLI wrapper exposes the tested TypeScript API as shell commands. SKILL.md steps 1b/5b now call the script instead of raw git, making tested code the single source of truth. 3. .worktreeinclude: new file at repo root lists files to copy into sub-worktrees. createSubWorktree() reads from it, falling back to hardcoded defaults. 4 new tests for getIncludeFiles().
admarble
deleted the
feature/485-evaluate-built-in-worktree-isolation-for-exec-para
branch
April 7, 2026 21:42
6 tasks
admarble
added a commit
that referenced
this pull request
May 3, 2026
Mirrors the --testgen pattern from #557 to remove the only --phases emission /assess was still forced to produce for non-resume cases. - bin/cli.ts: register --security-review next to --testgen - types.ts: add RunOptions.securityReview - phase-mapper.ts: extend PhaseMapperOptions and insert security-review after spec when flag set; idempotent vs label-based auto-detection - batch-executor.ts: SEQUANT_SECURITY_REVIEW env override and runtime injection block (handles --resume after spec already ran) - assess/SKILL.md (×3 mirrors): rewrite Rule 8 — drop "asymmetry" clause, list both --testgen and --security-review as additive flags; example commands at #412 and #500 switch from --phases to --security-review (Flags annotations updated to match) - docs/features/assess-minimal-flags.md: update for new flag - assess-skill.test.ts: extend rejection regex to also catch --phases ...,security-review patterns - phase-mapper.test.ts: 5 new tests covering insertion, idempotency, composition with --testgen, and absence of spec - CHANGELOG: [Unreleased] / Added entry Closes #559
admarble
added a commit
that referenced
this pull request
Sep 9, 2026
Mirrors the --testgen pattern from #557 to remove the only --phases emission /assess was still forced to produce for non-resume cases. - bin/cli.ts: register --security-review next to --testgen - types.ts: add RunOptions.securityReview - phase-mapper.ts: extend PhaseMapperOptions and insert security-review after spec when flag set; idempotent vs label-based auto-detection - batch-executor.ts: SEQUANT_SECURITY_REVIEW env override and runtime injection block (handles --resume after spec already ran) - assess/SKILL.md (×3 mirrors): rewrite Rule 8 — drop "asymmetry" clause, list both --testgen and --security-review as additive flags; example commands at #412 and #500 switch from --phases to --security-review (Flags annotations updated to match) - docs/features/assess-minimal-flags.md: update for new flag - assess-skill.test.ts: extend rejection regex to also catch --phases ...,security-review patterns - phase-mapper.test.ts: 5 new tests covering insertion, idempotency, composition with --testgen, and absence of spec - CHANGELOG: [Unreleased] / Added entry Closes #559
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.
Summary
/execparallel agent groups — each agent gets its own sub-worktree, eliminating file conflicts structurally instead of relying on task partitioningagents.isolateParallelsetting (default:false) and--isolate-parallelCLI flaggit merge --no-ffhandles conflict detectionChanges
Core Module (
src/lib/worktree-isolation.ts)createSubWorktree()— creates sub-worktree at.exec-agents/agent-<N>/, symlinks node_modules, copies env filesmergeAllSubWorktrees()— sequential merge-back withgit merge --no-ff, conflict detection and partial merge supportcleanupAllSubWorktrees()/cleanupOrphanedSubWorktrees()— post-merge and orphan cleanupSettings & CLI
isolateParallel: booleanadded toAgentSettingsinterface--isolate-parallelflag registered inbin/cli.ts, wired throughRunOptions→run.tsSkill Integration
/execSKILL.md parallel group section updated with isolation steps (0, 1b, 5b).claude/skills/,templates/skills/,skills/)Cleanup & Docs
cleanup-worktree.shupdated to handle.exec-agents/sub-worktreesdocs/reference/worktree-isolation.md— investigation results, architecture, API referenceAC Coverage
23/23 items met (20 original + 3 derived)
Test plan
--helpshows--isolate-parallelflagCloses #485