Skip to content

Instantly share code, notes, and snippets.

View layer4down's full-sized avatar

layer4down

View GitHub Profile
@layer4down
layer4down / rlm_SKILL.md
Created April 6, 2026 14:09
RLM Skill Documentation - Long Context Processing

name: rlm title: Recursive Language Model - Long Context Processing version: 1.0.0 category: retrieval description: > Process documents exceeding context limits using RLM pattern. Chunk large files, delegate to sub-LLM, synthesize results. For massive single files (logs, transcripts, dumps). user-invocable: true author: Brainqub3 tags:

  • long-context
@layer4down
layer4down / rlm_repl.py
Created April 6, 2026 14:09
RLM REPL for processing large files with LLMs
#!/usr/bin/env python3
"""Persistent mini-REPL for RLM-style workflows in Claude Code.
This script provides a *stateful* Python environment across invocations by
saving a pickle file to disk. It is intentionally small and dependency-free.
Typical flow:
1) Initialise context:
python rlm_repl.py init path/to/context.txt
2) Execute code repeatedly (state persists):