🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
Checkpoint: File edits
rUvac69a0311b7b
diff --git a/.claude/agents/dual-mode/codex-coordinator.yaml b/.claude/agents/dual-mode/codex-coordinator.yamldeleted file mode 100644index ffbe3a2e79..0000000000--- a/.claude/agents/dual-mode/codex-coordinator.yaml+++ /dev/null@@ -1,150 +0,0 @@-name: codex-coordinator-description: Coordinates multiple headless Codex workers for parallel execution-type: coordinator-platform: dual--# Execution mode-execution:- mode: interactive- spawns_workers: true- worker_type: codex-worker--# Capabilities-capabilities:- - swarm-coordination- - task-decomposition- - result-aggregation- - worker-management--# MCP Integration-mcp:- enabled: true- tools:- - swarm_init- - swarm_status- - agent_spawn- - memory_search- - memory_store- - memory_list- - hive-mind_init- - hive-mind_spawn--# Coordination patterns-patterns:- parallel_workers:- description: Spawn multiple workers for parallel execution- steps:- - swarm_init: { topology: hierarchical, maxAgents: 8 }- - spawn_workers:- - { type: coder, count: 2 }- - { type: tester, count: 1 }- - { type: reviewer, count: 1 }- - wait_for_completion- - aggregate_results-- sequential_pipeline:- description: Chain workers in sequence- steps:- - spawn: architect- - wait_for: architecture- - spawn: [coder-1, coder-2]- - wait_for: implementation- - spawn: tester- - wait_for: tests- - aggregate_results--# Prompts-prompts:- coordinate_parallel: |- You are the coordinator for a parallel Codex swarm.-- TASK: {{task_description}}-- STEP 1: Initialize swarm- ```bash- npx claude-flow swarm init --topology hierarchical --max-agents {{worker_count}}- ```-- STEP 2: Spawn headless workers- {{#each workers}}- ```bash- claude -p "{{this.prompt}}" --session-id {{this.id}} &- ```- {{/each}}-- STEP 3: Wait for completion- ```bash- wait- ```-- STEP 4: Aggregate results- ```bash- npx claude-flow memory list --namespace results- ```-- spawn_worker: |- Spawning worker: {{worker_name}}- Task: {{worker_task}}- Session: {{session_id}}-- ```bash- claude -p "- You are {{worker_name}}.-- TASK: {{worker_task}}-- 1. Search memory: memory_search(query='{{task_keywords}}')- 2. Execute your task- 3. Store results: memory_store(key='result-{{session_id}}', namespace='results', upsert=true)- " --session-id {{session_id}} &- ```--# Worker templates-workers:- coder:- prompt_template: |- You are a coder worker.- Implement: {{task}}- Path: {{output_path}}- Store results when complete.-- tester:- prompt_template: |- You are a tester worker.- Write tests for: {{task}}- Path: {{test_path}}- Run tests and store results.-- reviewer:- prompt_template: |- You are a code reviewer.- Review: {{files}}- Check for: security, performance, best practices- Store findings in memory.-- documenter:- prompt_template: |- You are a documentation writer.- Document: {{component}}- Output: {{doc_path}}- Store completion status.--# Examples-examples:- - name: Feature implementation swarm- description: Coordinate 4 workers for feature implementation- script: |- #!/bin/bash- FEATURE="user-auth"-- # Initialize- npx claude-flow swarm init --topology hierarchical --max-agents 4-- # Spawn workers- claude -p "Architect: Design $FEATURE" --session-id ${FEATURE}-arch &- claude -p "Coder: Implement $FEATURE" --session-id ${FEATURE}-code &- claude -p "Tester: Test $FEATURE" --session-id ${FEATURE}-test &- claude -p "Docs: Document $FEATURE" --session-id ${FEATURE}-docs &-- wait- npx claude-flow memory list --namespace resultsdiff --git a/.claude/agents/dual-mode/codex-worker.yaml b/.claude/agents/dual-mode/codex-worker.yamldeleted file mode 100644index 8e9eb447ee..0000000000--- a/.claude/agents/dual-mode/codex-worker.yaml+++ /dev/null@@ -1,99 +0,0 @@-name: codex-worker-description: Headless Codex background worker for parallel task execution-type: worker-platform: codex--# Execution mode-execution:- mode: headless- command: claude -p- parallel: true- background: true--# Capabilities-capabilities:- - code-generation- - file-operations- - test-writing- - documentation--# MCP Integration-mcp:- enabled: true- tools:- - memory_search- - memory_store- - swarm_init- - agent_spawn--# Self-learning workflow-learning:- before_task:- - action: memory_search- query: "{{task_keywords}}"- namespace: patterns- after_task:- - action: memory_store- key: "result-{{task_id}}"- namespace: results- upsert: true--# Prompts-prompts:- system: |- You are a headless Codex worker executing in background.-- WORKFLOW:- 1. Search memory for relevant patterns before starting- 2. Execute your assigned task- 3. Store results in memory for coordination-- MCP TOOLS AVAILABLE:- - memory_search: Find similar past patterns- - memory_store: Save results and patterns (use upsert=true)-- Always store your results so the coordinator can track progress.-- task_template: |- TASK: {{task_description}}- SESSION: {{session_id}}-- STEP 1: Search for patterns- Use tool: memory_search- query: "{{task_keywords}}"- namespace: "patterns"-- STEP 2: Execute the task- {{task_instructions}}-- STEP 3: Store results- Use tool: memory_store- key: "result-{{session_id}}"- value: "{{summary_of_work}}"- namespace: "results"- upsert: true--# Resource limits-limits:- max_budget_usd: 0.50- timeout_seconds: 300--# Examples-examples:- - name: Implement feature- command: |- claude -p "- You are codex-worker implementing user authentication.- 1. Search memory for auth patterns- 2. Implement in src/auth/- 3. Store results in memory- " --session-id auth-impl &-- - name: Write tests- command: |- claude -p "- You are codex-worker writing tests.- 1. Search memory for test patterns- 2. Write tests in tests/- 3. Store coverage results- " --session-id tests &diff --git a/.claude/agents/dual-mode/dual-orchestrator.yaml b/.claude/agents/dual-mode/dual-orchestrator.yamldeleted file mode 100644index 5201f23b41..0000000000--- a/.claude/agents/dual-mode/dual-orchestrator.yaml+++ /dev/null@@ -1,175 +0,0 @@-name: dual-orchestrator-description: Orchestrates Claude Code (interactive) + Codex (headless) for hybrid workflows-type: orchestrator-platform: dual--# Mode configuration-modes:- interactive:- platform: claude-code- use_for:- - complex-reasoning- - architecture-decisions- - debugging- - real-time-review-- headless:- platform: codex- use_for:- - parallel-execution- - batch-processing- - code-generation- - documentation- - testing--# Routing rules-routing:- # Route to headless Codex- codex_patterns:- - "implement * in parallel"- - "generate * files"- - "write tests for *"- - "document *"- - "batch process *"-- # Keep in interactive Claude Code- claude_patterns:- - "explain *"- - "debug *"- - "design *"- - "review with me *"- - "help me understand *"--# MCP Integration (shared)-mcp:- enabled: true- shared_tools:- - memory_search- - memory_store- - swarm_init- - swarm_status- - agent_spawn--# Workflow patterns-workflows:- hybrid_development:- name: Hybrid Development Flow- description: Use Claude Code for design, Codex for implementation- steps:- - phase: design- platform: claude-code- interactive: true- tasks:- - Discuss requirements- - Design architecture- - Store design in memory-- - phase: implement- platform: codex- parallel: true- workers:- - type: coder- count: 2- - type: tester- count: 1-- - phase: review- platform: claude-code- interactive: true- tasks:- - Review implementation- - Discuss improvements- - Finalize-- parallel_feature:- name: Parallel Feature Implementation- steps:- - action: swarm_init- args: { topology: hierarchical, maxAgents: 6 }-- - action: spawn_headless- workers:- - { role: architect, task: "Design feature" }- - { role: coder-1, task: "Implement core" }- - { role: coder-2, task: "Implement API" }- - { role: tester, task: "Write tests" }- - { role: docs, task: "Write documentation" }-- - action: wait_all-- - action: interactive_review- platform: claude-code--# Prompts-prompts:- decide_platform: |- Analyzing task: {{task}}-- ROUTING DECISION:- {{#if requires_interaction}}- → Use Claude Code (interactive)- Reason: {{interaction_reason}}- {{else}}- → Use Codex (headless)- Reason: Can run in background, parallelizable- {{/if}}-- spawn_hybrid: |- HYBRID WORKFLOW: {{workflow_name}}-- INTERACTIVE (Claude Code):- {{interactive_tasks}}-- HEADLESS (Codex - parallel):- {{#each headless_workers}}- claude -p "{{this.prompt}}" --session-id {{this.id}} &- {{/each}}-- COORDINATION:- All workers share memory via claude-flow MCP tools.- Results stored in 'results' namespace.-- aggregate: |- COLLECTING RESULTS:-- ```bash- npx claude-flow memory list --namespace results- ```-- SYNTHESIS:- {{#each results}}- - {{this.worker}}: {{this.summary}}- {{/each}}--# Examples-examples:- - name: Build API feature- interactive_phase: |- Let's design the API endpoints together.- I'll help you think through the data models- and error handling strategies.-- headless_phase: |- claude -p "Implement GET /users endpoint" &- claude -p "Implement POST /users endpoint" &- claude -p "Write integration tests" &- wait-- review_phase: |- Now let's review what the workers produced.- I'll help identify any issues or improvements.-- - name: Refactor module- interactive_phase: |- Let's analyze the current code structure- and plan the refactoring approach.-- headless_phase: |- claude -p "Refactor authentication module" &- claude -p "Update all imports" &- claude -p "Run test suite" &- wait-- review_phase: |- Let's verify the refactoring is complete- and all tests pass.diff --git a/.claude/skills/dual-mode/dual-coordinate.md b/.claude/skills/dual-mode/dual-coordinate.mdnew file mode 100644index 0000000000..f44ced202b--- /dev/null+++ b/.claude/skills/dual-mode/dual-coordinate.md@@ -0,0 +1,85 @@+---+name: dual-coordinate+description: Coordinate hybrid Claude Code + Codex workflows+---++# Dual Coordinate Skill++Coordinate hybrid workflows that use Claude Code for interactive reasoning and Codex for parallel background execution.++## Usage++```+/dual-coordinate --workflow <workflow-name> --task "<task-description>"+```++## Parameters++| Parameter | Default | Description |+|-----------|---------|-------------|+| `--workflow` | hybrid_development | Workflow template to use |+| `--task` | required | Task description |+| `--interactive-first` | true | Start with interactive phase |++## Available Workflows++### hybrid_development+Design interactively, implement in parallel, review interactively.++```+/dual-coordinate --workflow hybrid_development --task "Build user authentication"+```++### parallel_feature+Spawn multiple Codex workers for parallel implementation.++```+/dual-coordinate --workflow parallel_feature --task "Implement REST API"+```++### design_and_execute+Interactive design phase, then batch execution.++```+/dual-coordinate --workflow design_and_execute --task "Refactor auth module"+```++## How It Works++1. **Routing Decision**: Analyzes task to determine optimal platform split+2. **Interactive Phase**: Complex reasoning in Claude Code+3. **Parallel Phase**: Spawns Codex workers for execution+4. **Review Phase**: Returns to Claude Code for quality review+5. **Result Collection**: Aggregates worker results from memory++## Generated Commands++```bash+# Phase 1: Interactive (Claude Code)+# [Current session handles design/planning]++# Phase 2: Parallel (Codex)+{{#each workers}}+claude -p "{{this.task}}" --session-id {{this.id}} &+{{/each}}+wait++# Phase 3: Review (Claude Code)+npx claude-flow@v3alpha memory list --namespace results+```++## Example: Full Hybrid Workflow++```+/dual-coordinate --workflow hybrid_development --task "Build user profile API"+```++This will:+1. **Design Phase** (Interactive): Discuss requirements, design endpoints, plan implementation+2. **Implement Phase** (Headless): Spawn coders, testers, docs writers in parallel+3. **Review Phase** (Interactive): Review implementation, discuss improvements++## Related Skills++- `/dual-spawn` - Spawn headless workers only+- `/dual-collect` - Collect results from workers