v0.1 โ€” now open source

AI agents that
only get better.

Ratchet is a lightweight framework for building AI agents that continuously improve themselves โ€” autonomously, over time, with minimal human involvement.

View on GitHub Read the docs
Issue surfaces โ†’ Postmortem โ†’ Prevention tasks โ†’ Backlog โ†’ Autonomous execution โ†’ Memory update โ†ฉ
๐Ÿง 

Memory architecture

Agents persist and curate knowledge across sessions. Long-term memory stays lean and current. Daily logs feed weekly synthesis.

๐Ÿ”

Incident loop

Every failure gets a postmortem. Root cause, blast radius, prevention tasks. "Fixed" means the class of problem is addressed โ€” not just the instance.

๐Ÿ“‹

Autonomous backlog

Self-identified tasks execute during heartbeats. P1s run immediately. The agent works through the backlog without prompting.

๐Ÿ“

Context system

Authoritative state for location, timezone, and preferences. Never assumed โ€” always checked before creating anything time-sensitive.

๐Ÿ“ˆ

Autonomy tiers

Trust expands over time as it's earned. The framework is explicit about what the agent decides alone vs. what it escalates.

๐Ÿ”Œ

Platform-agnostic

Ratchet is conventions, not code. Wire it to OpenClaw, Claude Code, Cursor, or any agent platform. Write an adapter, contribute it back.

The file structure

your-agent/
โ”œโ”€โ”€ MEMORY.md          # Long-term memory โ€” curated, evolving
โ”œโ”€โ”€ BACKLOG.md         # Self-directed work queue โ€” P1/P2/P3
โ”œโ”€โ”€ context.json       # Authoritative state (location, units, prefs)
โ”œโ”€โ”€ incidents/
โ”‚   โ”œโ”€โ”€ README.md      # Postmortem format spec
โ”‚   โ””โ”€โ”€ INC-001-*.md   # Incident logs
โ”œโ”€โ”€ memory/
โ”‚   โ””โ”€โ”€ YYYY-MM-DD.md  # Daily logs
โ””โ”€โ”€ bin/               # Utility scripts