Skip to content

Model-invokable checkpoint tools with OpenBrain ledger - #11

Merged
tjdoomer merged 2 commits into
mainfrom
feature/checkpoint-tool
Apr 2, 2026
Merged

tjdoomer merged 2 commits into
mainfrom
feature/checkpoint-tool

Conversation

@tjdoomer

@tjdoomer tjdoomer commented Apr 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • checkpoint_save, checkpoint_restore, checkpoint_list — model-invokable tools
  • Fire-and-forget OpenBrain integration via openBrainClient.ts — logs every checkpoint event to POST /api/capture for a persistent change ledger
  • Graceful degradation: works identically with or without OpenBrain running
  • Enables self-correcting loop: think → checkpoint → edit → test → restore if broken

Test plan

  • All 1873 tests pass, type-check clean
  • Manual: save checkpoint, make breaking change, restore
  • Manual: verify OpenBrain receives events when running

Expose checkpoint save/restore as model tools. Log all change events
to OpenBrain for a persistent, searchable ledger across sessions.
Three checkpoint tools the model can call directly:
- checkpoint_save: save workspace state before risky changes
- checkpoint_restore: revert to a saved checkpoint
- checkpoint_list: list all saved checkpoints

Every checkpoint event is logged to OpenBrain (fire-and-forget via
POST /api/capture) for a persistent, searchable change ledger across
sessions. Graceful degradation if OpenBrain isn't running.
@tjdoomer
tjdoomer merged commit e5b1493 into main Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants