MergeLoop is host-agnostic and worker-agnostic.
- Node.js 20+
- At least one worker CLI installed/authenticated (
codex,gemini,ollama, or custom worker tool) - MCP-capable host (or run MergeLoop directly and wire it manually)
npm ci
npm test
npm run build
npm run smokeRecommended interactive onboarding:
npm run setupSafe repo-local first run:
npm run setup -- --yes --host=generic --workers=gemini,ollama,codexThat keeps the first end-to-end test inside the repo by updating local mergeloop.settings.json and .mcp.json instead of writing to home-directory host configs.
Check environment:
npm run doctorIf doctor reports missing external CLIs, install/auth those tools or disable their worker entries.
Missing worker CLIs are external dependency checks, not MergeLoop build failures.
claude --plugin-dir .Register dist/server.js as an MCP stdio server.
Configure MergeLoop in ~/.gemini/settings.json and reload Gemini.
See gemini.md for the exact config and test prompt.
Templates in integrations/ for:
- VS Code
- Cursor
- Windsurf
- OpenClaw
- Zed
- Neovim
- JetBrains
Configure workers in workers:
{
"workers": {
"codex": { "type": "cli", "command": "codex", "enabled": true, "priority": 10 },
"gemini": { "type": "cli", "command": "gemini", "enabled": true, "priority": 20 },
"ollama": {
"type": "cli",
"command": "ollama run llama3.1 \"{task}\"",
"enabled": false,
"priority": 40
}
}
}npm ci
npm run build
npm run smoke
gemini
ollama pull qwen3:latest
ollama serve
npm run doctorRun gemini once to complete login/auth if not already configured.
Gemini MCP config (~/.gemini/settings.json):
{
"mcpServers": {
"mergeloop": {
"command": "node",
"args": ["D:/Ideas/MergeLoop/dist/server.js"]
}
}
}Then restart/reload Gemini and run:
Use mergeloop.mergeloop_run with workers gemini, local, codex and return disagreements + next checks.
- discovery controls candidate registration from MCP configs and CLI candidates
- routing scores workers per task and selects one or many workers
See:
- setup.md
- host-autoconfig.md
- rollback.md
- configuration.md
- discovery.md
- routing.md
- ollama.md
- gemini.md
MergeLoop can be used as Daena council middleware.
References: