A comprehensive guide to setting up and using Claude-Flow with swarms in GitHub Codespaces, based on real community discussions and proven workflows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import pyaudio | |
| import json | |
| import websockets | |
| import asyncio | |
| from dotenv import load_dotenv | |
| import signal | |
| import sys | |
| import base64 | |
| import uuid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| OpenAI Agent SDK & MCP Example: Rental Listings Orchestration | |
| This script demonstrates orchestrating multiple AI agents using the OpenAI Agent SDK (`agents` library) | |
| and its Model Context Protocol (MCP) extension (`openai-agents-mcp`) | |
| to automate the process of finding rental listings and notifying users. | |
| Key Concepts Illustrated: | |
| - Agent Definition: Defining specialized agents (`ListingURLsAgent`, `IndividualListingAgent`, `EmailMetadataAgent`, `OrchestratorAgent`) | |
| using both the core `agents.Agent` and MCP-enabled `agents_mcp.Agent` classes. |
- Admin rights on your system
- Windows 10/11 (PowerShell or CMD for all terminal steps)
- Node.js v23.10.0 or later (installed via nvm-windows is recommended)
- Git
- Claude Desktop or another MCP-compatible agent
Change any part of the paths to match your folders.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "name": "Claude Flow Development", | |
| "image": "mcr.microsoft.com/devcontainers/base:debian", | |
| "features": { | |
| "ghcr.io/devcontainers/features/node:1": {}, | |
| "ghcr.io/devcontainers/features/python:1": {}, | |
| "ghcr.io/devcontainers/features/docker-in-docker:2.12.2": { | |
| "version": "latest", | |
| "moby": true | |
| } |