/images/avatar.png

Xiaopeng Xu, Ph.D.

Research Scientist @ KAUST · Agentic AI for scientific discovery, protein design & synthetic biology

Recent News

Recent Notes

驾驭工程(Harness Engineering):AI 时代软件工程的新范式

“如果 Agent = Model + Harness,而你不是模型本身,那么你就是 Harness 的一部分。”

—— Viv Trivedy,LangChain,2026


引言:一匹需要缰绳的马

2026 年初,HashiCorp 联合创始人 Mitchell Hashimoto 在记录自己 AI 使用历程的博客中,提出了一个简洁而深刻的工程原则:每当智能体(Agent)犯错时,工程师的职责不是"重试",而是"构建一个让 Agent 永远不再犯同类错误的解决方案" [1]。这个原则,被后来的社区命名为 Harness Engineering(驾驭工程)

随后,OpenAI 工程师 Ryan Lopopolo 发表了一篇里程碑式的文章,记录了他的团队如何用 5 个月时间、3 名工程师、0 行手写代码,通过 Codex 构建了一个拥有约 100 万行代码的内部产品 [2]。Martin Fowler 则从软件工程方法论的角度,对这一范式进行了系统性阐述 [3]

“Harness” 的字面意思是马具(缰绳、鞍具)。这个比喻极为贴切:大语言模型(LLM)就像一匹蛮力十足但方向感不稳的马,Harness 的作用是把它的能量引导到正确的方向上。Harness Engineering 并不优化模型本身,而是优化模型运行的环境。

本文将系统梳理 Harness Engineering 的核心概念,并深入分析它与传统软件工程文档体系、Claude Code 架构,以及 AI 时代人类工程师不可替代价值之间的关系。

数字生物制造

数字生物制造(Digital Biomanufacturing)是将人工智能、计算模拟、大数据分析与生物工程深度融合的新兴交叉领域。其核心目标是实现从分子到细胞、组织乃至整个生物体的"设计-构建-测试-学习"(DBTL)闭环,大幅缩短研发周期、降低实验成本,并推动生物药物、工业酶、细胞治疗、合成生物等产业的智能化升级。

What is science actually working on? I built three open-source trackers to find out.

We all feel the firehose: thousands of papers a month, every field moving at once, and no honest way to tell a genuine wave from your own reading bias. So I built a small family of tools that answer one question with data instead of vibes:

Which research topics are rising, which are fading, and what are the papers behind the trend?

Hello world to my new personal website!

“Hello World!” Welcome to my new personal website.

This site was previously hosted on Google Sites, and now all content has been migrated to GitHub Pages with Hugo.

A new “Notes” sections is supported in this website. So I hope to share more updates about my research and explorations here.

AI 助理配置

Claude code 使用

https://github.com/anthropics/claude-code

https://deepwiki.com/anthropics/claude-code

https://xux-zotero-img.oss-cn-beijing.aliyuncs.com/img/20260613005331682.png
Claude Code Architecture

安装

# Install
curl -fsSL https://claude.ai/install.sh | bash

# Uninstall
npm uninstall -g @anthropic-ai/claude-code

# Regular usage
claude
claude --resume

# Use without frequent responds
claude  --dangerously-skip-permissions

# Use resume previous sessions
claude  --dangerously-skip-permissions --resume

常用命令

# !直接运行命令输入,结果直接进上下文,不用来回切终端
!git status 
!npm test

# 双击Esc后悔药        
# 代码改乱了?按两下Esc, 直接回到上一个检查点,后悔来得及

#Ctrl+R翻旧账        
# 昨天的提示词忘了?按Ctrl+R秒速搜索历史对话,比翻记事本快

# @召唤文件
# 想引用某个文件?打@就行,像微信@人一样,再也不用复制粘贴
@results/file.fasta

# Remote 随时随地接力
# 网页版开始写代码,回家接着写用 claude--teleport 把云端会话"拉"到本地,无缝切换设备

# /export留下证据
# 重要对话输 /export 导出自动生成Markdown文档.写文档,复盘都超方便

# claude RD steps
/plan implement rate limiting on the /api/upload endpoint   # plan first, confirm
# ... approve plan ...
/prp-implement                                              # build w/ validation loops
/code-review --fix                                          # review + auto-apply cleanups
/security-review                                            # since it's an endpoint
/verify                                                     # run it, confirm behavior
/pr                                                         # push + open PR

Claude.md 命令

Claude.md 是一个很重要的 claude 功能,能够让 claude 对项目结构有比较好的记忆,减少每次反复开发。在开发过程中,很好的维护他,会让开发效率大大提升。