Skip to content

Interpreting coding agents through behavioral trajectoriesInterpreting Coding Agents Through Their Behavioral Trajectories

Hugging Face Daily Papers· arXiv:2611.17440· Ibragim Badertdinov, Alexander GolubevNebiusIndexed by this site · 7 days ago· Originally publishedAlignment

Quick read

Analysis and theory

Based on the paper PDF (AI-generated); refer to the original

The authors use a rule-based parser to analyze 143,209 coding agent trajectories on SWE-rebench, claiming that at the same solve rate, workflow differences are reproducible and that behavioral profiles can retrieve agent stacks across repositories.

Questions
Coding agent benchmarks report only binary task success rates, and the execution process is treated as a black box, making it impossible to compare how agents explore, modify, and verify code; trajectory formats differ across harnesses, making cross-system analysis difficult.
Methods
The authors implement a rule-based parser that maps 143,209 heterogeneous trajectories to a unified high-level action taxonomy (with four attributes including operation type and target file role), audit parsing quality using six-model consensus, and then analyze using solve-rate matched pairs, a split-half null hypothesis, and behavioral profile retrieval.
Experiments and results
All 60 configuration pairs with solve rates differing by ≤1.0 pp separate on at least two workflow metrics; 8-feature behavioral profiles achieve 85.1% Top-1 retrieval across repositories and 90.3% across languages; scaffold and reasoning effort systematically change exploration, editing, and testing behavior.
Limitations and future work
The authors note: the parser is audited using LLM consensus rather than human annotation; rule matching may lose semantics; only explicit tool calls are analyzed; trajectories come from a single benchmark; matching by aggregate solve rate does not control for specific tasks; and cross-repository retrieval has task-composition confounding.
Experimental setupClaude Opus 4.6、Claude Opus 4.7 et al. · SWE-rebench · solve rate、operational actions et al.
Evaluated models
Claude Opus 4.6Claude Opus 4.7Claude Opus 4.8Claude Opus 5 (claude-opus-5)GPT-5.4GPT-5.5GPT-5.6 Sol (gpt-5.6-sol)
Benchmarks
SWE-rebench
Metrics
solve rateoperational actionsexploration sharenon-test repository writesformal-test invocationsconsecutive repeated failuresunproductive tailTop-1/Top-3 retrieval recallparser agreement/Macro-F1
AI summaryThe researchers analyzed 143,209 coding agent execution trajectories, covering 125 agent configurations and 117 models, and found that agents with similar solve rates differ markedly in their behavior when exploring, modifying, and verifying code. The team developed a rule-based parser that maps raw execution records to high-level actions such as repository search, file editing, and test execution, and audited its predictions against a six-model consensus reference on 500 events. Without using task outcomes, token counts, or tool names as features, aggregated behavior profiles could still retrieve the corresponding agent stack across non-overlapping repository sets and programming languages, although task composition was not fully controlled under the cross-repository setting. Analysis of frontier models and agent scaffolds shows that scaffold choice and reasoning effort systematically change agents' search, editing, and testing behavior. The team also released the deterministic parser, the full annotation and analysis pipeline, and a subset of annotated trajectories.

The researchers analyzed 143,209 coding agent execution trajectories, covering 125 agent configurations and 117 models, and found that agents with similar solve rates differ markedly in their behavior when exploring, modifying, and verifying code. The team developed a rule-based parser that maps raw execution records to high-level actions such as repository search, file editing, and test execution, and audited its predictions against a six-model consensus reference on 500 events. Without using task outcomes, token counts, or tool names as features, aggregated behavior profiles could still retrieve the corresponding agent stack across non-overlapping repository sets and programming languages, although task composition was not fully controlled under the cross-repository setting. Analysis of frontier models and agent scaffolds shows that scaffold choice and reasoning effort systematically change agents' search, editing, and testing behavior. The team also released the deterministic parser, the full annotation and analysis pipeline, and a subset of annotated trajectories.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Coding agent benchmarks only look at binary success rates; the authors propose using a unified behavioral representation to analyze 140,000 execution trajectories.

    Core question: Coding agent benchmarks compress multi-step execution into a binary task success rate; the execution process is a black box, and it cannot answer "how" an agent completes a task.

    • Scenario and motivation: solve rate is suitable for ranking systems, but the authors argue it provides limited information for diagnosing failures and understanding how different models solve problems; scaffolding changes both the workflow and the success rate, and behavior depends on the entire system rather than the base model.
    • Obstacles to large-scale analysis: different harnesses expose different tools, command formats, and logging schemas; comparing directly by tool name or raw command conflates semantic actions with implementation details, and cross-system analysis requires a shared representation independent of the harness.
    • Core observation: the authors argue that solve rate cannot uniquely characterize agent behavior—configurations with similar performance may differ greatly in the frequency of searching, viewing, editing, and testing.
    • Contributions of the paper: the authors propose a deterministic rule-based parser that maps heterogeneous trajectory events to a unified set of high-level action categories, and apply it to 143,209 trajectories from SWE-rebench (125 configurations, 117 models); the authors state they have released the parser, the analysis pipeline, and an annotated subset of trajectories.
    • Object of analysis: the authors define an agent stack as the complete deployment system (base model + scaffolding harness + reasoning effort + API decoding parameters); the same model under different scaffolds counts as a different stack; the analysis only looks at observable tool calls and environment interactions, and does not inspect reasoning traces.
  2. What related research exists?

    Related work falls into three groups: multi-dimensional benchmark evaluation, process-level trajectory analysis, and failure diagnosis; this paper is positioned as large-scale cross-stack analysis.

    Software engineering benchmarks and evaluation

    • Jimenez et al. (2024)—SWE-bench, which evaluates by the binary outcome of whether the issue is resolved and tests pass, and is the representative of the "treating execution as a black box" approach criticized in this paper.
    • Kapoor et al. (2025)—extends execution-based evaluation to multidimensional assessment; Badertdinov et al. (2025)—SWE-rebench, a contamination-resistant task collection and evaluation environment, and the source of the trajectories in this paper.
    • Bjarnason et al. (2026)—repeated rollouts on the same issue differ greatly in behavior, which the authors use to argue that the execution trajectory itself needs to be understood.

    Process-level behavior analysis

    • Ma et al. (2024)—examines intermediate task progress; Sahoo et al. (2026)—annotates workflows by stage; Gao et al. (2026)—a manually verified behavior vocabulary.
    • Liu et al. (2026)—represents execution rollouts with process flow graphs; Oderinwale (2026)—represents trajectories as programmatic process traces.
    • Mehtiyev and Assunção (2026)—the effect of task composition on behavior; Shu et al. (2026), Kim et al. (2026), Bouzenia and Pradel (2025), among others—analyze bottlenecks in the code search, reading and editing stages.

    Trajectory failure diagnosis

    • Zhao et al. (2026)—models error accumulation and recovery as a dynamic process; Wang et al. (2026)—TrajAudit, which uses reference-aware signals to locate failure points.
    • Raj et al. (2026)—emphasizes that agent capability is tied to the interaction harness, tool definitions and runtime environment, rather than depending only on model weights.

    Positioning: The authors describe this paper as complementary to the above work—using outcome-matched comparisons to separate workflow differences from performance and rollout randomness, and testing whether behavioral profiles are stable across disjoint repositories and programming languages; the paper does not propose a new task benchmark, nor does it make numerical comparisons with other methods (no baseline methods).

  3. How does the paper address this problem?

    Rule-based parser unified action representation + six workflow metrics + matched pairs and null-hypothesis controls + behavioral profile retrieval.

    Overall approach: normalize heterogeneous execution trajectories into unified high-level action sequences, define workflow metrics on top of them, use outcome-matched pairing and a split-half null hypothesis to distinguish "differences between stacks" from "run-to-run randomness," and then test whether aggregated behavioral profiles can identify agent stacks across environments.

    Data and analysis units

    • Corpus: 143,209 complete trajectories from SWE-rebench, including 860 Python tasks (413 repositories, January 2025 to May 2026) and 111 multilingual tasks (Go/Java/Python/Rust/TypeScript); 125 configurations and 117 base models.
    • Analysis set splits: The full Python set (111 configurations) and the multilingual set (16 frontier configurations) are used for cross-repository/cross-language retrieval; a fixed set of 110 Python tasks from March–May 2026 (multiple rollouts per task) serves as the controlled panel.
    • Analysis unit: A single tool call; each trajectory consists of structured messages, tool calls and environment observations, and reasoning traces are not examined.

    Action taxonomy (Figure 1)

    • Rule-based parser: Pattern-matches shell commands, scripts and API tool calls to four attributes—primary operation (10 classes, such as exploration, search, file reading, file mutation, formal test execution, workspace inspection), target file role (distinguishing test/non-test files based on path heuristics), mutation type (create/edit/delete/mixed), read mode (direct read vs. windowed continuation read).
    • Counting conventions: Total actions include all attempted calls (including malformed and rejected ones); action proportions are computed only over executed semantic operations.

    Six workflow metrics

    • Metrics: operational actions (total attempted non-terminal tool calls), exploration share, non-test repository writes (non-test file modifications without a failed observation), formal-test invocations, consecutive repeated failures (adjacent failures with the same signature), unproductive tail (actions after the last effective write or passing test).
    • Aggregation: Matched pairs and the case panel are aggregated over 5 rollouts per task; the reasoning-effort panel is aggregated over 2 rollouts.

    Parser audit and control design

    • Six-model consensus audit: On 500 stratified sampled actions, 6 frontier LLMs perform blind evaluation, and a reference label is established only with at least 5/6 agreement; samples are drawn from held-out rollouts after the parsing rules were finalized, excluding 1,475 development trajectories.
    • Outcome-matched pairing: Configuration pairs with the same scaffold but different base models are required to have |∆solve| ≤ 1.0 pp on ≥50 shared tasks, and metric separation is determined using task-paired 95% bootstrap confidence intervals.
    • Split-half null hypothesis (A/A control): Rollouts of the same configuration are repeatedly split in half (100 random seeds), measuring run-to-run differences within the same stack as an empirical baseline.

    Behavioral profile retrieval

    • Cross-repository: An 8-dimensional profile (4 normalized action coordinates + 4 sequence/verification features), strictly excluding solve outcomes, total action counts, token counts and tool names; 413 repositories are split in half, with cosine nearest-neighbor retrieval (222 queries).
    • Cross-language: A 12-dimensional profile (shares of 10 action classes + entropy and switch rate); 16 configurations are evaluated on 5 languages across all 10 3-vs-2 language splits (320 directional queries).
  4. What experiments did the paper conduct?

    Parser audit, workflow separation of 60 matched configuration pairs, cross-repository/cross-language retrieval, scaffold and reasoning-effort analysis.

    Experimental setup

    • Subjects: 125 agent configurations (117 base models); those named in the main text include Claude Opus 4.6/4.7/4.8/5 and GPT-5.4/5.5/5.6 Sol, with scaffolds including SWE-agent-like, Claude Code and Codex.
    • Data: SWE-rebench, 143,209 trajectories (134,329 Python, 8,880 multilingual); the controlled panel is 110 tasks from spring 2026.
    • Metrics: Six workflow metrics (operational actions, exploration share, non-test repository writes, formal-test invocations, consecutive repeated failures, unproductive tail); retrieval uses Top-1/Top-3 recall.
    • Evaluation method: Parser auditing uses 6 frontier LLMs (claude-opus-5, gpt-5.6-sol, gemini-3.7-flash, Kimi-K3, DeepSeek-V4-Flash-0731, MiniMax-M3) for blind evaluation, with ≥5/6 agreement establishing the reference label, on a sample of 500 actions.
    • Repetitions: Matched pairs and the case panel use 5 rollouts per task; the reasoning-effort panel uses 2 per task; the null hypothesis uses 100 random split seeds.

    Main results

    Swipe horizontally to read the table

    ExperimentConditionResultSource
    Parser auditprimary operationagreement rate 82.4%, Macro-F1 88.8%Table 1
    Parser auditread mode / mutation type96.6% / 68.8%Table 1
    Matched-pair separation≥2 / ≥3 metrics100.0% / 96.7% (60 pairs)Table 2
    Null-hypothesis spurious separation≥2 / ≥3 metrics6.40% / 0.781%Table 2
    Cross-repository retrieval8 features, 111 stacksTop-1 85.1%, Top-3 96.8% (random 0.9%)Table 5
    Cross-language retrieval12 features, 16 stacksTop-1 90.3%, Top-3 98.8% (random 6.25%)Table 5
    • The authors state that configurations with similar solve rates (median |∆solve| = 0.40 pp) separate reproducibly in workflow, and that the magnitude of separation exceeds run-to-run noise within the same stack.
    • The authors state that behavioral profiles can retrieve the deployed stack without using outcomes, token counts or tool names; however, the cross-repository split does not control for task composition, and the authors explicitly say this result cannot establish a task-independent behavioral signature.
    • The authors treat the metrics with lower agreement—target file role (77.0%) and mutation type (68.8%)—as "diagnostic proxies" rather than precise assertions.

    Effects of model generation, reasoning effort and scaffold

    • Generational changes (Table 3, 110 shared tasks): For the Claude Opus series from 4.6 to 5, the share of sed -n line-range reads rises from 6.9% to 57.7%, and the share of pytest -q rises from 22.7% to 99.8%; for the GPT series from 5.4 to 5.6 Sol, total actions fall from 24.4 to 12.8, and 72.1% of edits are done via inline Python scripts.
    • Reasoning effort (Table 3, Table 12): For GPT-5.5 from Medium to xHigh, total actions rise from 24.2 to 43.4; for Opus 4.8 under Claude Code from Low to xHigh, they rise from 31.3 to 54.4, with the increase mainly from exploration and reading (+12.71 actions), the share of rollouts with post-write workspace inspection rises from 12.7% to 66.8%, and the change in unproductive tail is −0.50 (95% CI [−5.60, 2.53]).
    • Scaffold (Table 4): In the Claude Code stack, 92.4% of edits and 90.5% of reads go through the native API; under SWE-agent-like, only 0.5% of GPT-5.5 edits go through the native interface and 69.0% go through Python scripts; in the Codex stack, 30.9% of edits go through the native interface.

    Case study (Appendix D)

    • Setup: On 3 tasks, Claude Opus 5 and GPT-5.6 Sol use the same bash harness and all 5 runs succeed.
    • Results: On pypsa-1653, Opus 5 averages 62.4 actions, with 48.4% of edits via shell redirection and 12.4 test invocations, while Sol has 15.0 actions, 100% of edits via inline Python and 3.4 tests (Table 9); the other two tasks likewise differ markedly in exploration granularity and post-write verification strategy (Tables 10, 11).
    • Authors' interpretation: Matched solve rates mask differences in editing interface, exploration granularity and verification stopping strategy.

    Other ablations and analyses

    • Cross-repository retrieval ablation (Table 7): action coordinates only Top-1 62.6%, sequence/verification features only 56.8%; restricted to the 107-stack subset using the SWE-agent harness, 85.5%.
    • After filtering unparsed commands, Top-1 is between 83.8% and 89.0% (Appendix C.2).
    • Cross-language ablation (Table 8): action composition only 87.5%, process dynamics only 36.3%; restricted to the 13-stack SWE-agent subset, 88.5% (random 7.7%).
    • The single-metric spurious separation rates in the null hypothesis are close to nominal levels: action count 6.30%, exploration share 5.97%, test invocations 6.58% (Appendix B).
  5. What are some points that can be further explored?

    The authors list six limitations and plan to use trajectory signals for directions such as reward hacking detection and process reward models.

    Limitations noted by the authors and future directions

    • LLM consensus rather than human annotation: the parser audit uses frontier-model consensus, with agreement rates across fields ranging from 96.6% (read mode) to 68.8% (mutation type), and shared systematic model bias may exist (Section 5).
    • Granularity of rule matching: deterministic rules capture only coarse-grained operation structure and may lose semantic context or intent in non-standard commands (Section 5).
    • Only explicit tool calls are examined: the analysis omits internal chain of thought and intermediate text; free-form verbal planning may contain information about intent and latent failure modes (Section 5).
    • Single benchmark source: all trajectories come from SWE-rebench; drawing tasks from recent repository activity can only reduce, not eliminate, contamination, and models may also recognize the evaluation environment, so the profiles may not transfer as-is to real deployments (Section 5).
    • Matching criterion: matching by aggregate solve rate does not control which specific tasks each agent solved; matching by per-task results would be stricter (Section 5).
    • Domain-specific taxonomy: the action taxonomy is oriented toward software engineering benchmarks, and domains such as open-ended scientific research or interactive design require extending the parser (Section 5); the authors plan in the future to use trajectory audits to detect reward hacking, use trajectory signals as supervision for process reward models and RL, and relate behavioral profiles to token cost and latency (Section 5).

    Scope of experimental coverage

    • The subjects are 125 configurations and 117 models on SWE-rebench; the main-text generation and scaffold analyses cover only Claude Opus 4.6–5, GPT-5.4–5.6 Sol, and three harnesses: SWE-agent-like, Claude Code, and Codex (Table 3, 4).
    • The parser audit sample is 500 actions, and only single-action labels were validated; multi-step sequence metrics (such as repeated failures and unproductive tail) were not validated (Appendix A.3).
    • Cross-repository retrieval uses 111 stacks and 222 queries; cross-language retrieval uses 16 configurations, 5 languages, and 320 queries (Table 5, Appendix C).
    • The reasoning-effort decomposition is reported only on Claude Opus 4.8 (Claude Code, 880 trajectories, 2 rollouts per task) and GPT-5.5 (Appendix E, Table 3).
    • The paper does not report agreement between the LLM labels in the parser audit and human annotation; the case study is 3 tasks with 5 runs per task (Appendix D).
  6. Summarize the main content of the paper

    A unified behavioral analysis of 140,000 trajectories: the same solve rate does not mean the same behavior, and behavioral profiles can identify agent stacks across repositories and languages.

    A large-scale analysis paper on the execution behavior of coding agents, arguing for treating trajectory behavior as a supplementary evaluation dimension beyond task success rate.

    • Problem: Benchmarks report only a binary solve rate, and the execution process is a black box; trajectory formats are heterogeneous across harnesses, making cross-system comparison difficult.
    • Method: A deterministic rule-based parser maps 143,209 SWE-rebench trajectories (125 configurations, 117 models) to a unified action taxonomy and defines six workflow metrics; six-model consensus is used to audit the parser on 500 actions (primary operation agreement rate 82.4%), and solve-rate matched pairs plus a split-half null hypothesis are used as controls.
    • Result one: All 60 same-scaffold configuration pairs with |∆solve| ≤ 1.0 pp separate on ≥2 metrics, 96.7% separate on ≥3 metrics, while in the same-stack null hypothesis only 0.781% show ≥3 spurious separations (Table 2).
    • Result two: An 8-feature behavioral profile that excludes outcomes, token counts and tool names achieves Top-1 of 85.1% (random 0.9%) for retrieving stacks across disjoint repositories and 90.3% (random 6.25%) across languages; the authors also state that the cross-repository results do not control for task composition and cannot establish a task-independent signature.
    • Result three: Scaffold and reasoning effort systematically change behavior—under Claude Code, 92.4% of edits go through the native API, while under SWE-agent-like, 69.0% of GPT-5.5 edits go through Python scripts; for Opus 4.8, total actions rise from 31.3 to 54.4 as reasoning effort goes from Low to xHigh, with the increase mainly in exploration and reading.
    • Authors' conclusion: Observable behavior reflects the entire agent stack rather than only the base model; the authors believe trajectory auditing can be used for diagnosis, discovering reward hacking and building process reward signals, and plan to release the parser, analysis pipeline and annotated subset; limitations include LLM-consensus auditing, a single benchmark source and a domain-specific taxonomy.
Read originalhuggingface.co