Tencent Engineering has released a technical deep-dive challenging the current paradigm of AI coding agents, which relies heavily on static memory and retrieval-augmented generation (RAG). The team argues that general-purpose models, despite their reasoning capabilities, struggle to maintain long-term coherence within specific projects because they lack a shared semantic model of the domain. By integrating ontology concepts with recursive self-improvement (RSI) mechanisms, the proposed approach aims to reduce the repetitive rediscovery of project conventions and prevent the recurrence of known errors across development tasks.

The Limits of RAG and Static Memory

The core critique targets the distinction between retrieving information and understanding it. The article posits that while RAG can supply relevant documentation, it fails to clarify ambiguous business logic, such as whether an 'order' is complete based on payment, shipment, or delivery. Without an explicit ontology defining these relationships and constraints, agents must infer meaning from scattered materials, leading to inconsistent interpretations. The team emphasizes that a database schema or code graph describes structure, but an ontology defines the semantics and conditions under which those structures hold true, a nuance critical for autonomous decision-making.

Recursive Self-Improvement in Practice

Drawing on recent research like EvoOntology and Skill∞, the article outlines a framework where agents don't just store lessons but evolve their understanding of the domain. This involves three levels of improvement: iterating within a task, refining persistent knowledge across tasks, and optimizing the improvement process itself. The EvoOntology model, for instance, separates content, schema, and tools, allowing agents to identify missing semantic definitions during execution. If an agent fails to filter data correctly because it misunderstands a field’s scope, the system can propose a local change to the ontology, validate it against a baseline, and retain it only if performance improves.

The Forward-Deployed Engineer Problem

The report draws parallels between coding agents and forward-deployed engineers (FDEs), who must bridge the gap between abstract user goals and concrete system states. Just as an FDE must verify if a 'successful process' means API acceptance or business outcome, an agent needs a shared model to link data, logic, and actions. The article notes that Palantir’s ontology system serves as a benchmark for connecting queryable data with controlled actions and permissions. For coding agents, this means moving beyond simple code generation to understanding the operational context, ensuring that generated code respects the complex, often undocumented, business rules of the project.

Key Takeaways

  • Ontology provides explicit semantics for domain concepts, preventing agents from inferring incorrect business rules from ambiguous text.
  • Static memory is insufficient; agents need a recursive improvement loop that validates changes against execution feedback before persisting them.
  • Systems like EvoOntology demonstrate that evolving the knowledge layer (content/schema/tools) is more effective than endlessly expanding prompt context.
  • The approach distinguishes between improving task outcomes and improving the learning mechanism itself, a critical step toward autonomous software engineering.

The Bottom Line

We are moving past the era of 'prompt engineering' into 'semantic engineering,' where the bottleneck isn't model intelligence but the clarity of the domain model provided to it. Tencent's approach correctly identifies that memory without structure is just noise, and true autonomy requires agents that can rewrite their own understanding of reality based on hard evidence.