christian-bromann/langchain-skills/python
Claude Code and agent skill by christian-bromann/langchain-skills
- community
Checking that the SKILL.md file is still in the repository.
Using FilesystemMiddleware with virtual filesystems, backends (State, Store, Filesystem, Composite), and context management for Deep Agents.
Install
npx vskill@latest install christian-bromann/langchain-skills/pythonSKILL.md
deepagents-filesystem (Python)
Overview
FilesystemMiddleware solves context engineering challenges by providing file operations through a pluggable backend system. It allows agents to offload large context to filesystem storage, preventing context window overflow.
Built-in Filesystem Tools:
ls- List files in a directoryread_file- Read entire files or specific line rangeswrite_file- Create new filesedit_file- Edit existing files with exact string replacementglob- Find files matching patternsgrep- Search for text across files
When to Use Filesystem Middleware
| Use Filesystem Tools When | Alternative Approach | |
|---|---|---|
| Tool results are variable-length (web_search, RAG) | Keep in message history (if small) | |
| Working with large documents or code | Use specialized tools | |
| Need persistent storage across turns | Use short-term message history | |
| Multiple files need coordination | Single-turn operations |
Backend Types
StateBackend (Default)
Ephemeral storage in agent state - persists within a thread only.
FilesystemBackend (Local Disk)
Direct access to local filesystem.
Security Considerations:
- Use
virtual_mode=Trueto prevent..,~, and absolute path access - Enable Human-in-the-Loop for sensitive operations
- Never use in web servers - use StateBackend or sandbox instead
- Secrets (API keys, .env) are readable by the agent
StoreBackend (Persistent Cross-Thread)
Storage that persists across threads using LangGraph's Store.
CompositeBackend (Hybrid Storage)
Route different paths to different backends.
Decision Table: Which Backend to Use
| Use Case | Backend | Why | |
|---|---|---|---|
| Temporary working files | StateBackend | Default, no setup needed | |
| Local development CLI | FilesystemBackend | Direct disk access | |
| Cross-session memory | StoreBackend | Persists across threads | |
| Hybrid storage | CompositeBackend | Mix ephemeral + persistent | |
| Production web app | StateBackend or Sandbox | Never use FilesystemBackend |
Code Examples
Example 1: Managing Large Context
Example 2: Custom Tool Descriptions
Example 3: Long-term Memory with CompositeBackend
Example 4: FilesystemBackend for Local Development
Boundaries
What Agents CAN Configure
✅ Backend type and configuration ✅ Custom tool descriptions ✅ File paths and organization ✅ Human-in-the-loop for file operations ✅ Root directory for FilesystemBackend ✅ Routing rules for CompositeBackend
What Agents CANNOT Configure
❌ Tool names (ls, read_file, write_file, edit_file, glob, grep) ❌ The fundamental file operation protocol ❌ Disable filesystem tools in create_deep_agent ❌ Access files outside virtual_mode restrictions ❌ Cross-thread file access without proper backend setup
Gotchas
1. StateBackend Files Don't Persist Across Threads
2. FilesystemBackend Needs virtual_mode for Security
3. StoreBackend Requires a Store Instance
4. edit_file Requires Exact String Match
Full Documentation
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/deepagents-filesystem/python/SKILL.md
Popularity
- Repository stars
- 3
- Repository forks
- 1
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 3 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/christian-bromann/langchain-skills/python)