This guide covers common issues you might encounter and how to resolve them.Documentation Index
Fetch the complete documentation index at: https://schaltwerk.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Tip: Examples usebuncommands. Replace them with the npm equivalents (npm run …,npm install, etc.) if needed.
Installation Issues
Schaltwerk won't open on first launch
Schaltwerk won't open on first launch
- Go to System Settings → Privacy & Security
- Scroll down to find: “Schaltwerk was blocked”
- Click Open Anyway
- Launch Schaltwerk again and click Open
App is damaged and can't be opened
App is damaged and can't be opened
Homebrew installation fails
Homebrew installation fails
brew install --cask 2mawi2/tap/schaltwerk failsSolution:- Update Homebrew:
- Try installation again:
- If still failing, manually add tap first:
Session Issues
Can't create new session
Can't create new session
Session stuck in 'Creating' state
Session stuck in 'Creating' state
- Check Schaltwerk logs:
- Look for errors in the log
- Common causes:
- Git worktree creation failed
- Disk space full
- Permission denied
- Try canceling and recreating the session
Terminal won't start
Terminal won't start
- Check terminal permissions:
- System Settings → Privacy & Security → Developer Tools
- Add Terminal.app
- Restart Schaltwerk
- Try selecting the session again
- Check logs for PTY errors:
Can't switch between sessions
Can't switch between sessions
- Check if another app is intercepting shortcuts:
- System Settings → Keyboard → Keyboard Shortcuts
- Look for conflicts with
⌘1-9
- Try clicking session in sidebar instead
- Restart Schaltwerk
Agent Issues
Agent won't start
Agent won't start
- Open Settings
- Go to Agent Configuration
- Verify binary path is correct
- Try:
which claude,which codex, orwhich droidin terminal
- Check Settings → Agent Configuration → Environment Variables
- Add required keys (e.g.,
ANTHROPIC_API_KEY)
- Check Settings → Run & Environment → Worktree Setup Script
- Look for errors in top terminal output
- Try running script manually in worktree
Agent crashes immediately
Agent crashes immediately
- Check agent terminal output for errors
- Common issues:
- Invalid API key
- Network connectivity
- Incompatible CLI arguments
- Try running agent manually:
- Check agent-specific logs
Agent fails with 'ReadableStream is not defined' or similar errors
Agent fails with 'ReadableStream is not defined' or similar errors
.zshrc/.bashrc, so falls back to system Node, which may be outdated.Install Node via Homebrew to set a global default:Agent hangs or becomes unresponsive
Agent hangs or becomes unresponsive
- Check agent terminal - might be waiting for input
- Press
Ctrl+Cto interrupt - Click Restart in session toolbar
- If persists, cancel session and create new one
Git Issues
Merge conflicts when merging to main
Merge conflicts when merging to main
-
Option 1: Merge main into session first
-
Option 2: Cherry-pick specific commits
-
Option 3: Manual merge
- Copy changes you want
- Apply manually to main branch
- Cancel session when done
Worktree directory already exists
Worktree directory already exists
- Check if worktree is actually in use:
- If session was cancelled but worktree remains:
- If worktree is locked:
- Retry session creation
Can't delete branch after canceling session
Can't delete branch after canceling session
Performance Issues
Schaltwerk is slow or laggy
Schaltwerk is slow or laggy
- Each session uses 3 OS processes
- Close unused sessions
- Don’t run more than 5-10 sessions simultaneously
- Big repositories take longer to create worktrees
- Use
.gitignoreto exclude unnecessary files - Clean up
node_modulesin worktrees
Diff view is slow to load
Diff view is slow to load
- Large files slow down diff rendering
- Exclude large binary files from worktrees
- Use
.gitattributesto mark files as binary - Consider breaking up large files
MCP Server Issues
Claude Code can't find MCP server
Claude Code can't find MCP server
- Verify MCP server is built:
- Check configuration:
- Ensure path is absolute, not relative
- Restart orchestrator in Schaltwerk Settings
MCP operations fail
MCP operations fail
schaltwerk_create or other MCP tools errorSolution:- Check Schaltwerk is running
- Verify project is loaded in Schaltwerk
- Check database exists:
- Look for errors in MCP server logs
- Try rebuilding MCP server:
Database Issues
Database locked or corrupted
Database locked or corrupted
- Close Schaltwerk completely
- Check for zombie processes:
- Backup database:
- Try SQLite repair:
- Last resort - delete and recreate:
Network Issues
MCP REST API not accessible
MCP REST API not accessible
localhost:8547Solution:- Check if Schaltwerk is running
- Verify project is loaded
- Check if port is available:
- Try restarting Schaltwerk
- Check firewall settings
Agent can't access internet
Agent can't access internet
- Check system internet connection
- Verify API keys are correct
- Check for proxy settings
- Try agent manually in terminal
- Look for firewall blocking the agent
Logs and Debugging
Where to Find Logs
Debug Mode
Run Schaltwerk with debug logging:Getting Help
If you can’t resolve an issue:Search existing issues
Create an issue
- Steps to reproduce
- Expected behavior
- Actual behavior
- Relevant log excerpts
- macOS version
- Schaltwerk version
Preventive Measures
Regular Cleanup
- Cancel merged sessions
- Remove old worktrees
- Clean up database periodically
Keep Updated
Backup Important Work
- Commit work in sessions regularly
- Push branches to remote
- Don’t rely on local-only sessions
Monitor Resources
- Don’t run too many sessions
- Close unused sessions
- Watch system resource usage

