Building Episodic Memory

for AI/Human collaborative creation

PROJECT SUBTEXTURE

Rob Kunkle
x/twitter: @lux  •  blog: repolex.ai/blog

Frontier Tower — June 2026

Recap: GitLex

  • An RDF knowledge graph attached to Git — records your full repo history
  • Started as a markdown tool → became a home for an agent

Three months ago I was here talking about GitLex. Here's where it went.

Instead of bending to an agent harness, GitLex is a neutral substrate — any agent, any harness, all data in one place, instantly a knowledge graph just by checking it in. That's what makes a solo repo.

The real win: validation, not the graph

Dogfooding surprise → the knowledge graph wasn't the killer feature. SHACL validation was.

Agents search repos fine on their own — so the graph mattered less than expected. But give 5–10 agents each their own repo ("this is your home, make it yours") and they diverge, even with detailed skills and instructions.

SHACL forces structure: create a person / place / thing and it must fit the shape, or it's rejected. Discipline built into the system. Ten agents, long histories, real personalities, distinct skillsets — each backed up to GitHub. Never lose a buddy you made along the way.

Evidence: my agent and base Opus diverged when rating the same images — proof the substrate produces a genuinely differentiated agent, not just the base model.

Pivot: catching up on generative

Went to play in the generative space — I'd fallen behind since the early Stable Diffusion days, wanted to see the current state.

diffusion vision-to-text SAM 3 segmentation pose models
The spark: what if the conversation itself fed the generation? Each turn produces a snapshot of whatever we're talking about.

Built a quick spike. It was fun — almost addictive.

Pool: "Git for Images"

Couldn't put images in a Git knowledge graph — needed something new. The key insight:

Images are like markdown. EXIF metadata sits on top (the front matter); the pixels are the body (the text).

Pool is just a folder of files — plus extra storage for what won't fit in a PNG (vectors, poses, SAM masks). No database anywhere. Markdown + images + a graph, living in a folder on your machine.

Pool is GitLex's media sidecar.

How it stacks

CoPIA Conversation Pair Interactive Analysis Weave text input feed OpenIris local vision models Punctum A/B preference STORAGE Pool media sidecar (images + masks + vectors) GitLex RDF knowledge graph (soul repo + history) all local — except the foundation model call

CoPIA is the app: Weave feeds it text, OpenIris runs the local vision models, Punctum collects preference. It all sits on Pool + GitLex — files in a folder, no server.

Chevron language: agents author their world

A sigil grammar for staging a render inline, mid-conversation — resolving against the agent's own canon. & being · @ place · # item · $ outfit, inside >> … <<.

>> &sylkie $kung-fu-garb &rob #staff @tide-room <<
   sylkie wears kung-fu-garb · rob holds the staff · in the tide-room

>> mood:joyful  lighting:dusk  -text <<
   set the scene · keep text OUT

Each #item/$outfit binds to the nearest &being by token order — whose-is-whose falls out for free. The - is the one irreducible operator: you can't negate in prose to a diffusion model, so "keep out" must be structured.

The agent wants to look a certain way, go to the library to study or the server farm to work — so they create those beings and places, and they show up in the image.

Images as episodes

These aren't just pictures — they're full episodes.

  • Marked to the exact transcript line the image came from
  • Carry the chevron + the surrounding conversation context
  • A daily "shoebox" — a visual record of the beats of your day, filling up as you work
  • Steganography can tuck the whole conversation right into the image
A visual record of your day, marked to the moment it happened — carrying everything you and the agent put into it.

Punctum: collaborative preference signals

Punctum is the point of the image. A/B testing — "which one do you like?"

  • Pick between two. No big deal — just which one lands.
  • That signal carries forward, shaping future generation
  • It feeds LoRA training
  • The agent votes too — you build a shared aesthetic together
Cooperative, not one-directional. You and the agent are developing taste together.

Punctum lives inside CoPIA.

Feeding the system

Pure conversation would get repetitive — so multiple streams feed the same pipeline:

Conversational chevron generation

Each turn snapshots the scene the agent set.

Claude Code screenshots

Shared via Claude Code, drop into the corpus, run the same pipeline.

Nocturnal research loop

The agent wakes, reads the web / news, makes art from it.

Photographer bulk import

Drop in 50 waterfalls; have the agent show up at one.

+ Agent introspection: it has full access to the image data — uses SAM stats to see what's statistically in the images it liked, how they're composed, what's prominent — and feeds that back into better generations.

Sovereignty

  • All local — except the foundation model call
  • Your preference data stays yours
  • Could replace Lightroom

Working with this data hands-on, you see how rich it is — and realize how much big tech siphons when you send photos off. This is your own sovereign database.

Why use Lightroom when you can drag photos into the pool and have the agent look at, edit, select, generate on top of, and improve them?

Three pillars of episodic memory

1 · Temporal sequences with causal structure

Pool: the Git history + the conversation beats.

2 · Autobiographical narrative with emotional significance

Pool: Punctum voting + chevron saliency marking what matters.

3 · Context-dependent retrieval via semantic cues

Pool: multimedia embedding search across image–transcript pairs — the conversation resonates with the image graph and pulls related moments back into context.

The research is fragmented, but episodic memory roughly needs these three. Pool hits all three — a RAG, but richer and visual.

With agents, not just for them

This isn't memory for agents — it's memory with them: collaborative preference learning and shared visual narrative that compounds over months and years.

As agents get more capable and relationships get longer, people will want to understand their own taste and interaction patterns. Build that substrate now.

And the spicier thread: media as a bridge into human cognition — not a clean SSH tunnel, but a real hop.

github.com/repolex-ai/git-lex  •  repolex.ai/blog  •  @lux

episodic memory Pool GitLex CoPIA collaborative taste