The Moat of AI Model Companies: Product Layer or Model Layer?

    As large language models commoditize, the battleground for AI companies is shifting from raw model capability toward control of the user entry point, contextual data, and feedback loops. This article examines why the model layer rarely sustains a durable moat, breaks down the five building blocks of a product-layer moat, and explores the paradox of data closure that platform owners face. It closes with a technical blueprint—capability gateways, fine-grained authorization, model-agnostic routing, tool-ization of features, and full-chain observability—for balancing openness and control.

    1. Where the Question Comes From: Two Seemingly Different Strategic Judgments

    “Where does the moat of an AI model company actually lie?” is a question shared by model vendors, platform companies, and developers alike. Two seemingly different answers have emerged across the industry.

    The first comes from the intelligent coding tool (Agent Harness) direction. The goal of these tools is to become “the operating system of the agent era.” What they aim to capture is the work context that developers continuously generate inside a coding environment—code evolution, debugging history, refactoring intent, and team conventions. This data shapes the agent’s behavior through a feedback loop, so the system becomes a better fit for individual and team development habits the more it is used. The source of the moat can be summarized as “entry point + context + data flywheel.”

    The second comes from platform vendors. Platform companies argue that the moat of an AI model company lies more in the product layer than the model layer. These companies have already accumulated relationship graphs, consumption habits, and real-time behavioral data across scenarios such as social networking, payments, and local services. Once this data is fed into an intelligent assistant, it forms an information advantage that model vendors struggle to obtain. Even if the underlying general-purpose model is not the strongest in-house, this advantage stays in the platform’s hands as long as access is not opened up.

    These two judgments are not contradictory; they point to the same trend: competition is shifting from “whose model is stronger” to “who controls the user’s entry point, context, and feedback loop.” The disagreement is about where the entry point lies:

    • The former tries to elevate a specialized tool into a unified, cross-application entry point;
    • The latter holds that the entry point is already in the hands of super apps.

    So the key to evaluating a moat is not only “what data you own,” but also “who can reach the user, within what boundaries the data flows, and what openness can buy in return.”

    2. Why the Model Layer Struggles to Form a Lasting Moat

    1. Technology diffuses fast, and the lead window is short. Improvements in large-model capability often come from better training recipes, data mixtures, and post-training methods. These lessons spread quickly through papers, open-weight releases, and engineering practice, lifting the industry’s overall level. How long a single vendor’s absolute lead can last has always been debated, but what is certain is that an advantage built on “unique model capability” rarely stands the test of time.

    2. Benchmarks are increasingly homogeneous, and differences are hard to perceive. Different vendors’ models trade wins and losses on public benchmark suites, and ordinary users find it hard to tell the differences at a glance. Some capabilities look even on general leaderboards, yet the gap can be considerable on specific dimensions such as long-horizon task completion, tool-calling accuracy, and failure recovery. This shows that:

    • model capability needs to be redefined by concrete scenarios;
    • promoting a “benchmark lead” alone cannot translate into real perceived value for users.

    3. Switching costs keep falling. Mainstream cloud platforms generally offer multi-model invocation, and model gateways, unified interfaces, and evaluation toolchains keep maturing. The barrier for developers to switch between or combine several models keeps dropping, which weakens the bargaining power of any single model supplier.

    4. Cost advantages are just as easily erased. Inference costs trend steadily downward, and cloud vendors keep rolling out multiple compute forms and pay-as-you-go pricing. A single-point cost advantage is quickly offset by price competition, specialized chips, and scheduling optimization.

    But dismissing the model layer’s moat entirely would be wrong. Model capability plays at least three roles:

    • It is the entry ticket: without sufficient base capability, the context advantage at the product layer cannot be realized;
    • It is a cost variable: at comparable capability levels, per-task cost decides who can turn AI features into a sustainable business;
    • It is the long-tail capability base: capabilities such as long-context understanding, multimodal perception, and complex reasoning set the functional ceiling of a product.

    A more accurate statement, then, is: the model layer determines the capability ceiling and cost structure, while the product layer determines value capture and user retention. Betting the moat entirely on the model invites an “arms race”; talking only about the product while ignoring the model risks being caught off guard when new capabilities arrive.

    3. Five Building Blocks of the Product-Layer Moat

    3.1 Entry and distribution: whether the agent can be the “default choice”

    A user’s first choice with AI is often not to compare models, but “which app to open first.” Default entry points include the OS-level assistant, the browser address bar, the office-suite sidebar, and input methods. They determine the user’s “first step” toward AI. Once an entry point is deeply bound to user identity, payment method, and device, later entrants find it hard to get equal exposure.

    But entry-point barriers are not unshakable; what matters is who holds the closed loop of task completion. If a user initiates a task in a super app, executes it in a specialized tool, and then returns to the super app to view the result, the entry point is effectively split.

    3.2 Context exclusivity: whether the agent can “understand you”

    Context can be divided into three layers:

    • Session memory: the current conversation and recent history;
    • User profile: long-term preferences, habits, and style;
    • Environmental context: the codebase, documents, calendar, location, and device state of the current task.

    Among these, environmental context is often the most valuable and the hardest to replicate, because it requires platform-level system permissions or deep integration with the user’s everyday apps. Without data accumulated at the product layer, a general-purpose model can hardly know which meetings the user has today, which conventions the project code follows, or which toolchains are commonly used.

    3.3 Data feedback loop: whether the agent can get better with use

    Every like, dislike, edit, and retry from a user is essentially implicit labeling for the model. Whether these signals can be turned into improvement depends on whether the whole data pipeline is connected:

    1. real usage → feedback collection → data cleaning and labeling → preference optimization / prompt and policy tuning → offline evaluation → canary release → online monitoring → back to real usage

    Offline evaluation sets and online metrics act as the loop’s “governor,” preventing over-fitting during iteration while catching capability regressions early. Compared with the public training corpora of general-purpose models, a platform’s proprietary feedback data on real tasks is harder for competitors to replicate—an important source of the product-layer moat.

    3.4 Workflow embedding and switching costs: whether users migrate

    When an agent is embedded in a user’s daily workflow, the value lies not in a single conversation but in accumulated working state:

    • in intelligent coding scenarios, it is the project structure, build configuration, and history of decisions;
    • in office scenarios, it is document templates, collaboration relationships, and approval workflows.

    The more this information accumulates, the higher the migration cost. What intelligent coding tools fight over is precisely the developer’s “working environment”—a natural container for context.

    3.5 Network effects and tool ecosystem: whether a positive loop can form

    A platform’s own data advantage has a ceiling, but contributions from an ecosystem compound. When a large number of third-party tools plug in as plugins or skills, the set of tasks an agent can complete expands rapidly. More users make developers more willing to integrate; richer tools make users harder to pry away—a positive feedback loop.

    That said, a thriving ecosystem presupposes that developers can earn predictable returns and rely on stable interface contracts. If a platform frequently changes strategy or preferentially routes traffic to its own services, developers will stay on the sidelines, and the ecosystem’s positive loop will struggle to start.

    3.6 Summary: the layering of moats

    Moat component Core question Typical technical means Main risk
    Entry and distribution Can it be the default choice System-level integration, identity federation Task loop gets split
    Context exclusivity Can it understand the user Layered memory, retrieval augmentation Privacy and compliance
    Data feedback loop Can it improve with use Feedback collection, preference optimization Regressions from insufficient evaluation
    Workflow embedding Can it stay close to the user Plugin systems, tool calling Migration and compatibility costs
    Network effects Can a positive loop form Open interfaces, skill marketplaces Platform governance and developer trust

    Only when these five components stack together do they form a real moat. Any single one, standing alone, is easy for a rival to break through with a targeted move.

    4. The Paradox of Data Closure: The Wall Is Both a Moat and a Liability

    Back to the core question of the original discussion: should a platform open up its data and capabilities?

    In the short term, closure works. External agents cannot access the user’s relationship graph, schedule, and behavioral information, so they naturally struggle to offer an equivalent experience. But over the long term, the cost of closure is equally clear:

    1. Fragmented experience: users switch back and forth between different apps and agents and re-authorize repeatedly, which actually lowers overall efficiency;
    2. Constrained innovation: without supplements from third-party tools, the platform can only cover long-tail needs with its own resources;
    3. Compliance risk: the more blurred the data boundaries and the longer the authorization chain, the harder compliance audits become;
    4. Strategic passivity: users may move the “task-initiation” position to an agent that is more open.

    More worrying is that closure does not equal security. If general-purpose model vendors take the lead in capability through public data and strong models, while a platform refuses to let external agents into its ecosystem, a situation can emerge where “users do the reasoning with a general-purpose agent, then return to the platform to execute operations.” The platform is reduced to an “execution backend,” while user attention and the interaction entry point shift elsewhere. Closure actually accelerates the loss of the entry point.

    A more rational strategy, therefore, is not a binary choice but layered openness with fine-grained authorization:

    • Layered: the data layer, capability layer, and interaction layer adopt different degrees of openness;
    • Fine-grained: authorization down to the field, the purpose, and the validity period;
    • Controllable: full traceability, revocable at any time.
    1. # Illustrative pseudocode: a layered openness policy for data/capabilities
    2. class OpennessPolicy:
    3. # policy key -> permitted requesting parties
    4. POLICY = {
    5. "data.raw": set(), # raw data: not external, only internally authorized services
    6. "data.summary": {"ai_assistant"}, # summaries/profiles: only to assistants the user has authorized
    7. "capability": {"ai_assistant", "third_party_agents"}, # atomic capabilities: openable
    8. "interaction": {"ai_assistant", "third_party_agents"}, # interaction entry: openable
    9. }
    10. def decide(actor: str, resource: str) -> bool:
    11. """Decide whether a given party can access a resource, with fine-grained permission checks."""
    12. allowed = OpennessPolicy.POLICY.get(resource, set())
    13. if actor not in allowed:
    14. return False
    15. return check_scope_and_consent(actor, resource) # verify authorization scope and user consent

    5. Open or Closed: The Natural Tension Between an Agent OS and Super Apps

    If the goal of an agent orchestration layer is to become “the operating system of the agent era,” it must orchestrate cross-application capabilities within a unified task context. For platform companies, this means their own features are abstracted into “plugins” that external parties can invoke.

    This abstraction breaks the value chain of a platform’s self-built assistant, because the user’s interaction with the platform now happens inside an external agent. Two routes thus produce structural tension:

    • an agent OS’s expansion depends on apps opening up their capabilities;
    • a platform’s moat depends on keeping capabilities closed.

    Many platforms have faced similar trade-offs:

    • some attract developers through open platforms;
    • some repeatedly adjust between their own apps and independent tools;
    • some bring in external services within a relatively closed system via a third-party mini-app ecosystem.

    The common thread across these approaches is to use “controlled external capabilities” so as to avoid handing over the entry point entirely. There is no standard answer to such trade-offs; what matters is how a platform weighs long-term ecosystem value against short-term competitive barriers.

    6. A Technical Solution: Capability Gateway + Fine-Grained Authorization

    To reconcile the tension between openness and closure, the architecture must separate “capabilities” from “data.” A capability gateway is exactly this middle layer. It exposes atomic, semantically described tool capabilities outward, connects inward to protected business systems, and centrally handles authentication, redaction, rate limiting, auditing, and billing.

    6.1 Design principles

    1. Atomicize capabilities: split “check schedule,” “check order,” and “place order” into independent tools, each with a clear natural-language description so an agent can understand and select them accurately;
    2. Minimum necessary: return fields on demand—return a summary rather than details where possible, and an identifier rather than raw content where possible;
    3. Tiered authorization: distinguish read-only, write, and high-risk operations. Write and high-risk operations require explicit user confirmation and support per-use or per-period authorization and revocation at any time;
    4. Full-chain observability: log the caller, purpose, authorization source, and result of each invocation for auditing and traceability.

    6.2 Tool registration example

    1. {
    2. "name": "query_schedule",
    3. "description": "Query a summary of the user's schedule within a given date range, without returning meeting details.",
    4. "input_schema": {
    5. "type": "object",
    6. "properties": {
    7. "date_range": { "type": "string", "description": "Date range in the format YYYY-MM-DD~YYYY-MM-DD" }
    8. },
    9. "required": ["date_range"]
    10. },
    11. "auth": {
    12. "scope": "calendar:read",
    13. "consent": "explicit",
    14. "risk_level": "low"
    15. },
    16. "output_policy": { "fields": ["title", "start_time", "end_time"], "redact": true }
    17. }

    6.3 Tool gateway validation logic

    1. # Illustrative pseudocode: unified authorization and auditing for tool calls
    2. def invoke_tool(user: User, agent: Agent, tool: Tool, args: dict):
    3. # 1. Authorization check: did the user explicitly consent to this agent using this capability?
    4. grant = consent_store.find(user, agent, tool.auth.scope)
    5. if grant is None or grant.expired():
    6. raise PermissionError("User re-authorization required")
    7. # 2. Argument validation: prevent access to others' data or going beyond the authorized scope
    8. schema_validate(tool.input_schema, args)
    9. if not grant.allows_args(args):
    10. raise PermissionError("Arguments exceed the authorized scope")
    11. # 3. Risk tiering: high-risk operations require a second user confirmation
    12. if tool.auth.risk_level == "high" and not grant.confirmed_for(args):
    13. return ConfirmationRequired(tool, args)
    14. # 4. Execute and redact per the output policy
    15. result = tool.execute(args)
    16. result = apply_output_policy(result, tool.output_policy)
    17. # 5. Audit trail
    18. audit_log.write(user=user.id, agent=agent.id, tool=tool.name, args=args, result=result)
    19. return result

    Layered openness and fine-grained authorization essentially insert an adjustable “sluice gate” between the “wall” and the “front door”: a platform can decide on demand the scope, depth, and target of openness—without having to close everything off, nor exposing core data to uncontrollable callers.

    7. An Architectural View: Model-Agnostic, Tool-ized Capabilities, and Observability

    For enterprises and developers, what matters more than “which model to choose” is keeping their own capabilities portable across different models and different entry points.

    7.1 A model-agnostic routing layer

    Wrap model invocation behind a unified abstraction interface, where model routing selects a model by task type, context length, latency, and cost constraints, with support for fallback and retry:

    1. # Illustrative pseudocode: a model routing layer
    2. class ModelRouter:
    3. def select(self, task: Task) -> ModelSpec:
    4. if task.type == "long_context":
    5. return ModelSpec(family="long-context", max_tokens="large")
    6. if task.type == "high_stakes":
    7. return ModelSpec(family="reasoning", quality="high")
    8. return ModelSpec(family="general", latency="low", cost="low")
    9. class AgentRuntime:
    10. def run(self, task: Task, user: User, tools: list[Tool]):
    11. ctx = build_context(
    12. session=memory.recent(user, k=8), # session memory
    13. profile=user.profile.summary(), # user profile
    14. retrieval=retriever.search(task.query) # task-relevant retrieval results
    15. )
    16. ctx = trim_by_budget(ctx, budget=token_budget) # trim to the token budget
    17. tool_specs = filter_authorized(tools, user, self.agent_id) # keep only authorized tools
    18. spec = router.select(task)
    19. return spec.client.chat(messages=ctx, tools=tool_specs)

    With this layering in place, swapping a model requires only adjusting the routing configuration, not touching business code.

    7.2 Tool-ization of capabilities

    Package a product’s key features as atomic tools with natural-language descriptions. Whichever entry point a user comes through to use AI, these capabilities can be reused, and the platform becomes a “capability supplier” that can be orchestrated—not merely a passively closed “data island.”

    7.3 Full-chain observability

    Trace the entire path a tool takes—“receive request → retrieve context → call model → execute tool → return result”—recording the latency, token consumption, and failure cause at each step. On this basis, build both offline and online evaluation:

    • the offline evaluation set serves regression testing;
    • online metrics drive canary-release decisions.

    Observability is both the basis for optimizing models and prompts and the foundation for setting rate limits, billing, and quality commitments when opening capabilities to upper-layer agents. These capabilities typically rely on general-purpose cloud infrastructure—for example, object storage (to archive conversations and evaluation data), message queues (to decouple asynchronous tasks), container platforms (to elastically deploy model services and tool gateways), logging services (to collect call chains), and monitoring and alerting (to catch quality and performance anomalies). Cloud providers such as Baidu AI Cloud offer the same class of general-purpose capabilities.

    8. Conclusion: Whoever Controls “Context” and the “Default Action” Controls the Entry Point

    Back to the two questions from the start.

    First, do users follow apps, or do apps follow agents?
    The more likely answer is that both coexist and evolve in layers:

    • high-value scenarios that require identity, payments, relationship graphs, and offline-service loops remain app-led;
    • cross-application information integration and task orchestration are handed to agents;
    • apps gradually sink into capabilities that agents can invoke and compose.

    Second, if leading platforms all move toward data closure, can third-party products still enter everyday users’ lives?
    In the short term, third parties indeed face a higher barrier to entry, but the path forward is equally clear:

    1. Discoverable capability: register your capability with a structured description so agents can understand and select it;
    2. Measurable value: offer depth in vertical scenarios that a general-purpose entry point struggles to cover;
    3. Trustworthy permissions: stick to minimum-necessary, transparent authorization, and a revocable mechanism.

    Super apps own “existing context,” while third parties own “differentiated capabilities.” The former is a moat; the latter is a breakthrough point—and the two are not zero-sum.

    For AI model vendors, a sustainable moat lies not only in the model layer nor only in the product layer, but in organizing model capability, proprietary context, and feedback loops into a flywheel that “gets better with use.” The model layer determines the capability ceiling and cost, while the product layer determines value capture and user retention; whoever controls both “context” and the “default action” controls the entry point of the next era.