skip to content
FILESYSTEM.md

Agent Filesystem Tool Layer

Last updated:

View Markdown source

Builder procedure

Purpose

Agents do not call your storage SDK. They call tools. The tool layer is the public ABI.

ToolMaps toNotes
list / LSlist(path)Return names + types
read_fileread(path)Cap max bytes; support offset/limit if large
write_filewrite(..., overwrite)Prefer patches when available
edit_filesurgical updateReduces rewrite risk
append_filewrite(..., append)For LOGS/ and observations
grep / searchindexed or ripgrepExact match for configs
bashshell in sandboxPowerful; needs strict policy

Keep names stable. Document them in TOOLS.md without secrets.

Schema tips (SHOULD)

Concurrency (SHOULD)

Mapping to FILESYSTEM.md

FILESYSTEM.md abstract opTool
Orientlist, grep
Execute writewrite_file / edit_file
Memory appendappend_file
Skill loadread_file SKILLS/.../SKILL.md
Logappend_file LOGS/...

See For Agents → Operations and Claude Code mapping.

Anti-patterns

Human notes

Industrial harnesses (see the Claude Code study tool chapters) separate tool type systems, permission checks, and UI/progress. You do not need feature parity on day one — you need a safe, path-centric MVP.