Skip to content

Troubleshooting Guide

Common issues and solutions when using Sequant.

Problem: Creating a new feature worktree fails with “branch already exists”.

Solutions:

  1. Check if worktree already exists:

    Terminal window
    git worktree list
  2. If worktree exists but is stale, remove it:

    Terminal window
    # Remove the worktree directory
    rm -rf ../worktrees/feature/<issue-number>-*
    # Prune worktree references
    git worktree prune
  3. If branch exists without worktree, delete the branch:

    Terminal window
    git branch -D feature/<issue-number>-*

Problem: Failed /exec or /fullsolve leaves behind orphaned worktrees.

Solutions:

  1. List all worktrees to find orphans:

    Terminal window
    git worktree list
    ls ../worktrees/feature/
  2. Clean up using the cleanup script:

    Terminal window
    ./scripts/cleanup-worktree.sh feature/<issue-number>-*
  3. Or clean manually:

    Terminal window
    rm -rf ../worktrees/feature/<issue-number>-*
    git worktree prune
    git branch -D feature/<issue-number>-*

Problem: Skills report “worktree not found” even though work was started.

Solutions:

  1. Verify the worktree path:

    Terminal window
    ls ../worktrees/feature/ | grep <issue-number>
  2. 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
  3. If worktree was accidentally deleted, recreate it:

    Terminal window
    ./scripts/new-feature.sh <issue-number>

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 build verification
  • Hook-based test running (detects npm/yarn/pnpm/bun)
  • Prettier formatting for JS/TS files

For non-Node.js projects:

  1. Skills will attempt to detect your build/test commands
  2. You may see warnings about missing package.json - these are safe to ignore
  3. 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:


Problem: After installing, the sequant command isn’t recognized.

Solutions:

  1. Ensure global npm bin is in your PATH:

    Terminal window
    npm config get prefix
    # Add [prefix]/bin to your PATH
  2. Use npx instead:

    Terminal window
    npx sequant init
  3. Reinstall globally:

    Terminal window
    npm install -g sequant

Problem: EACCES permission denied errors.

Solutions:

  1. Use a Node version manager (recommended):

    Terminal window
    # Using nvm
    nvm install --lts
    nvm use --lts
    npm install -g sequant
  2. Fix npm permissions:

    Terminal window
    mkdir ~/.npm-global
    npm config set prefix '~/.npm-global'
    # Add ~/.npm-global/bin to PATH

Problem: sequant init doesn’t detect your project stack.

Solutions:

  1. Specify the stack manually:

    Terminal window
    sequant init --stack nextjs
  2. Ensure detection files exist:

    • Next.js: next.config.js or next in package.json
    • Rust: Cargo.toml
    • Python: pyproject.toml or requirements.txt
    • Go: go.mod

Problem: Error saying Sequant is already initialized.

Solutions:

  1. Use force flag to reinitialize:

    Terminal window
    sequant init --force
  2. Or remove existing config:

    Terminal window
    rm -rf .claude .sequant-manifest.json
    sequant init

Problem: /spec or other skills aren’t recognized in Claude Code.

Solutions:

  1. Verify skills are installed:

    Terminal window
    ls .claude/skills/
  2. Run doctor to check installation:

    Terminal window
    sequant doctor
  3. Restart Claude Code to reload skills.

Problem: Hook scripts fail with permission errors.

Solutions:

  1. Make hooks executable:

    Terminal window
    chmod +x .claude/hooks/*.sh
  2. Run doctor with fix:

    Terminal window
    sequant doctor --fix

Problem: npx sequant run fails because claude CLI isn’t available.

Solutions:

  1. Install Claude Code CLI:

    Terminal window
    # Follow Claude Code installation instructions
  2. Verify installation:

    Terminal window
    claude --version
  3. Use dry-run to test without execution:

    Terminal window
    npx sequant run 123 --dry-run

Problem: Phases timeout before completing.

Solutions:

  1. Increase timeout:

    Terminal window
    npx sequant run 123 --timeout 3600 # 1 hour
  2. Or set via environment:

    Terminal window
    PHASE_TIMEOUT=3600 npx sequant run 123

Problem: Skills fail when trying to access GitHub issues.

Solutions:

  1. Authenticate GitHub CLI:

    Terminal window
    gh auth login
  2. Verify authentication:

    Terminal window
    gh auth status

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:

  1. Update sequant to latest version:

    Terminal window
    npm update sequant
    # or remove local and use npx
    npm uninstall sequant
    npx sequant@latest run 123
  2. Try running without MCP servers to isolate the issue:

    Terminal window
    npx sequant run 123 --no-mcp
  3. Run with verbose mode to see detailed error output:

    Terminal window
    npx sequant run 123 -v
  4. Check for invalid hook scripts in .claude/hooks/:

    Terminal window
    # Test hooks manually
    echo '{}' | .claude/hooks/pre-tool.sh
  5. Verify Claude Code CLI works standalone:

    Terminal window
    claude --version
    claude -p "Say hello" --print

Problem: sequant update shows conflicts with local changes.

Solutions:

  1. Review the diff:

    Terminal window
    sequant update --dry-run
  2. Force update (overwrites local changes to package files):

    Terminal window
    sequant update --force
  3. Move customizations to .local/:

    Terminal window
    mkdir -p .claude/.local/skills/spec
    mv .claude/skills/spec/SKILL.md .claude/.local/skills/spec/
    sequant update

Problem: The execution phase fails because tests don’t pass.

Solutions:

  1. Run tests manually first:

    Terminal window
    npm test # or your test command
  2. Fix failing tests before running the workflow.

  3. Skip verification (not recommended):

    Terminal window
    SKIP_VERIFICATION=true npx sequant run 123

Problem: The workflow can’t commit due to lint errors.

Solutions:

  1. Run lint manually:

    Terminal window
    npm run lint # or your lint command
  2. Fix lint errors before running the workflow.

  3. Check your lint configuration is correct for your stack.

”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):

  1. Open PowerShell as Administrator
  2. Run: wsl --install
  3. Restart your computer
  4. Open Ubuntu from Start menu and complete setup
  5. Run Sequant commands from within WSL

See the README Windows Users section for full setup instructions.

Problem: Git shows all files as modified, or scripts fail with “bad interpreter” errors.

Solution: Configure Git to use LF line endings:

Terminal window
# Set global config
git config --global core.autocrlf input
# Fix existing repo
git rm --cached -r .
git reset --hard

If using VSCode, add to .vscode/settings.json:

{
"files.eol": "\n"
}

Problem: Paths like C:\Users\... don’t work in WSL, or vice versa.

Solutions:

  1. Access Windows files from WSL:

    Terminal window
    cd /mnt/c/Users/YourName/Projects
  2. Access WSL files from Windows:

    \\wsl$\Ubuntu\home\username
  3. Best practice: Keep your projects in the WSL filesystem (~/projects/) for better performance.

Problem: Node.js works in Windows but not in WSL.

Solution: Install Node.js inside WSL (it’s a separate environment):

Terminal window
# Using nvm (recommended)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.bashrc
nvm install --lts
# Or using NodeSource
# See: https://github.com/nodesource/distributions

Problem: Commits fail with “gpg failed to sign the data” or “No pinentry”.

Solutions:

  1. Commit without GPG signing (if allowed):

    Terminal window
    git commit --no-gpg-sign -m "message"
  2. Fix GPG agent:

    Terminal window
    gpgconf --kill gpg-agent
    gpg-agent --daemon
  3. Configure Git to skip signing:

    Terminal window
    git config --global commit.gpgsign false
  4. Fix pinentry (macOS):

    Terminal window
    brew install pinentry-mac
    echo "pinentry-program $(which pinentry-mac)" >> ~/.gnupg/gpg-agent.conf
    gpgconf --kill gpg-agent

Run sequant init in your project directory.

Provide at least one issue number:

Terminal window
npx sequant run 123

The .sequant-manifest.json file is missing. Reinitialize:

Terminal window
sequant init --force
  1. Run diagnostics:

    Terminal window
    sequant doctor
  2. Check status:

    Terminal window
    sequant status
  3. View help:

    Terminal window
    sequant --help
    sequant run --help
  4. File an issue: GitHub Issues