cs.AIAug 13, 2026

Ontology-Grounded Project Memory for Coding Agents

Authors: James Adam

Organizations: Trivyn

Abstract

Coding agents have become the primary means of generating new code in many software projects, and the resulting velocity of changes makes keeping track of the reasons behind those changes challenging. This paper introduces MOOSEDev, a system designed to give coding agents structured, ontology-grounded project memory. The system captures architectural decisions, lessons, constraints, and rationales in a knowledge graph exposed to agents via a Model Context Protocol (MCP) interface. Records carry lifecycle status, provenance, and supersession links, queryable via MOOSE, a proprietary neurosymbolic engine that treats the symbolic layer as the primary reasoning substrate. We compared MOOSEDev against a production vector-memory tool on a neutral public corpus of 835 typed records. MOOSEDev returned the expected answer set essentially in full (0.98-1.00) on supersession, set-completeness, and negation questions, whereas the baseline's top-k retrieval surfaced between 6% and 27%. Conversely, relevance recall and token cost were largely equivalent between the two systems. We also describe a temporal commit-history bootstrap of our own codebase, a pre-registered live trial, and lessons learned.

Figures & tables

Explore similar work

CardsList
  1. Codebase-Memory: Tree-Sitter-Based Knowledge Graphs for LLM Code Exploration via MCP

    Mar 28, 2026Martin Vogel, Falk Meyer-Eschenbach, Severin Kohler +2AI Coding AgentsGraph-Based Agent Memory

  2. MemDev-Bench: Does Memory Help Code Agents?Benchmarking Memory Systems over Real Repository Histories

    Oct 20, 2026Guorui Chen, Tao Liu, Zhenzhen Huang +9Memory Agent BenchmarksMemory-Augmented Agents