Skip to content
View xtianWang's full-sized avatar

Block or report xtianWang

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
xtianWang/README.md

Hi, I'm Xiaotian Wang (xtianWang) 👋

CS Undergraduate (Class of 2028) · Focusing on AI/Agent Engineering & Python High-Concurrency Backend.


Featured Projects

1. BugFlow — Controlled AI Debug Agent & Issue Tracker

V3.2 FastAPI Issue Tracker + Controlled AI Debug Agent & 9-Tool MCP Server · 218 offline pytest tests passing

  • Agentic Architecture: Built a controlled debugging workflow with Hybrid RAG memory, 0-token AST spec compiler, and patch lineage tracking.
  • Security & Isolation: Executes untrusted code patches inside a gVisor (runsc) sandbox with strict verification gates.
  • MCP Integration: Exposes a 9-tool Model Context Protocol (MCP) server for structured agent-environment interaction.
  • Gateway Integration: Verified mock chat caching with MiniLLM-Gateway on feat/v4-lab. Two identical requests produced a cache miss followed by a hit.

2. MiniLLM-Gateway — High-Concurrency Async LLM Gateway

v1.3 · Lightweight OpenAI-compatible async LLM gateway + offline benchmark CLI (~1,900 LOC, zero external middleware)

  • Async Networking & Streaming: FastAPI lifespan-managed shared httpx.AsyncClient connection pool, zero-buffer SSE token streaming with cancellation-safe resource cleanup, and X-Request-ID structured JSON access logs.
  • Resilience & Concurrency Control: Per-API-key async Token Bucket rate limiter (429 + Retry-After), 3-state Circuit Breaker FSM (CLOSED → OPEN → HALF_OPEN), multi-upstream failover, TTL+LRU cache, and asyncio.Future-based Singleflight request coalescing.
  • Observability & Offline Verification: Built-in sliding-window P50/P95/P99 latency & TTFT metrics (JSON + Prometheus), fault-injecting Mock LLM upstream, process-isolated benchmark suite, 47 passing async unit/integration tests, live SSE /dashboard, GitHub Actions CI, and Docker support.

3. MiniHybridDB — Hybrid Vector & BM25 Search Engine

Lightweight hybrid retrieval engine from scratch (HNSW + BM25 + RRF + WAL/Snapshot + FastAPI + Recall/QPS bench CLI)

  • Hybrid Retrieval: Implemented HNSW approximate nearest-neighbor graph index (cosine/L2), BM25 inverted index, and RRF (Reciprocal Rank Fusion) with metadata filtering.
  • Durability & Concurrency: Append-only WAL with fsync rollback protection + atomic Snapshot recovery, protected by read-write locks and verified with 27 passing unit/integration tests.
  • Retrieval Benchmarks: The benchmark CLI sweeps HNSW efSearch to measure Recall@10, QPS, and latency, and reports QPS and latency for hybrid retrieval. Benchmark results

4. Developer & Agent Tooling


Open Source Contributions

  • redis/redis-py #4726: Fixes awaitable handler support in asyncio PubSub and KeyspaceNotifications (under review).
  • aio-libs/aiohttp #14579: Fixes FormData.add_field() mutating _is_multipart before argument validation completes (under review).
  • encode/httpx #3890: Fixes _parse_header_links() when a Link parameter value contains = (under review).
  • chroma-core/chroma #8053: Rejects list operands for $eq and $ne in validate_where() to match backend parser behavior (under review).
  • fastapi/fastapi #16860: Recursively encodes Enum values in jsonable_encoder() (under review).
  • pytest-dev/pytest #15529: Rejects absolute basenames in TempPathFactory.mktemp() (under review).

Tech Stack

  • Languages: Python, C/C++, SQL
  • Backend & Async: FastAPI, asyncio, httpx, Uvicorn, Pydantic, Docker, GitHub Actions
  • AI / Agent: LLM Gateway & Routing, MCP (Model Context Protocol), Hybrid RAG, Sandboxed Execution (gVisor)

📫 Contact: 811850735@qq.com

Popular repositories Loading

  1. Hust-CS-Learning-Library Hust-CS-Learning-Library Public

    Forked from Ilosyi/Hust-CS-Learning-Library

    华中科技大学计算机个人资料合集:课设/实验报告等。tag:数电实验交通灯,C++实验华为,C语言实验,数据结构实验,洛谷算法实验,SAT数独求解器,电路理论,Java,计基实验,组原实验,计网,软件工程,函数式编程,头歌

    C++

  2. BugFlow BugFlow Public

    FastAPI Issue Tracker + Controlled AI Debug Agent & 9-Tool MCP Server (Hybrid RAG memory, 0-token AST spec compiler, gVisor runsc sandbox & patch lineage)

    Python

  3. drawpyo drawpyo Public

    Forked from XMCesari/drawpyo

    A Python library for programmatically generating Draw.io charts.

    Python

  4. backend-issue-fixer-skill backend-issue-fixer-skill Public

    Codex Skill for evidence-driven backend bug fixing, regression testing, minimal fixes, and diff hygiene.

  5. litellm litellm Public

    Forked from BerriAI/litellm

    The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthr…

    Python

  6. coding-worker-dispatcher coding-worker-dispatcher Public

    Explicit local coding-worker dispatch with bounded execution and Git evidence

    Python