شعار DevSwarm

DevSwarm

المجتمع
justrach

High-performance MCP server, code graph engine & evolutionary algorithm platform in Zig. 33 tools: GitHub project management, agent swarm orchestration, iterative review-fix loops, blast radius analysis, and code navigation via Model Context Protocol.

الناشرjustrach
المستودعdevswarm
اللغةZig
التفريعات
7
النجوم
67
الأدوات المتاحة
0
نوع نقل البياناتstdio
الفئات
الترخيصAGPL-3.0
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح DevSwarm إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 67، والنسخ المتفرعة: 7 في المستودع المرتبط.


The Problem

You're already using Codex, Amp, or Claude Code. It writes code, fixes bugs, answers questions. But it's still one agent doing one thing at a time.

You: "Find all the memory leaks in this codebase and fix them"

  Orchestrator decomposes the task
       │
  ┌────┼────┐
  ▼    ▼    ▼
 [W1] [W2] [W3]   ← parallel agents, each owns a subsystem
  │    │    │
  └────┼────┘
       ▼
  Synthesizer → one clean report back to you

DevSwarm is an MCP server that gives your AI assistant the ability to orchestrate itself — spawning sub-agents, running parallel workloads, and chaining multi-step task pipelines. No new UI. No new workflow.


⚡ Quick Start

Option 1: Download a binary (recommended)

Grab the latest release for your platform from GitHub Releases.

Option 2: Build from source

bash
git clone https://github.com/justrach/codedb.git
cd codedb
zig build          # builds zig-out/bin/devswarm
zig build test     # run all tests

Requirements: Zig 0.15.x, codex and/or claude CLI on PATH, Git


Connect to your AI assistant

Add to ~/.claude.json:

json
{
  "mcpServers": {
    "devswarm": {
      "command": "/path/to/devswarm",
      "args": ["--mcp"],
      "env": { "REPO_PATH": "/path/to/your/repo" }
    }
  }
}

Then run /mcp to verify — you'll see 37 tools added to your assistant.

Add to ~/.codex/config.toml:

toml
[mcp_servers.devswarm]
command = "/path/to/devswarm"
args = ["--mcp"]
env = { REPO_PATH = "/path/to/your/repo" }

Add to your Amp MCP config:

json
{
  "mcpServers": {
    "devswarm": {
      "command": "/path/to/devswarm",
      "args": ["--mcp"],
      "env": { "REPO_PATH": "/path/to/your/repo" }
    }
  }
}

🚀 What You Can Do

Swarms — parallel agents on big tasks

run_swarm("Audit the entire auth system for security issues", max_agents=5)

An orchestrator breaks the task into sub-tasks. Workers run in parallel. A synthesizer combines everything. You get one answer instead of five tabs.

Task Chains — multi-step pipelines

run_task("Fix the race condition in src/queue.zig", preset="reviewer_fixer")

Built-in presets chain agents together automatically:

PresetPipeline
finder_fixerfind the issue → fix it
reviewer_fixerreview → fix reported issues
explore_reportdeep exploration → structured report
architect_builddesign → implement

Review-Fix Loops — iterate until clean

review_fix_loop("Check for memory leaks", max_iterations=3)

Runs reviewer → fixer → reviewer again, until the reviewer says NO_ISSUES_FOUND or hits the iteration cap.

Single Agents with Role + Model Routing

run_agent("Explain the PPR algorithm", role="explorer", mode="deep")

Each agent gets the right model automatically:

RoleModelDoes
finderSonnetSearch and locate
reviewerSonnetReview for correctness
fixerSonnetApply fixes (writable)
explorerSonnetDeep codebase exploration
architectOpusSystem design decisions
orchestratorOpusDecomposes swarm tasks
synthesizerSonnetCombines agent outputs
monitorHaikuLightweight checks
ModeUse when
smartMost tasks
rushQuick answers
deepHard problems, architecture
freeMinimize cost

🔧 Full Tool List (37 tools)

Agents run_agent · run_swarm · run_task · review_fix_loop · run_reviewer · run_explorer · run_zig_infra

Planning decompose_feature · get_project_state · get_next_task · prioritize_issues

Issues create_issue · update_issue · close_issue · get_issue · create_issues_batch · close_issues_batch · link_issues

Issue-filing note: create_issue and create_issues_batch now enforce the issue template implied by CONTRIBUTING.md and the agent issue-discovery standard. Issue bodies must include: one-sentence problem, exact repro, observed result, expected result, nearby passing checks, acceptance criteria, and non-goals. create_issue(parent_issue=...) is context-only: it appends Parent issue: #N to the body. Use link_issues for explicit dependency links.

Git create_branch · get_current_branch · commit_with_context · push_branch · recently_changed · git_history_for

Pull Requests create_pr · get_pr_status · list_open_prs · merge_pr · get_pr_diff · review_pr_impact

Code Intelligence blast_radius · relevant_context · symbol_at · find_callers · find_callees · find_dependents

Repo set_repo


⚙️ How It Works

DevSwarm is a provider-agnostic runtime. When you call run_agent, it:

  1. Resolves — picks backend (Claude or Codex), model tier, system prompt, and tool preamble based on role + mode + what's available on your PATH
  2. Dispatches — spawns the agent on the right backend, falls back automatically if one isn't available
  3. Returns — streams output back through MCP

System prompts are assembled dynamically from agency rules, role instructions, mode guidance, and auto-detected tool availability (zig tools → ripgrep → grep). No hardcoded prompts.


Telemetry

devswarm collects anonymous usage telemetry to help improve the project. This is enabled by default.

What's collected

  • Agent roles used (e.g. "finder", "reviewer", "fixer")
  • Model names (e.g. "claude-sonnet-4-6")
  • Token counts (input/output per worker)
  • Wall time and estimated cost
  • Worker count and parallelism metrics

What's NEVER collected

  • Your code, file contents, or diffs
  • Prompts, task descriptions, or agent outputs
  • Repository names, file paths, or branch names
  • Any personally identifiable information

How to opt out

Edit .devswarm/config.toml:

toml
[telemetry]
enabled = false

Or set the environment variable:

bash
export DEVSWARM_TELEMETRY=false

You can opt out at any time. The telemetry preference is set during onboarding and stored in .devswarm/config.toml.


Contributing

Contributions are welcome. See CONTRIBUTING.md for guidelines before opening a PR.

License

MIT — see LICENSE


Full changelog: README-changelog.md

التثبيت

TypingMind
المتطلبات المسبقة:

Node.js 18+

{
  "mcpServers": {
    "justrach-devswarm": {
      "command": "",
      "args": []
    }
  }
}

استخدم MCP الخاص بـ DevSwarm مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل DevSwarm، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف DevSwarm كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ DevSwarm.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "justrach-devswarm": {
      "command": "npx",
      "args": [
        "-y",
        "devswarm"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ DevSwarm، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ DevSwarm.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام DevSwarm لمساعدتي في هذه المهمة؟
DevSwarm
بالتأكيد. قرأته.
إليك ما وجدته باستخدام DevSwarm.

الأسئلة الشائعة

ما استخدامات خادم MCP DevSwarm؟

DevSwarm هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP DevSwarm مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام DevSwarm مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP DevSwarm مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل DevSwarm، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP DevSwarm بـ TypingMind؟

يعمل DevSwarm عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP DevSwarm في TypingMind؟

يتيح DevSwarm إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP DevSwarm؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان DevSwarm يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇