AI Agents in the Second Half of AI: Why Compute Is No Longer the Moat
As proactive personal agents move into production, the basis of competition is shifting. Inference compute is becoming a commodity, while continuous and accurate personal context is turning into the scarcest resource. This article breaks down, from an engineering perspective, the capability boundaries of personal agents, context modeling, layered memory, proactive task execution, and privacy governance. It explains why the moat is moving from compute to data and engineering systems, and includes an architecture diagram and code examples for developers and architects.
As proactive personal agents (Personal Agents) gradually ship, the core of industry competition is shifting: underlying inference compute is being commoditized, while continuous, accurate “personal context” is becoming the scarcest resource. Starting from a technical perspective, this article systematically breaks down the capability boundaries of personal agents, context modeling, memory layering, proactive task execution, and privacy governance. It explains why the moat is moving from compute to data and engineering systems, and provides an architecture diagram and code examples for developers and architects.
1. Reframing the Problem: From Answering Questions to Getting Things Done
Over the past two years, the capability curve of large models has centered on reasoning and generation. But as basic reasoning becomes widely available, users are asking more of a new form of assistant: instead of starting from zero in every conversation, they want something that can manage long-term matters across apps and over time on their behalf.
An ideal personal agent needs three capabilities:
- Memory: gradually piecing together “who you are” and “how you habitually make decisions” from hundreds or thousands of seemingly casual exchanges.
- Proactivity: initiating reminders, suggestions, and actions at the right moment instead of passively waiting for instructions.
- Execution: completing tasks across apps within granted permissions and taking responsibility for the results.
Stacking these three produces an inevitable side effect: once “knowing you” becomes the core capability, the relationship between a user and a particular agent becomes hard to unwind. That is both the product value and a responsibility that must be taken seriously on the engineering and compliance fronts.
2. Why Traditional Recommendation Algorithms Do Not Count as “Knowing You”
Traditional internet products also “understand users deeply,” but the nature of their data differs fundamentally from conversational data.
- Behavioral traces are compressed results: favorites, clicks, and dwell time record only “what was done,” losing motivation, constraints, and tradeoffs.
- Data silos fragment the profile: each app is like the blind men touching an elephant, seeing only one facet of a person’s life.
- Goal drift cannot be captured: browsing food content late at night for several days in a row may be psychological compensation during a diet; buying a large number of technical books may mean preparing for a career change, or purchasing on someone else’s behalf.
Conversation and voice interaction provide higher-dimensional information: goals, constraints, hesitation, priorities, and even emotional state. This information cannot be inferred from clickstreams, yet it is exactly the key input for long-term task management.
Industry research has also pointed to this trend: when basic reasoning is no longer scarce, continuous and accurate personal background information becomes the hardest asset to replicate; an agent that must handle long-term matters across apps cannot treat the user as a stranger in every interaction.
3. A Reference Architecture for Personal Agents
A deployable personal agent can usually be abstracted into five layers:
┌─────────────────────────────────────┐│ Interaction: multimodal I/O, voice, UI cards │├─────────────────────────────────────┤│ Orchestration: intent recognition, task planning, tool calls │├─────────────────────────────────────┤│ Memory: short-term context / episodic memory / semantic profile │├─────────────────────────────────────┤│ Execution: cross-app connectors, permission gateway, sandbox │├─────────────────────────────────────┤│ Governance: privacy, audit, explainability, rollback and revocation │└─────────────────────────────────────┘
The key point: compute only affects inference efficiency in the orchestration and memory layers, while what truly determines the ceiling of the experience is memory quality and the level of governance.
4. Modeling Personal Context: From Information to Executable Structures
Personal context should not be a long block of text stitched together repeatedly; it should be structured, updatable, referenceable data assets. At minimum, it should contain four types of entities:
- Facts: relatively stable attributes, such as a home city, working hours, or dietary restrictions.
- Preferences: tendencies with strength and scope of applicability, such as “prefer routes with no transfers.”
- Goals: tasks with a time window and success criteria, such as “complete a skill transition within three months.”
- Constraints: hard boundaries, such as budget caps, do-not-disturb hours, and compliance limits.
Illustrative data structure:
{"facts": [{"k": "home_city", "v": "Hangzhou", "confidence": 0.95}],"preferences": [{"k": "route", "v": "fewer transfers", "scope": "commute", "weight": 0.8}],"goals": [{"k": "skill_shift", "due": "2026-06-30", "milestones": ["course A", "project B"]}],"constraints": [{"k": "quiet_hours", "v": "23:00-07:00", "hard": true}]}
Three principles are recommended when modeling:
- Traceable: every piece of context should record the source conversation, time, and confidence, making correction and revocation easier.
- Decayable: preferences and goals change over time, so time decay and reconfirmation mechanisms are needed.
- Minimal necessary: collect only the information required to complete the task, avoiding “collecting without limit in order to know you.”
5. Memory Layering and Retrieval Strategy
Layering memory is a key engineering technique for controlling cost and improving accuracy.
- Working memory: information within the current conversation window, placed directly into the context.
- Episodic memory: historical events and outcomes, suited to vector retrieval and summary compression.
- Semantic profile: long-term, stable structured preferences and goals, injected into prompts on demand.
For retrieval, a hybrid strategy is recommended: first narrow the candidate set with structured filtering (time, scope, hard constraints), then rank by vector similarity, and finally rerank and deduplicate. Illustrative logic:
def build_context(query, user_profile, event_store, top_k=8):# 1) Filter hard constraints first to ensure safety and compliancehard = [c for c in user_profile.constraints if c.hard]# 2) Structured recall: long-term profile related to goals/preferencesprofile_hits = [p for p in user_profile.preferencesif p.scope in query.scopes]# 3) Episodic memory vector recallevents = event_store.search(query.text, top_k=top_k)# 4) Assemble and deduplicate, controlling injected lengthctx = merge_dedup(hard + profile_hits + summarize(events))return ctx[:MAX_TOKENS]
Engineering also requires attention to “context pollution”: an incorrect memory, once repeatedly referenced, gets amplified. So confidence thresholds, conflict resolution, and a user-visible correction entry point are needed.
6. Proactivity and Execution: Turning “Suggestions” into “Revocable Actions”
The value of a proactive agent lies in timing, and the risk is concentrated in timing and permissions. It is recommended to split execution into a four-step loop:
- Trigger: candidate actions triggered by time, location, events, or goal progress.
- Evaluate: check hard constraints, budget, risk level, and the user’s current state (such as do-not-disturb).
- Authorize: low-risk actions can run automatically; high-risk actions require explicit confirmation.
- Roll back: all actions keep an idempotency key and a revocation path to ensure recoverability.
Pseudocode:
def maybe_act(trigger, profile, executor):if violates_hard_constraints(trigger, profile):return Nonerisk = assess_risk(trigger)if risk == "high":return ask_confirmation(trigger)result = executor.run(trigger, idem_key=trigger.id)audit_log.write(trigger, result)return result
Cross-app execution must go through a permission gateway and sandbox: least privilege, per-use authorization, and full auditing. Any narrative that “connecting to all apps makes everything possible” does not hold up in engineering.
7. The Moat Shift: Why It Is No Longer Compute
Stacking the capabilities above makes the migration path of competitive factors clear:
- Compute can be purchased: inference costs keep falling and underlying capabilities become homogeneous.
- Context is hard to replicate: personal context requires long-term, continuous, two-way interaction to accumulate, and switching costs are extremely high.
- The engineering system is the barrier: memory governance, conflict resolution, permission auditing, and rollback mechanisms are all the result of long-term refinement.
- Trust compounds: every correct execution increases willingness to authorize, forming a positive loop.
So differentiation in the second half is not about model parameters, but about “whether tasks can be handled on a user’s behalf with long-term trust.” This is also why cloud services such as Baidu AI Cloud, on top of general capabilities (such as object storage, message queues, container platforms, log services, and monitoring and alerting), need to build context governance and agent engineering systems together with developers.
8. Privacy and Compliance: Designing Boundaries into the Architecture
The richer the personal context, the more severe the consequences of leakage and misuse. The following baseline is recommended by default:
- Data minimization and purpose limitation: declare the purpose at collection; use beyond that scope requires re-authorization.
- Local-first and tiered storage: process sensitive information on-device as much as possible, with only necessary summaries stored in the cloud.
- Explainable and correctable: users can see “why it thinks this way” and fix it with one click.
- Portable and deletable: support export and complete deletion to avoid lock-in that cannot be unbound.
- Auditing and monitoring: keep full-chain traces for high-risk actions and use monitoring and alerting to detect anomalies.
9. A Deployment Checklist
- Start with “narrow and deep” scenarios: pick one high-frequency, verifiable long-term task loop instead of pursuing omnicompetence.
- Define the context structure first: define the four entity types (facts/preferences/goals/constraints) before discussing model selection.
- Build an evaluation set: use real interactions to create regression cases that measure memory accuracy and erroneous execution rate.
- Build in permissions and rollback: treat revocation as a first-class capability, not an after-the-fact patch.
- Keep costs controllable: layered memory + summary compression + caching to avoid unbounded context growth.
Conclusion
The competition among personal agents looks on the surface like a contest of product forms; in substance it is a contest of context assets and engineering governance capability. Compute determines the starting speed, while continuous, accurate, and trustworthy management of personal context determines how far you can go. For developers, the most worthwhile investment now is not chasing parameters, but making memory modeling, permission boundaries, and revocable execution solid — that is the real moat in the second half of AI.
