# Code graphs · Oxagen Research

Source: https://oxagen.sh/blog/pillars/ontologies

[Research](https://oxagen.sh/blog) · Pillar

# Code graphs

Why agents work better when facts are linked.

A graph database stores each fact with its links to other facts: this function calls that one, writes this table, and changed in this commit. An agent can follow those links in a few steps. A search over text can only find passages that look like the question. Posts cover code graphs, graph retrieval, graph memory for agents, the ontology that types each fact and link, and what the research measures about each.

## 3 posts in Code graphs

[](https://oxagen.sh/blog/governing-an-agent-that-rewrites-itself)

*   [Self-evolving agents](https://oxagen.sh/blog/pillars/self-evolving-agents)
*   [Code graphs](https://oxagen.sh/blog/pillars/ontologies)

### [Governing an agent that rewrites itself](https://oxagen.sh/blog/governing-an-agent-that-rewrites-itself)

An agent that edits its own code needs the same review as any other change. What safety research says about reward hacking, sandboxes, oversight, and typed contracts.

September 9, 2026 · 8 min read

[](https://oxagen.sh/blog/graph-grounded-retrieval-vs-vector-search)

*   [Code graphs](https://oxagen.sh/blog/pillars/ontologies)

### [Graph-grounded retrieval vs vector search](https://oxagen.sh/blog/graph-grounded-retrieval-vs-vector-search)

Vector search finds the passage that looks like your question. Graph-grounded retrieval finds the fact that answers it. What the research says about the difference.

September 9, 2026 · 8 min read

[](https://oxagen.sh/blog/what-an-ontology-buys-an-agent)

*   [Code graphs](https://oxagen.sh/blog/pillars/ontologies)
*   [AI agents](https://oxagen.sh/blog/pillars/ai-agents)

### [What an Ontology Buys an Agent](https://oxagen.sh/blog/what-an-ontology-buys-an-agent)

An agent can answer with confidence from the wrong context. This post covers what classes, relations, constraints, and dated facts add to an agent's answers.

September 9, 2026 · 8 min read
