News for hackers. Stuff that matters.
Re:Show HN: Context Mode – 315 KB of MCP output becomes 5.4 ... by mksglu on Wednesday February 25, 2026 @03:55AM (#47149083)
Good question.

The SQLite database is ephemeral — stored in the OS temp directory (/tmp/context-mode-{pid}.db) and scoped to the session process. Nothing persists after the session ends. For sensitive data masking specifically: right now the raw data never leaves the sandbox (it stays in the subprocess or the temp SQLite store), and only stdout summaries enter the conversation. But a dedicated redaction layer (regex-based PII stripping before indexing) is an interesting idea worth exploring. Would be a clean addition to the execute pipeline.

Re:Show HN: Context Mode – 315 KB of MCP output becomes 5.4 ... by virgilp on Wednesday February 25, 2026 @04:17AM (#47149245)
> Nothing persists after the session ends.

Does that mean that if I exit claude code and then later resume the session, the database is already lost? When exactly does the session end?

Re:Show HN: Context Mode – 315 KB of MCP output becomes 5.4 ... by mksglu on Wednesday February 25, 2026 @04:18AM (#47149250)
Yes — the database is tied to the MCP server process, so it's created fresh on each claude launch and lost when you exit; resuming a session starts a new process with a new empty database.