filesystem-context

Offload agent context to filesystem files for dynamic retrieval and persistence.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills --skill filesystem-context-lgj-jonathan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: filesystem-context
Source: https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills/tree/main/context-engineering/skills/filesystem-context
Command: npx skills add https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills --skill filesystem-context-lgj-jonathan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? LLM context windows overflow when tool outputs, plans, and logs accumulate in message history, degrading agent attention and losing information across long tasks. This Skill uses the filesystem as a persistent overflow layer so agents store, retrieve, and update context on demand instead of keeping everything in the window. ## Core Features & Use Cases - Tool Output Offloading: Write large tool outputs to scratch files and return compact summaries with file references, keeping only ~100 tokens in context. - Plan Persistence: Save structured plans to disk so agents re-read objectives and progress after context refreshes or summarization. - Sub-Agent File Workspaces: Route multi-agent communication through isolated per-agent directories instead of lossy message chains. - Use Case: A web search returns 8000 tokens. The agent writes it to scratch/search_results_001.txt, returns a one-line summary with the file path, and greps the file later only when specific details are needed. ## Quick Start Use the filesystem-context skill to offload large tool outputs to scratch files and persist my current plan to disk.

Frequently Asked Questions about filesystem-context

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

FAQPage Schema
How do I reduce LLM context window bloat from tool outputs?

Write large tool outputs to scratch files and return a compact summary with the file path instead of the full content. The agent then uses grep or line-range reads to retrieve only the sections it needs, keeping roughly 100 tokens in context instead of thousands.

How do agents persist plans across context window refreshes?

Save the plan as a structured JSON or YAML file on disk with objective, steps, and status fields. The agent re-reads the file at the start of each turn or after summarization to restore awareness of the objective and current progress.

When should I use filesystem-based context management?

Use it when tool outputs exceed roughly 2000 tokens, tasks span multiple turns, or multiple agents share state. Avoid it for single-turn tasks, when context fits comfortably in the window, or when file I/O latency is unacceptable.

How do sub-agents share information without message passing?

Each sub-agent writes findings to its own isolated workspace directory, and the coordinator reads those files directly. This avoids the summarization degradation that occurs in multi-hop message chains and prevents write conflicts.

What are the risks of agent self-modification of preference files?

Self-modification can accumulate incorrect or contradictory instructions over time. Guard it with validation such as entry limits, value length caps, and periodic human review of persisted preferences.