u/Material-Dot-8008

Shipped sinain today — ambient memory for macOS, so I stop re-pasting context into Claude Code

Shipped sinain today — ambient memory for macOS, so I stop re-pasting context into Claude Code

After a few months of weekend work with a friend, sinain is finally live. MIT, open-source, macOS only for now.

What it does

Sinain runs in the background, captures what's on your screen and what's coming through your headset, and turns the stream into a private knowledge graph that lives on your machine.

Three things it solved for me, concretely:

  • Stopped re-pasting context into Claude Code / Cursor every session. The agent reads from the captured stream via MCP — works with what I've actually been doing, not what I remembered to paste in.
  • Recalled what a friend said on a call from two weeks ago in two seconds. Source quote and which call. No twenty minutes of hunting through notes I never took.
  • Handed a slice of context to a collaborator over a P2P link. They open it, their sinain pulls it in, their AI assistants inherit it automatically. No file transfer, no cloud upload.

Tech stack

  • Capture: Apple's ScreenCaptureKit (zero-copy screen frames) + system audio via BlackHole virtual device
  • Analysis: Ollama (paranoid mode) or OpenRouter (default cloud)
  • Storage: SQLite EAV triplestore with FTS5 + tag-based + RRF fusion retrieval
  • Privacy: HUD overlay invisible to screen capture (NSPanel sharingType = .none — Apple primitive almost no one uses)
  • P2P sharing: PeerJS over WebRTC, no relay

Where it is now

V1 — works on my machine and couple of friend's. macOS 12.3+ only (ScreenCaptureKit requirement). Cloud mode needs an OpenRouter API key; paranoid mode runs entirely on-device with Ollama + whisper.cpp. Scores 82.8% IPR on LongMemEval (ICLR 2025 memory benchmark). Works with most of the agents - Claude, Codex, Openclaude, Junie, etc.

Try it

Curious if anyone else has hit the same "AI session starts with re-pasting everything I did last week" pain — would love to hear how you've solved it (or if sinain helps).

u/Material-Dot-8008 — 3 days ago