ZOYKU火线榜

unicity-aos/capsule-fs技术文档

Filesystem tools for agents. Read, write, replace, grep, list, create, delete, move via VFS airlock. Part of Unicity AOS.

目录大纲 (TOC) (3 章节)▾
多语言回退提示:当前仓库原作者暂未发布本地化文档,已为您无缝切换至官方英文原版(English),排版及代码实例完整保真。
极速安装
cargo add capsule-fs

astrid-capsule-fs

License: MIT OR Apache-2.0 MSRV: 1.94

Filesystem tools for Astrid OS agents.

In the OS model, this capsule is the coreutils package. It gives agents the ability to read, write, search, and navigate the workspace filesystem through the kernel's VFS airlock.

Tools

Tool Description
read_file Read file contents with optional line range (start_line, end_line)
write_file Write content to a file
replace_in_file Replace an exact string match in a file (rejects 0 or >1 occurrences)
list_directory List entries in a directory
grep_search Recursive content search with depth, file count, and match count caps
create_directory Create a directory
delete_file Delete a file (session-created files only, no whiteout support yet)
move_file Move a file with 10MB size limit, existence checks, and rollback on failure

All operations go through the VFS airlock. The kernel enforces path boundaries, copy-on-write isolation, and capability checks before any host filesystem access occurs.

Development

cargo build --target wasm32-unknown-unknown --release

License

Dual-licensed under MIT and Apache 2.0.

Copyright (c) 2025-2026 Joshua J. Bouw and Unicity Labs.

文档镜像归档自 GitHub 官方源路径 · 访问原项目 GitHub
最后同步快照:2026-11-09