Skip to content

feat(#103): optimize /exec with parallel context gathering - #106

Merged
admarble merged 1 commit into
mainfrom
feature/103-perf-optimize-exec-with-parallel-context-gathering
Jan 17, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/103-perf-optimize-exec-with-parallel-context-gathering

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add parallel context gathering pattern: start worktree creation in background while fetching issue details, comments, and checking patterns simultaneously
  • Change MCP availability check from proactive (session start) to lazy (first use) to avoid wasting time on issues that don't need MCPs
  • Add optional npm install cache optimization (SEQUANT_NPM_CACHE=true) to skip npm install and copy node_modules when package-lock.json is unchanged

Time Savings

Optimization Savings
Parallel context gathering ~5-10s
Lazy MCP checks ~2-5s per MCP
npm install cache (when hit) ~20-25s

Expected total savings: 5-25 seconds per /exec invocation depending on conditions.

Test plan

  • Run /exec on a new issue and verify parallel context gathering works
  • Verify MCP checks only happen when MCPs are actually needed
  • Test SEQUANT_NPM_CACHE=true with unchanged package-lock.json
  • Test SEQUANT_NPM_CACHE=true with changed package-lock.json

Closes #103

🤖 Generated with Claude Code

- Add parallel context gathering pattern: start worktree creation in background
  while fetching issue details, comments, and checking patterns simultaneously
- Change MCP availability check from proactive (session start) to lazy (first use)
  to avoid wasting time on issues that don't need MCPs
- Add optional npm install cache optimization (SEQUANT_NPM_CACHE=true) to skip
  npm install and copy node_modules when package-lock.json is unchanged

Expected time savings: 5-25 seconds per /exec invocation depending on cache hit.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble
admarble merged commit ff16d63 into main Jan 17, 2026
@admarble
admarble deleted the feature/103-perf-optimize-exec-with-parallel-context-gathering branch January 17, 2026 17:31
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.

perf: Optimize /exec with parallel context gathering during worktree setup

1 participant