godel-machine

Prove utility improvements before rewriting agent policies.

60|13|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/plurigrid/asi --skill godel-machine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: godel-machine
Source: https://github.com/plurigrid/asi/tree/main/skills/godel-machine
Command: npx skills add https://github.com/plurigrid/asi --skill godel-machine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Lean4, Python.

What problem does it solve?

Introduces the Gödel Machine paradigm: agents that can rewrite parts of themselves only after a formal proof shows the rewrite will improve utility.

Core Features & Use Cases

  • Formal verification loop: integrate a prover (Lean4/Coq) to validate safe updates.
  • Darwin Gödel Machine: open-ended evolution with proof-carrying safety.
  • Use Case: evolve a policy in a controlled loop, guaranteeing monotonic improvement.

Quick Start

Create a candidate policy and verify improvement via a theorem prover; implement mutations via a Lean/Python toolchain.

Frequently Asked Questions about godel-machine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do self-improving agents prove beneficial rewrites before applying them?

Self-improving agents use a formal proof engine (Lean4 or Coq) to verify that a candidate rewrite will increase utility before executing it. The agent compares the current policy against a candidate policy, generates a formal proof of improvement, and only applies the rewrite when the proof succeeds, ensuring monotonic utility gain.

What do I need to implement a self-modifying agent with formal verification?

You need a formal prover like Lean4 or Coq, a clearly defined utility metric to measure improvement, a rewrite mechanism to apply policy changes, and integration of Policy, Prover, Candidate Policy, and Rewrite modules. Python can coordinate the workflow with the proof engine.

Can I evolve an agent policy safely without manual oversight?

Yes. A Gödel Machine automates policy evolution by requiring formal proof of utility improvement before any self-modification occurs. Each candidate rewrite is validated mathematically, eliminating manual intervention while guaranteeing that modifications only proceed when provably beneficial.

How does formal verification prevent unsafe agent self-modifications?

Formal verification requires the agent to construct a theorem proof that a rewrite increases utility before execution. If no valid proof exists, the rewrite is rejected. This proof-carrying safety model ensures the agent cannot modify itself in ways that decrease utility or violate constraints.

What's the difference between Gödel Machines and other self-improving approaches?

Gödel Machines couple self-modification to formal proof, guaranteeing safety and monotonic improvement. Other self-improving systems may lack formal verification, making unsafe rewrites possible. The proof requirement distinguishes this paradigm as mathematically certified self-improvement.