Reflection Bank

•

Captures, compresses, and retrieves successful reasoning patterns from LLM sessions to improve efficiency and consistency.

Reflection Bank is a sophisticated semantic caching system designed to enhance LLM performance by identifying, compressing, and reusing successful reasoning patterns. It analyzes session transcripts to extract core reasoning, converts verbose explanations into concise, parameterized behavior templates, and indexes these for sub-millisecond semantic retrieval using FAISS. This creates a powerful feedback loop that reduces token usage through semantic deduplication and selective injection, ultimately improving the consistency and efficiency of AI systems. This project emerged from research into cognitive pattern caching for AI, exploring how learned reasoning can be captured and reused across sessions.

主要功能

01Injection Hook for retrieving and formatting relevant patterns for prompt enhancement
020 GitHub stars
03Pattern Extraction from session logs with improved negation handling
04Thread-Safe FAISS Integration for sub-millisecond semantic search
05MCP Server for ready-to-use integration with Claude Code and other MCP clients
06Behavior Compression reducing verbose reasoning to concise templates (40-60% token reduction)

使用案例

01Reduce token usage and costs in large language model systems
02Improve consistency and reliability of LLM reasoning across sessions
03Accelerate LLM development by caching and reusing successful problem-solving approaches