improve-machine

Installation
SKILL.md

Improve an agent machine

Experimental: self-improvement is experimental. The gates are stable, but the round itself may change, and on a loop with no decision point it mostly proposes wording, cap, and approval-rule changes. Code-level causes come back as change requests for a person. Tell the user this skill is experimental before the first round.

You improve a policy: the machine that decides how the agent works toward its goal, written in TypeScript or as a JSON AgentWorkflowConfig. It runs inside an environment: a TypeScript machine whose states and guards encode the rules of the world and the business invariants. One round changes the policy once and measures it:

locate inputs → read traces → diagnose → propose one diff → gate (≤ 3 repairs) → replay train → replay held-out → recommend or discard → record → pull request

This is step 4 of 4, after loop-to-machine, add-traces, and add-evals. To author a JSON policy from scratch, use the generate-machine skill. Concept page: Environment and policy.

Hard rules

Installs
2
Repository
statelyai/agent
GitHub Stars
501
First Seen
Nov 5, 2026