File Operations#

MassGen provides comprehensive file system capabilities that enable agents to read, write, and manage files safely within defined boundaries. This section covers all aspects of file operations in MassGen.

Tip

For quick file operation examples, see Running MassGen.

Overview#

MassGen’s file system features include:

  • Workspace isolation - Agents operate within defined directories

  • Protected paths - Prevent modification of sensitive files

  • Project integration - Work with existing codebases safely

  • Memory filesystem - Combine file ops with session memory

  • Snapshot management - Track and restore file states

Guides in This Section#

πŸ“ File Operations

Core file system capabilities

  • Read, write, edit files

  • Workspace configuration

  • File snapshots and restoration

  • Safety and isolation

Read the File Operations guide β†’

πŸ“‚ Project Integration

Work with existing projects

  • Context paths configuration

  • Codebase exploration

  • Safe project modification

  • Multi-directory access

Read the Project Integration guide β†’

πŸ”’ Protected Paths

Secure file access

  • Protect sensitive files

  • Read-only paths

  • Path exclusion patterns

  • Security best practices

Read the Protected Paths guide β†’

πŸ’Ύ Memory Filesystem Mode

Combine files with session memory

  • Persistent file context

  • Memory-based file tracking

  • Multi-session file operations

  • Advanced workflows

Read the Memory Filesystem guide β†’