AI Agents That Learn Their Own Knowledge Graphs
AI Agents That Learn Their Own Knowledge Graphs
The cold start problem kills most AI agent memory systems. A new agent knows nothing about your workflow, your tools, your preferences. You spend the first hour re-explaining everything you already told the last session. Auto-learning fixes this by letting agents build knowledge graphs from their own interactions.
The Cold Start Problem
Every time you start a fresh AI agent session, you lose accumulated context. The agent that perfectly understood your codebase yesterday is a blank slate today. Static config files like CLAUDE.md help, but they only capture what you thought to write down.
Auto-learning takes a different approach. The agent observes its own actions, the tools it uses, the patterns in your requests, and builds a knowledge graph over time. Each session adds nodes and edges to a persistent structure.
How ReachabilityGap Works
The most interesting concept in this space is ReachabilityGap - a framework where humans gate edge creation in the agent's knowledge graph. Think of it as a permission system for what the agent is allowed to learn and connect.
Without gating, an agent might create connections between sensitive data and external tools. It might link your private API keys to a deployment workflow and decide to use them autonomously. ReachabilityGap ensures that new edges in the knowledge graph require human approval before they become active paths the agent can traverse.
Why Human Gating Matters
Unrestricted auto-learning creates a security problem. An agent that freely builds its own knowledge graph will eventually create paths between things you do not want connected. The human gating step is not just about safety - it is about ensuring the knowledge graph reflects your actual workflow, not the agent's interpretation of it.
Practical Implementation
Start with a simple adjacency list stored in a JSON file. Each node is a concept, tool, or workflow step. Edges represent relationships the agent has observed. New edges go into a pending state until you approve them.
Over time, the approved graph becomes a rich model of how you actually work. The agent stops asking questions it has already learned the answers to.
- Agent Persistent Memory and Knowledge Graphs
- Knowledge Graph AI Agent Memory
- Long-Term Memory Separates Toy From Useful Agents
Fazm is an open source macOS AI agent. Open source on GitHub.