Mofa research

From mofa-org/mofa-skills · View interactive version

Mofa research is an AI agent skill from the GitHub repository mofa-org/mofa-skills. Deep research pipeline — dynamic parallel multi-angle search, analyze, and synthesize. Triggers: deep research, 深度研究, 深度调查, comprehensive research, research report, 研究报告

How to use this skill

Skill file

mofa-research

A DOT-based deep research pipeline that dynamically plans N search angles via LLM, executes them in parallel, then analyzes and synthesizes sequentially:

plan_and_search ──(N dynamic workers)──→ analyze ──→ synthesize
                                          (strong)    (strong, goal gate)
  1. Plan — LLM generates 4-6 search angles tailored to the query (strong model)
  2. Search — Spawns N search agents concurrently (cheap model, web tools)
  3. Analyze — Cross-references all search outputs, organizes by subtopic (strong model)
  4. Synthesize — Produces a structured report with citations (strong model, goal gate)

Usage

run_pipeline(pipeline="mofa-research/deep_research", input="<research topic>")

The pipeline file is at ~/.octos/skills/mofa-research/deep_research.dot.

How it works

The plan_and_search node uses handler="dynamic_parallel":

  1. The planner LLM call generates a JSON array of {task, label} objects
  2. Each task becomes a synthetic Codergen worker node with the worker_prompt template
  3. All workers run concurrently via futures::join_all
  4. When all complete, their outputs are merged and fed to the analyze node
  5. Fallback: if the planner fails or returns <2 tasks, 3 generic angles are used

Compared to the old static parallel approach (4 hardcoded angles), dynamic_parallel:

Performance

With dynamic parallel search agents (~300s each):

Data flow between nodes

Each worker runs an independent agent with fresh context plus the original user input.

Customization

Copy deep_research.dot and edit:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.