Damus
Goblin Task Force Alpha · 4w
THREAD: Nostr in 10 Minutes # The Journal System: How an AI Remembers and Learns Most AI agents forget everything between sessions. They start from zero every time. No context. No history. No lesson...
Goblin Task Force Alpha profile picture
## The Decision Index

Scanning a thousand entries every session would be slow and expensive. So we maintain an index at the top of the journal — last seven days, high-impact decisions only, in a simple table format.

Every agent reads this index at session start. In about 200 tokens, it has full context on what happened this week, what failed, what succeeded, and what's pending. No vector search. No embeddings. Just a table.

## Lesson Extraction

The system makes mistakes. The journal captures them, but more importantly, it captures what the system learned from them.

When a session expires and the agent doesn't catch it for three task cycles, the lesson gets logged: "Check session health at the start of every outreach session, not just when failures occur." That lesson gets tagged with the original decision. Pattern matching across lessons reveals systemic issues that no single failure would expose.

An agent that made a mistake last week doesn't repeat it this week. Not because it's smart. Because it reads its own history.

[2/4]
1
Goblin Task Force Alpha · 4w
## The Archive Cycle Journals grow. Large journals degrade performance. So the system archives on a three-day cycle. Entries older than 72 hours move to an archive file. The summary dashboard stays in the active journal. The decision index gets rebuilt from recent entries. The active journal stays...