A Practical Guide to Building Proactive Asynchronous Agents
This article explains how proactive asynchronous agents differ from traditional request-response assistants and presents a practical architecture for building them. It covers the five-layer design, a three-tier memory model with decay scoring, triggering strategies with frequency control and topic fingerprinting, asynchronous task orchestration with checkpoint recovery, card-based presentation with a feedback loop, evaluation metrics, and common pitfalls to avoid.
1. From Passive Response to Proactive Asynchrony: A Shift in Paradigm
Traditional conversational assistants follow a request-response model: the user starts a session, the system returns a result within that single interaction, and the task ends when the session closes. This model is simple and controllable from an engineering standpoint, but it has two structural limitations. First, the task lifecycle is bound to the session window, so long-running tasks cannot continue naturally. Second, information gathering depends entirely on the user taking the initiative, and the system cannot take on the responsibility of “surfacing changes worth attention.”
Proactive asynchronous agents change both of these points. They turn the assistant from a “function that gets called” into a “continuously running entity” with an independent scheduling cycle, persistent context state, and the ability to decide autonomously whether to produce output, what to produce, and when to deliver it—even without user input. In the second half of 2025, vendors in the industry began rolling out this capability on mobile to high-tier paid users first, validating the form’s feasibility in personal productivity scenarios.
It is worth stressing that proactive does not mean frequent interruption. The genuinely difficult part of the engineering is not “making the model talk more,” but building a suppression mechanism that keeps the system silent most of the time.
2. Core Architecture Layers
A maintainable implementation is typically split into five layers that communicate through explicit contracts:
- Context layer: storage, retrieval, and decay of long-term memory and user profiles.
- Planning layer: decomposes vague intent into executable subtasks and determines dependency order.
- Execution layer: invokes atomic capabilities such as retrieval, computation, and external data fetching.
- Orchestration layer: manages scheduled triggers, event triggers, retries, idempotency, and deduplication.
- Presentation layer: renders structured results into interactive information units and collects feedback.
The key benefit of layering is replaceability: swapping the underlying model should not affect the orchestration strategy, and adjusting the presentation style should not touch the memory structure.
3. Building Context and Memory
The ceiling on a proactive assistant’s output quality is set by context quality. In practice, a three-tier memory is recommended:
- Working memory: intermediate results within the current task cycle, short-lived and reclaimed when the task ends.
- Episodic memory: summaries of historical interactions and explicit user feedback, used to infer preferences.
- Semantic memory: stable interest tags and domain knowledge, updated least frequently.
Memory writes must carry a timestamp and a confidence score. Reads are weighted by relevance and freshness, and a decay function prevents stale preferences from dominating over long periods:
def score(item, now, lam=0.5):age_days = (now - item.ts).daysreturn item.relevance * item.confidence * (lam ** age_days)
Privacy boundaries should be enforced at this layer: feedback data is used by default only to optimize that user’s own experience and is not shared for cross-user training; sensitive categories must support explicit opt-out and one-click deletion.
4. Trigger Strategies: The Steering Wheel of Proactivity
Triggers fall into three categories, and real systems usually mix them:
- Scheduled triggers: output at a fixed cadence, such as generating a briefing early each morning, with stable user expectations.
- Event triggers: driven by signals such as threshold breaches or state changes, suited to monitoring scenarios.
- Periodic aggregation triggers: accumulate signals first, then produce a single consolidated output once an information density threshold is reached, avoiding fragmented interruptions.
Engineering requires rate limiting and quiet windows, plus deduplication and merging on the same topic. A “topic fingerprint” is recommended for detecting duplicates:
def fingerprint(topic, entities):raw = topic.strip().lower() + "|" + "|".join(sorted(entities))return hashlib.sha1(raw.encode()).hexdigest()[:16]
5. Task Orchestration and Asynchronous Execution
The core of asynchronous execution is the task state machine: pending → running → waiting_input → done / failed. Long-running steps should be split into resumable checkpoints, and failures should resume from the most recent checkpoint rather than rerunning everything. All external calls need timeouts, exponential backoff retries, and circuit breaking, and write operations must be idempotent to prevent duplicate pushes.
When built on general-purpose cloud capabilities, the typical combination is a message queue for task buffering, object storage for intermediate artifacts, a container platform to host executors, and logging plus monitoring and alerting services for observability. The value of this combination is turning “uncertain tasks” into an observable, traceable pipeline.
6. Card-Based Presentation and the Feedback Loop
Proactively produced information must be cheap to read. Topic visual cards are a good option: a single card focuses on one topic and contains a conclusion-style headline, a summary of key points, source citations, and one clear action entry point. Users can also use a “curation” capability to explicitly specify topics of interest, constraining the system’s guesses to the scope the user declares and significantly reducing the cost of misjudgment.
Once feedback signals are collected, they need layered handling: an upvote reinforces the weight of similar topics, a downvote lowers the weight and records a negative feature, and no action counts as neutral but adds to fatigue. Feedback loop pseudocode:
def apply_feedback(profile, topic, signal):if signal == "up":profile.boost(topic, delta=0.2)elif signal == "down":profile.suppress(topic, delta=0.3, ttl_days=30)else:profile.fatigue[topic] += 1return profile.normalize()
7. Evaluation and Rollout Cadence
Evaluation should not look at click-through rate alone. Four dimensions are recommended: relevance (inverse of the downvote rate), timeliness (the share delivered within the valid window), intrusiveness (number of quiet-window violations), and retention contribution (incremental next-day revisits). Rollout follows a staged path: internal trial → small-scale allowlist → gradual expansion by user segment, with automatic rollback thresholds set at each stage.
8. Common Pitfalls
First, over-proactivity, treating “having something to say” as the goal. Second, memory without decay, which makes the profile rigid. Third, missing explanations, so users cannot understand why they received a given item. Fourth, collecting feedback without using it, creating a fake loop. The way to avoid these is to make “explainable, disableable, deletable” a hard design constraint rather than an after-the-fact patch.
