Context windows reset. Sessions end. What you built yesterday is gone. You spend the first 10 minutes of every conversation re-explaining who you are, what you're working on, and what you decided last week.
This isn't a Claude problem or a ChatGPT problem. It's a fundamental architecture problem. The AI is stateless. You need to give it a state machine.
The Solution
A self-writing brain that runs while you sleep.
The NAPTiON Brain Pipeline is a three-script autonomous memory system. Every 10 minutes, it extracts your conversations, classifies them with local Llama, and files them into a structured index any AI can read.
Phase 1 — Extract
brain-pipe.sh
Cursor-based extraction pulls only new messages from your session JSONL. Truncates to 300 chars/message. Caps buffer at 2KB. PID mutex prevents concurrent runs.
Phase 2 — Categorize
llama-categorize.sh
Sends buffer to local Llama 3.2 via Ollama. Native JSON mode. Smart retry loop with explicit correction feedback. Ruthless skip rules filter out noise.
Phase 3 — File & Notify
brain-filer.sh
Routes events into category files by project. Enforces an allowlist. Rebuilds the brain index. Sends Telegram notification. Auto-prunes at 500 lines.
What's Included
Everything you need. Nothing you don't.
The guide covers the complete build from scratch — every script, every edge case, every fix we shipped.
01
The Architecture Overview
How the three phases connect. Why launchd, not cron. How the cursor watermark eliminates duplicates.
After sending, email naption@gmail.com with your transaction ID. You'll get the download link within 24h.
Want the full system?
The Autonomous Revenue Stack
Everything in this guide + 12 autonomous daemons: Stripe monitoring, wallet tracking, auto-outreach, SEO blog generation, self-healing loops, and more. $79 one-time.