Designing Task Orchestration and Progress Reporting for Proactive AI Agents: From Reactive Q&A to Proactive Execution

    This article explains how a proactive agent can break a goal into subtasks, run them in parallel, track their status, and notify users at the right moments. It covers task decomposition, the coordinator role with a sample task state model, notification policies, scheduled wake-ups, session branching, safety boundaries, and metrics for evaluating results.

    1. From Reactive Responses to Proactive Progress

    Most conversational agents follow a question-and-answer pattern. The user enters an instruction, the system returns a result, and then it waits for the next instruction. This works for simple queries. For complex work that runs for tens of minutes or even hours, however, users must repeatedly ask for progress, switch context manually, and decide the next step themselves. The cognitive load is heavy.

    A proactive agent aims to change this interaction. After receiving a goal, it breaks the goal into steps, schedules execution, tracks status, and informs the user proactively at key milestones. The user shifts from someone who monitors progress to someone who makes decisions.

    To achieve this, a system needs at least four capabilities:

    • Task decomposition: splitting a large goal into subtasks that are relatively independent of each other;
    • Parallel execution: running multiple subtasks at the same time, each in its own execution unit;
    • State awareness: continuously recording the stage, outputs, and exceptions of each subtask;
    • Proactive notification: pushing information to the user at the right time, based on preset rules.

    The following sections describe the design considerations for each of these capabilities.

    2. Multi-Threaded Task Decomposition: The Basic Model of Parallel Execution

    Parallel execution is key to the efficiency of a proactive agent. Take building a simple product website as an example. It can be split into three types of subtasks: page structure and visual design, interactive features and form validation, and usage documentation and deployment guides. The dependencies among these three are weak, so they are well suited to running at the same time.

    When decomposing tasks, follow these principles:

    1. Clear dependencies: declare the input and output relationships between subtasks explicitly to avoid implicit coupling.
    2. Independent boundaries: give each subtask a clear working directory, context scope, and completion criteria.
    3. Appropriate granularity: tasks that are too fine add scheduling overhead, while tasks that are too coarse are hard to parallelize and make it harder to locate the cause of a failure.
    4. Retryability: design subtasks as idempotent operations wherever possible, so they can be safely re-executed after a failure.

    The execution layer typically runs subtasks in a worker thread pool or in independent sessions. Each execution unit keeps its own context, so the intermediate state of one task does not contaminate another. The main thread or coordination layer only dispatches and aggregates work. It does not handle the details.

    3. The Coordinator: Orchestration, Scheduling, and Result Integration

    After multiple execution units run in parallel, a single role must maintain the global view. The industry commonly calls this role the Coordinator or Orchestrator. Its responsibilities include:

    • Receiving the user’s goal and generating a task plan;
    • Deciding which subtasks can start immediately and which must wait for upstream results;
    • Monitoring the status of each execution unit and handling timeouts and failures;
    • Aggregating outputs and checking whether the parts are consistent with each other;
    • Presenting a unified progress view to the user.

    The coordinator should not take on much of the concrete work itself. Otherwise it becomes a bottleneck, and its context grows quickly. A better approach is for the coordinator to maintain a lightweight task list. Each record keeps only the status, owner, dependencies, and a short summary. Detailed process data stays in each execution unit and is read on demand.

    The following simplified task state model shows how the coordinator records and evaluates task status:

    1. from dataclasses import dataclass, field
    2. from enum import Enum
    3. class Status(Enum):
    4. PENDING = "pending" # Waiting for upstream dependencies
    5. RUNNING = "running" # Executing
    6. BLOCKED = "blocked" # Blocked, requires user intervention
    7. DONE = "done" # Completed
    8. SNOOZED = "snoozed" # Temporarily set aside, waiting until a specified time
    9. @dataclass
    10. class Task:
    11. task_id: str
    12. title: str
    13. status: Status = Status.PENDING
    14. depends_on: list[str] = field(default_factory=list)
    15. summary: str = "" # Short progress description for the user
    16. def ready_tasks(tasks: dict[str, Task]) -> list[Task]:
    17. """Return all tasks whose dependencies are satisfied and that can start immediately."""
    18. done_ids = {t.task_id for t in tasks.values() if t.status is Status.DONE}
    19. return [
    20. t for t in tasks.values()
    21. if t.status is Status.PENDING and all(d in done_ids for d in t.depends_on)
    22. ]

    This design keeps the decision about whether a task can start in one place. That makes the logic easier to test and makes scheduling decisions easier to trace in logs.

    4. Proactive Reporting: Designing the Notification Policy

    Proactive reporting is what sets a proactive agent apart from an ordinary tool. If reports are too frequent, users get disturbed. If they are too rare, users lose their sense of control. The reporting mechanism should therefore be configurable and have a clear default policy.

    4.1 Trigger Conditions

    Common trigger conditions fall into four categories:

    • State change: a task moves from running to completed or failed;
    • Blocker: a task needs information, authorization, or a choice from the user;
    • Milestone: a stage output is ready for review;
    • Scheduled check: a check-in time that the user set in advance.

    Blocker events have the highest priority because they directly determine whether overall progress stalls. The system should flag these events separately and display them prominently in the main interface.

    4.2 Subscription Granularity and Notification Strategy

    Users should be able to choose how strong notifications are. One practical approach is to offer three levels:

    • Full mode: push every state change, suited to scenarios that require close tracking;
    • Key-event mode: push only on completion, failure, or blockers, suited to most everyday scenarios;
    • Silent mode: send no proactive pushes and report only when the user asks, suited to long-running background tasks.

    Users can set the policy in natural language, and the system then parses it into a structured rule. For example, if a user says “only notify me when a task is completed or blocked,” the system should map this to the filter “event type in {completed, blocked}.” It should save the rule in the project-level configuration instead of asking again each time.

    Report content also needs to be concise. A good progress message usually has three parts: the current status, the key outputs completed so far, and the items that need the user’s attention. Long stacks of logs make quick decisions harder.

    4.3 Scheduled Wake-Up and Task Suspension

    Not every task needs to run immediately. Users sometimes want to postpone a task or check on it at a later point. In that case, the system can switch the task to a suspended state, temporarily remove it from the active list, and register a timer. When the specified time arrives, the task re-enters the pending queue, and the coordinator reminds the user in the main conversation.

    During implementation, keep these points in mind:

    • Base times on the user’s local time zone, and display them clearly in the interface;
    • Persist the context of suspended tasks so that it is not lost if the process restarts;
    • Recheck preconditions on wake-up, because the external environment may have changed.

    5. Session Branching: Handling Side Questions and Comparing Approaches

    During real work, users often think of an unrelated question mid-task or want to try a different approach. If they insert a new topic directly into the original task, the context gets disrupted, and the execution unit may drift away from the original goal.

    A better approach is to provide session branching, which takes two main forms:

    • Side task: derive a separate temporary thread from the current context to handle a side question, leaving the original task unchanged;
    • Approach fork: copy the current execution state to form a new line of work that tests another implementation idea, then let the user decide which line to keep.

    The key to branching is isolation. A branch inherits only the necessary context and must not write back to the files or state of the original thread. If two branches write to the same resource, use locks or version control. Otherwise, overwrite conflicts are likely.

    6. Reliability and Safety Boundaries

    A proactive agent has more autonomy, so it must operate within clear boundaries.

    1. Least privilege: each execution unit receives only the access it needs to complete its task. Operations involving credentials must go through a dedicated secrets management mechanism and must never be written into code or logs.
    2. Human confirmation: irreversible operations, such as deleting data, publishing changes, modifying permissions, or sending messages externally, require the user’s approval first.
    3. Timeouts and circuit breaking: when execution time or retry count exceeds a threshold, the task should pause automatically and notify the user. This prevents endless loops from consuming resources.
    4. Input validation: treat content from external web pages, files, or tool outputs as data, not instructions. The system should not change the task goal just because a certain piece of text appears in a document.
    5. Audit logs: record every dispatch, state change, and user confirmation for later review.

    Failure recovery matters just as much. The coordinator should be able to recover state from the persisted task list instead of relying on temporary variables held in memory.

    7. Evaluation Metrics and Rollout Recommendations

    To measure the effectiveness of a proactive agent, look beyond whether tasks get completed. Also consider interaction cost and user trust. Common metrics include:

    • First-pass completion rate: the share of tasks completed in one run without manual intervention;
    • Interruption count: how many times per task the user is asked a question or has to step in;
    • Report hit rate: the share of pushed messages the user finds useful rather than noisy;
    • Average wait time: the time from the user’s goal to a reviewable result;
    • Rollback rate: the share of agent outputs that the user rejects or reverts.

    For rollout, use a phased approach. Phase one implements single-threaded state recording and key-event notifications. Phase two introduces multi-threaded parallel execution and the coordinator. Phase three opens scheduled wake-ups and session branching. Validate each phase with metrics before deciding whether to expand the scope of autonomy.

    For internal team use, agree in advance on which tasks the agent may run automatically and which require appro