Recipes

Open-weight deep research and data-analysis agent built on Youtu-Agent

From README links · today

Research & KnowledgeSoftware & DevOps

Auto-generated a research agent with synthesized tools, then tuned it via

What they did

Started from the Youtu-Agent repo, which is built on the OpenAI Agents SDK and ships with a config-driven agent runner. They scaffolded a new agent config for a deep-research plus data-analysis use case: web search and page fetching for literature review, a file-processing tool for reading local documents, and a small Python execution tool for tabular analysis. Rather than hand-writing every tool, they used the framework's automated agent generation path — the Workflow mode for the standard research loop, and the Meta-Agent mode to synthesize the missing file-processing tool code, its prompt, and its YAML config. They pointed the model backend at an open-weight model (DeepSeek-V3 style endpoint) instead of a closed API, keeping cost low. After the first runs, they used the Agent Practice module (training-free GRPO) to accumulate experience from prior trajectories and fold it back into the agent's context, so repeated research questions got better without any fine-tuning. Finally they ran the built-in evaluation harness against WebWalkerQA-style multi-hop questions to sanity-check retrieval quality before trusting the agent on real work.

How it went

The agent ran end to end on open-weight models: multi-hop web research, local file reading, and small data analysis all worked from a single config. Tool synthesis produced a working file-processing tool on the first or second attempt, which saved most of the hand-coding. Practice runs measurably improved answer quality on repeated task families at very low cost, and the eval harness gave a concrete number to compare against. Polish level is solid for a research prototype; the generated tool code still needed a read-through, and prompts needed light editing for domain vocabulary.

Worth knowing

Automated tool synthesis is not guaranteed correct — generated code should be reviewed and tested before it touches real files. The practice/RL path needs a working model endpoint and some budget; results depend heavily on the base model. Configs are YAML-heavy and the docs assume familiarity with the OpenAI Agents SDK abstractions. Benchmark numbers in the README come from the authors' setup, not yours, so re-run the eval locally. No hosted UI out of the box; you drive it from the CLI or write a thin wrapper.

Wiring

Clone the repo and install dependencies per the Getting Started section (Python env plus the openai-agents-python package it builds on). Set model credentials in the environment/.env so the runner can reach an open-weight endpoint. Agent behavior lives in YAML configs under configs/agents/ — each config names the model, the tool list, and the prompt. Tools are Python callables registered to the agent; the automated generation path (Workflow mode, then Meta-Agent mode) writes new tool code plus config into that same structure, so review the diff before execution. The runner loads a config by name and executes the loop through the OpenAI Agents SDK. Agent Practice sits alongside as a separate step: it collects trajectories, runs training-free GRPO in-context optimization, and stores experience that later runs load. Evaluation is a separate entry point that reads a dataset and scores outputs, so run it after config changes. For heavier tuning, the RL module integrates with distributed training frameworks, but that is optional and separate from the day-to-day agent loop.

Try it yourself

Read the Youtu-Agent README and docs, then scaffold a new agent config under configs/agents/ for a deep-research + data-analysis assistant. It should: (1) search the web and fetch pages for a literature-review style question, (2) read local PDFs/markdown from a ./docs folder, (3) run small pandas snippets on a CSV I point it at. Use the Workflow generation mode first; if a file-processing tool is missing, use Meta-Agent mode to synthesize the tool code, prompt, and YAML, then show me the generated files for review before running anything. Point the model backend at an open-weight endpoint via env vars, not a closed API. After it runs once on a sample question, wire up Agent Practice so experience from prior runs is reused, and finish by running the eval harness on a handful of multi-hop questions and reporting the scores.

Source

Tools in this stack

Run this stack

Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.

npx runchr install runchr/stack-openai-agents-python-and-python-sdk-893d3ab1
No CLI?curl -s https://api.runchr.com/api/recipes/runchr/stack-openai-agents-python-and-python-sdk-893d3ab1/manifest

This stack has no prompt yet. You get the tools and the wiring, not the prompt.

The manifest is also at api.runchr.com/api/recipes/runchr/stack-openai-agents-python-and-python-sdk-893d3ab1/manifest.