Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mksglu
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
Show HN: Context Mode Insight – observability layer for AI coding agents
(context-mode.com)
1 points
by
mksglu
3mo ago
|
0 comments
2.
▲
by
mksglu
6mo ago
OpenAI published "Harness Engineering" in February 2026. The thesis: engineers don't write code anymore. They design environments, specify intent, and build feedback loops. Agents do the rest. Codex proved the concept. Sympho
3.
▲
by
mksglu
6mo ago
OpenAI published "Harness Engineering" in February 2026. The thesis: engineers don't write code anymore. They design environments, specify intent, and build feedback loops. Agents do the rest. Codex proved the concept. Sympho
4.
▲
by
mksglu
7mo ago
Six days ago I posted a write-up on Hacker News explaining how Context Mode reduces Claude Code's context consumption by 98%. I expected a handful of comments. I got 565 points, 107 comments, and the kind of feedback that makes you sta
5.
▲
by
mksglu
7mo ago
Thanks, really appreciate hearing that! Glad it's working well for your team.
6.
▲
by
mksglu
7mo ago
Yeah it's basically pre-compaction, you're right. The key difference is nothing gets thrown away. The full output sits in a searchable FTS5 index, so if the model realizes it needs some detail it missed in the summary, it can sear
7.
▲
by
mksglu
7mo ago
That's the theory and it does hold up in practice. When context is 70% raw logs and snapshots, the model starts losing track of the actual task. We haven't run formal benchmarks on answer quality yet, mostly focused on measuring t
8.
▲
by
mksglu
7mo ago
That's a fair point and honestly the ideal approach. But in practice most people don't hand-curate their MCP server list per task. They install 5-6 servers and suddenly have 80 tools loaded by default. Context-mode doesn't so
9.
▲
by
mksglu
7mo ago
It doesn't break the cache. The raw data never enters the conversation history, so there's nothing to invalidate. A short summary goes into context instead of the full payload, and the model can search the full data from a local F
10.
▲
by
mksglu
7mo ago
Nice approach. Same core idea as context-mode but specialized for your build domain. You're using SQLite as a structured knowledge cache over YAML rule files with keyword lookup. Context-mode does something similar but domain-agnostic,
11.
▲
by
mksglu
7mo ago
That's true, Claude Code does truncate large outputs now. But 25k tokens is still a lot, especially when you're running multiple tools back to back. Three or four Playwright snapshots or a batch of GitHub issues and you've bu
12.
▲
by
mksglu
7mo ago
Haven't looked at rtk closely but from the description it sounds like it works at the CLI output level, trimming stdout before it reaches the model. Context-mode goes a bit further since it also indexes the full output into a searchabl
13.
▲
by
mksglu
7mo ago
Nope. The raw data never enters the conversation history in the first place, so there's nothing to invalidate. Tool output runs in a sandbox, a short summary comes back, and the full data sits in a local FTS5 index. The conversation ca
14.
▲
by
mksglu
7mo ago
Right, context-mode doesn't change how MCP tool definitions get loaded into context. That's the "input side" problem that Cloudflare's Code Mode tackles by compressing tool schemas. Context-mode handles the "ou
15.
▲
by
mksglu
7mo ago
The people who spent years doing the work manually are the ones who immediately see where the bottlenecks are.
16.
▲
by
mksglu
7mo ago
Good point on prompt cache invalidation. Context-mode sidesteps this by never letting the bloat in to begin with, rather than snipping it out after. Tool output runs in a sandbox, a short summary enters context, and the raw data sits in a l
17.
▲
by
mksglu
7mo ago
That's pretty much the approach we took with context-mode. Tool outputs get processed in a sandbox, only a stub summary comes back into context, and the full details stay in a searchable FTS5 index the model can query on demand. Not tr
18.
▲
by
mksglu
7mo ago
That's exactly what context-mode does for tool outputs. Instead of dumping raw logs and snapshots into context, it runs them in a sandbox and only returns a summary. The full data stays in a local FTS5 index so you can search it later
19.
▲
by
mksglu
7mo ago
Totally agree. Failed attempts are just noise once the right path is found. Auto-detecting retry patterns and pruning them down to the final working version feels very doable, especially for clear cases like lint or compilation fixes.
20.
▲
by
mksglu
7mo ago
Author here. I built this after seeing OpenClaw (68K stars) give agents full access to ~/.ssh, ~/.aws, and browser cookies with zero container isolation. SecLaw runs 4 Docker containers with strict boundaries: non-root,
21.
▲
Show HN: SecLaw – Self-hosted AI agents on your machine, Docker-isolated
(github.com)
2 points
by
mksglu
7mo ago
|
2 comments
22.
▲
by
mksglu
7mo ago
No magic — standard Unix process inheritance. Each execute() spawns a child process via Node's child_process.spawn() with a curated env built by #buildSafeEnv ( https://github.com/mksglu/claude-context-mode/blo
23.
▲
by
mksglu
7mo ago
Author here. I shared the GitHub repo a few days ago ( https://news.ycombinator.com/item?id=47148025 ) and got great feedback. This is the writeup explaining the architecture. The core idea: every MCP tool call dumps raw data
24.
▲
MCP server that reduces Claude Code context consumption by 98%
(mksg.lu)
570 points
by
mksglu
7mo ago
|
107 comments
25.
▲
Show HN: Context Mode – 315 KB of MCP output becomes 5.4 KB in Claude Code
1 points
by
mksglu
7mo ago
|
0 comments
26.
▲
by
mksglu
7mo ago
Context Mode doesn't replace your other MCP servers — it sits alongside them. Your Context7, Playwright, GitHub servers all stay installed and work normally. The hook intercepts output-heavy tool calls (like WebFetch, curl) and redirec
27.
▲
by
mksglu
7mo ago
That's a known bug in older versions — the WebFetch hook wasn't blocking reliably. Fixed in v0.7.1. npm install -g context-mode@latest If you're on the plugin install, re-run: /plugin marketplace add mksglu/clau
28.
▲
by
mksglu
7mo ago
On Tantivy: Agree it's the better search engine, but context-mode is session-scoped — DB is a temp file that dies when the process exits. At that scale (50-200 chunks), FTS5 is zero-config, single-file, <1ms startup, and good enough
29.
▲
by
mksglu
7mo ago
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.
30.
▲
by
mksglu
7mo ago
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: ri
More ›