deepagents-filesystem
使用 FilesystemMiddleware 实现虚拟文件系统、后端(State、Store、Filesystem、Composite)和 Deep Agents 的上下文管理。
npx skills add majiayu000/claude-skill-registry --skill deepagents-filesystem --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# deepagents-filesystem (JavaScript/TypeScript) ## 概述 FilesystemMiddleware 通过可插拔后端系统提供文件操作,解决上下文工程挑战。工具包括:`ls`、`read_file`、`write_file`、`edit_file`、`glob`、`grep`。 ## 后端类型 ### StateBackend(默认) 在 agent 状态中的临时存储 - 仅在单个会话内持久化。 ```typescript import { createDeepAgent } from "deepagents"; const agent = await createDeepAgent({}); // 默认 StateBackend - 文件仅存在于会话中 ``` ### FilesystemBackend(本地磁盘) ```typescript import { createDeepAgent, FilesystemBackend } from "deepagents"; const agent = await createDeepAgent({ backend: new FilesystemBackend({ rootDir: ".", virtualMode: true // 安全性:限制路径 }) }); ``` ### StoreBackend(持久化) ```typescript import { createDeepAgent, StoreBackend } from "deepagents"; import { InMemoryStore } from "@langchain/langgraph"; const store = new InMemoryStore(); const agent = await createDeepAgent({ backend: (config) => new StoreBackend(config), store }); ``` ### CompositeBackend(混合) ```typescript import { createDeepAgent, CompositeBackend, StateBackend, StoreBackend } from "deepagents"; import { InMemoryStore } from "@langchain/langgraph"; const store = new InMemoryStore(); const agent = await createDeepAgent({ backend: (config) => new CompositeBackend( new StateBackend(config
- 概述
- 后端类型
- StateBackend(默认)
- FilesystemBackend(本地磁盘)
- StoreBackend(持久化)
- CompositeBackend(混合)
- 决策表
- 代码示例
- 示例 1:管理大上下文
- 示例 2:长期内存
- 示例 3:自定义工具描述
- 边界
- Agent 可以配置的内容
- Agent 不能配置的内容
What does the deepagents-filesystem skill do?
使用 FilesystemMiddleware 实现虚拟文件系统、后端(State、Store、Filesystem、Composite)和 Deep Agents 的上下文管理。
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill deepagents-filesystem --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
