memory-summarize

Compress memories into structured JSON summaries via the BrAIny API.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/whiteboardev/brainy.chat --skill memory-summarize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-summarize
Source: https://github.com/whiteboardev/brainy.chat/tree/main/.opencode/skills/memory-summarize
Command: npx skills add https://github.com/whiteboardev/brainy.chat --skill memory-summarize

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill reduces context size by compressing memories into structured summaries, preserving essential details while removing redundancy.

Core Features & Use Cases

  • Automated memory compression: uses low-cost AI models to condense archives into compact, structured summaries.
  • Retention policy: keeps a defined number of recent memories uncompressed to preserve immediate context.
  • Metrics output: provides compression metrics in structured JSON for downstream tooling and auditing.
  • Use Case: in long-running projects with thousands of logs and notes, generate a concise summary to reference decisions and outcomes.

Quick Start

Summarize memories for a project by creating a coding_session summary, e.g. bun .opencode/skills/memory-summarize/scripts/create-summary.ts PROJECT_ID coding_session

Frequently Asked Questions about memory-summarize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compress AI memory context to reduce token bloat in long-running projects?

To compress AI memory context, this skill condenses memory archives into structured JSON summaries, preserving essential details while removing redundancy and providing compression metrics for auditing.

What is memory summarization and how does it manage NLP context retention?

Memory summarization is a compression technique that condenses accumulated logs and notes into structured summaries while retaining a defined number of recent memories uncompressed to preserve immediate context.

When should I use automated memory compression for context management?

You should use automated memory compression when memory counts or token estimates exceed defined thresholds, triggering automatically to reduce context size in memory-heavy workflows like long-running coding sessions.

Does the memory compression script work with Bun runtime and local BrAIny API?

Yes, the memory compression script requires the Bun runtime and uses the BrAIny API at localhost:3000 to execute low-cost AI models that produce JSON output with compression metrics.

Can I keep recent memories uncompressed while summarizing older project logs?

Yes, a retention policy keeps a defined number of recent memories uncompressed to preserve immediate context, while applying compression only to older archives to generate concise summaries.

What are the limitations of using automated memory summarization for context management?

Limitations include dependency on the Bun runtime and a local BrAIny API instance, meaning automated memory summarization cannot execute without these specific environment configurations and local service availability.