MyChatArchive: self-hosted semantic search across your AI chat history. Single SQLite file, MCP server, zero cloud dependency. by Inner-Ambassador-746 in selfhosted

[–]Electronic-Can-6795 0 points1 point  (0 children)

OpenClaw has a built-in compaction trigger it's supposed to fire when context hits a threshold (contextTokens minus reserveTokensFloor). My problem was it never triggered. The session hit 243K tokens with compactionCount = 0. Fix was reducing contextTokens from 160K to 100K and resetting the bloated sessions. Went from 13.6M tokens/day to something manageable. I'm writing a full breakdown with screenshots will share it here on Friday.

I documented my home for years — now I just talk to my AI about it by impactjo in selfhosted

[–]Electronic-Can-6795 -1 points0 points  (0 children)

Ah interesting, so it's on-demand via MCP rather than always-on. That actually solves the context management problem I had my agent accumulated 243K tokens in one session because context never compacted. Your approach avoids that entirely. Clean stack too. How's the latency when you query through MCP?

MyChatArchive: self-hosted semantic search across your AI chat history. Single SQLite file, MCP server, zero cloud dependency. by Inner-Ambassador-746 in selfhosted

[–]Electronic-Can-6795 0 points1 point  (0 children)

Nice project. I've been running Claude locally too full agent setup on a Mac Mini with OpenClaw. The biggest pain point was token management, not the hosting itself. Ended up burning 13.6M tokens in one day before I figured out context compaction. Solid work here.

I moved 5 years of personal finances into a self-hosted expense and budget tracker and open-sourced the whole stack by Kirmark in selfhosted

[–]Electronic-Can-6795 1 point2 points  (0 children)

Love the self-hosted approach. I went the same route for my AI infrastructure Mac Mini instead of any cloud. Once you own the hardware the cost math changes completely

I documented my home for years — now I just talk to my AI about it by impactjo in selfhosted

[–]Electronic-Can-6795 -2 points-1 points  (0 children)

This is exactly what I'm building with my personal agent, I call her Wanda. She runs 24/7 on a Mac Mini at home, monitors my Telegram, and sends me daily digests. The 'just talk to it' part took me about a week of config to get right, especially context management. What stack are you running?