filesystem-context

Persist and retrieve agent context using filesystem files.

Updated Jun 12, 2026
One-click install
npx skills add https://github.com/Kushal9889/claude-plugins --skill filesystem-context-kushal9889
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: filesystem-context
Source: https://github.com/Kushal9889/claude-plugins/tree/main/context-engineering/skills/filesystem-context
Command: npx skills add https://github.com/Kushal9889/claude-plugins --skill filesystem-context-kushal9889

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill helps manage large volumes of context that exceed the model's token limit, providing efficient storage and retrieval strategies using the filesystem.

Core Features & Use Cases

  • Dynamic Context Discovery: Only include minimal static pointers in context and load full content on demand.
  • Scratch Pad Pattern: Offload large outputs to files, returning compact summaries for context.
  • Plan Persistence: Write plans to the filesystem to maintain long-horizon task awareness.
  • Sub-Agent Communication: Use file-based communication for multi-agent coordination.
  • Dynamic Skill Loading: Store skills as files and load them dynamically based on task requirements.
  • Terminal and Log Persistence: Capture terminal output for selective retrieval.
  • Self-Modification: Agents can write learned preferences to their own instruction files.
  • Filesystem Search Techniques: Combine ls, glob, grep, and read_file for context discovery.
  • Use Case: An agent needs to manage a complex project with multiple tasks, each requiring large datasets. This skill can be used to store and retrieve relevant data efficiently.

Quick Start

To use the filesystem-context skill, load it with the command 'use filesystem-context'.

Frequently Asked Questions about filesystem-context

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

FAQPage Schema
How do I manage large agent context that exceeds the model's token limit?

To manage large agent context that exceeds token limits, you can offload large outputs to the filesystem as scratch pads and return compact summaries to the context window. This approach provides efficient storage and retrieval strategies.

What is the best way to persist long-horizon task plans for an agent?

The best way to persist long-horizon task plans is to write them directly to the filesystem. This maintains task awareness over extended periods by storing plans as structured data files that the agent can retrieve selectively.

How do I enable file-based communication for multi-agent coordination?

You can enable file-based communication for multi-agent coordination by using the filesystem as a shared messaging layer. Sub-agents write outputs and status updates to files, allowing other agents to dynamically discover and retrieve the context on demand.

Can I dynamically load skills from files based on task requirements?

Yes, you can dynamically load skills from files based on task requirements. Store skills as individual files in the filesystem and use search techniques like glob and grep to load the relevant skill instructions only when needed.

What filesystem operations are needed for dynamic context discovery?

Dynamic context discovery requires combining standard filesystem search techniques such as ls, glob, grep, and read_file. These operations allow agents to navigate directories and selectively access full file contents only when required.

Does agent context management work without external dependencies?

Yes, filesystem-based context management works without external dependencies because it relies entirely on standard filesystem operations and structured data storage. You only need knowledge of file handling to persist, retrieve, and offload context.