- Node.js >= 18.0.0
- npm >= 7.0.0
- Git
# Clone the repository
git clone https://github.com/sudocode-ai/sudocode.git
cd sudocode
# Install dependencies for all workspace packages
npm install
# Build all packages (types → cli → mcp → frontend → server)
npm run buildIf you want to test the CLI/server/MCP globally on other projects:
# Link packages (makes sudocode, sudocode-server, sudocode-mcp available globally)
npm run link
# Unlink when done
npm run unlinkNow you can use sudocode commands anywhere, pointing to your local development build.
npm run dev:server
# Server runs at http://localhost:3000 with auto-reload on changes# Run all tests
npm test
# Test specific package
npm --prefix cli test -- --run
npm --prefix server test -- --run
npm --prefix frontend test -- --run
# Test specific file
npm --prefix server test -- --run tests/unit/services/editor-service.test.ts
# Test with pattern matching
npm --prefix frontend test -- --run -t "auto-save"
# Watch mode for active development
npm --prefix frontend test
npm --prefix cli testIf you encounter dependency conflicts or build issues:
npm unlink
npm run clean
npm run build
npm linkContributions licensed under Apache 2.0.