Skip to main content

Recovery & Maintenance

revert

Restore CLAUDE.md from the most recent learner backup. Use this if the learner produced a bad directive or if you accidentally modified the managed section.

Options

Examples

How Revert Works

The learner creates a backup of CLAUDE.md before every write. revert restores the most recent backup, effectively undoing the last learner run.
Revert only affects the managed section of CLAUDE.md. Any content you’ve written outside the managed section (above or below the markers) is preserved.

repair

Fix managed-section drift deadlock and clean stale state. Use this when status or doctor reports a hash mismatch or deadlock condition.

Options

Example

When to Use Repair

  • doctor reports “managed section hash mismatch”
  • The learner refuses to write due to drift detection
  • You manually edited content inside the managed section markers
  • After resolving a git merge conflict in CLAUDE.md
repair recalculates the integrity hash of the managed section, allowing the learner to write again. It does not modify your directives — only fixes the metadata.

purge

Wipe all captured interaction data (project + global) without removing hooks or the scheduler. The next learner run starts from scratch with no history.

Options

Examples

Purge permanently deletes all captured interaction data. Existing directives in CLAUDE.md are not removed — only the raw captures that feed the learner. This cannot be undone.

Purge vs. Uninstall