potentialpaper

Frontier Coding Agents Use Metaprogramming to Adapt to Unfamiliar Programming Languages

Aman Sharma, Sushrut Thorat, Paras Chopra

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Unfamiliar programming languages expose a hidden capability cliff: strong coding agents use tools, feedback, and workspace state to build working strategies during the session, with metaprogramming as the clearest mechanism.

Abstract. LLM-based coding agents are usually evaluated in familiar software settings: mainstream languages, common libraries, and public repositories. These benchmarks remain important, but they can hide how agents behave when the language itself is unfamiliar. We evaluate six contemporary coding agents on four esoteric programming languages using a sequential setup with file editing, local execution, and hidden-test grading. Our protocol exposes capability differences between these agents that mainstream coding and agentic benchmarks such as SWE-Bench Verified and Terminal-Bench 2.0 compress into much narrower bands. We observe that the strongest agents, Claude Opus 4.6 and GPT-5.4 xhigh, often avoid writing the target language directly. On Brainfuck and Befunge-98, they write Python programs that generate target-language code and debug those generators locally. Forbidding this metaprogramming strategy causes large performance drops. Text guidance distilled from this strategy does not materially improve weaker agents. In contrast, Opus-derived Python helper code for building generators, with no solved benchmark programs or hidden-test answers, sharply improves Sonnet 4.6 and GPT-5.4 mini on the same problems, while Haiku 4.5 remains low. More interpreter calls and output tokens improve stronger agents but leave weaker agents near their original performance, indicating that these resources amplify useful strategies rather than create them. Together, these results show that strong coding agents adapt to unfamiliar languages by using tools, feedback, and workspace state to build a working model of the target language. Metaprogramming is the clearest case, but the broader gap is constructing and debugging a strategy that works under the target language's rules.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
3 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:45 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The reviewers generally find this to be a carefully executed empirical study addressing an interesting question about how coding agents adapt to unfamiliar programming interfaces. They particularly appreciate the experimental design, the behavioral analyses, and the use of targeted interventions to support the paper’s central findings. The discussion centers primarily on the interpretation and generality of the observed behaviors. The rebuttal should therefore focus on clarifying the scope of the conclusions and strengthening the positioning of the work.

Positive aspects noted by the reviewers

  • Well-designed evaluation protocol that exposes capability differences not visible on mainstream coding benchmarks.
  • Careful causal analysis demonstrating the importance of metaprogramming through targeted interventions.
  • Insightful strategy-transfer experiments showing that executable scaffolds transfer more effectively than textual guidance.
  • Clear experimental methodology with generally well-motivated analyses and discussion.

Primary issues to address during rebuttal

  • Clarify the extent to which the findings generalize beyond esoteric programming languages to more realistic unfamiliar programming interfaces.
  • Better position the contribution relative to prior work on metaprogramming and related coding-agent techniques, and clarify what is genuinely novel.
  • Expand the behavioral analysis of lower-performing agents to better explain the observed capability differences and failure modes.
  • Discuss additional practical considerations raised by the reviewers, including deployment cost, session ordering effects, and other factors affecting real-world applicability.
Final justification

I have read the authors’ rebuttal and the subsequent reviewer discussion. The rebuttal substantially addressed the main concerns in the initial meta-review. Two reviewers found the new evidence convincing and maintained or increased their positive scores, while one reviewer remained negative.

I considered this post-rebuttal discussion in reaching my decision. Overall, I recommend acceptance, as the remaining concerns are important limitations but do not undermine the paper’s core contribution.

Area Chair P2x2 · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The reviewers generally find this to be a carefully executed empirical study addressing an interesting question about how coding agents adapt to unfamiliar programming interfaces. They particularly appreciate the experimental design, the behavioral analyses, and the use of targeted interventions to support the paper’s central findings. The discussion centers primarily on the interpretation and generality of the observed behaviors. The rebuttal should therefore focus on clarifying the scope of the conclusions and strengthening the positioning of the work.

Positive aspects noted by the reviewers

  • Well-designed evaluation protocol that exposes capability differences not visible on mainstream coding benchmarks.
  • Careful causal analysis demonstrating the importance of metaprogramming through targeted interventions.
  • Insightful strategy-transfer experiments showing that executable scaffolds transfer more effectively than textual guidance.
  • Clear experimental methodology with generally well-motivated analyses and discussion.

Primary issues to address during rebuttal

  • Clarify the extent to which the findings generalize beyond esoteric programming languages to more realistic unfamiliar programming interfaces.
  • Better position the contribution relative to prior work on metaprogramming and related coding-agent techniques, and clarify what is genuinely novel.
  • Expand the behavioral analysis of lower-performing agents to better explain the observed capability differences and failure modes.
  • Discuss additional practical considerations raised by the reviewers, including deployment cost, session ordering effects, and other factors affecting real-world applicability.
Final justification

I have read the authors’ rebuttal and the subsequent reviewer discussion. The rebuttal substantially addressed the main concerns in the initial meta-review. Two reviewers found the new evidence convincing and maintained or increased their positive scores, while one reviewer remained negative.

I considered this post-rebuttal discussion in reaching my decision. Overall, I recommend acceptance, as the remaining concerns are important limitations but do not undermine the paper’s core contribution.

Reviewer 1QfuOpenReview ↗
Rating
2/6
Confidence
3/5
Quality
2/4
Clarity
2/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper evaluates frontier coding agents such as Opus 4.6 and GPT-5.4 xhigh on four unfamiliar esoteric languages in an interactive setting. It shows that the capability gaps compressed by mainstream benchmarks widen sharply under this protocol. The strongest agents spontaneously adopt metaprogramming, writing host-language generators rather than authoring the target language directly, and a no-metaprogramming ablation confirms this is causal, though only on Brainfuck and Befunge-98. Weaker agents do not improve when the strategy is described in prose, but they improve sharply when it is provided as an executable library.

Strengths and weaknesses
  1. Limited novelty of the core finding. The central phenomenon, that agents reach for metaprogramming when a target language is hard to author directly, has been reported before. Zhang et al. [arXiv:2409.00856] explicitly compare metaprogramming against direct generation for visual dataflow audio languages and find that metaprogramming yields more semantically correct code, using the same term. More broadly, the idea of externalizing structure into an executable host language as the action space is well established, from Voyager's reusable code-skill library [arXiv:2305.16291] to CodeAct's executable-code action space. The paper's main framing is therefore incremental, and most of its real value lies in the strategy-transfer experiment (Section 3.4) rather than in the metaprogramming claim itself.

  2. Limited external validity; unfamiliarity and authoring fragility are confounded. The metaprogramming effect appears on only two of the four languages, Brainfuck and Befunge-98, and is essentially absent on Whitespace and Shakespeare, where forced direct authoring barely changes the score. This indicates that the deciding factor is not unfamiliarity per se but whether the target code is long and fragile to author directly. With only four languages, and a 2:2 split within them, unfamiliarity and authoring fragility remain confounded, so the broad claim about adaptation to unfamiliar executable interfaces is hard to generalize.

Questions

The +Lib result (Section 3.4) shows that mid-tier agents jump sharply when given an executable helper library such as meta_bflib.py, while the same strategy in prose does little. Viewed more broadly, isn't this close to tautological? The library is, in effect, a tool. An agent with sufficient raw capability but no prior exposure to the target language would be expected to improve once handed such a tool, much as a capable student can solve a hard problem once given the right scaffolding they had simply never encountered. In this sense, the +Lib intervention resembles supplying the agent with an externalized partial world model of the target interface, in the sense of affordance-based partial world models (arXiv:2602.10390): the helper functions encode exactly the executable affordances (which state transitions are reachable and how) that the agent otherwise has to construct from scratch. Given this, what does the +Lib result establish beyond the expected fact that providing a relevant tool helps? Concretely, can the authors separate (a) the agent lacking the implementation machinery from (b) the agent simply lacking exposure to the target language's affordances, since the library supplies both at once? Without that separation, it is unclear whether the finding speaks to a capability gap in constructing working interfaces or merely to the unsurprising value of being given one.

Limitations

yes, in chapter 4.

Final justification

After the rebuttal, I acknowledge that the APL experiment and the Shakespeare/APL contrast weaken my original "length and fragility" explanation, and that the reframing around unprompted discovery clarifies the contribution relative to prior work. However, my central concern remains unresolved: the +Lib result still cannot separate whether weaker agents lack the implementation machinery or merely lack exposure to the target-language affordances, since the library supplies both at once — the authors concede this is "evidence rather than a clean separation" and answer a different question instead. The rebuttal also does not identify what actually determines where metaprogramming helps, leaving it as a conjecture, so the confound is narrowed but not closed. Finally, both the paper and the rebuttal are genuinely hard to follow, with key arguments left for the reader to reconstruct. For these reasons I keep my score at 2.

Formatting concerns
5 comments
Authors · CommentOpenReview ↗

We thank you for these pointers. Zhang et al., Voyager and CodeAct are the right grounding for why metaprogramming should be expected to help, and we will cite all three prominently. We adopt your affordance framing as well. One point of scope, which we will state in the paper: metaprogramming is the clearest mechanism we manipulate causally, not the complete explanation of adaptation across languages.

W1. "The central phenomenon has been reported before... the paper's main framing is therefore incremental."

In all three the strategy is supplied by the experimenter. Zhang et al. compare two imposed strategies and tell the model which to use, Voyager builds the skill library in as an architecture, CodeAct fixes executable Python as the action space. Each establishes that metaprogramming helps when supplied, which we treat as settled.

Our question sits before theirs. We did not set out to study metaprogramming but to measure how frontier agents handle an unfamiliar executable interface, and it turned out to be one of the things separating them. Under a fixed prompt with no hint, which agents reach for it unaided?

Agent, Brainfuck Base score Generators, unprompted +Text score Generators under +Text
Opus 4.6 64 64 - -
GPT-5.4 xhigh 79 79 - -
Sonnet 4.6 12 0 12 105
GPT-5.4 mini 5 0 8 20
Haiku 4.5 4 0 3 15
Kimi K2.5 4 0 4 35

+Text is the prior-work manipulation delivered as a prompt, so the last two columns are one condition, scored and then audited for behavior. A dash marks a cell we did not need, there being no reason to instruct an agent that already metaprograms.

Two things follow, neither visible in work that supplies the strategy. The first is that the strongest agents invoke it with no cue. Nothing in the prompt mentions generators, and Opus 4.6 arrives at it at E04, right after a 1,884-byte hand-written attempt fails. Discovery is not fixed per agent either. Sonnet 4.6 writes no generators on Brainfuck and solves 12, then writes them on Befunge-98 under the same protocol and solves 64.

The second is that supplying it to the others does not make them equivalent. They comply, in volume, and do not improve. Prior work sees gains from an imposed strategy where our weaker agents see none from the same one.

How they acquired it is an open question we cannot settle from behavior alone. What we can say is that it is present in some agents and absent in others, that instruction does not transfer it, and that prior work tells us it is worth having. We do not present metaprogramming as a technique we introduce, and will make that unmistakable.

W2. "Unfamiliarity and authoring fragility remain confounded, so the broad claim is hard to generalize."

You are right that unfamiliarity alone cannot explain the pattern, since all four targets are unfamiliar and the effect appears on only some. But the split is not two for and two against. What the four show:

Language Forbidding metaprogramming What it tells us
Brainfuck Opus 64 to 27, xhigh 79 to 29 large causal effect
Befunge-98 Opus 77 to 28 large causal effect
Whitespace Opus 80 to 80 at ceiling in both arms, cannot testify
Shakespeare Opus 72 to 67 causal effect but not as large as Brainfuck, Befunge-98

Shakespeare is the case that matters. It carries our largest per-language spread, 2.5 to 100 percent, while forbidding metaprogramming costs Opus five problems, so something else separates agents there. We have not measured this directly, but our reading is that Shakespeare asks whether an agent can hold a long, heavily constrained output together, which is a different thing from building an abstraction.

So we took your explanation and tested it on a language outside the original four. APL is terse and its interpreter reports errors at the line, so if length and authoring difficulty were what mattered, metaprogramming should buy little there. Forbidding it would be a null by construction, since nobody uses it on APL, so we required every file to come from a generator instead.

Agent, APL Control Required to metaprogram Gain
Haiku 4.5 12 17 +5
GPT-5.4 mini 42 57 +15
GPT-5.4 xhigh 66 78 +12
Sonnet 4.6 64 79 +15
Opus 4.6 68 80 +12

Put the two cases side by side and they point the opposite way to your account.

Shakespeare is the long, convention-heavy one. Its programs have the largest median size of the four, five times Brainfuck's, and every variable is a character who has to be on stage before it can be assigned. If length and authoring difficulty were what mattered, forbidding metaprogramming there should cost more than anywhere else in the benchmark. It costs Opus five problem out of 80.

APL is the opposite kind of target.

Authors · CommentOpenReview ↗

Its programs are barely a third the size of Shakespeare's and its interpreter reports errors at the line, so requiring metaprogramming should buy almost nothing. It is worth 5 to 15 problems to every agent, and takes the strongest to 78 and 80 out of 80.

So length and authoring difficulty do not track where metaprogramming pays. Across the two cases that test them, they point the wrong way.

Writing a low-resource language through a popular host raises performance on real languages as well as esolangs, and that is the general form we will claim. APL also adds a fifth language, which speaks to the count you raise.

What we can offer instead is a conjecture, and only that, about where agents reach for the strategy unprompted rather than where it pays. Brainfuck is both where they reach for it and where removing it costs most, and it is also the target that denies names to program state. A tape cell is reachable only by moving a pointer from wherever it sits, so the layout lives in the author's head and one mis-step corrupts everything after it with no local symptom, and a generator supplies the names the language withholds. We have no intervention that tests this, so it goes in the paper as a conjecture with the experiment that would settle it.

Q. "What does the +Lib result establish beyond the expected fact that providing a relevant tool helps?"

Handing an agent a working tool and watching it improve would be unsurprising. That is not the experiment. The library is generator primitives lifted from a stronger agent's own sessions, so +Lib asks which weaker models can absorb another model's strategy, and in what form. Both answers are selective.

The form matters. As prose, in +Text, the strategy barely moves anyone. As executable code it transforms the mid-tier agents.

The recipient matters more, and this is where your (a) and (b) come apart. All three receive byte-identical library files, verified by checksum, and identical prompts, so exposure is equalised by construction. What differs is what they do with them.

Agent, Brainfuck Base Interpreter runs per problem with the library Solved with the library
GPT-5.4 mini 5 19.1 53
Sonnet 4.6 12 16.9 64
Haiku 4.5 4 0.7 7

Sonnet 4.6 and GPT-5.4 mini run the library against the interpreter seventeen to nineteen times per problem. Haiku 4.5 runs it less than once, having written 17 generators of its own on top of it, so this is not unwillingness to engage. It does not execute what it writes. If (b) were binding, equalising exposure should have equalised outcomes. It did not. And +Text gives the affordance knowledge while withholding the implementation, which is (b) alone, and is worth almost nothing.

The library supplies both at once, so this is evidence rather than a clean separation. We also checked the gains are not re-runs of the library's generators: three of Haiku's seven Brainfuck solves are byte-identical to what one prints, so its real gain there is zero. On Befunge-98 nothing is a copy: Sonnet 64 to 78, mini 11 to 64, Haiku stays at 4.

Your affordance framing is right and we adopt it. Khetarpal et al. argue that an agent pursuing a language-conditioned task builds a partial world model of the affordances tied to that intent, which the library externalises.

So the result is a rule about distillation, not tools. A strategy distilled from a strong agent's traces transfers only as executable code, and only to models that can put that code to work. Base score does not predict which: GPT-5.4 mini starts at 5 of 80 and Haiku 4.5 at 4, yet given the same library mini reaches 53 and Haiku 7. What separates them is holding a loop together over many turns, writing, running, reading the failure, revising which relates to long horizon problem solving of the agents as well.

This also sharpens the relation to prior work. Telling a model to metaprogram, as Zhang et al. do, changes what our weaker agents do and not what they score. Supplying working machinery, closer to Voyager and CodeAct, works only for models that can extend and debug it.

Changes to the paper

  1. Section 5 restructured around the difference between invoking the strategy and being told to, crediting Zhang et al., Voyager and CodeAct, with +Lib reframed as a distillation result after Khetarpal et al.
  2. Section 3.3 presents naming of state as a conjecture with the experiment that would test it, and names long-horizon consistency as a candidate second mechanism. APL and the ablation released.

The broader point is that we do not claim to have discovered metaprogramming. This is a systematic measurement of capability differences between deployed agents, in which metaprogramming emerged unprompted as one axis of separation. We show it is unevenly distributed, only partly transferable, and that routing a low-resource target through a popular host raises performance on real languages as well as esoteric ones.

Authors · CommentOpenReview ↗

Thank you for the review and for the prior-work pointers, which sharpened the framing. With the discussion window closing in a few days we wanted to check in, since we have not heard back and would like to know whether our response addresses your concerns.

On novelty, Zhang et al., Voyager and CodeAct each supply the strategy by design, whereas our question is which deployed agents reach for it unprompted, and we show that supplying it to an agent that did not is largely ineffective. On the unfamiliarity confound, Shakespeare and APL form a double dissociation that points the opposite way to a length-and-fragility account. On +Lib, the experiment is a distillation result rather than a tool baseline, since the same strategy transfers only as executable code and only to models that can put it to work.

We would welcome the chance to discuss any of these while the window is open, and if they resolve the issues you raised we hope you will reconsider the score.

Reviewer gJXrOpenReview ↗
Rating
6/6
Confidence
5/5
Quality
4/4
Clarity
3/4
Significance
4/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper evaluates six contemporary LLM-based coding agents (Claude Opus 4.6, Sonnet 4.6, Haiku 4.5; GPT-5.4 xhigh/mini; Kimi K2.5) on four esoteric programming languages from EsoLang-Bench (Brainfuck, Befunge-98, Whitespace, Shakespeare) under an interactive agentic protocol with persistent workspaces, file editing, local interpreter execution, and hidden-test grading. Unlike mainstream benchmarks that test familiar Python-centric ecosystems, this setting forces agents to construct a working model of an unfamiliar executable interface within a session. The authors report four main findings: (1) unfamiliar-language evaluation separates agents over a much wider range than SWE-Bench Verified, Terminal-Bench 2.0, and LiveCodeBench v6; (2) the strongest agents spontaneously adopt metaprogramming—writing host-language (typically Python) generators that emit target-language code and debugging them locally; (3) forbidding metaprogramming on Brainfuck and Befunge-98 causes large performance drops, while distilled text guidance does not help weaker agents but providing executable helper libraries substantially improves Sonnet 4.6 and GPT-5.4 mini; and (4) additional interpreter-call and output-token budgets amplify existing strategies rather than creating them. This work addresses the central challenge of measuring how deployed coding agents adapt when familiar language priors are weak—a pressure increasingly relevant to vibe coding, internal DSLs, and long-tail software environments where mainstream leaderboard performance may obscure capability gaps and ecosystem-level bias.

Strengths and weaknesses

Strengths

  1. The paper targets a blind spot in agentic coding evaluation: mainstream benchmarks test settings where frontier models already have extensive exposure to syntax, libraries, and repository structure. This connects naturally to concerns about vibe coding and software-ecosystem bias—analogous in spirit to the Matthew Effect of AI programming assistants.

  2. The sequential 80-problem-per-language setup with unlimited local runs, capped hidden submissions, isolated workspaces, and aggregate-only hidden feedback tests genuine interactive adaptation rather than one-shot code completion. The state-machine design (Figure 2) and consistent benchmark-facing interface across harnesses are clearly specified and reproducible (MIT-licensed harness released).

  3. Trajectory analysis (e.g., Opus switching from a 1,884-byte hand-written Brainfuck program to a 24,500-byte generated solution on E04) concretely illustrates why metaprogramming helps on low-level esolangs. The distinction between correlation and causality is handled carefully.

Weaknesses

  1. The paper analyzes output-token efficiency (Section 3.5) but does not report end-to-end API cost, wall-clock latency, or operator burden across the full 80-problem sessions. For practitioners choosing agents for long-tail work, total session cost and time may matter as much as pass rate.

  2. Given the motivation around unfamiliar/low-ecosystem interfaces and the noted connection to the Matthew Effect of AI programming assistants (“The Matthew Effect of AI Programming Assistants: A Hidden Bias in Software Evolution,” in 14th International Conference on Learning Representations (ICLR2026).), the related-work and broader-impact sections should explicitly cite and discuss this line of work on hidden bias in software evolution under AI assistance, not only generic contamination and long-tail coding references.

  3. A single persistent session per language with fixed forward order means early problems may bootstrap later ones (e.g., reusable generator libraries). While realistic for deployment, the paper does not isolate per-problem cold-start performance or order sensitivity.

Questions

Can the authors provide per-cell total API cost (input + output + thinking tokens) and approximate wall-clock time for a full 80-problem session, to help practitioners assess deployability for long-tail tasks?

Limitations

Esolangs are controlled, fully specified, and automatically gradable, but they remain artificial interfaces. Success on Brainfuck/Befunge-98 is evidence about within-session adaptation to low-ecosystem executable interfaces, not direct evidence about production internal DSLs, vibe-coding workflows, or legacy codebases.

The causal importance of metaprogramming is established primarily for Brainfuck and Befunge-98, where direct authoring is fragile. Findings may not extend to unfamiliar languages with richer ecosystems, better debuggers, or more human-readable syntax.

While broader impacts mention long-tail deployment, the paper does not deeply analyze how metaprogramming-heavy agent success might reshape software evolution, toolchain dependence on host languages, or Matthew-Effect-style concentration of AI-assistable code patterns—an opportunity given the paper's practical motivation.

Final justification

The paper presents a technically solid and practically relevant evaluation of coding agents in unfamiliar programming environments. Its interactive protocol, trajectory analysis, and metaprogramming interventions provide convincing evidence that strong agents differ not only in final performance but also in their ability to construct and reuse effective strategies. The rebuttal substantially resolved my main concerns. In particular, the authors added cost and latency analysis, strengthened the connection to the Matthew Effect of AI Programming Assistants, reported shuffled-order experiments, and introduced APL results that significantly improve the external validity beyond esoteric languages.

Formatting concerns

NA.

3 comments
Authors · CommentOpenReview ↗

We thank you for a detailed and technically precise review. We have restructured our related work and broader impacts around the pointer to Gu, Liang, Ma and Li on the Matthew Effect of AI Programming Assistants. One point of scope, which we will state in the paper: metaprogramming is the clearest mechanism we manipulate causally, not the complete explanation of adaptation across languages. We take the points in order.

W2. "The related-work and broader-impact sections should explicitly cite and discuss the Matthew Effect of AI Programming Assistants."

We agree, and will cite Gu et al. prominently in both sections. Their result is the population-level statement of the pressure our protocol applies, that the success rate of LLM-generated code rises with the popularity of the language or framework. Our setting sits at the extreme tail of their curve, with the frequency ratios in Appendix G running from about ten to the minus five for Brainfuck to ten to the minus seven for Shakespeare, relative to Python.

We are in alignment with Gu et al. and take one step past them. They establish the effect at population scale. We hold the task fixed, push the popularity axis to its extreme, and ask what the agent does about it. Two results follow.

First, the effect is larger than a per-language average can show, because its size depends on which agent you ask.

Benchmark Weakest of the six Strongest of the six Spread
Our four low-popularity targets 11% 100% 88 points
SWE-Bench Verified 73.4% 80.0% 6.6 points

Averaging over models yields one support level per language, when in practice it runs from near zero to near ceiling depending on the agent. Gu et al. establish the asymmetry; our data say it is itself agent-dependent.

Second, some frontier agents partly compensate for a thin target ecosystem rather than simply suffering it, and we can name how. We do not claim they overcome the Matthew Effect in general, only that they compensate on the interfaces we measure. They borrow a popular language to write an unpopular one. Rather than write the rare target directly, Opus 4.6 and GPT-5.4 xhigh write a program in a common host that prints it, then debug that program, where their knowledge is strong. Closing the route is expensive.

Agent, Brainfuck Free to metaprogram Metaprogramming forbidden Cost
Opus 4.6 64 27 -37
GPT-5.4 xhigh 79 29 -50

Our cross-host experiment shows the route is not Python-specific, since JavaScript and Rust generators recover most of the gain.

We think this is a fruitful result for the line Gu et al. open, and in broader impacts it cuts both ways. A thin ecosystem is not a hard ceiling for capable agents, since it can be worked around by treating the rare language as compiler output. But doing so deepens the dependence on the popular host. The rare language survives only as generated output, while new code, tooling and idioms accumulate on the host side. That is the same effect one level up, and our data give it a mechanism rather than a correlation.

What remains of the gap sits with the mid-tier and smaller agents, which is what Table 4 shows. The deeper problems Gu et al. raise, about framework choice and how AI assistance reshapes software evolution, are the natural next target once this language-level question is settled, and we intend to go there.

W1 / Q1. "Per-cell total API cost and approximate wall-clock time for a full 80-problem session."

Fair request, and we report it. We instrumented the API-level logs for the Claude-family cells, where the wrapper records per-call token usage including extended thinking. Costs use contemporaneous list prices.

Cell Finalized Output Cache read Cost at list Active Elapsed
Opus 4.6, Befunge-98 77 of 80 2.46M 93.5M about $374 8.9h 34.0h
Opus 4.6, Brainfuck 75 of 80 2.54M 61.1M about $331 6.9h 34.0h
Sonnet 4.6, Befunge-98 67 of 80 3.84M 86.8M about $97 9.4h 60.7h
Haiku 4.5, Befunge-98 79 of 80 0.30M 36.6M about $6 1.3h 15.5h

Output includes extended thinking. The input side is dominated by cache reads, shown here, with cache writes of 0.7M to 3.7M per cell folded into the cost. Elapsed is wall-clock from launch to final submission, and active sums transcript gaps under five minutes. The finalized column states how many of the 80 problems each session closed, and we do not extrapolate these figures to full-session totals.

The sessions run unattended, so elapsed is not operator time and the gap between the two columns is idle. We attach these as worked examples of the instrumentation, and the appendix will carry the full set with input, output and reasoning tokens separated.

Authors · CommentOpenReview ↗

W3. "A single persistent session in fixed forward order means early problems may bootstrap later ones."

On the order itself, it is the order EsoLang-Bench defines. The dataset is four difficulty tiers of twenty problems, easy then medium, hard and extra-hard, traversed in that sequence, and every run we report uses it, across all agents, languages, ablation arms and repeats. The choice is held constant, so the between-agent comparison does not depend on it. Solved counts per tier, out of 20 each:

Cell Easy Medium Hard Extra-hard
Opus 4.6, Brainfuck 20 15 18 5
Sonnet 4.6, Befunge-98 20 19 18 7
Haiku 4.5, Befunge-98 4 0 0 0
Kimi K2.5, Whitespace 13 9 0 0
Sonnet 4.6, Brainfuck, +Lib warm start 20 18 19 7

The extra-hard tier is never stronger than the easy tier in any completed cell, even though the accumulated library is largest by then, so tier difficulty dominates any bootstrapping.

The last row is a second check. +Lib is a warm start at problem one handing over exactly the machinery a session would otherwise accumulate, and it reproduces the cold-start profile rather than lifting it.

On order sensitivity we ran matched fixed-order and shuffled-order sessions on Befunge-98 for four agents. Both arms are fresh sessions under otherwise identical settings, with tier composition unchanged so only position varies.

Agent, Befunge-98 Fixed tier order Shuffled order Delta
Opus 4.6 62 62 0
GPT-5.4 xhigh 76 76 0
Sonnet 4.6 64 64 0
GPT-5.4 mini 11 13 +2

Total scores are insensitive to ordering. Three of the four land on the same total and the fourth moves by two problems, which is within the session-to-session variation we see on repeat runs.

On per-problem cold start, the protocol deliberately lets agents accumulate notes, tests and reusable code within a session, and that accumulation is the process being measured. Metaprogramming emerges reactively, for Opus 4.6 on Brainfuck at E04 after a 1,884-byte hand-written attempt fails, the trajectory you cite in your third strength. Resetting the workspace after every problem would remove that process and charge every agent the same discovery cost eighty times.

Limitations 1, 2 and 3.

We ran the experiment that tests the first two limitations. APL is a non-esoteric, production-used, low-resource language, run on the same 80 problems and the same harness under its own interpreter. Five of the six agents were run on it; Kimi K2.5 was not. Solved out of 80:

Protocol Haiku 4.5 Sonnet 4.6 Opus 4.6 mini xhigh
Zero-shot, no execution 4 9 10 26 51
Full agentic loop 12 64 68 42 66

The first limitation, that esolang success is not direct evidence about production interfaces, is answered by those two rows. With no execution these agents sit far below what they reach on the same problems in Python, and the loop recovers most of that deficit for the stronger models, Sonnet from 9 to 64 and Opus from 10 to 68. That is our central claim holding outside the esolang setting.

The second limitation asks about languages with richer ecosystems, better debuggers or more readable syntax. APL is that case, since it runs under a real interpreter that reports errors at the line, and the result above holds there anyway. We also checked whether metaprogramming itself carries over, by requiring every file to be emitted by a host-language generator:

Agent, APL Control Required to metaprogram Gain
Haiku 4.5 12 17 +5
GPT-5.4 mini 42 57 +15
GPT-5.4 xhigh 66 78 +12
Sonnet 4.6 64 79 +15
Opus 4.6 68 80 +12

It pays for every agent and takes the strongest to 78 and 80 out of 80. So writing a low-resource language through a popular host raises performance on a real language and not only on the esolangs, which is the general form of the result we will claim.

Your third limitation, that we do not analyse how metaprogramming-heavy success reshapes toolchain dependence, is exactly the argument we make above. Routing round a thin ecosystem concentrates the work on the popular host, so the rare language survives as generated output while the tooling and idioms grow elsewhere. We will develop that in broader impacts.

Changes to the paper

  1. Gu et al. cited in related work and broader impacts, with the host-language knock-on stated as our contribution to that line.
  2. Cost and latency table reported, with the caveats above.
  3. New scope section reporting APL, with the benchmark and the metaprogramming ablation released.
  4. Shuffled-order results reported alongside the tier profiles.

The Matthew Effect framing improved the paper, and we hope the observation that some agents compensate by routing through a popular host is useful for that line of work as well as ours.

Authors · CommentOpenReview ↗

Thank you for the detailed review. With the discussion window closing in a few days we wanted to check in, since we have not heard back and would like to confirm our response answered the points you raised.

We addressed all three points. The Matthew Effect of AI Programming Assistants is now central to related work and broader impacts, and we push one step past it by showing the low-ecosystem disadvantage is itself agent-dependent and that some agents compensate by routing through a popular host. We report per-cell cost and wall-clock time. And we ran matched fixed-order and shuffled-order sessions on Befunge-98, where three of four agents land on the same total and the fourth moves by two.

If these resolve the weaknesses you raised we would be glad if you would consider that in your score, and we are available for any further questions during the discussion.

Reviewer sJPtOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
4/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary
  • Standard coding benchmarks like SWE-Bench Verified evaluate agents in familiar software ecosystems, potentially masking capability differences that emerge when agents must work out an unfamiliar programming interface from scratch. The authors use esoteric languages (Brainfuck, Befunge-98, Whitespace, Shakespeare) as controlled proxies for this kind of low-ecosystem setting
  • Six production-level coding agents are evaluated under a common agentic harness with file editing, local interpreter access, and hidden-test grading across 80 problems per language. The resulting performance spread is dramatically wider than on mainstream benchmarks, with an EsoLang-Bench standard deviation roughly 12x that of SWE-Bench Verified across the same agents
  • The strongest agents (Opus 4.6, GPT-5.4 xhigh) spontaneously adopt metaprogramming, which the authors define as writing host-language generators (typically Python) that emits esoland programs and reusing those generators instead of writing target-language code directly. Ablations confirm this is causally important, as forbidding metaprogramming causes drops of tens of percentage points on Brainfuck and Befunge-98
  • Strategy transfer experiments show that providing weaker agents with written descriptions of the metaprogramming approach yields almost no improvement, while providing a working reference library of generator primitives (with no solved problems or hidden-test answers) produces large gains for Sonnet 4.6 and GPT-5.4 mini. This suggests that mid-tier agents lack execution ability rather than strategic awareness.
  • Additional ablations on interpreter-call budgets and output tokens show that extra compute resources help stronger agents but leave weaker agents near their performance floor, indicating that these resources improve agents that already have effective strategies rather than enabling agents that do not.
Strengths and weaknesses

Strengths

  • The use of esoteric languages as controlled proxies is a novel and interesting experimental design choice. Rather than arguing that Brainfuck matters in production, the authors use it to strip away the familiarity confound that plagues standard benchmarks, and the resulting capability separation across agents is striking and hard to dismiss.
  • The metaprogramming finding is rigorous, and the authors do not just observe that strong agents use generators, but run a clean ablation that removes the option and show large performance drops to prove a causal claim. That is the kind of rigorous experimental selection and setup.that separates strong empirical work from benchmark reporting.
  • The strategy transfer result is probably the most practically useful finding in the paper that I think can generalize. The gap between written advice (not as useful) and executable scaffolding (large gains for mid-tier agents) is a clean and surprising result that directly informs how we should think about distilling strong agent behavior into weaker models.

Weaknesses

  • The esoteric languages are useful as controlled proxies but they are quite distant from the low-ecosystem settings that actually matter in practice, like TPU kernel code, formal verification languages, or new DSLs. It is not obvious that the metaprogramming strategy that works for Brainfuck would transfer to those settings, where the unfamiliarity comes bundled with semantic complexity and correctness requirements that are much harder to test locally. The authors acknowledge their design choices, but the practical implications of the findings would be much stronger if at least one realistic low-resource language were evaluated.
  • The paper does a good job showing that weaker agents fail but does not shed much light on how they fail. The trace analysis in the appendix focuses almost entirely on Opus 4.6, and the characterization of weaker agent behavior (shallow local iteration, strategy without execution) is fairly brief. A more systematic look at what Haiku or Kimi are actually doing in their sessions would make the capability gap story more informative and actionable.
Questions

Q1 - The evaluation is restricted to esoteric languages that are quite distant from realistic low-ecosystem settings. Would the authors consider evaluating on even one realistic low-resource language (e.g. a formal verification language or a niche DSL) to test whether the metaprogramming strategy generalizes beyond the esolang setting? I appreciate the inclusion of this in limitations, but a minimal measurement to show generalization would be appreciated.

  1. The trace analysis of weaker agents is limited to brief qualitative characterizations. It would strengthen the paper considerably to know whether Haiku and Kimi attempt metaprogramming at all and fail to execute it, or whether they never discover the strategy in the first place. These two failure modes have very different implications for how to improve weaker agents, and would be helpful for further impact.
Limitations

Yes

Final justification

The new rebuttal experiments increased my confidence from a 3 to a 4 in a (5) Accept rating.

Formatting concerns

N/A

5 comments
Authors · CommentOpenReview ↗

We thank you for a careful reading. One point of scope first, which we will state in the paper: metaprogramming is the clearest mechanism we manipulate causally, not the complete explanation of how agents adapt across languages. Both questions ask for measurements, and we answer both below.

W1 / Q1. "The practical implications would be much stronger if at least one realistic low-resource language were evaluated."

We agree, and we ran it. APL is a non-esoteric, production-used, low-resource language, a real array language under its own interpreter, run on the same 80 problem statements, the same six hidden tests, the same harness and the same isolated workspaces. We also ran a condition with no execution at all.

Solved out of 80. Every cell is a complete, fully graded session.

Protocol Haiku 4.5 Sonnet 4.6 Opus 4.6 mini xhigh
Zero-shot, no execution 4 9 10 26 51
Full agentic loop 12 64 68 42 66

Three points follow.

First, APL is a genuinely low-ecosystem target and not a soft one. With no execution every agent scores poorly, frontier and weak alike, on problems where the same agents are near ceiling in Python. We do not read that row as isolating unfamiliarity, since it also reflects task difficulty, model priors and the absence of any feedback, but the contrast with Python on identical problems is large.

Second, the agents do not know APL any better at the end of a session than at the start. They have found out how it behaves by running it, and that is what the difference between the two APL rows measures. One example shows the kind of thing being learned. GNU APL accepts a branch label only inside a defined function, and the Claude models place labels at the top level of a script, where they fail. The documentation does not say this and no amount of prior knowledge supplies it, but a single execution reveals it. Recovering from errors of that kind is what the loop buys, and it is the paper's claim holding on a real language.

Third, we can see how they learn it. They test the language in small pieces, running a snippet to see what comes back before committing to a solution. GPT-5.4 xhigh did this on 79 of the 83 occasions it ran anything outside the harness, and GPT-5.4 mini left eleven small test files behind, each named after the feature it was checking. On Brainfuck agents build a compiler to get the language under control. On APL they run experiments instead. The habit is the same and only the tool changes.

The capability therefore transfers to a realistic low-resource language, and the form it takes is set by the target.

We also checked whether metaprogramming itself carries over, by rerunning the same 80 problems with one change, that every file had to be emitted by a host-language generator. Requiring metaprogramming and observing gains is the manipulation Zhang et al. already ran, and we do not offer it as new, but it settles whether the strategy is worth anything on a real language:

Language Agent Without metaprogramming With metaprogramming Gain
Brainfuck Opus 4.6 27 64 +37
Brainfuck GPT-5.4 xhigh 29 79 +50
APL Haiku 4.5 12 17 +5
APL GPT-5.4 mini 42 57 +15
APL GPT-5.4 xhigh 66 78 +12
APL Sonnet 4.6 64 79 +15
APL Opus 4.6 68 80 +12

It pays on a real language too, and takes the strongest agents to 78 and 80 out of 80.

The remaining constraints are structural. Proprietary DSLs cannot be released, so results on them are unreproducible, and an invented DSL forfeits the realism being asked for. Lean, Coq and Dafny need a different protocol, since correctness there is discharged by the same tool the agent uses. TPU kernels need accelerator hardware in the grading loop.

W2 / Q2. "Whether Haiku and Kimi attempt metaprogramming at all and fail to execute it, or whether they never discover the strategy in the first place."

We ran the audit. Coding every session by the artifacts it leaves and by how it spends its budget, two failure modes separate cleanly, and they call for different remedies.

Mode one, the strategy is never discovered. These agents author the target language directly for the entire session.

Agent and language Solved / 80 Files of target-language source Python programs written to emit it
Haiku 4.5, Befunge-98 4 232 0
Sonnet 4.6, Brainfuck 12 25 0
Kimi K2.5, Brainfuck 4 74 0
GPT-5.4 mini, Brainfuck 5 134 0
Opus 4.6, Brainfuck (reference) 64 105 67
Authors · CommentOpenReview ↗

Haiku 4.5 on Befunge-98 is the clearest instance. It spent 232 of its 240 permitted submissions, wrote 232 separately hand-edited Befunge files, and never once wrote a program that emits Befunge. Every solve sits in the easy tier, zero across medium, hard and extra-hard. We see for Brainfuck, Befunge-98 esoteric languages only Opus 4.6, GPT 5.4-xhigh are able to discover the meta programming strategy unprompted while rest of the other agents fail to discover that and hence they lack in performance.

Mode two, the strategy is discovered and cannot be executed. Kimi K2.5 on Whitespace wrote 290 Python programs to emit Whitespace and solved 25 of 80. On Shakespeare it wrote 8 and solved 2. Kimi is not strategy-blind. It reaches for the right abstraction and cannot keep a generator correct across revisions.

A second part of the audit shows how the two kinds of agent spend their budget.

Agent and language Interpreter runs per problem Submissions per problem Output tokens
Opus 4.6, Brainfuck 9.2 0.85 2.54M
Opus 4.6, Befunge-98 12.8 0.82 2.46M
Haiku 4.5, Befunge-98 1.5 2.90 0.30M

All three ran the same forward traversal of all 80 problems under the same submission cap. The strong agent tests locally about ten times per problem and spends under one graded submission. The weak agent spends nearly its whole submission budget and emits an eighth of the output tokens, using the graded channel as its debugger instead of the interpreter. This is the same separation our interpreter-call and output-token ablations already show in the paper, stated per agent rather than as a curve.

The +Lib condition sharpens it, since all three agents receive identical files.

Agent, Brainfuck +Lib Interpreter runs per problem Solved
GPT-5.4 mini 19.1 53
Sonnet 4.6 16.9 64
Haiku 4.5 0.7 7

Handed the same machinery, Sonnet and mini run it seventeen to nineteen times per problem and solve 64 and 53. Haiku runs it less than once and solves 7. It also wrote 17 generators of its own on top of the library, so the failure is not unwillingness to engage. It does not execute what it writes.

The two modes call for different interventions, which is what makes the distinction actionable. Discovery failures are plausibly addressable by a strategy prior in the prompt or in post-training. Execution failures are not, and our text-versus-library asymmetry is the same result one level up.

Changes to the paper

  1. New scope section reporting APL with the metaprogramming ablation, benchmark and ablation released.
  2. Appendix C restructured around the two failure modes, with the full audit across six agents and four languages.
  3. The budget-allocation table promoted from a passing remark to a reported result, since it is the measurable form of the shallow local iteration currently described only in words.

We appreciate your review, and both questions turned out to have measurable answers.

Authors · CommentOpenReview ↗

Thank you again for the positive assessment. With the discussion window closing in a few days we wanted to check in, since we have not heard back and would like to make sure our response answered what you raised.

We ran the two experiments you asked for. APL, a production-used low-resource language, on the same 80 problems and harness, which extends the result outside esolangs. And a full behavioural audit of the weaker agents that separates two distinct failure modes, never discovering the strategy versus discovering it and being unable to execute it, with the budget numbers behind each.

If those answer your questions we would be grateful if you could confirm it, and we are happy to run anything further while the discussion is open.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…