Yang
commited on
Upload 3 files
Browse files- OctoCodingBench.jsonl +0 -0
- README.md +139 -3
- README_CN.md +140 -0
OctoCodingBench.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
README.md
CHANGED
|
@@ -1,3 +1,139 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- code
|
| 9 |
+
- agent
|
| 10 |
+
- benchmark
|
| 11 |
+
- evaluation
|
| 12 |
+
pretty_name: OctoCodingBench
|
| 13 |
+
size_categories:
|
| 14 |
+
- n<1K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# OctoCodingBench: Instruction-Following Benchmark for Coding Agents
|
| 18 |
+
|
| 19 |
+
[English](README.md) | [中文](README_CN.md)
|
| 20 |
+
|
| 21 |
+
## 🌟 Overview
|
| 22 |
+
|
| 23 |
+
**OctoCodingBench** is a comprehensive benchmark for evaluating how well AI coding agents follow instructions from multiple sources. Unlike existing benchmarks that focus solely on task completion, OctoCodingBench systematically tests whether agents respect constraints from:
|
| 24 |
+
|
| 25 |
+
- **System Prompts (SP)** — Role definitions, output formats, workflow rules
|
| 26 |
+
- **System Reminders** — Behavior correction, tool usage reminders, information confidentiality
|
| 27 |
+
- **User Queries** — Task requirements, multi-turn instruction changes
|
| 28 |
+
- **Project Documentation (Agents.md)** — Coding conventions from `CLAUDE.md`, `AGENTS.md`
|
| 29 |
+
- **Skills** — Skill invocation workflows and protocols
|
| 30 |
+
- **Memory** — User preferences and project context continuation
|
| 31 |
+
- **Tool Schema** — Parameter correctness, call sequence, no hallucinated results
|
| 32 |
+
|
| 33 |
+
## 🚀 Key Features
|
| 34 |
+
|
| 35 |
+
- **Multi-Source Instruction Evaluation**: Tests agent compliance across 7 distinct instruction categories
|
| 36 |
+
- **Checklist-Based Scoring**: Each instance includes a structured checklist with binary-decidable checks
|
| 37 |
+
- **Real-World Scenarios**: Tasks derived from actual development workflows
|
| 38 |
+
- **Multi-Scaffold Support**: Evaluated across Claude Code, Kilo, and Droid environments
|
| 39 |
+
|
| 40 |
+
## 📦 Dataset Contents
|
| 41 |
+
|
| 42 |
+
This release contains **72 curated instances** with:
|
| 43 |
+
|
| 44 |
+
- Natural language task specifications
|
| 45 |
+
- System prompts with behavioral constraints
|
| 46 |
+
- Structured evaluation checklists (2,422 total check items)
|
| 47 |
+
- Category and scaffold metadata
|
| 48 |
+
|
| 49 |
+
## 📊 Dataset Statistics
|
| 50 |
+
|
| 51 |
+
| Category | Instances |
|
| 52 |
+
|----------|-----------|
|
| 53 |
+
| Skill | 17 |
|
| 54 |
+
| Claude.md | 15 |
|
| 55 |
+
| AGENTS.md | 13 |
|
| 56 |
+
| Memory | 12 |
|
| 57 |
+
| System Prompt | 11 |
|
| 58 |
+
| User Query | 4 |
|
| 59 |
+
| **Total** | **72** |
|
| 60 |
+
|
| 61 |
+
| Scaffold | Instances |
|
| 62 |
+
|----------|-----------|
|
| 63 |
+
| Claude Code | 54 |
|
| 64 |
+
| Kilo | 11 |
|
| 65 |
+
| Droid | 7 |
|
| 66 |
+
|
| 67 |
+
| Metric | Value |
|
| 68 |
+
|--------|-------|
|
| 69 |
+
| Total check items | 2,422 |
|
| 70 |
+
| Avg checks per instance | 33.6 |
|
| 71 |
+
|
| 72 |
+
## 📝 Data Format
|
| 73 |
+
|
| 74 |
+
Each instance is a JSON object with the following fields:
|
| 75 |
+
|
| 76 |
+
```json
|
| 77 |
+
{
|
| 78 |
+
"instance_id": "md-course-builder-conventional-commits",
|
| 79 |
+
"user_query": ["Implement the feature as specified..."],
|
| 80 |
+
"system_prompt": "You are a CLI assistant...",
|
| 81 |
+
"category": "Claude.md",
|
| 82 |
+
"image": "docker-image-name",
|
| 83 |
+
"scaffold": {"name": "claudecode"},
|
| 84 |
+
"checklist": {
|
| 85 |
+
"SP": {
|
| 86 |
+
"description": "System prompt constraints...",
|
| 87 |
+
"checks": [
|
| 88 |
+
{
|
| 89 |
+
"check_id": "SP_no_emoji",
|
| 90 |
+
"description": "Check whether the assistant avoids emoji",
|
| 91 |
+
"check_type": "compliance"
|
| 92 |
+
}
|
| 93 |
+
]
|
| 94 |
+
},
|
| 95 |
+
"User query": {...}
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
| Field | Description |
|
| 101 |
+
|-------|-------------|
|
| 102 |
+
| `instance_id` | Unique task identifier |
|
| 103 |
+
| `user_query` | List of user messages (supports multi-turn) |
|
| 104 |
+
| `system_prompt` | System-level behavioral constraints |
|
| 105 |
+
| `category` | Primary instruction source being tested |
|
| 106 |
+
| `image` | Docker image for task environment |
|
| 107 |
+
| `scaffold` | Agent scaffold configuration |
|
| 108 |
+
| `checklist` | Structured evaluation criteria |
|
| 109 |
+
|
| 110 |
+
## 💻 Usage
|
| 111 |
+
|
| 112 |
+
```python
|
| 113 |
+
from datasets import load_dataset
|
| 114 |
+
|
| 115 |
+
# Load the dataset
|
| 116 |
+
dataset = load_dataset("MiniMaxAI/OctoCodingBench")
|
| 117 |
+
|
| 118 |
+
# Filter by category
|
| 119 |
+
skill_tasks = [d for d in dataset["train"] if d["category"] == "Skill"]
|
| 120 |
+
|
| 121 |
+
# Filter by scaffold
|
| 122 |
+
claudecode_tasks = [d for d in dataset["train"] if d["scaffold"]["name"] == "claudecode"]
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
## ⚖️ Evaluation Metrics
|
| 126 |
+
|
| 127 |
+
- **ISR (Instance Success Rate)**: 1 if all checks pass, 0 otherwise
|
| 128 |
+
- **CSR (Checklist Success Rate)**: Proportion of passed checks
|
| 129 |
+
|
| 130 |
+
## 📜 Citation
|
| 131 |
+
|
| 132 |
+
```bibtex
|
| 133 |
+
@misc{octocodingbench2026,
|
| 134 |
+
title={OctoCodingBench: Instruction-Following Benchmark for Coding Agents},
|
| 135 |
+
author={MiniMax},
|
| 136 |
+
year={2026},
|
| 137 |
+
publisher={Hugging Face}
|
| 138 |
+
}
|
| 139 |
+
```
|
README_CN.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- zh
|
| 7 |
+
tags:
|
| 8 |
+
- code
|
| 9 |
+
- agent
|
| 10 |
+
- benchmark
|
| 11 |
+
- evaluation
|
| 12 |
+
pretty_name: OctoCodingBench
|
| 13 |
+
size_categories:
|
| 14 |
+
- n<1K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# OctoCodingBench: 编程智能体指令遵循基准
|
| 18 |
+
|
| 19 |
+
[English](README.md) | [中文](README_CN.md)
|
| 20 |
+
|
| 21 |
+
## 🌟 概览
|
| 22 |
+
|
| 23 |
+
**OctoCodingBench**(智能体指令遵循基准)是一个全面评估 AI 编程智能体指令遵循能力的基准测试。与现有仅关注任务完成度的基准不同,OctoCodingBench 系统性地测试智能体是否遵循来自多个来源的约束:
|
| 24 |
+
|
| 25 |
+
- **系统提示 (System Prompt)** — 角色定义、输出格式、工作流规则
|
| 26 |
+
- **系统提醒 (System Reminder)** — 行为纠正、工具使用提醒、信息保密
|
| 27 |
+
- **用户查询 (User Query)** — 任务需求、多轮指令变更
|
| 28 |
+
- **项目文档 (Agents.md)** — 来自 `CLAUDE.md`、`AGENTS.md` 的编码规范
|
| 29 |
+
- **技能 (Skill)** — 技能调用流程和协议
|
| 30 |
+
- **记忆 (Memory)** — 用户偏好和项目上下文延续
|
| 31 |
+
- **工具模式 (Tool Schema)** — 参数正确性、调用顺序、无幻觉结果
|
| 32 |
+
|
| 33 |
+
## 🚀 核心特性
|
| 34 |
+
|
| 35 |
+
- **多源指令评估**:测试智能体对 7 种不同指令类别的遵循程度
|
| 36 |
+
- **检查清单评分**:每个实例包含结构化的二元判定检查项
|
| 37 |
+
- **真实场景**:任务源自实际开发工作流
|
| 38 |
+
- **多脚手架支持**:在 Claude Code、Kilo、Droid 环境中评估
|
| 39 |
+
|
| 40 |
+
## 📦 数据集内容
|
| 41 |
+
|
| 42 |
+
本次发布包含 **72 个精选实例**:
|
| 43 |
+
|
| 44 |
+
- 自然语言任务规范
|
| 45 |
+
- 带有行为约束的系统提示
|
| 46 |
+
- 结构化评估检查清单(共 2,422 个检查项)
|
| 47 |
+
- 类别和脚手架元数据
|
| 48 |
+
|
| 49 |
+
## 📊 数据集统计
|
| 50 |
+
|
| 51 |
+
| 类别 | 实例数 |
|
| 52 |
+
|------|--------|
|
| 53 |
+
| Skill| 17 |
|
| 54 |
+
| Claude.md | 15 |
|
| 55 |
+
| AGENTS.md | 13 |
|
| 56 |
+
| Memory | 12 |
|
| 57 |
+
| System Prompt | 11 |
|
| 58 |
+
| User Query | 4 |
|
| 59 |
+
| **总计** | **72** |
|
| 60 |
+
|
| 61 |
+
| 脚手架 | 实例数 |
|
| 62 |
+
|--------|--------|
|
| 63 |
+
| Claude Code | 54 |
|
| 64 |
+
| Kilo | 11 |
|
| 65 |
+
| Droid | 7 |
|
| 66 |
+
|
| 67 |
+
| 指标 | 数值 |
|
| 68 |
+
|------|------|
|
| 69 |
+
| 总检查项数 | 2,422 |
|
| 70 |
+
| 平均每实例检查项 | 33.6 |
|
| 71 |
+
|
| 72 |
+
## 📝 数据格式
|
| 73 |
+
|
| 74 |
+
每个实例是一个 JSON 对象,包含以下字段:
|
| 75 |
+
|
| 76 |
+
```json
|
| 77 |
+
{
|
| 78 |
+
"instance_id": "md-course-builder-conventional-commits",
|
| 79 |
+
"user_query": ["Implement the feature as specified..."],
|
| 80 |
+
"system_prompt": "You are a CLI assistant...",
|
| 81 |
+
"category": "Claude.md",
|
| 82 |
+
"image": "docker-image-name",
|
| 83 |
+
"scaffold": {"name": "claudecode"},
|
| 84 |
+
"checklist": {
|
| 85 |
+
"SP": {
|
| 86 |
+
"description": "System prompt constraints...",
|
| 87 |
+
"checks": [
|
| 88 |
+
{
|
| 89 |
+
"check_id": "SP_no_emoji",
|
| 90 |
+
"description": "Check whether the assistant avoids emoji",
|
| 91 |
+
"check_type": "compliance"
|
| 92 |
+
}
|
| 93 |
+
]
|
| 94 |
+
},
|
| 95 |
+
"User query": {...}
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
| 字段 | 描述 |
|
| 101 |
+
|------|------|
|
| 102 |
+
| `instance_id` | 唯一任务标识符 |
|
| 103 |
+
| `user_query` | 用户消息列表(支持多轮) |
|
| 104 |
+
| `system_prompt` | 系统级行为约束 |
|
| 105 |
+
| `category` | 被测试的主要指令来源 |
|
| 106 |
+
| `image` | 任务环境 Docker 镜像 |
|
| 107 |
+
| `scaffold` | 智能体脚手架配置 |
|
| 108 |
+
| `checklist` | 结构化评估标准 |
|
| 109 |
+
|
| 110 |
+
## 💻 使用方法
|
| 111 |
+
|
| 112 |
+
```python
|
| 113 |
+
from datasets import load_dataset
|
| 114 |
+
|
| 115 |
+
# 加载数据集
|
| 116 |
+
dataset = load_dataset("MiniMaxAI/OctoCodingBench")
|
| 117 |
+
|
| 118 |
+
# 按类别筛选
|
| 119 |
+
skill_tasks = [d for d in dataset["train"] if d["category"] == "Skill"]
|
| 120 |
+
|
| 121 |
+
# 按脚手架筛选
|
| 122 |
+
claudecode_tasks = [d for d in dataset["train"] if d["scaffold"]["name"] == "claudecode"]
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
## ⚖️ 评估指标
|
| 126 |
+
|
| 127 |
+
- **ISR(实例成功率)**:所有检查项通过为 1,否则为 0
|
| 128 |
+
- **CSR(检查清单成功率)**:通过的检查项占比
|
| 129 |
+
|
| 130 |
+
## 📜 引用
|
| 131 |
+
|
| 132 |
+
```bibtex
|
| 133 |
+
@misc{octocodingbench2026,
|
| 134 |
+
title={OctoCodingBench: Instruction-Following Benchmark for Coding Agents},
|
| 135 |
+
author={MiniMax},
|
| 136 |
+
year={2026},
|
| 137 |
+
publisher={Hugging Face}
|
| 138 |
+
}
|
| 139 |
+
```
|
| 140 |
+
|