Multi-Agent Research Workflow Design: From Task Decomposition to Parallel Execution

    This article describes a structured research workflow for AI agents handling complex questions that span multiple sources and verification rounds. It covers how to classify questions, build plans with stop conditions, decide how many sub-agents to use, write delegation instructions, validate enterprise tool calls, and run tool calls in parallel.

    1. Why a Structured Research Workflow Is Needed

    Complex research questions usually involve several information sources, multiple hypotheses, and rounds of verification. When an agent receives such a question and gives a one-shot answer, the result often lacks supporting evidence, may miss key angles, and is hard to review.

    The problem is more acute in enterprise settings. Answers may depend on internal documents, ticket records, configuration data, and monitoring metrics. These sources sit in different systems, and each has its own permissions and data formats.

    A more mature approach splits the agent’s work into observable stages: first judge the nature of the question, then build a plan, then dispatch execution, and finally synthesize an answer. Each stage has clear inputs and outputs, so when something goes wrong, the failure can be traced to a specific step.

    2. Role Definition and Capability Boundaries

    The agent should be defined as a collaborator with the mindset of a senior engineer. It needs three types of capability:

    • The ability to summarize key facts from large volumes of material;
    • The ability to identify the real needs of developers and enterprise users;
    • The ability to write accurate, traceable documents.

    The capability boundaries also need to be stated clearly. The agent must not invent interface parameters, performance numbers, or system behavior. When information cannot be confirmed, the agent should flag the uncertainty and list ways to verify it.

    3. The Four-Step Thinking Loop

    3.1 Assessment and Decomposition

    When a question arrives, the first step is to determine the goal, the constraints, what information is known, and what is missing. Take the question “why latency rises during peak hours for a service.” The assessment stage should list the time range of the latency metrics, the affected interfaces, recent change records, and resource usage.

    Decomposition breaks the large question into sub-questions that can each be answered on their own. A practical test for granularity: can a sub-question be answered from a single source in one retrieval? If yes, stop splitting. If not, keep breaking it down.

    3.2 Query Category Classification

    Different types of questions require different handling. They fall roughly into four categories:

    • Fact lookup: the answer is explicit and lives in a single source, such as the current value of a configuration item;
    • Comparative analysis: multiple options must be compared on their strengths and weaknesses;
    • Troubleshooting and diagnosis: the cause must be narrowed step by step from observed symptoms;
    • Solution design: several feasible options must be generated and evaluated under given constraints.

    The category determines how deep the plan needs to go. A fact lookup usually takes one or two steps. Diagnosis requires multiple rounds of hypothesis and verification. A wrong classification causes one of two problems: either the question gets over-processed, wasting resources, or under-processed, leading to a one-sided conclusion.

    3.3 Plan Construction Based on Category

    A plan should include the goal, required sources, expected output, and completion criteria for each sub-question. The readers of the plan include not only the agent but also the people who review the process, so the plan must be readable on its own. The pseudocode below shows the basic structure of a plan. It is for illustration only:

    1. # Illustrative: build an execution plan based on the question category (pseudocode, structure only)
    2. def build_plan(question, category):
    3. plan = []
    4. if category == "fact_lookup":
    5. plan.append({"sub_question": question,
    6. "source": "knowledge_base",
    7. "max_steps": 2})
    8. elif category == "diagnosis":
    9. plan.append({"sub_question": "Collect recent changes",
    10. "source": "change_log", "max_steps": 3})
    11. plan.append({"sub_question": "Check monitoring metrics",
    12. "source": "metrics", "max_steps": 4})
    13. plan.append({"sub_question": "Verify hypotheses",
    14. "source": "logs", "max_steps": 5})
    15. return plan

    Each plan must state its stop conditions, such as a maximum number of steps, a maximum runtime, or a number of consecutive rounds that produce no new evidence. A loop without a termination condition consumes large amounts of resources and can get stuck repeating retrievals.

    3.4 Execution and Verification

    During execution, check each sub-question’s result against its completion criteria once it finishes. If evidence from different sources conflicts, go back to the decomposition stage and reexamine the question instead of forcing a choice between the answers.

    Verification includes at least three checks: whether the source is reliable, whether the data is recent enough, and whether the conclusion is supported by at least one independent source. If any check fails, the final answer must say so.

    4. Deciding How Many Sub-Agents to Use

    More sub-agents do not always mean better results. Each additional sub-agent adds the cost of copying context, merging results, and coordinating. Three factors help decide how many to use:

    1. Whether the sub-questions are independent of each other. Independent sub-questions suit parallel processing. Dependent ones should run in series.
    2. The context size of each sub-question. If a task requires reading a large amount of material, assigning it to a separate executor keeps the main workflow’s context from being crowded out.
    3. The verifiability of results. Each sub-agent’s output should be easy for the main workflow to check quickly.

    In practice, simple questions do not need delegation. Medium-complexity questions usually need two or three sub-agents. Only large, multi-source, multi-dimensional research needs more. The rule for the number should be written as explicit decision conditions rather than left to the model’s judgment at runtime.

    5. Writing Delegation Instructions

    Delegation instructions are the agreement between the main agent and a sub-agent. A good instruction includes the following:

    • Task goal: the specific question to answer;
    • Scope boundaries: which sources may be used and which are off limits;
    • Output format: structured fields or fixed sections;
    • Completion criteria: when the task counts as done and when it should be escalated;
    • Known information: so the sub-agent does not repeat work that has already been confirmed.

    Here is a sample instruction:

    1. Task: Check how the error rate of the payment service changed over the past 24 hours.
    2. Scope: Use only the monitoring metrics query tool. Do not read any personal user data.
    3. Output: Time period, average error rate, peak time, and change compared with the previous day. Attach the data source for each item.
    4. Completion criteria: All four items must be supported by data. If data is missing for any time period, report the missing interval and stop without inferring values.

    The more specific the instruction, the less likely the sub-agent is to drift off course. Boundary conditions matter just as much, because they determine whether the results can be accepted as is.

    6. Answer Format Conventions

    The answer format should serve the reader’s judgment. Give simple questions a direct conclusion. For complex questions, state the conclusion first, then the supporting evidence, and finally list the uncertainties and follow-up suggestions. The following rules can be adopted:

    • Put the conclusion first, in one sentence;
    • List the evidence with numbers, and note the source for each item;
    • Use code blocks for code, commands, and configuration;
    • Leave out background text and boilerplate that does not relate to the question;
    • Clearly mark anything that cannot be confirmed, rather than hiding it behind vague wording.

    A consistent format lowers the reader’s effort and makes the output easier for automated workflows to parse.

    7. Integrating Internal Enterprise Tools

    Enterprise environments typically include tools for knowledge base search, ticket queries, configuration centers, monitoring platforms, and log services. Three principles apply when connecting these tools:

    1. Least privilege. The agent gets only the read access needed for its task. Any write operation requires manual confirmation.
    2. Unified descriptions. Each tool’s name, parameters, and return structure follow the same description format, so the agent can select tools accurately.
    3. Input validation. Tool parameters come from model output, so their types and value ranges must be validated at the boundary. Values that get concatenated into commands or queries also need escaping to prevent injection.

    The example below shows an allowlist validation approach:

    1. ALLOWED_TOOLS = {
    2. "kb_search": {"read_only": True, "params": ["query", "top_k"]},
    3. "ticket_query": {"read_only": True, "params": ["ticket_id"]},
    4. }
    5. def validate_call(name, args):
    6. if name not in ALLOWED_TOOLS:
    7. raise PermissionError(f"Unregistered tool: {name}")
    8. for key in args:
    9. if key not in ALLOWED_TOOLS[name]["params"]:
    10. raise ValueError(f"Invalid parameter: {key}")

    An allowlist catches unregistered tools and parameters before a call is made, rather than discovering them after execution.

    8. Parallel Tool Calls

    When several tool calls do not depend on each other, they can be issued at the same time, which shortens the total waiting time. The test is simple: does the parameter of a later call depend on the result of an earlier one? If it does, the calls must run in sequence.

    Parallel calls raise two engineering concerns. The first is rate limiting and timeouts, which prevent a burst of requests from overwhelming backend services. The second is result alignment. Each request should carry a unique identifier, and results should be matched by that identifier so responses do not get mixed up.

    9. Core Principles and Implementation Checklist

    1. Understand first, then act. If the scope is unclear, confirm with the user before proceeding.
    2. Every conclusion needs a traceable source.
    3. Every loop needs a termination condition, including a maximum number of steps and a timeout.
    4. Write operations require manual confirmation and must keep a rollback path.
    5. Output only information that directly relates to the question.

    To apply these principles, check each item in the following list:

    • Has the question been classified?
    • Does the plan state its completion criteria?
    • Is there a basis for the number of sub-agents?
    • Do the delegation instructions set clear boundaries?
    • Does the answer flag its uncertainties?