Skip to content

Instantly share code, notes, and snippets.

@raoulbia-ai
raoulbia-ai / voice_assistant_rt
Last active October 7, 2024 18:33
This code implements a voice assistant that streams audio input to OpenAI's real-time API, processes the responses, and outputs transcripts, utilizing WebSocket connections for continuous communication.
import os
import pyaudio
import json
import websockets
import asyncio
from dotenv import load_dotenv
import signal
import sys
import base64
import uuid
"""
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.
@raoulbia-ai
raoulbia-ai / claude-flow-codespace-setup-guide.md
Last active October 29, 2025 23:27
Complete setup guide for Claude-Flow AI agent swarms in GitHub Codespaces. Includes universal dev container config for Docker/Kubernetes/Codespaces, authentication workflow, and community-tested troubleshooting. Based on AI Code Chat community discussions.
@raoulbia-ai
raoulbia-ai / mcp-obsidian-whatsapp-windows-setup-guide.md
Last active July 21, 2025 14:40
Complete step-by-step guide for installing and configuring MCP Obsidian and WhatsApp MCP servers on Windows. Includes Node.js setup with nvm-windows, device linking for WhatsApp, Claude Desktop configuration, troubleshooting common issues, and sample JSON configs. Perfect for getting both MCP servers running smoothly on Windows 10/11.

Installing & Running MCP Obsidian and WhatsApp MCP on Windows

Prerequisites

  • 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.

@raoulbia-ai
raoulbia-ai / devcontainer.json
Created August 3, 2025 08:09
claude-flow devcontainer json file
{
"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
}