Weave documentation
Agentfs

Files and Metadata

AgentFS::new requires a local root, AgentFSConfig, agent identity, organization identity, and identity adapter.

Workflow and current contract

AgentFS::new requires a local root, AgentFSConfig, agent identity, organization identity, and identity adapter. Use identities with matching public keys, then call the filesystem's file/directory methods. Directory creation accepts the exported CreateOptions, not a boolean.

Metadata is represented by LocalMetadata and managed through MetadataStore/MetadataHooks. The filesystem does not expose the arbitrary put_metadata/get_metadata JSON methods. Keep file contents and ownership metadata consistent through the actual API.

Source reference

On this page