The Bitter Lesson Ate the Agent Framework, and JAZ Wrote the Framework into the Language
The JAZ team published a blog post arguing that a minimal agent loop is better and cheaper than a specialized harness for long-horizon memory and self-improvement. Their approach is to make the LLM a function primitive in Python and let the model write code to manage context itself. Someone asked in the comments: Didn't the agent loop die in February?
Ian Channing replied under JAZ's tweet: Did no one tell you that the agent loop died in February?
He cited an article Stanislav Zmiev wrote in October, “The Bitter Lesson Ate Your AI Factory.” The argument is straightforward: every layer of harness, workflow, and prompt engineering you build around a model will be steamrolled by the next, larger model. The author gives a series of examples, from few-shot to spec-driven development, with each workflow becoming redundant after it becomes popular. He also drew a chart; the orange curve shows that these workflows often only start to become popular after they are already obsolete.

The JAZ team clearly disagrees—or at least does not fully agree. On December 3, they published a blog post and paper titled “Harness as a Language: Exploring the Capabilities of the Agent Loop Itself.” The core claim is that a minimal agent loop—without external tools, MCP, a file system, or compaction—is better and cheaper than a specialized harness on long-horizon memory and self-improvement tasks.
This claim is not contradictory to the bitter lesson. Zmiev is saying not to pile workflows on top of the model; JAZ is saying not to wrap a framework around the model, but to let the model write code and internalize the framework itself. The two sides are making the same point from different directions: impose fewer constraints on the model.
JAZ's approach is called invoke. They treat the LLM as a function primitive and embed it directly into Python. In the traditional approach, the LLM takes in text and emits text, and you have to write parsing and serialization code. The inputs and outputs of invoke are arbitrary Python objects, implemented by letting the model write code itself to construct the output objects. In other words, the body of the invoke function is dynamically generated by the model on each call.
This design has two key points. First, the code written by the model can recursively call invoke, and sub-agents are available by default. Second, everything the model sees is a variable in the REPL, including its own history, __history__. User prompts, tools, and history records are all exposed as variables on equal footing.
The latter point is important. Existing code-mode agents (smolagents, RLMs, Agentica) usually allow you to pass objects in as variables, but the user prompt and REPL history themselves are not variables. invoke levels this rule, so the model can programmatically access everything it sees.
They then present two case studies.
The first is long-horizon memory. Current agent frameworks rely on compaction to prevent context rot: call the LLM again outside the loop, summarize the history, and replace the original context. This loses details, which is why there is so much research on memory systems. JAZ says external compaction and memory are unnecessary; the minimal invoke loop can simulate them inside the loop.
The method is to have the parent agent hand the task to a sub-agent, pass along __history__, and attach a summary of the history. On the StuLife ultra-long-horizon benchmark, even when the context window is exceeded by 50x, invoke can still precisely recall information from many context windows earlier. By comparison, CodeAct+subagents cannot reliably pass its own history and inputs to a sub-agent unchanged, and Letta's MemGPT architecture performs worse because its memory interface is limited.
The second is continual self-improvement. Existing self-improvement systems all require an external mechanism: an optimization algorithm, a meta-agent, external memory, or logs. invoke can do this inside the loop: the top-level agent acts as the meta-agent, the sub-agent acts as the solver, and the sub-agent passes its REPL history back to the parent; the parent analyzes it and improves the input given to the sub-agent.
On AppWorld, they ran a series of tasks with GPT-5.4 nano and achieved an average 7% improvement over a baseline without self-improvement, at 2x the cost. The specialized ACE (Agentic Context Engineering) approach requires 11x the cost to achieve the same improvement; when limited to 3x the cost, its improvement is only 2%, which is not significant. JAZ says ACE's problem is that its self-improvement process is too rigid, whereas invoke lets the agent decide how to batch tasks and how to selectively read trajectories.
The paper concludes that any harness logic is essentially about deciding what the next LLM call sees and what state it has. The definition of invoke is precisely to let the model write code itself to construct these. That is why they call it harness as a language.
Of course, giving the model this much freedom is risky. Even the most basic ReAct agent can burn through unbounded API costs. JAZ acknowledges this, so they built a framework with a hook system that lets users monitor, constrain, verify, and even modify agent behavior.
Back to Ian's reply. In Zmiev's article there is a line: your workflow is probably already obsolete. JAZ's response is roughly: then don't weld the workflow onto the outside of the model; give the tools to the model and let it build its own.
It is still hard to say who is right. But one detail worth noting: JAZ's benchmarks used GPT-5.4 nano, not the strongest model. The paper also admits that models cannot yet do fully general in-loop self-engineering; the current results merely give the model wings, and later it will be taught to fly.
Original links:
发布时间: 2026-12-04 08:29