Repository navigation
Releases
sessfork v0.2.1 — Native Windows Support & MV3 Companion Extension
sessfork v0.2.1 — Native Windows Support & MV3 Companion Extension
中文速览:正式上线原生 Windows(x64)支持,零 Python、零 Node.js 依赖——纯 Rust 单二进制
sessfork-mcp.exe(约784 KiB)直连 Windows 版moli.exe(本地回环 WebSocket CDP + Win32 Job Object 退出零孤儿进程 +CREATE_NO_WINDOW无黑框),配套开源可审计的双语 MV3 伴生扩展(固化扩展 ID、自动检测Moli\bin、瑞士极简风弹窗界面),在不做进程注入与提权的前提下合规解决 Chrome 127+ App-Bound Encryption(v20)。现已同步发布至 PyPI(0.2.1)、Windows 一行 PowerShell 安装脚本,并附 5 平台预编译二进制、扩展压缩包与SHA256SUMS.txt。
Highlights
1. Native Windows (x64) — Zero Python, Zero Node.js
- Standalone Rust MCP server (
sessfork-mcp.exe, ~784 KiB): Communicates with Windowsmoli.exeover loopback RFC 6455 WebSocket CDP on a kernel-assigned--port 0, uses a Win32 Job Object for zero-orphan child reaping, and launches withCREATE_NO_WINDOW. - Auto-detect
Moli\bin& 1-command installer (install.ps1): Automatically installssessfork-mcp.exeandmoli.exe, pre-registers Native Messaging with the fixed extension ID, wires detected AI clients' MCP configs, and copies the unpacked extension folder path to your clipboard. - Verified on real Windows 10 + Chrome 158 (
v20ABE): ~11 ms cold-startinitializeand ~6 ms structure-first Markdown extraction.
2. Auditable MV3 Companion Extension (sessfork-extension.zip)
- Clean, AV-safe approach to Chrome 127+
v20App-Bound Encryption: No process injection, no privilege escalation, and no memory scraping. On explicit user click (Fork This Site), Chrome decryptsHttpOnlycookies andlocalStoragevia its official extension APIs and syncs selected domains over Native Messaging (com.wasabihu.sessfork) into~/.sessfork/. - Fixed extension ID & Swiss UI popup: Connects immediately (green status dot) once loaded as an unpacked extension, with bilingual UI and multi-tab batch sync. See
extension/README.md.
3. Cross-Platform Packaging & Supply Chain
- 5 prebuilt native
sessfork-mcpbinaries:windows-x64,darwin-arm64,darwin-x64,linux-arm64,linux-x64, plussessfork-extension.zipandSHA256SUMS.txt. - PyPI
0.2.1published: Try immediately on macOS/Linux viauvx sessfork <domain>.
Install / Upgrade
-
Windows (PowerShell — 1 command):
powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/wasabihu/sessfork/v0.2.1/install.ps1 | iex"
Then open
chrome://extensions→ enable Developer mode → Load unpacked →Ctrl+V→ Enter. -
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/wasabihu/sessfork/v0.2.1/install.sh | sh # or zero-install via uvx: uvx sessfork --version
Full Changelog: v0.1.6...v0.2.1
sessfork v0.2.0
Full Changelog: v0.1.6...v0.2.0
sessfork v0.1.6
Full Changelog: v0.1.5...v0.1.6
sessfork v0.1.5
sessfork v0.1.5 — Full Security Hardening & Native Moli WebMCP Release
中文速览:本版本围绕本机浏览器登录态安全完成了全仓白盒审计与独立盲审复核,覆盖按域名最小权限隔离、CDP 隔离世界注入、本地 Studio 面板鉴权与反点击劫持、文件/符号链接防篡改以及供应链固定,并新增原生 Moli WebMCP 桥接与结构化 Markdown 提取(55 项 Python/E2E + Rust 自动化测试全绿,提供 4 平台预编译二进制与
SHA256SUMS.txt)。
Highlights
1. Session & Browser Isolation (sessfork-mcp, Rust)
- Isolated-world LocalStorage hydration: Hydrates LocalStorage inside a dedicated CDP
worldNamebacked by a JSMap, and filters live hot-reload sync strictly per tab origin viaPage.createIsolatedWorld. - Authoritative origin checks: Reads page URLs and frame origins strictly from CDP
Page.getFrameTree(never main-worldJSON.stringify), preserves opaque"null"sandboxed iframe origins, and blocks implicit cross-origin iframe WebMCP tool selection. - Fail-closed screenshot & navigation guards: Enforces
0600+O_NOFOLLOWonbrowser_take_screenshot(rejecting path traversal, hidden files like.sessfork-state.json, non-.pngextensions, and symlinks), restrictsbrowser_navigatetohttp(s)://andabout:blank, and sanitizesbrowser_set_storage_stateerrors without leaking path-existence oracles. - Native Moli WebMCP & runtime hardening: Adds native Moli WebMCP bridge and structure-first Markdown extraction, fixes
O(N^2)CDP framing scans, caps frames at64 MiB, bounds console/WebMCP/evaluate memory, and prevents FD 4 child-processDropdeadlocks.
2. Least-Privilege CLI & Local Studio UI (Python)
- Fail-closed domain parsing: Rejects empty or whitespace-only domain arguments instead of falling back to
--all-domainsor clear-all; decouples explicitall_domainsfrom empty lists. - Symlink & descriptor safety: Validates symlinks before
.resolve()acrossstate.json, mirror dirs,keys.json, lock files, MCP configs, Cookie DB sidecars (prior tosqlite3.connect), and LocalStorage LevelDB directories; enforcesO_NOFOLLOW. - Cookie & crypto hygiene: Strictly verifies Chrome v24+
SHA256(host_key)prefixes, validates profile names, expands public suffix + second-level ccTLD boundaries, prunes logged-out cookies on--refresh, prevents pre-1970 expired cookie resurrection, and validates AES key/IV sizes. - Hardened local Studio UI: Enforces exact loopback
Host/Origin/Sec-Fetch-Sitechecks, anti-clickjacking headers, session auth across all GET/POST routes with a0600auto-POST launcher, and explicitclear_all=trueon/api/clear.
3. Supply Chain & Packaging
- Ships 4 prebuilt native
sessfork-mcptarballs (darwin-arm64,darwin-x64,linux-arm64,linux-x64) withSHA256SUMS.txt. - Pins GitHub Actions to 40-char commit SHAs, enforces
cargo --locked, bundles canonicalSKILL.mdin wheel package data, and hardensinstall.sh(TLS 1.2+, pinned release tag, single-member tar extraction, atomic staging).
Verification & Upgrade
- Verification: 34 Python/E2E tests + 21 Rust tests passing (
55/55), reviewed via independent blind audit. - Quick upgrade:
curl -fsSL https://raw.githubusercontent.com/wasabihu/sessfork/v0.1.5/install.sh | sh
Full Changelog: v0.1.4...v0.1.5
sessfork v0.1.4
Full Changelog: v0.1.3...v0.1.4
sessfork v0.1.3
Fix macOS headless Chrome multi-origin storageState crashes by auto-pinning Playwright's chrome-headless-shell.
Fixed
- macOS Multi-Origin Headless Crash (
mcp_setup.py): Added shallow Playwright cache discovery (find_playwright_headless_shell()) that selects the highest numericchromium_headless_shell-<rev>binary for the host architecture (skipping symlinks and non-executable files) and automatically appends--executable-path=<chrome-headless-shell>inbuild_playwright_mcp_entry()on macOS. This avoids system Chrome's--headless --isolated --storage-statecrash (Mach rendezvous failed/Target page, context or browser has been closed) when hydrating many LocalStorage origins. SupportsPLAYWRIGHT_BROWSERS_PATHandSESSFORK_BROWSER_EXECUTABLE_PATH(includingsystem/noneto disable auto-pinning, or an explicit executable path on any OS). - MCP Diagnostics & Setup Guidance (
mcp_setup.py,cli.py): Addedinspect_mcp_headless_shell()and surfacedplaywright_headless_shell, pinned/unpinned/stale MCP config status, and actionable macOS/override warnings insessfork --status(text and--json) andsessfork --setup.
Recovery on macOS
If sessfork-browser previously failed with Target page, context or browser has been closed:
npx -y playwright-core install chromium-headless-shell
sessfork --setupThen reload sessfork-browser once in your AI editor.
sessfork v0.1.2
Zero-restart MCP hot reload and one-shot domain refresh.
Added
- Zero-Restart Hot Reload (
state.py,SKILL.md): Atomically mirrorsstate.json(0600) inside Playwright MCP's0700--output-dir(~/.sessfork/playwright-output/.sessfork-state.json) so runningsessfork-browserinstances can hot-reload updated sessions in-memory viabrowser_set_storage_statewithout restarting MCP. - One-Shot Refresh (
cli.py,state.py): Added-r/--refreshto re-fork all domains currently saved instate.json(plus any newly specified domains) in a single command, powered bylist_state_domains()subdomain collapsing.
sessfork v0.1.1
Security hardening release.
Security
- Linux In-Memory AES (
crypto.py): Replacedopenssl enc -K ...subprocess invocation with directctypesOpenSSLlibcrypto(EVP_*) calls so derived keys never appear in/proc/<pid>/cmdline. - Pinned MCP Package (
mcp_setup.py): Pinned@playwright/mcp@0.0.85instead of floating@latest(overridable viaSESSFORK_PLAYWRIGHT_MCP_PKG), explicitly enforced0700permissions on~/.sessforkandplaywright-output/, and made MCP config writes atomic with0600mode for new files. - Domain Allowlist & Public Suffix Guards (
chrome.py,docs/index.html): Validated hostname characters, rejected bare single-label TLDs (exceptlocalhost) and multi-tenant public suffixes (github.io,vercel.app,co.uk, etc.), and hardened the interactive web generator input normalizer. - Symlink Guards (
chrome.py,localstorage.py): Refused symlinked Cookie SQLite databases and skipped symlinked WAL/SHM sidecars and LevelDB files during snapshot extraction. - Installer Hardening (
install.sh): Explicitly enforced0700on~/.sessfork, fixed GNU/BSDmktemptemplate compatibility, and pinned default ref tov0.1.1.
sessfork v0.1.0
First public release.
Added
- Lock-free fork of Chromium SQLite
Cookies(incl. Chrome 130+meta.version >= 24) and LevelDBLocal Storageinto a0600PlaywrightstorageStatefile. - Pure-Python LevelDB SSTable/WAL + Snappy reader with MVCC tombstone handling.
- Auto-wiring of the headless
sessfork-browserMCP server (@playwright/mcp --headless --isolated) for Antigravity, Claude Code and Cursor (--target auto), plusSKILL.mdinstallation. Snapshots/screenshots are written to~/.sessfork/playwright-output/instead of the agent's current project directory. - One-line installer (
install.sh) anduvxzero-install usage. --refresh-key,--purge-keys, and opt-in--cache-keyfor the derived Safe Storage key (cache is off by default).- Bilingual documentation (English / 简体中文), SVG diagrams and an interactive guide on GitHub Pages.
SECURITY.mdwith threat model and private reporting channel.