Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

filesystem-context

Skill by muratcankoylan

Teaches AI agents to store overflow context in files instead of the prompt. Useful for developers building long-running agents, sub-agent handoffs or tool-heavy workflows.

  • Score 94
  • 18k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install filesystem-context

Built from the published package, never by AI.

git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering /tmp/Agent-Skills-for-Context-Engineering && mkdir -p ~/.claude/skills && cp -r /tmp/Agent-Skills-for-Context-Engineering/skills/filesystem-context ~/.claude/skills/filesystem-context

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install filesystem-context in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill teaches an AI agent to use the filesystem as an overflow layer for its context. Large tool outputs are written to files and replaced with a short summary and a file reference. Plans, sub-agent findings, terminal logs and skill files are also stored on disk and loaded only when needed.

It is aimed at developers building agents that run long tasks, share state between sub-agents, or hit context window limits. The source relies on tools such as grep, glob and read_file with line ranges. It advises against use for single-turn tasks, latency-critical work, or models without filesystem tools. Its self-modification pattern is described as experimental and needs periodic review.

Written from the project's SKILL.md and checked against it.

What it can do

  • Scratch pad offloadingWrites large tool outputs to files and returns a short summary with a file reference.
  • Plan persistenceStores plans in structured YAML files so the agent can re-read them to stay oriented.
  • Sub-agent file workspacesLets sub-agents write findings to their own directories for the coordinator to read.
  • Dynamic skill loadingLists skill names and short descriptions in the prompt and loads full skill files when needed.
  • Terminal and log persistenceSaves terminal output to files and queries it with targeted grep instead of loading it whole.
  • Learned preferencesWrites learned user preferences to a YAML file that later sessions load automatically.
  • Filesystem search techniquesCombines ls, glob, grep and ranged read_file for discovery, alongside semantic search.

What you need

  • Filesystem tool access such as read_file, grep and glob

Try asking

  • Save this long search result to a file and give me a short summary.
  • Keep my project plan in a YAML file and re-read it before each step.
  • Search the saved terminal log for errors and show the lines around them.

Good to know

  • Dynamic loading depends on the model recognizing when it needs more context.
  • Less capable models may fail to trigger context loads.
  • File I/O adds overhead and latency.
  • Self-modifying preference patterns are experimental and need validation.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/filesystem-context/SKILL.md, skills/filesystem-context/scripts/filesystem_context.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md16 KB
  • references/implementation-patterns.md18 KB
  • scripts/filesystem_context.py15 KB

Alternatives to filesystem-context

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

filesystem-context: common questions

What problem does filesystem-context solve?

The source says context windows are limited while tasks often need more information than fits in one window. Storing context in files lets agents keep and retrieve much more without filling the prompt.

When should I not use this skill?

The source advises against it for tasks that finish in a single turn, when context already fits in the window, when latency is critical, or when the model lacks filesystem tools.

Does it handle semantic memory across sessions?

No. The source says semantic cross-session memory and knowledge graphs belong to a separate skill called memory-systems.

How do I install filesystem-context?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is filesystem-context free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is filesystem-context safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to filesystem-context?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

filesystem-context Install

Add to stack

Loading.