Triage incoming natural-language prompts to the best-suited specialist agent, then execute with automatic web search support. Prompts are sourced from a curated list and converted into runnable agents; a lightweight triage agent decides which specialist to hand off to.
- Automatic prompt catalog: Uses
prompts.csv(downloaded on first run from the Hugging Face datasetfka/awesome-chatgpt-prompts). - Agent handoffs: Builds a set of specialist agents and triages to the right one via
handoff. - Web search tool: Agents can search the web for up-to-date context.
- Session persistence: Uses a SQLite-backed session for continuity during a run.
- Python 3.13+
- An OpenAI API key
- Internet access (first run downloads the prompt catalog; web search requires network)
We recommend using uv for dependency management.
- Install uv (Windows PowerShell):
irm https://astral.sh/uv/install.ps1 | iex- Sync dependencies:
uv syncThis reads pyproject.toml and installs:
openai-agents(agent runtime, tools, runner)pandas,fsspec,fastparquet(data utilities)huggingface-hub(to fetch the prompt dataset)
Create a .env file in the project root with your keys:
OPENAI_API_KEY=sk-...
# Optional: depending on your configured web search provider/tooling
# TAVILY_API_KEY=...
# SERPAPI_API_KEY=...The app loads environment variables via python-dotenv.
From the project root:
uv run python .\main.pyYou will be prompted to type a task or question. The system will triage it, execute the selected agent (with web search when useful), and print the final output.
On first run, if prompts.csv is not present, it will be downloaded automatically and saved locally.
- Loads (or downloads)
prompts.csvdescribing “acts” and their instructions. - Creates a specialist agent for each row using
openai-agentswith theWebSearchToolenabled. - Wraps each specialist in a
handofftarget with anon_handoffcallback and an input schema. - Creates a triage agent that chooses which handoff to invoke for the user’s prompt.
- Uses
Runner.run_syncto execute and printsfinal_output.
- Prompts: Hugging Face dataset
fka/awesome-chatgpt-prompts
- No output or auth errors: ensure
OPENAI_API_KEYis set in.envand your shell session. - Download issues on first run: ensure internet access; try running again.
- Web search errors: set a supported search API key if required by your environment.
- Python version: ensure you are on Python 3.13+ (see
.python-version).
- Running the model and web search may incur costs with your API provider(s).
- The CLI loop runs until you press Ctrl+C.
- Prompt dataset by the community via
fka/awesome-chatgpt-promptson Hugging Face. - Agent runtime and tools via the
openai-agentsPython package.