Skip to main content
Engineering notes

Context, examined in public.

Technical explorations of graph centrality, token economics, attention saliency, and provenance-aware compression.

Featured article · 6 min read
Give Claude Code a Long-Term Memory That Stays on Your Machine
A ten-minute setup with the LLMSlim MCP server, and a real session from version 0.11.2. Claude Code starts every session without the decisions from the last one. This guide adds the LLMSlim MCP memory server with one command, shows a real session from llmslim 0.11.2 (ten notes stored, and the two that answer a question recalled inside an 80-token budget), and covers keeping memories apart, forgetting, and the other clients that take the same server.

Recall ranks the stored notes by how well they answer the question and keeps the best ones, in their original order, until the token budget is spent. Skipped notes are marked with an ellipsis, and nothing is rewritten.

Algorithms

2 articles
Graph Centrality & TF-IDF Vectorization for In-Context Redundancy Reduction
Mathematical Derivation of LexRank Stationary Distributions and Priority Tier Filtering
Quadratic Attention Scaling O(N^2) & In-Context Token Reduction Economics
Deriving Computation Savings in Transformer Self-Attention Layers

Systems & Architecture

4 articles
Agent Memory Without an LLM Call: Why LLMSlim Stores Messages Word for Word
Write-time extraction against read-time selection, and what each one costs
Deterministic Safety Shields: Priority Tier Protection Mechanisms
Formal Syntactic Safeguards for Directives, Code Blocks, and Structured Data
AST Syntax-Aware Normalization for JSON, XML, and YAML Prompts
Compressing Structural Data Payloads Without Invocation Failures
Reverse Proxy Gateway Integration: Context Compression in Production Python Gateways
Deploying Transparent Pre-Dispatch Context Optimization in Enterprise Services

Context Engineering

2 articles
Give Claude Code a Long-Term Memory That Stays on Your Machine
A ten-minute setup with the LLMSlim MCP server, and a real session from version 0.11.2
Mitigating U-Shaped Attention Recall Decay in Long Context Prompts
Structuring Information Density to Overcome Position-Dependent Attention Loss

Benchmarking Methodology

2 articles
LLMSlim vs LLMLingua-2 vs LongLLMLingua: A Reproducible Prompt Compression Benchmark
One reader, one token budget, 300 paired cases on NaturalQuestions, and every script and per-case result published
Architectural Comparison: Offline Graph Methods vs. Neural Perplexity Pruning
Evaluating Throughput, Hardware Footprint, and Latency Metrics for Edge & Cloud Gateways