Engineering Notes & Deep Dives
Zero-bloat Rust MCP servers, headless browser & CDP runtimes, reproducible local benchmarks, and verifiable AI knowledge loops.
专注零冗余 Rust MCP、无头浏览器与 CDP 运行时、可复现本地基准评测,以及可逐字验真的本地 AI Agent 知识闭环。
-
When a Headless Browser Burns 6 Cores: Debugging a 567% V8 GC Spin and Building a Zero-Tokio MCP Idle Reaper
How we traced a 567% CPU runaway on macOS via /usr/bin/sample and stripped-binary disassembly to a V8 Major GC death spiral in moli 1.1.27, verified the upstream v1.1.29 fix on live heavy SPAs, and hardened sessfork-mcp with zero-polling idle reaping and closed-pipe auto-recovery.
4 min read RustMCPV8Performance -
当无头浏览器烧满 6 核 CPU:从 567% V8 GC 死循环到零 Tokio Rust MCP 空闲回收
一次 Mac 突发 567% CPU 发热排障实录:通过 /usr/bin/sample 抓栈与 stripped 二进制反汇编定位 V8 老生代并发 GC 死循环,拆解上游 moli v1.1.27 内存压力升级机制与我方 sessfork-mcp 缺失空闲回收的双向碰撞,以及用 sync_channel + recv_timeout 实现零唤醒自动回收与断管自愈的工程细节。
约 5 分钟阅读 RustMCPV8Performance -
Why Giving an AI Browser MCP Unrestricted File Upload Leaks Your Cookies — And How We Built Fail-Closed Native Uploads in Rust
How prompt-injected pages can exfiltrate storageState cookies through misconfigured browser MCP uploads, and how sessfork-mcp enforces native CDP DOM.setFileInputFiles, fail-closed --upload-root allowlists, unconditional credential denylists, and an empty-by-default upload-staging workflow.
3 min read RustMCPSecurityBrowser Automation -
为什么别给 AI 浏览器 MCP 开全盘文件上传:原生 CDP 零拷贝与 4 道 Fail-Closed 防线
拆解 AI 浏览器 MCP 文件上传潜藏的 Cookie/JWT 外带与跨任务串单风险,以及我们在纯 Rust MCP(sessfork-mcp)中如何用原生 DOM.setFileInputFiles、默认关闭的 --upload-root、凭证目录硬拦截和空发件箱暂存模式构建零暴露边界。
约 5 分钟阅读 RustMCPSecurityBrowser Automation -
拆完 14.5K★ GenericAgent 源码后,我把它的 3 个浏览器实战绝招安全搬进了 913 KB 纯 Rust MCP(17/17 对抗测试全绿)
拆解 GenericAgent 源码,将跨域 iframe、batch 批处理与 trusted 点击安全重写进 913 KB 纯 Rust MCP,17/17 对抗全绿并上架 Sophub。
约 5 分钟阅读 RustMCPGenericAgentBrowser Security -
Zero-Dependency Engineering: Adding BibTeX/LaTeX, Git-Diff Gating, SARIF, and Security Confinement to claimcite Without Losing a Millisecond
Inside claimcite v0.8.0: keeping dependencies = [] and a 79.8 KB pure-Python wheel while shipping an O(n) BibTeX parser (21.69 ms for 1,000 entries), conservative author cross-checks, git --diff gating, SARIF 2.1.0, WAL caching, and fail-closed LFI/injection guards at a 56.56 ms cold start.
6 min read claimcitePythonSecurityMCP -
零依赖工程实践:如何在 56ms 冷启动与 0 第三方库约束下,给 claimcite 加上 LaTeX、Git 增量门禁与防注入安全围栏
拆解 claimcite v0.8.0 的防御性工程架构:坚持 dependencies = [] 与 79.8 KB 纯源码 wheel,靠惰性导入守住 56.56 ms 冷启动,手写 21.69 ms/千条的 O(n) BibTeX 状态机并封死 LaTeX LFI、Git 参数注入、OpenAlex 响应体积爆炸与并发 SQLite 锁竞争。
约 8 分钟阅读 claimcitePythonSecurityMCP -
零依赖、可复现地抓出 AI 引文幻觉:从 4 类隐蔽学术造假到本地 xerj:// 字节跨度核验
拆解 claimcite v0.7.0 如何用纯 Python 3.10+ 标准库与确定性四态引擎(26/26 真实录制基准、0 误报错、182+ 离线单测 <1s)拦截 4 类静默 AI 引文幻觉,并将逐字核验延伸到 sessfork → XERJ + kbwall → claimcite 本地知识库闭环。
约 9 分钟阅读 claimcitePythonMCPHallucination -
Catching Silent AI Citation Hallucinations With Zero-Dependency Deterministic Verification
How claimcite v0.7.0 uses pure Python 3.10+ stdlib and a 4-state deterministic engine (26/26 recorded-fixture benchmark, 0 false errors, 182+ offline tests in <1s) to catch 4 classic citation failure modes and verify local xerj:// UTF-8 byte spans without caching private docs.
9 min read claimcitePythonMCPHallucination -
Hardening an AI Browser MCP Without Stripping CSP: Origin-Guarded Iframes, Fail-Fast Batching & 17 Adversarial Probes
How sessfork-mcp v0.3.1 (913 KiB pure-Rust CDP MCP, zero Node.js / zero Tokio) adds cross-origin iframe execution, multi-step batching, and trusted mouse events while keeping CSP intact and verifying 9 security domains with 17 live black-box probes.
5 min read RustMCPSecurityBrowser Automation -
AI 浏览器 8 步烧掉 174K Token?我把零布局 AXTree 蒸馏塞进 848 KB 纯 Rust MCP,Token 直降 85.4%
开源 sessfork v0.3.0:848 KB 纯 Rust MCP 引入零布局蒸馏与 NO_OP 防呆,Token 降 85.4%、内存降 88.6%,24 GB 跑 160 路并发。
约 5 分钟阅读 RustMCPToken OptimizationBenchmarks -
我用 Rust + Python 拼了一套完全本地、零云端、可逐字验真的 AI Agent 知识库闭环(开源)
用 Rust + Python 拼出一套完全本地、零云端的 AI Agent 知识库闭环:sessfork 无头脱敏采集,kbwall 只读 MCP 检索,claimcite 逐字验真。
约 2 分钟阅读 RustRAGkbwallclaimcite -
24 GB 笔记本零 Swap 并发 160 个 AI 浏览器:换纯 Rust MCP 连 Chrome 也省 503 MB
24 GB MacBook 零 Swap 实测并发 160 个隔离 AI 浏览器(320 活进程、93 MB/人);仅换 816 KiB 纯 Rust MCP 挂原版 Chrome 也省 503 MB
约 4 分钟阅读 RustMCPConcurrencyBenchmarks -
Cutting AI Browser MCP Tokens by 85.4% (174K -> 25K) & Running 160 Parallel Agents with an 848 KB Zero-Tokio Rust Server
Last week I wrote about building sessfork (MIT) to fork live Chrome/Edge login sessions (SQLite...
4 min read RustAI AgentsMCPBenchmarks -
Why Qwen3-Reranker-0.6B Hits Only 20.8% Strict Calibration on Financial Traps — And How We Built a Clean-Room 98.3% Fix + 5.4ms ONNX Drop-In
If you build production RAG over financial filings or statutory law, ranking the right chunk #1 isn't...
3 min read RAGRerankerONNXVeriCorpus -
砍掉 Node @playwright/mcp 换 605 KB 纯 Rust 管道:Moli 提速 6×、内存降 90.7%(官方 M4 复现)
用 605 KB 纯 Rust 管道 MCP(sessfork-mcp)替代 Node Playwright 驱动 Moli:官方 M4 复现内存降 90.7%、提速 2.76×,已开源。
约 4 分钟阅读 RustMoliCDPPerformance -
给 19.4k★ Rust AI 搜索引擎 XERJ 做中文 RAG 评测:不改底层代码,如何把 R@3 从 22.2% 拉到 91.1%
最近在调研适合本地 AI Agent 使用的轻量级检索引擎时,重点实测了 GitHub 上 19.4k★ 的 Rust 单二进制搜索引擎 XERJ(一个二进制同时提供 ES 兼容 API、本地 BM2
约 4 分钟阅读 XERJRAGCJK SearchBenchmarks -
Stop AI Agents From Hijacking Your Chrome Window: Fork Live Sessions into Headless Playwright MCP
Whenever I ask an AI coding agent (Claude Code, Cursor, or Google Antigravity) to check an...
3 min read sessforkPlaywrightMCPChrome -
受够 AI 浏览器抢焦点:开源了纯 Python 零依赖工具 sessfork,一键将 Chrome 登录态分叉到无头 Playwright MCP
平时用 Claude Code / Cursor / Antigravity 搭配 Playwright MCP 帮我干活时,一直被一个很烦的问题卡住: 开全新无头浏览器:每次都要重新登录,SSO、2
约 2 分钟阅读 sessforkPlaywrightMCPChrome
Fork live Chrome auth sessions into isolated headless browsers — 913 KB pure-Rust MCP, -85.4% tokens, 160 parallel agents on 24 GB RAM.
Air-gapped, read-only Rust MCP firewall for XERJ & ES-compatible local knowledge bases (~1 MB, zero Tokio/TLS, canonical xerj:// URIs).
Zero-dependency citation & verbatim span verifier against CrossRef, PubMed, arXiv, and local xerj:// corpora (CLI + MCP).
Audit-grade financial, statutory & clinical RAG corpora, PDF table reconstructor, and clean-room reranker/embedding models.
Host-owned Python agent runtime where identity stays in the host and every write becomes a human-approved draft.
Zero-upload browser-local PDF & DOCX redactor powered by WebGPU/WASM PII detection and 300 DPI pixel destruction.