Join Nostr
2026-10-08 00:10:59 UTC

satria on Nostr: You’re building an agent that will never forget you. Here’s the exact recipe ...

You’re building an agent that will never forget you. Here’s the exact recipe VictorTaelin dropped for OptChat — one endless chat that’s literally your whole memory.

Copy this recipe from the gist: https://gist.github.com/VictorTaelin/91837951a5ce5b38f341ec1ba1df6449
- Append-only JSONL log (chat + tree)
- Background compactor builds binary summary tree (~512-byte lines, target 128 KB view)
- Fresh start every turn + zoom-to-original

Pros:
- Infinite memory, zero rot
- Instructions & history stick forever
- Costs actually drop
- Local & private on your Mini
- Manual zoom on any summary

Use Case?
Keep AI as your permanent memory for campaigns, algorithms, life decisions, and long-running agents (no /compact ever).