MIT CSAIL introduces JAZ minimalist agent framework
Researchers from MIT CSAIL have introduced JAZ, an open-source agent framework that replaces heavyweight orchestration graphs and external memory databases with a bare Python REPL and a single recursive invoke primitive. Described in the paper "Harness as a Language: A Minimalist Agent Framework With Maximal Expressivity," JAZ exposes all model inputs, tools, and execution history directly as in-memory Python variables within the runtime environment. By empowering the language model to write arbitrary code and recursively call invoke on subproblems, the framework unifies context management, tool dispatch, and agentic workflows without bespoke scaffolding. Across empirical evaluations, JAZ outmatches specialized agent systems like Letta on long-horizon recall and ACE on continuous self-improvement workflows while substantially reducing token overhead and operational cost.
The agent ecosystem's obsession with heavyweight graph orchestrators and external memory databases was premature optimization; treating the harness as an interactive Python REPL with a single recursive invoke primitive is fundamentally the right abstraction.
- –Collapses multi-layer orchestration into code: Instead of rigid JSON schemas, prompt chains, or bespoke state machines, JAZ relies on native Python syntax and recursion to express complex agentic topologies.
- –Memory as standard state: Exposing interaction history directly as runtime variables eliminates vector database retrieval latency and semantic chunking failures on long-horizon recall.
- –Programmatic recursion: Implementing the agent loop as a first-class language primitive allows models to spawn sub-agents and iteratively refine tasks without bespoke orchestration wrappers.
- –Significant cost and token savings: Slashing architectural bloat and boilerplate system prompts yields higher benchmark accuracy while substantially reducing prompt token consumption compared to specialized frameworks.
- –Sandboxing challenges in production: While executing arbitrary Python code maximizes expressivity, deploying JAZ in untrusted environments requires strict sandboxing and execution guardrails.
DISCOVERED
2h ago
2026-09-25
PUBLISHED
2h ago
2026-09-25
RELEVANCE
AUTHOR
Discover AI