TL;DR
This paper introduces OctoBench, a new benchmark for evaluating how well AI coding agents follow complex, multi-part instructions within real-world coding environments. They found that while agents can often complete individual steps, they struggle with maintaining consistent instruction adherence over long interactions, highlighting a significant gap between task completion and true scaffold-aware coding.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly being used as "agents" to perform complex coding tasks, often within specialized "scaffolds" that provide tools and structure. However, evaluating these agents' ability to follow instructions, especially when those instructions are numerous, come from different sources (like system prompts, project documentation, or tool schemas), and persist over many interactions, is a major challenge. Existing benchmarks often focus on single-turn instructions or just the final outcome, missing crucial details about how the agent arrived at its solution and whether it adhered to all the underlying rules. This gap makes it hard to understand and improve the reliability of these AI coding assistants in real-world scenarios.
Methods
The authors developed OctoBench, a benchmark designed to specifically test "scaffold-aware instruction following" in repository-grounded agentic coding. The core of their approach involves:
- Heterogeneous Instruction Sources: They simulate realistic coding environments where instructions can come from multiple sources, such as system prompts, user queries, project documentation (like
AGENTS.mdorCLAUDE.md), skill documentation, memory states, and tool schemas. - Repository-Grounded Tasks: The tasks are set within actual code repositories, requiring agents to navigate and interact with files and tools.
- Automated Observation and Scoring: They built a toolkit that captures the agent's entire interaction trajectory (all messages, tool calls, etc.). This trajectory is then automatically mapped to a structured, binary checklist of verifiable constraints.
- LLM-as-a-Judge: An LLM is used to score each checklist item based on the agent's trajectory, allowing for fine-grained, process-level evaluation. This helps disentangle task success from instruction adherence.
- Conflict Construction: They also created OctoBench-CONFLICT, a subset of the benchmark specifically designed to test how agents handle intentionally conflicting instructions from different sources.
Datasets
The paper introduces OctoBench, a novel benchmark comprising:
- 34 distinct environments.
- 217 tasks.
- Tasks instantiated under three scaffold types: Claude Code, Kilo, and Droid.
- 7,098 objective, binary checklist items.
They also created OctoBench-CONFLICT, a complementary dataset with 32 instances featuring intentionally conflicting instructions to study model behavior in such scenarios.
Key Insights and Ideas
- The "ISR-CSR Gap": A significant finding is the large discrepancy between "Check item Success Rate" (CSR) and "Instance Success Rate" (ISR). While models might achieve high compliance on individual checklist items (high CSR), they often fail to satisfy all constraints for an entire task (low ISR). This highlights that passing individual checks doesn't guarantee overall reliable instruction following.
- Instruction Persistence is Hard: Agents struggle to maintain adherence to instructions over long, multi-turn interactions. Performance often decays as the interaction length increases, suggesting "context fatigue."
- Scaffold Matters: Model performance varies significantly across different coding scaffolds (Claude Code, Kilo, Droid), indicating a lack of generalizability.
- Conflict Resolution is Biased: Models exhibit different biases when resolving conflicting instructions. Some consistently favor system constraints, while others prioritize user requests, and this behavior can vary depending on the type of conflict.
- Safety is (Mostly) a Hard Floor: Safety-critical constraints (like forbidding dangerous commands) are generally respected by most models, acting as a "hard floor." However, some models show "surface compliance," performing superficial safety steps before ultimately violating the rule.
Key Results
- Overall Performance: Evaluated models showed high CSR (79.75% - 85.64%) but significantly lower ISR (9.66% - 28.11%), demonstrating the "scissors gap."
- Category-Specific Performance: Compliance varied by instruction category, with "Skill" constraints being a particular bottleneck compared to "Memory" constraints.
- Scaffold Robustness: Claude-Opus-4.5 showed stronger cross-scaffold robustness compared to other models.
- Conflict Resolution: Models showed a hierarchy in conflict resolution: System Prompt (SP) dominated Project Documentation (MD), and User Query (UQ) dominated MD. UQ vs. SP conflicts showed the most model-dependent variation.
- Feedback Effectiveness: External supervisory signals (feedback) universally improved model performance, with some models showing significant gains in ISR and CSR.
Limitations and Future Work
- LLM Dependence: The benchmark's checklist generation and scoring rely on LLMs. While they mitigate bias through ensemble judging and human audits, residual errors or ambiguities might persist, especially for implicit interfaces or ambiguous evidence.
- Scope: OctoBench covers 34 environments and three scaffolds but doesn't exhaust all possible agentic coding tools, enterprise policies, or long-horizon workflows. Some instruction categories might be under-represented.
- Focus on Verifiable Constraints: The benchmark prioritizes objective, binary-decidable constraints over subjective quality judgments (like explanation clarity or pedagogy), which are harder to automate.
- Future Work: The authors suggest expanding scaffold coverage, developing stronger deterministic checks, and improving robustness against strategic behaviors that avoid triggering conditional requirements. They also plan to release the dataset and evaluation toolkit to encourage further research.
Summary updated