Troubleshooting Guide
Common issues and solutions when using Sequant.
Worktree Issues
Section titled “Worktree Issues””Branch already exists” error
Section titled “”Branch already exists” error”Problem: Creating a new feature worktree fails with “branch already exists”.
Solutions:
-
Check if worktree already exists:
Terminal window git worktree list -
If worktree exists but is stale, remove it:
Terminal window # Remove the worktree directoryrm -rf ../worktrees/feature/<issue-number>-*# Prune worktree referencesgit worktree prune -
If branch exists without worktree, delete the branch:
Terminal window git branch -D feature/<issue-number>-*
Orphaned worktrees after failed runs
Section titled “Orphaned worktrees after failed runs”Problem: Failed /exec or /fullsolve leaves behind orphaned worktrees.
Solutions:
-
List all worktrees to find orphans:
Terminal window git worktree listls ../worktrees/feature/ -
Clean up using the cleanup script:
Terminal window ./scripts/cleanup-worktree.sh feature/<issue-number>-* -
Or clean manually:
Terminal window rm -rf ../worktrees/feature/<issue-number>-*git worktree prunegit branch -D feature/<issue-number>-*
Worktree not found during /qa or /exec
Section titled “Worktree not found during /qa or /exec”Problem: Skills report “worktree not found” even though work was started.
Solutions:
-
Verify the worktree path:
Terminal window ls ../worktrees/feature/ | grep <issue-number> -
If path exists but skill can’t find it, specify explicitly:
Terminal window cd ../worktrees/feature/<issue-number>-*/# Then run skill from within the worktree -
If worktree was accidentally deleted, recreate it:
Terminal window ./scripts/new-feature.sh <issue-number>
Project Type Support
Section titled “Project Type Support”Using Sequant with non-Node.js projects
Section titled “Using Sequant with non-Node.js projects”Context: Sequant is optimized for Node.js/TypeScript projects, but the core worktree workflow works with any git repository.
What works universally:
/spec- Issue planning and AC extraction/exec- Implementation in isolated worktree/qa- Code review (adapts to project type)/fullsolve- Complete workflow orchestration- Git worktree isolation
Node.js specific features:
npm test/npm run buildverification- Hook-based test running (detects npm/yarn/pnpm/bun)
- Prettier formatting for JS/TS files
For non-Node.js projects:
- Skills will attempt to detect your build/test commands
- You may see warnings about missing
package.json- these are safe to ignore - Customize test commands in your constitution:
## Project-Specific Notes- Build: `cargo build` (Rust) / `go build` (Go) / `pytest` (Python)- Test: `cargo test` / `go test ./...` / `pytest`
Stack guides available:
Installation Issues (npm)
Section titled “Installation Issues (npm)”sequant: command not found
Section titled “sequant: command not found”Problem: After installing, the sequant command isn’t recognized.
Solutions:
-
Ensure global npm bin is in your PATH:
Terminal window npm config get prefix# Add [prefix]/bin to your PATH -
Use npx instead:
Terminal window npx sequant init -
Reinstall globally:
Terminal window npm install -g sequant
Permission errors during install
Section titled “Permission errors during install”Problem: EACCES permission denied errors.
Solutions:
-
Use a Node version manager (recommended):
Terminal window # Using nvmnvm install --ltsnvm use --ltsnpm install -g sequant -
Fix npm permissions:
Terminal window mkdir ~/.npm-globalnpm config set prefix '~/.npm-global'# Add ~/.npm-global/bin to PATH
Initialization Issues
Section titled “Initialization Issues”Stack not detected
Section titled “Stack not detected”Problem: sequant init doesn’t detect your project stack.
Solutions:
-
Specify the stack manually:
Terminal window sequant init --stack nextjs -
Ensure detection files exist:
- Next.js:
next.config.jsornextin package.json - Rust:
Cargo.toml - Python:
pyproject.tomlorrequirements.txt - Go:
go.mod
- Next.js:
Already initialized error
Section titled “Already initialized error”Problem: Error saying Sequant is already initialized.
Solutions:
-
Use force flag to reinitialize:
Terminal window sequant init --force -
Or remove existing config:
Terminal window rm -rf .claude .sequant-manifest.jsonsequant init
Skill Execution Issues
Section titled “Skill Execution Issues”Skills not recognized
Section titled “Skills not recognized”Problem: /spec or other skills aren’t recognized in Claude Code.
Solutions:
-
Verify skills are installed:
Terminal window ls .claude/skills/ -
Run doctor to check installation:
Terminal window sequant doctor -
Restart Claude Code to reload skills.
Permission denied on hooks
Section titled “Permission denied on hooks”Problem: Hook scripts fail with permission errors.
Solutions:
-
Make hooks executable:
Terminal window chmod +x .claude/hooks/*.sh -
Run doctor with fix:
Terminal window sequant doctor --fix
Run Command Issues
Section titled “Run Command Issues”claude command not found
Section titled “claude command not found”Problem: npx sequant run fails because claude CLI isn’t available.
Solutions:
-
Install Claude Code CLI:
Terminal window # Follow Claude Code installation instructions -
Verify installation:
Terminal window claude --version -
Use dry-run to test without execution:
Terminal window npx sequant run 123 --dry-run
Timeout errors
Section titled “Timeout errors”Problem: Phases timeout before completing.
Solutions:
-
Increase timeout:
Terminal window npx sequant run 123 --timeout 3600 # 1 hour -
Or set via environment:
Terminal window PHASE_TIMEOUT=3600 npx sequant run 123
GitHub CLI not authenticated
Section titled “GitHub CLI not authenticated”Problem: Skills fail when trying to access GitHub issues.
Solutions:
-
Authenticate GitHub CLI:
Terminal window gh auth login -
Verify authentication:
Terminal window gh auth status
Claude Code process exited with code 1
Section titled “Claude Code process exited with code 1”Problem: sequant run fails with “Claude Code process exited with code 1” during a phase.
Causes:
- Outdated sequant version in local node_modules
- MCP server configuration issues
- Invalid project settings in
.claude/settings.json
Solutions:
-
Update sequant to latest version:
Terminal window npm update sequant# or remove local and use npxnpm uninstall sequantnpx sequant@latest run 123 -
Try running without MCP servers to isolate the issue:
Terminal window npx sequant run 123 --no-mcp -
Run with verbose mode to see detailed error output:
Terminal window npx sequant run 123 -v -
Check for invalid hook scripts in
.claude/hooks/:Terminal window # Test hooks manuallyecho '{}' | .claude/hooks/pre-tool.sh -
Verify Claude Code CLI works standalone:
Terminal window claude --versionclaude -p "Say hello" --print
Update Issues
Section titled “Update Issues”Conflicts during update
Section titled “Conflicts during update”Problem: sequant update shows conflicts with local changes.
Solutions:
-
Review the diff:
Terminal window sequant update --dry-run -
Force update (overwrites local changes to package files):
Terminal window sequant update --force -
Move customizations to
.local/:Terminal window mkdir -p .claude/.local/skills/specmv .claude/skills/spec/SKILL.md .claude/.local/skills/spec/sequant update
Build/Test Issues
Section titled “Build/Test Issues”Tests fail during /exec
Section titled “Tests fail during /exec”Problem: The execution phase fails because tests don’t pass.
Solutions:
-
Run tests manually first:
Terminal window npm test # or your test command -
Fix failing tests before running the workflow.
-
Skip verification (not recommended):
Terminal window SKIP_VERIFICATION=true npx sequant run 123
Lint errors blocking commit
Section titled “Lint errors blocking commit”Problem: The workflow can’t commit due to lint errors.
Solutions:
-
Run lint manually:
Terminal window npm run lint # or your lint command -
Fix lint errors before running the workflow.
-
Check your lint configuration is correct for your stack.
Windows Issues
Section titled “Windows Issues””bash: command not found” or scripts don’t work
Section titled “”bash: command not found” or scripts don’t work”Problem: Shell scripts (hooks, new-feature.sh) fail because bash isn’t available.
Solution: Install WSL (Windows Subsystem for Linux):
- Open PowerShell as Administrator
- Run:
wsl --install - Restart your computer
- Open Ubuntu from Start menu and complete setup
- Run Sequant commands from within WSL
See the README Windows Users section for full setup instructions.
Line ending issues (CRLF vs LF)
Section titled “Line ending issues (CRLF vs LF)”Problem: Git shows all files as modified, or scripts fail with “bad interpreter” errors.
Solution: Configure Git to use LF line endings:
# Set global configgit config --global core.autocrlf input
# Fix existing repogit rm --cached -r .git reset --hardIf using VSCode, add to .vscode/settings.json:
{ "files.eol": "\n"}Path issues between Windows and WSL
Section titled “Path issues between Windows and WSL”Problem: Paths like C:\Users\... don’t work in WSL, or vice versa.
Solutions:
-
Access Windows files from WSL:
Terminal window cd /mnt/c/Users/YourName/Projects -
Access WSL files from Windows:
\\wsl$\Ubuntu\home\username -
Best practice: Keep your projects in the WSL filesystem (
~/projects/) for better performance.
npm/node not found in WSL
Section titled “npm/node not found in WSL”Problem: Node.js works in Windows but not in WSL.
Solution: Install Node.js inside WSL (it’s a separate environment):
# Using nvm (recommended)curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bashsource ~/.bashrcnvm install --lts
# Or using NodeSource# See: https://github.com/nodesource/distributionsGit Issues
Section titled “Git Issues”GPG signing failed
Section titled “GPG signing failed”Problem: Commits fail with “gpg failed to sign the data” or “No pinentry”.
Solutions:
-
Commit without GPG signing (if allowed):
Terminal window git commit --no-gpg-sign -m "message" -
Fix GPG agent:
Terminal window gpgconf --kill gpg-agentgpg-agent --daemon -
Configure Git to skip signing:
Terminal window git config --global commit.gpgsign false -
Fix pinentry (macOS):
Terminal window brew install pinentry-macecho "pinentry-program $(which pinentry-mac)" >> ~/.gnupg/gpg-agent.confgpgconf --kill gpg-agent
Common Error Messages
Section titled “Common Error Messages””Sequant is not initialized”
Section titled “”Sequant is not initialized””Run sequant init in your project directory.
”No valid issue numbers provided”
Section titled “”No valid issue numbers provided””Provide at least one issue number:
npx sequant run 123“Manifest not found”
Section titled ““Manifest not found””The .sequant-manifest.json file is missing. Reinitialize:
sequant init --forceGetting Help
Section titled “Getting Help”-
Run diagnostics:
Terminal window sequant doctor -
Check status:
Terminal window sequant status -
View help:
Terminal window sequant --helpsequant run --help -
File an issue: GitHub Issues