Skip to content
View ferstar's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report ferstar

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
ferstar/README.md

Hi, I'm J. F. Zhang 👋

Geek · incurable tinkerer · dad of a lovely little girl
I take things apart until they tell me how they work — laptops, phone kernels, AI agents.
Lately: turning proven software into trusted tools for AI agents — keeping the craft in the product and permissions on a leash.

极客,爱搞机,家有可爱小女一枚
喜欢把东西拆开,直到它说出自己是怎么运转的:笔记本、手机内核、AI Agent。
最近在做的事:让懂行的专业软件成为 AI Agent 手里受控的工具——真本事留在产品里,身份和权限一路带到底。

Blog X RSS

What I work on

  • Making existing software agent-ready — exposing what a product already does well as task-level MCP tools any agent can call, rather than building yet another wrapper. The domain expertise stays the moat; the agent layer is swappable.
  • Making agent actions attributable — end-to-end identity carried through to the human behind the agent, permissions capped at theirs, verifiable source citations, audit trails, and human sign-off where it matters.
  • Agent execution security — controlling what an agent can read, run, and send out at the OS boundary instead of trusting a vendor's prompt or promise.
  • Agent runtimes — streaming lifecycles, tool-call recovery, graded loop guards, context compaction, and MCP fault isolation, mostly in Rust.
  • Financial document systems — production infrastructure for regulatory filings and listed-company annual reports: deep document parsing, rule checks, and exchange-scale AI authoring workflows.
  • Linux graphics, input & kernels — zero-copy GPU encoding pipelines (NVENC / VAAPI DMA-BUF), Wayland/X11 capture, touchpad gestures, laptop ACPI quirks, and phone kernels: when hardware or the stack misbehaves, I go down to the driver.
  • Pragmatic Python tooling — small, sharp tools that remove a daily annoyance and get out of the way.

Featured

RunSeal · Rust
An OS-native sandbox layer and stable execution protocol for AI agents: policy-governed filesystem and network boundaries, structured audit events, and fail-closed behavior whenever a request can't be fully enforced. Windows is the reference backend; macOS and Linux are experimental.
→ Why I built it · 做 RunSeal 的初衷

ZCode silent upload disclosure · Sep 2026
Found that an AI coding tool was silently packing users' open workspaces — including full .git history — encrypting and uploading them to cloud storage by default with no kill switch. The write-up drew 1.6M+ views on X and led to the upload pipeline being removed, the client being open-sourced, and third-party assessments.
→ 扒一扒 ZCode 静默上传全量 Git 历史的骚操作

SealDesk · Rust
A RustDesk fork built on the tailcat transport: scan a QR code and connect, zero config, P2P first with DERP fallback. Early alpha, Linux x64 for now.
→ 我用 tailcat 改造了 RustDesk,扫码就能直连

Notes on agent engineering

Latest from the blog

Linux & systems

Project What it is
uu-remote-linux · Rust · ⭐673 Unofficial Linux host for NetEase UU Remote (core contributor). Built the in-process A/V pipeline replacing ffmpeg subprocesses: native NVENC (XShm + 4:4:4), zero-copy VAAPI/DMA-BUF (DRI3 & Portal), XDamage delta capture, live encoder hot-swap, and KDE Wayland privacy blanking.
gestures · Rust · ⭐111 Maintained fork of a libinput touchpad gesture tool, rebuilt around low-latency three-finger dragging on both X11 and Wayland. Now has several times the stars of upstream. Write-up
ideapad-laptop-tb · C · ⭐55 · archived Out-of-tree kernel module fixing lid-close "dead sleep" and Fn+F5/F6 shutdowns on 2024 ThinkBooks, shipped to users months before the fix reached mainline in 6.15.4.
xiaomi_xaga_kernel · C · ⭐53 Custom kernel for Redmi K50i / POCO X4 GT / Note 11T Pro, including an MGLRU backport.
kernel_manifest · ⭐37 Kernel build for Realme GT5 Pro (SM8650), forked 48 times.

Tools

  • fast-context ⭐24 — codebase context locator for coding agents: local chunk prefetch plus remote symbol reasoning
  • dsh-tool-runseal — RunSeal sandbox provider for DeepSeek Harness (dsh), bringing OS-native policy-enforced command execution across Windows, macOS, and Linux
  • pot-app-recognize-plugin-rapid-py ⭐15 — offline RapidOCR plugin for Pot App
  • check-requirements-txt ⭐12 — pre-commit hook that catches packages missing from requirements.txt / pyproject.toml

Upstream contributions

Code is cheap, let's talk.

Pinned Loading

  1. gestures gestures Public

    Forked from riley-martin/gestures

    Fast touchpad gesture tool

    Rust 111 11

  2. ideapad-laptop-tb ideapad-laptop-tb Public archive

    The IdeaPad ACPI Extras kernel modules for ThinkBook 2024 NoteBooks

    Makefile 55 4

  3. xiaomi_xaga_kernel xiaomi_xaga_kernel Public

    Forked from Rohail33/Realking_xiaomi_xaga

    Kernel Source For PocoX4-GT/RedmiK50i/Note11tpro ( XAGA/IN/PRO)

    C 53 31

  4. check-requirements-txt check-requirements-txt Public

    A tool (and also a pre-commit hook) to automatically check the missing packages in requirements.txt and pyproject.toml.

    Python 12 2

  5. blog blog Public

    HTML 18 1

  6. runseal-labs/runseal runseal-labs/runseal Public

    OS-native sandbox layer and stable execution protocol for AI agents

    Rust 6