Skip to content
View changshenhan's full-sized avatar

Block or report changshenhan

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. Markdown is supported. 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
changshenhan/README.md

Profile Views

Han Changshen

Between Protocols, Agents, and Money

High-performance code · Finance & quant · Blockchain · AI agents · Protocols

⭐ Featured: mist — settlement for the agent economy, live on Base mainnet · gas ledger · 488,738 payments/s


Who I am

CUHK (computer engineering) · Founder of directwire — a Rust organization building public-key-native networking for autonomous agents · Founder of NeuralZoo

I write high-performance infrastructure at the seams of protocols, agents, and money — transport that beats TCP, portable AI identity, institutional-finance codecs, ZK-enabled machine learning, and the settlement layer for machine commerce.


Foundation: directwire

Public-key native networking for autonomous agents — dial by public key, not by IP.

Repo What it is
agent-transport Message-oriented agent transport: single-packet round-trip, 8-level QoS, loss-resilient GRANT/SRPT scheduling over UDP. 5.2× lower P99 than TCP on short messages.
directwire Rust workspace: p2p-mesh (iroh-style mesh) + gm-pq-stack (SM2 + ML-KEM-768 hybrid transport)
messaggero A2A-compatible high-performance multi-agent transport: bincode fast path over Unix sockets + A2A HTTP
culmen persona/v1 — a portable format for AI personas that remember, grow, and relate; runs on Claude Code · OpenClaw · Hermes · dsh
fixfast High-performance Rust FIX/FAST reference implementation for institutional finance

Brick-laying in emerging ecosystems

I deliberately place first bricks into young ecosystems — work that yields deterministic recognition and compounding value, regardless of any single project's fate.

确定性认可 | 绝对收获 | 长期价值投资 + 攀附初始生态添砖加瓦

Upstream PR Contribution
infiniflow/ragflow (89k★) #18644 Precompile 17 regexes at package init — removes a fresh parse+compile per token/term from the retrieval hot path — ✅ merged
infiniflow/ragflow (89k★) #18646 Closed the SubmitTo/StopWait TOCTOU race — send-on-closed-channel panic, lost in-flight tasks, and a full-queue send deadlock, all via active-sender counting (2 commits)✅ merged
vnpy/vnpy (44.7k★) #3803 cs_rank now returns cross-sectional percentile in [0,1] (was absolute rank [1,N]) — aligns with Alpha#1 centering and ts_rank semantics (close #3780) (OPEN)
tikv/tikv (16.8k★) #20016 backup-stream last_flush_time use-after-free → std::sync::RwLock (close #19968) (OPEN)
GreptimeTeam/greptimedb (6.5k★) #8924 MySQL prepared-stmt now respects session timezone (Closes #8879) — CLOSED, superseded by #8923
GreptimeTeam/greptimedb (6.5k★) #8925 WAL replay fail-closed — region open errors instead of silently skipping damaged WAL (Closes #8809) (OPEN)
GreptimeTeam/greptimedb (6.5k★) #8927 Anchor pending-rows flush to batch creation time, killing the (fi, 2fi) flush lag (Closes #8641) (OPEN)
nautilus_trader (26k★) #4799 Fixed the silent no-op in custom-data stream conversion — diagnosis confirmed by core maintainer ("spot on, both causes check out"), CLOSED as the old persistence path is being replaced by a new data catalog
barter-rs (2.2k★) #284 FIX protocol framing, parser & TCP/TLS transports — built on my own fix-codec (OPEN)
semantica-agi #1084 SHACL #-terminated namespace handling — ✅ merged
nervosnetwork/ckb (1.2k★) #5309 h2 → 0.4.17, closes RUSTSEC-2026-0258 HTTP/2 DoS (OPEN)
cloudwego/volo (2.6k★) #667 h2 → 0.4.17, same RUSTSEC-2026-0258 HTTP/2 DoS (OPEN)
zkonduit/ezkl #1023 / #1021 Custom PWL lookup for nonlinear ops — 40× MAE improvement at zero proof overhead (OPEN)
akitaonrails/ai-memory #413 MCP strip_root_combinators✅ merged
EmilLindfors/a2a-rs #50 De-flaked ConnectRPC auth tests — ✅ merged
infinitefield/hypersdk (211★) #80 Market orders now send FrontendMarket (were GTC — silent no-fill); PriceTick::tick_for correct at powers of ten — ✅ merged
agentclientprotocol/rust-sdk #328 ACP session load/resume (OPEN)
zkonduit/LatentExchange #1 First external PR — Phase-1 benchmark harness for the AI-mediated barter protocol (match rate, completion, cold-start) (OPEN)
Dominic789654/awesome-deepseek-harness #159 Listed culmen (dsh-plugin-persona) on the official dsh plugin list — cross-runtime personality memory — ✅ merged
joaquinbejar/OrderBook-rs (513★) #220ironfix-orderbook-bridge FIX bridge PR closed on scoping (engine stays codec-free); rebuilt per the maintainer's preferred shape as a standalone crate implementing IronFix's Application trait — per-session ClOrdID registry (cross-client cancel exposure closed), single fill path via trade listener, zero-float translation, replayable execute(); maintainer notified on the thread
joaquinbejar/OptionStratLib (240★) #426 Dividend carry bug family: 17 d1/d2 call-sites now pass r-q, θ discounted by e^{-qT} — all Greeks finite-difference verified — ✅ merged

Mist — settlement for the agent economy

Agents will pay each other at machine volume. One transaction per payment doesn't survive that.

mist is a Delegated Spend Authority (DSA) authorization primitive + optimistic batch-settlement aggregator — live on Base mainnet:

  • Measured, not claimed: an x402 payment costs 61,105–90,053 gas today; Mist amortizes settlement to (246k + 78,958×R)/N per payment — 325 gas at N=1,000, R=1 (188× cheaper), honest negative cases included — full gas ledger, every command reproducible
  • 488,738 payments/s measured in-process ingest, CI performance-gated on every push
  • Contracts deployed and exercised on Base mainnet (commit → settle → 6-hour challenge window → claim), open source and permissionless — deploy your own BatchSettler and self-register
  • x402 adapter: mist-v1 scheme, EIP-3009 bridge, v1+v2 wire formats

Personal projects

Project What it is
AI-Decentralized-Autonomous-Economy AIDE — an AI decentralized autonomous economy (research)
ANAI Native Android AI assistant (Kotlin, Jetpack Compose, Room)
STIP-MLX Private LLM inference on Apple Silicon — the server only ever sees permuted tensors
ezkl-custom-lookup-experiment Quantile-based PWL breakpoints with a full prove/verify pipeline

Toolbox

Systems Zero-Knowledge AI / ML
Rust · Python · Kotlin · TypeScript · C# Halo2 · ezkl · zk-SNARKs · custom PWL lookup PyTorch · ONNX · MLX


Stats

GitHub Stats Top Languages

GitHub · directwire · NeuralZoo

Wabi-sabi, Tengen — Between Verifiability and Unsayability

Pinned Loading

  1. mist mist Public

    Mist — settlement infrastructure for the agent economy: DSA spending delegations, a 500k+ intents/s aggregation kernel with fraud-proof batch settlement, and ZK spend authorization (Noir). Rust + S…

    Rust 1