Paper · Self-modifying agents
AGL-SKILL
AGL-SKILL: Coding Harnesses as Agentic OptimizersA method where coding agents act as optimizers to iteratively refine the textual skills and workflows that guide their own execution.

The loop
A coding agent acts as an optimizer to iteratively refine the textual skills and workflows that guide its own behavior. This allows the agent to improve its task-specific context without external guidance.
The loop
AGL-SKILL- Coding agent executes tasks
- Agent optimizes its own textual skills
- Agent uses refined skills
- Agent performance improves across benchmarks
- Coding agent executes tasks
- Agent optimizes its own textual skills
- Agent uses refined skills
- Agent performance improves across benchmarks
↻ The improved system does the next round, and the loop turns again.
Why it is a road to recursion
Allowing agents to optimize their own execution harnesses removes the need for handcrafted skills and accelerates autonomous self-improvement.
Evidence
A coding agent without guidance substantially improved every target across five benchmarks, outperforming published skill-optimization methods.
skill-optimizationagentic-optimizersharness-evolution
Related loops
More self-modifying agents →
Darwin Gödel Machine
- Coding agent edits its own code
- Scored child agents enter the archive
- Archived agents make later self modifications
- repeat
Self-modifying agentsUBC, Vector Institute, Sakana AI · 2025

Claude Code
- Claude Code writes its own code changes
- Changes become next Claude Code versions
- Release becomes harness for next development round
- repeat
Self-modifying agentsAnthropic · 2025

Recursive Self-Editing
- Model inspects its own weights
- Writes Python program to edit weights
- Merges best edits into its weights
- Successor model writes better edits
- repeat
Self-modifying agentsLinghua Zhang and Yunhe Li · 2026