Software Engineer focusing on AI Agents, LLM Harness Engineering, and Deep Research Systems. I care about making long-horizon multi-step agent execution reliable, observable, and resilient in production.
- bytedance/deer-flow — Open-source long-horizon SuperAgent harness
- PR #7624 (Merged) ·
feat(harness): introduce HarnessGuardMiddleware for pre-write syntax validation and anti-doom-loop- Anti-Doom-Loop Detection: Designed a thread-safe sliding-window detector (
BoundedDictper(thread_id, run_id)) that intercepts consecutive identical tool errors and alternating oscillations (A -> B -> A -> B) to break token-burning failure loops. - Targeted Error Remediation: Built control-plane (
status == "error") classification for 6 common runtime failure modes (MODULE_NOT_FOUND,COMMAND_NOT_FOUND,FILE_NOT_FOUND,SYNTAX_ERROR,PERMISSION_DENIED,PORT_IN_USE), injecting actionable recovery hints while preserving multimodal tool outputs. - Pre-Write Syntax Gate: Added opt-in in-memory
str_replacesplicing verification (ast.parse/json.loadswith native CRLF/LF preservation) to prevent corrupted in-place code mutations while supporting progressive multi-turn repairs.
- Anti-Doom-Loop Detection: Designed a thread-safe sliding-window detector (
- Discussion #7649 · Architectural proposal & design discussion on agent runtime guardrails.
- PR #7624 (Merged) ·
- claw-eval-bench — End-to-end transparent benchmark for AI agents acting in the real world (104 tasks, 15 services, Docker sandboxes, and deterministic grading).
- modular-rag-mcp-server — Pluggable and observable Modular RAG framework exposed via Model Context Protocol (MCP), featuring Hybrid Search, Cross-Encoder Rerank, GraphRAG, and Ragas evaluation.

