-
Notifications
You must be signed in to change notification settings - Fork 175
Description
Summary
Add an auto-generated summary field to note frontmatter that provides a compressed view of each note. This enables efficient context assembly where agents scan summaries first and expand to full notes on demand — implementing the core insight from the Volt/LCM paper without a parallel summary hierarchy.
Motivation
The LCM paper demonstrates that hierarchical summarization with expand-on-demand outperforms both raw long-context windows and model-managed context (beating Claude Code by 4.5 points on OOLONG, widening to 12.6 points at 512K tokens). Their architecture uses a summary DAG, but for BM the same principle maps cleanly to a single frontmatter field per note.
This mirrors how OpenClaw skills already work: frontmatter is scanned at assembly time, full SKILL.md only loads when the task matches. Apply the same pattern to the entire knowledge graph.
Design
- Add
summaryas a standard frontmatter field (~100-200 chars) - Auto-generate via LLM summarization when a note is created or updated (hook or post-processing)
- Context assembly (e.g. ContextEngine recall, search results) returns summaries by default
- Agent calls
read_noteto expand to full content when needed — this IS the expand-on-demand mechanic - No new notes, no DAG, no 2x note explosion — just a field
---
title: LinkedIn API Setup
type: note
permalink: memory/linkedin-setup
summary: "Automated LinkedIn posting via OAuth API from Paul personal profile. Token expires ~60 days."
---Benefits
- Fits many more notes into a context window during recall (dozens of summaries vs a few full notes)
- Lossless — full note content always available via read_note
- Human-readable and editable (it is plain text frontmatter)
- Works with existing search and schema infrastructure
- Zero overhead for short sessions (summaries are just metadata)
References
- Volt/LCM Paper — Lossless Context Management architecture
- Volt agent (fork of OpenCode)
- OpenClaw skill frontmatter pattern (scan descriptions, load full skill on match)