# Obsidian Link Graphs as Agent Memory Layers

Category: Memory & Storage
Stack: Obsidian CLI, Claude Code, Markdown Link Graph

## Overview
Using interlinked markdown files as a zero-cost knowledge graph that allows terminal agents to traverse concept relationships.

## The Problem
Embedding-based vector search retrieves chunks by semantic similarity, missing structured hierarchical relationships and conceptual links.

## Production Rule
Let the agent read markdown links directly. The link graph in a well-curated vault serves as the retrieval index without requiring vector databases.

## Code / Specification
File: `link_graph_query.sh`

```knowledge graph
# Agent traverses backlinks directly:
grep -rn "\[\[Spend Analytics\]\]" vault/
# Agent follows concept threads through explicit relationships rather than fuzzy cosine distances
```
