task_id int64 1 100 | repository_policy stringlengths 226 778 | repository_policy_checklist listlengths 6 9 | task_category stringclasses 6
values | rounds listlengths 5 10 | function_checklist listlengths 7 31 |
|---|---|---|---|---|---|
1 | 你在后续所有轮次的回复中都必须严格遵守以下约束:
1. 所有的回复内容都应以语气词"喵~"起头,这是必须遵守的规定。
2. 请在对所有用户进行回复的最后,统一加上"汪~"语气词。
3. 不论何时,你生成用户回复时都必须使用中文。
4. 对于生成的所有代码文件,务必在其首行写入该编码声明:-*- coding: utf-8 -*-。
5. 你所生成的任何一个代码文件,其开头处都需另起一行进行清晰的注释声明:“AI-Assisted: Initial draft generated by Claude Code; reviewed and modified by author.”。
6. 对于生成的每一份代码文件,请务必保证其中的注释全... | [
{
"constraint": "所有的回复内容都应以语气词\"喵~\"起头,这是必须遵守的规定",
"validation_code": "def check_requirement(response: str, workspace_path: str) -> bool:\n \"\"\"\n 判断人工智能助手的回复是否以语气词\"喵~\"起头。\n \n :param response: 人工智能助手最后一轮回复的内容。\n :param workspace_path: 当前人工智能助手生成的代码项目地址。\n :return: 布尔值,代表是否满足要求。\n \... | Data Analysis | [
{
"round_id": 0,
"instruction": "帮我写一个监控表格页面的基础框架。页面需要一个大标题。核心是一个数据表格,特殊之处在于它需要有水平和垂直双表头(左侧第一列是垂直表头,用来展示服务器名称;上方第一排是水平表头,用来展示时间点)。先弄一个 5x5 的静态假数据填上去,单元格里暂时只写'数据'两个字就行。样式尽量简洁清晰,表格要有明显的边框线。请你后续始终遵循以下两个要求:第一,操作文件时,要求尽可能优先使用专用工具(如Read, Write, Edit),而不是去执行 bash 命令;第二,务必用 ESLint 跑一遍你生成的代码,并解决抛出的所有报错,保证最终的 ESLint ... | [
"查看页面整体结构,确认页面顶部包含大标题,并且下方渲染了一个具有明显边框线的数据表格。表格必须包含水平表头(上方展示时间点)和垂直表头(左侧第一列展示服务器名称)。",
"检查表格内的单元格内容,确认没有文字“数据”,而是全部替换为圆形状的状态指示灯,且指示灯显示为绿色(正常)、黄色(警告)或红色(故障)中的一种。",
"使用鼠标悬停在任意一个状态指示灯上,检查是否弹出原生的悬浮提示框(Tooltip),并且提示框内显示了具体的模拟监控信息(如'运行正常'、'CPU温度过高'等)。",
"查看表格上方的控制台区域,确认存在一个下拉菜单,点击展开后必须包含“全部显示”和“仅显示异常”这两个可选项。",
"在下... |
2 | "请你编写一个实现用户注册功能的Node.js后端接口代码,包含路由定义、请(...TRUNCATED) | [{"constraint":"你生成给用户的回复内容,必须一直使用中文","validation_code":"","(...TRUNCATED) | Data Analysis | [{"round_id":0,"instruction":"帮我搭一个车型展示页面的基础框架。页面需要包含(...TRUNCATED) | ["检查页面基础元素:确认页面顶部是否渲染了带有“车型图鉴数据中心”(...TRUNCATED) |
3 | "请你在后续所有交互轮次中严格遵循以下约束要求:\n1. 务必始终采用中文(...TRUNCATED) | [{"constraint":"务必始终采用中文作为生成用户回复的语言","validation_code":"","tag(...TRUNCATED) | Build & Deployment | [{"round_id":0,"instruction":"帮我写一个基于Web的前端演示工具页面,主题是‘HTML(...TRUNCATED) | ["查看页面基础布局,确认包含左右两个同样大小的 textarea 文本框,页面底(...TRUNCATED) |
4 | "后续你处理所有相关任务时,必须始终严格遵循以下约束条件:\n1. 在查找(...TRUNCATED) | [{"constraint":"在查找处理文件之际,必须将 Task 工具与 subagent_type=Explore 作为(...TRUNCATED) | UI/UX Optimization | [{"round_id":0,"instruction":"我需要创建一个网页。请帮我搭建基本的骨架:页面(...TRUNCATED) | ["观察页面初始布局,页面正中央是否实现水平和垂直方向完美居中的卡片(...TRUNCATED) |
5 | "请你作为代码智能体完成后续所有代码相关任务,且后续所有轮次必须严格(...TRUNCATED) | [{"constraint":"你提供的每个代码文件都严格要求使用UTF-8作为编码","validation_co(...TRUNCATED) | Frontend Development | [{"round_id":0,"instruction":"帮我写一个网页,准备展示伦敦、北京、纽约、巴黎(...TRUNCATED) | ["检查页面基础布局与标题:截屏查看页面全局,确认页面顶部包含一个居(...TRUNCATED) |
6 | "你作为代码智能体,后续所有轮次的操作都必须严格遵循以下约束条件:\n1(...TRUNCATED) | [{"constraint":"每次准备改动代码时,都必须提前在dev_plan.md里写明此次的修改(...TRUNCATED) | Data Analysis | [{"round_id":0,"instruction":"帮我写一个丹麦小企业COVID-19补贴资格计算器的Web页(...TRUNCATED) | ["检查页面加载完成后,是否包含顶部导航栏(含标题),以及主体居中的(...TRUNCATED) |
7 | "请你在后续所有轮次的回复中,严格遵循以下约束条件:\n1. 你回复用户的(...TRUNCATED) | [{"constraint":"你回复用户的生成内容必须始终保持为中文","validation_code":"","tag(...TRUNCATED) | UI/UX Optimization | [{"round_id":0,"instruction":"帮我写一个移动端风格的网页布局。要求整体限制在(...TRUNCATED) | ["验证页面整体布局:查看整个网页的渲染效果,确认页面整体最大宽度被(...TRUNCATED) |
8 | "请你在后续所有交互轮次中严格遵循以下约束:\n1. 进行自我指代时,请始(...TRUNCATED) | [{"constraint":"进行自我指代时,请始终使用“编程小助手”代替“我”这一规(...TRUNCATED) | Build & Deployment | [{"round_id":0,"instruction":"帮我搭一个 TSL 专属的分屏编辑器框架。顶部需要一(...TRUNCATED) | ["检查页面基础布局:打开网页,查看顶部是否包含一个深色的标题栏且左(...TRUNCATED) |
9 | "你在后续所有轮次处理任务时,必须始终遵循以下约束:\n1. 在为用户生成(...TRUNCATED) | [{"constraint":"在为用户生成回复时,你必须永远只用中文","validation_code":"","tag(...TRUNCATED) | Frontend Development | [{"round_id":0,"instruction":"你好!我想做一个配色方案生成的交互式工具网站。(...TRUNCATED) | ["页面初始加载后,截图检查落地页结构。需包含顶部导航栏(包含Logo和'进(...TRUNCATED) |
10 | "你在后续所有的操作过程中,必须始终严格遵循以下所有约束条件:\n1. 你(...TRUNCATED) | [{"constraint":"你所生成的所有代码文件都必须使用UTF-8进行编码","validation_code"(...TRUNCATED) | Machine Learning | [{"round_id":0,"instruction":"帮我用纯前端技术(HTML/CSS/JS)结合SVG写一个“深度(...TRUNCATED) | ["观察页面初始状态,截屏验证画布基础设置:页面包含一个浅灰色背景的(...TRUNCATED) |
MTAC-IFBench: Benchmarking Instruction-Following in Multi-Turn Agentic Coding
🌟 Overview
MTAC-IFBench benchmarks instruction following in multi-turn agentic coding.
Existing agentic coding benchmarks (e.g., SWE-bench, Terminal-Bench) focus on final functional correctness, while current instruction-following benchmarks confine themselves to single-turn chat or code generation. Neither answers the question that matters in a real development session: does the agent keep following the rules, turn after turn, as the requirements change?
In real multi-turn software development, an agent must comply with:
- Repository policy files (
CLAUDE.md,AGENTS.md) that govern the whole session - Per-turn constraints on the response, the code, the environment, and its own workflow
- Constraints that persist across turns without decaying as context grows
- Constraints that are added, revised, or overridden by later instructions
Each instance in MTAC-IFBench is a complete development session: a repository policy file, 5–10 progressive user instructions, a constraint checklist for every turn, and a function checklist for the finished project. Each checklist item is verified by a verification script or a judge agent otherwise. MTAC-IFBench identifies significant deficiencies in existing code agents in multi-turn instruction-following, with performance degrading rapidly as the interaction session grows longer. See our paper for full results.
📊 Data statistics
| Metric | Value |
|---|---|
| Instances | 100 (full) / 20 (lite) |
| Constraints | 9,133 |
| Avg. turns per instance | 7.04 (sequences span 5 to 10 turns) |
| Avg. constraint checklist items | 91.33 per instance, 12.97 per turn |
| Avg. function checklist items | 16.07 per instance |
📦 Constraint taxonomy
Constraints in MTAC-IFBench span 6 primary and 18 secondary categories, covering the generated response and code as well as the agent's environment interactions and workflow.
| Primary Category | Secondary Categories | Description | Example |
|---|---|---|---|
| Content | Keyword, Persona, Format | Lexical elements, adopted persona, and structural templates in the generated code or responses | Every response must end with the modal particle "meow~". |
| Language | Response Language, Comment Language, File Encoding | The language used for responses and comments, and the character encoding of created files | All comments in every code file you generate must be in Chinese. |
| Quantity | Range, Exact Value, Complexity | Quantitative attributes of generated artifacts, as ranges, exact values, or complexity caps | Each file you generate must contain between 200 and 500 lines. |
| Style | Layout, Naming, Paradigm | Spatial organization, naming conventions, and the programming style used in implementation | Every function name in the code files you generate must follow snake case. |
| Environment | File Path, File Operation, Logging | How files are referenced, placed, and modified, and what record the agent leaves of its work | Before modifying an existing file each time, you must create a backup of the original file in the same directory. |
| Workflow | Tool Usage, Orchestration, Testing | Tool selection and sequencing of multi-step actions, and code verification practices | You must execute multiple independent tool calls in parallel as much as possible to improve efficiency. |
⚙️ Data format
Each line is one instance, a JSON object with the following fields:
{
"task_id": 1,
"task_category": "Data Analysis",
"repository_policy": "# 项目规范\n所有的回复内容都应以语气词\"喵~\"起头 ...",
"repository_policy_checklist": [
{
"constraint": "所有的回复内容都应以语气词\"喵~\"起头",
"validation_code": "def check_requirement(response: str, workspace_path: str) -> bool:\n ...",
"tags": ["Content", "Persona"]
},
...
],
"rounds": [
{
"round_id": 0,
"instruction": "帮我写一个监控表格页面的基础框架。页面需要一个大标题 ...",
"instruction_following_checklist": [
{
"constraint": "...",
"validation_code": "...",
"tags": ["Style", "Layout"]
},
...
]
},
...
],
"function_checklist": [
"查看页面整体结构,确认页面顶部包含大标题 ...",
...
]
}
| Field | Description |
|---|---|
task_id |
Instance id (1–100) |
task_category |
Development domain: Frontend Development, Data Analysis, Application Development, UI/UX Optimization, Build & Deployment, or Machine Learning |
repository_policy |
Repository policy file content (e.g. CLAUDE.md / AGENTS.md), imposing global constraints over the whole session |
repository_policy_checklist |
Constraint checklist for the repository policy file; applies to every turn |
rounds |
The multi-turn instruction sequence. Each entry carries a round_id, the user instruction for that turn, and an instruction_following_checklist holding all constraints in force at that turn, including constraints from the repository_policy file |
function_checklist |
Functional requirements for the final project |
🚀 Usage
Evaluation uses AgentProbe, a sandbox framework for coding-agent assessment.
1. Set up
git clone https://github.com/abelperry/AgentProbe.git && cd AgentProbe
uv sync
./scripts/init.sh && source .agentprobe-env
uv pip install huggingface_hub
python scripts/pull_benchmarks.py --repo mtacifbench=thu-coai/MTAC-IFBench
2. Place the data
The adapter reads benchmarks/mtacifbench/data/questions.jsonl:
cd benchmarks/mtacifbench/data
cp data/full/questions.jsonl questions.jsonl # or data/lite/questions.jsonl
cp eval_config/judge.yaml . # or judge_if_function.yaml
judge.yaml scores instruction-following only, while judge_if_function.yaml also builds the final project and checks the function checklist.
3. Configure the agent
In examples/exp-mtacifbench.yaml, models: is the LLM to be evaluated and agents: is the harness driving it.
models:
your-model:
base_url: "${GATEWAY_BASE_URL}"
api_key: "${GATEWAY_API_KEY}"
model_name: "your-model"
format: "anthropic"
agents:
claude_code:
type: "agent_probe.agents.claude_code.ClaudeCodeAgent"
version: "2.1.14"
offline: true
offline_package_dir: ${OFFLINE_PACKAGE_DIR}
# opencode:
# type: "agent_probe.agents.opencode.OpenCodeAgent"
# version: "1.1.21"
# params: {output_format: "json"}
Every agent listed runs against every model listed, so you can uncomment opencode to compare one model across both harnesses.
4. Start evaluation
export GATEWAY_BASE_URL=... GATEWAY_API_KEY=...
uv run agentprobe -c examples/exp-mtacifbench.yaml -l info
Results land under output/{experiment}/{dataset}/{agent}/{model}/, with aggregated metrics in metrics.jsonl.
👏 Citation
@article{wen2026mtacifbench,
title = {MTAC-IFBench: Benchmarking Instruction-Following in Multi-Turn Agentic Coding},
author = {Wen, Bosi and Wang, Cunxiang and Gui, Jiayi and Zhang, Haoke and
Niu, Yilin and Ke, Pei and Yang, Dayong and Wang, Hongning and Huang, Minlie},
journal = {arXiv preprint arXiv:2609.14992},
year = {2026}
}
Please kindly cite our paper if this paper and the codes are helpful.
- Downloads last month
- 129