Garry's Opinionated OpenClaw/Hermes Agent Brain
Migrating your OpenClaw brain to gbrain v0.41.2.0 (greenfield)
The v0.41.2.0 lens packs ship a one-shot importer that re-ingests your
existing OpenClaw brain (~/git/brain/atoms/, concepts/, ideas/)
through the new ingestion cathedral. Pages land in gbrain with an
imported_from: markdown-greenfield frontmatter marker so the new
extract_atoms + synthesize_concepts cycle phases skip them (lossless
import with provenance).
Before you migrate
Upgrade gbrain to v0.41.2.0+:
gbrain upgrade gbrain --version # should be 0.41.2.0 or laterActivate the creator pack (or gbrain-everything if you also want investor + engineer lenses on the same brain):
gbrain config set schema_pack gbrain-creator # OR gbrain config set schema_pack gbrain-everythingApply schema migration v94 (take_domain_assignments table):
gbrain apply-migrations --yes
Status: the importer is not wired to the CLI
The importer (src/core/ingestion/sources/markdown-greenfield.ts) shipped
as a module only; no gbrain command invokes it. The invocation this guide
originally documented, gbrain capture --source markdown-greenfield --repo ~/git/brain, fails with unknown flag --repo: capture --source selects a
brain source id, and capture has no --repo flag. To index an existing
markdown brain today, use gbrain import <dir> (see gbrain import --help).
Pages imported that way do not carry the imported_from: markdown-greenfield marker described above.
After the import
Verify counts match:
gbrain stats
# Should show ~24K new pages with type=atom/concept/idea
The next gbrain dream cycle will:
- Run
extract_atomson NEW transcripts (skips pages with theimported_frommarker — your historical atoms are frozen, not re-extracted). - Run
synthesize_conceptson NEW atoms (skips imported concepts for the same reason). - Run
extract_factsover the imported pages — facts fences in imported atoms/concepts populate the facts table normally.
Retiring your OpenClaw's parallel crons
After verifying the import, retire your OpenClaw's parallel atom
pipeline cron entries. In ~/git/your-openclaw/workspace/cron.json:
- Remove
atom-pipeline-coordinator(every-30-min cron) - Remove
atom-backfill-coordinator(every-10-min cron)
Replace with nothing — gbrain's autopilot already runs extract_atoms + synthesize_concepts inside every dream cycle when gbrain-creator (or gbrain-everything) is the active pack.
The OpenClaw skills themselves shrink to thin wrappers:
content-atom-extractor→ callsgbrain dream --phase extract_atomsconcept-synthesis→ callsgbrain dream --phase synthesize_conceptsatom-backfill-coordinator→ DELETED (backfill is now part of extract_atoms via the Source Quote + lesson enrichment in one Haiku call per transcript)