π 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
rUv3be634368d5b
diff --git a/AGENTS.md b/AGENTS.mdindex 33d41505e3..cc07592feb 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -5,43 +5,69 @@----## π¨ CRITICAL: HOW SWARMS WORK+## π¨ CRITICAL: CODEX DOES THE WORK, CLAUDE-FLOW ORCHESTRATES-**YOU (Codex) ARE THE AGENT.** The swarm commands create coordination infrastructure, not separate AI instances.+```+βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+β CLAUDE-FLOW = ORCHESTRATOR (tracks state, coordinates) β+β CODEX = WORKER (writes code, runs commands, implements) β+βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+```-### Execution Model-1. `swarm init` β Creates coordination state in `.swarm/`-2. `agent spawn` β Registers agent slots (not real processes)-3. `swarm start` β Sets objective and strategy-4. **YOU execute the tasks** β Codex does the actual work-5. Report progress via `task` and `memory` commands+### β WRONG: Expecting claude-flow to execute tasks+```bash+npx claude-flow swarm start --objective "Build API"+# WRONG: Waiting for claude-flow to build the API+# Claude-flow does NOT execute code!+```-### Correct Workflow+### β CORRECT: Codex executes, claude-flow tracks```bash-# 1. Initialize coordination-npx claude-flow swarm init --topology hierarchical --max-agents 5+# 1. Tell claude-flow what you're doing (optional coordination)+npx claude-flow swarm init --topology hierarchical --max-agents 1+npx claude-flow agent spawn --type coder --name codex-worker++# 2. YOU (CODEX) DO THE ACTUAL WORK:+mkdir -p src+cat > src/api.ts << 'EOF'+export function hello() { return "Hello World"; }+EOF++# 3. Report to claude-flow what you did (optional)+npx claude-flow memory store --key "api-created" --value "src/api.ts" --namespace results+```-# 2. Register your role-npx claude-flow agent spawn --type coder --name codex-main+### The Division of Labor-# 3. Set objective-npx claude-flow swarm start --objective "Your task" --strategy development+| Component | Role | Examples |+|-----------|------|----------|+| **CODEX** | EXECUTES | Write files, run tests, create code, shell commands |+| **claude-flow** | ORCHESTRATES | Track agents, store memory, coordinate tasks |++### When to Use Claude-Flow Commands++| Use Case | Claude-Flow Command | Then Codex Does |+|----------|---------------------|-----------------|+| Track progress | `memory store --key "step1" --value "done"` | Continue to next step |+| Multi-step tasks | `task create --description "step 2"` | Execute step 2 |+| Store results | `memory store --key "output" --value "..."` | Move on |+| Coordinate | `swarm init` | Start working |++### Hello World - Correct Pattern++```bash+# STEP 1: Optional - register with orchestrator+npx claude-flow swarm init --topology mesh --max-agents 1-# 4. NOW DO THE WORK YOURSELF:-# - Read files, write code, run tests-# - Store results in memory-# - Update task status when done+# STEP 2: CODEX DOES THE WORK+echo 'console.log("Hello World!");' > hello.js+node hello.js-# 5. Mark completion-npx claude-flow task create --type implementation --description "Task done"-npx claude-flow memory store --key "result" --value "Hello World executed" --namespace results+# STEP 3: Optional - report completion+npx claude-flow memory store --key "hello-result" --value "printed Hello World" --namespace results```-### Key Understanding-- **Swarm = Coordination layer** (state tracking, not execution)-- **Codex = The actual worker** (you do the real tasks)-- **Memory = Shared state** (store your results here)-- **Tasks = Progress tracking** (update status as you work)+**REMEMBER: If you need something DONE, YOU do it. Claude-flow just tracks.**---