filesystem-context

Implements filesystem-based context management patterns for agent memory and dynamic context loading.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/TECH-HY/SKILLS --skill filesystem-context-tech-hy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: filesystem-context
Source: https://github.com/TECH-HY/SKILLS/tree/main/skills/filesystem-context
Command: npx skills add https://github.com/TECH-HY/SKILLS --skill filesystem-context-tech-hy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Context windows are limited while agent tasks often require more information than fits in a single window, causing token bloat, lost plans, and degraded attention over long conversations. ## Core Features & Use Cases - Tool Output Offloading: Write large tool outputs (web searches, database queries, logs) to scratch files and return summaries with file references instead of raw content. - Plan and State Persistence: Store plans, progress, and user preferences in structured files so agents can re-read objectives across long trajectories. - Dynamic Skill Loading and Sub-Agent Workspaces: Load skill files on demand and let sub-agents share findings through the filesystem instead of message passing. - Use Case: A web search returns 8000 tokens; the agent writes it to scratch/search_results_001.txt, keeps a 100-token summary in context, and greps the file later for specific details. ## Quick Start Use the filesystem-context skill to offload large tool outputs to scratch files and load context dynamically instead of keeping everything in the conversation window.

Frequently Asked Questions about filesystem-context

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

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

Write tool outputs exceeding roughly 2000 tokens to scratch files and return only a short summary with the file path to the context. The agent can later use grep or line-range reads to retrieve specific sections on demand.

How can an agent remember its plan across a long conversation?

Store the plan in a structured file such as a YAML checklist with step statuses. The agent re-reads this file at the start of each turn or when it needs to re-orient, preventing objectives from being lost to summarization.

When should I use filesystem context versus keeping everything in the prompt?

Use filesystem patterns when tool outputs are large, tasks span multiple turns, or multiple agents share state. Avoid them for single-turn tasks, when context fits comfortably, or when latency is critical since file I/O adds overhead.

Does filesystem search work better than semantic search for code?

Filesystem search with grep, glob, and line-range reads often outperforms semantic search for technical content like code and API docs where structural patterns matter. Combining both approaches covers conceptual and exact-match queries.

What are the risks of agents modifying their own instruction files?

Self-modification lets agents persist learned user preferences across sessions, but it is an emerging pattern. Without validation guardrails, agents can accumulate incorrect or contradictory instructions over time.