CaseStudies

MassGen v0.0.16: Unified Filesystem Support with MCP Integration

MassGen v0.0.16 introduces unified filesystem support for Gemini agents through MCP (Model Context Protocol) integration, enabling cross-backend collaboration between Gemini and Claude Code agents with shared workspace management. This case study demonstrates the new filesystem capabilities through a complex educational content creation task.

:depth: 3
:local:

πŸ“‹ PLANNING PHASE

πŸ“ Evaluation Design

Prompt

β€œCreate a presentation that teaches a reinforcement learning algorithm and output it in LaTeX Beamer format. No figures should be added.”

Baseline Config

Prior to v0.0.16, Gemini agents had no filesystem access capabilities, making them unable to create files or collaborate with Claude Code agents that rely on workspace sharing.

agents:
  - id: "gemini_agent"
    backend:
      type: "gemini"
      model: "gemini-2.5-pro"

  - id: "claude_code"
    backend:
      type: "claude_code"
      model: "claude-sonnet-4-20250514"
      cwd: "claude_code_workspace"

orchestrator:
    snapshot_storage: "snapshots"  # Directory to store workspace snapshots
    agent_temporary_workspace: "temp_workspaces"  # Directory for temporary agent workspaces

ui:
  display_type: "rich_terminal"
  logging_enabled: true

Baseline Command

massgen --config @examples/tools/mcp/gemini_mcp_filesystem_test_with_claude_code "Create a presentation that teaches a reinforcement learning algorithm and output it in LaTeX Beamer format. No figures should be added."

πŸ”§ Evaluation Analysis

Results & Failure Modes

Before v0.0.16, MassGen had fundamental disparities between backends:

  1. Filesystem Access Gap: Only Claude Code agents had built-in filesystem tools (Read, Write, Edit, etc.)
  2. No Cross-Backend Collaboration: Gemini agents couldn’t participate in file-based workflows
  3. Workspace Isolation: No shared workspace management between different backend types
  4. Limited MCP Filesystem Integration: No unified approach to filesystem operations via MCP

Success Criteria

The unified filesystem support would be considered successful if:

  1. Backend Parity: Gemini agents gain equivalent filesystem capabilities to Claude Code agents
  2. Cross-Backend Workspace Sharing: Seamless file sharing between Gemini and Claude Code agents
  3. MCP Integration: Clean MCP-based filesystem operations for extensibility
  4. Unified Configuration: Identical cwd and workspace configuration syntax across backends
  5. Collaborative Workflows: Multi-backend agents working on shared files and projects

🎯 Desired Features

  1. FilesystemManager Class: Unified filesystem management for all backends with MCP integration
  2. Cross-Backend Workspace Sharing: Automatic workspace synchronization between different agent types
  3. Identical Configuration Syntax: Same cwd parameter support for Gemini as Claude Code
  4. MCP-Based File Operations: Clean abstraction layer for filesystem operations through MCP protocol
  5. Enhanced Orchestration: Intelligent workspace management and agent coordination

πŸš€ TESTING PHASE

πŸ“¦ Implementation Details

Version

MassGen v0.0.16 (September 8, 2025)

New Configuration

Configuration file: massgen/configs/tools/mcp/gemini_mcp_filesystem_test_with_claude_code.yaml

Key breakthrough - identical filesystem configuration across backends:

agents:
  - id: "gemini_agent"
    backend:
      type: "gemini"
      model: "gemini-2.5-pro"
      cwd: "workspace1"  # NEW: Gemini now supports cwd like Claude Code

  - id: "claude_code"
    backend:
      type: "claude_code"
      model: "claude-sonnet-4-20250514"
      cwd: "workspace2"  # Existing: Claude Code filesystem support

orchestrator:
    snapshot_storage: "snapshots"
    agent_temporary_workspace: "temp_workspaces"

Command

massgen --config @examples/tools/mcp/gemini_mcp_filesystem_test_with_claude_code "Create a presentation that teaches a reinforcement learning algorithm, and output it in LaTeX Beamer format. No figures are required."

πŸ€– Agents

Agent Configuration:

Workspace Setup (Orchestrator-Managed):

πŸŽ₯ Demo

MassGen v0.0.16 Gemini file system integration Demo

The test execution demonstrates:

  1. Parallel Agent Initialization: Both agents start simultaneously with filesystem access
  2. MCP Integration: Gemini agent successfully connects to filesystem MCP server
  3. File Creation: Both agents create LaTeX presentation files in their respective workspaces
  4. Cross-Backend Collaboration: Agents can access each other’s work through temporary workspace sharing
  5. Final Coordination: Claude Code agent reviews both presentations and creates a comprehensive combined version

πŸ“Š EVALUATION & ANALYSIS

Results

πŸ—‚οΈ Unified Filesystem Manager - The Core Innovation

Major Breakthrough: Introduction of the FilesystemManager class provides unified filesystem access (currently implemented for Gemini and Claude Code backends, with architecture designed for future expansion).

Key Evidence from Logs:

02:20:42 | INFO | [FilesystemManager.setup_orchestration_paths] Called for agent_id=gemini_agent, snapshot_storage=snapshots, agent_temporary_workspace=temp_workspaces
02:20:42 | INFO | [FilesystemManager.setup_orchestration_paths] Called for agent_id=claude_code, snapshot_storage=snapshots, agent_temporary_workspace=temp_workspaces

Implementation:

Impact:

🀝 Cross-Backend Workspace Sharing

Revolutionary Capability: First-time cross-backend collaboration with shared workspace access.

Key Evidence:

[SYSTEM_FULL] ## Filesystem Access

You have access to filesystem operations through MCP tools allowing you to read and write files.

### Your Accessible Directories:

1. **Your Main Workspace**: `/workspace2`
 - IMPORTANT: ALL your own work (like writing files and creating outputs) MUST be done in your working directory.

2. **Context Workspace**: `/temp_workspaces/claude_code`
 - Context: You have access to a reference temporary workspace that contains work from yourself and other agents for REFERENCE ONLY.

Collaborative Workflow:

  1. Separate Main Workspaces: Each agent has their own working directory for creating original work
  2. Shared Context Workspace: All agents can access a temporary workspace containing work from all agents
  3. Automatic Synchronization: Orchestrator manages workspace snapshots and sharing
  4. Cross-Backend File Access: Claude Code can read Gemini’s LaTeX files, and vice versa

Result:

πŸ”§ MCP-Based Filesystem Operations

Technical Achievement: Gemini agents gain filesystem access through MCP protocol integration.

Evidence from Execution:

02:20:43 | INFO | πŸ”„ Setting up MCP sessions with 1 servers...
02:20:43 | INFO | Connecting to MCP server: filesystem
02:20:43 | INFO | Stream chunk [content]: πŸ”§ MCP: MCP configuration validated: 1 servers
02:20:43 | INFO | Stream chunk [content]: πŸ”§ MCP: Setting up MCP sessions for 1 servers

MCP Integration Features:

Technical Implementation:

πŸ“ Enhanced Workspace Management

Advanced Orchestration: Sophisticated workspace management and agent coordination.

Workspace Structure Created:

log_20250908_022042/
β”œβ”€β”€ agent_outputs/
β”‚   β”œβ”€β”€ claude_code.txt
β”‚   β”œβ”€β”€ final_presentation_claude_code.txt
β”‚   β”œβ”€β”€ gemini_agent.txt
β”‚   └── system_status.txt
β”œβ”€β”€ claude_code/
β”‚   └── 20250908_022230_558238/
β”‚       β”œβ”€β”€ answer.txt
β”‚       └── workspace/
β”‚           └── reinforcement_learning_presentation.tex
β”œβ”€β”€ final/
β”‚   └── claude_code/
β”‚       β”œβ”€β”€ answer.txt
β”‚       └── workspace/
β”‚           β”œβ”€β”€ comprehensive_reinforcement_learning_presentation.tex
β”‚           └── reinforcement_learning_presentation.tex
β”œβ”€β”€ gemini_agent/
β”‚   └── 20250908_022111_955066/
β”‚       β”œβ”€β”€ answer.txt
β”‚       └── workspace/
β”‚           └── q_learning_presentation.tex
└── massgen.log

Enhanced Features:

🀝 Cross-Backend Synthesis - Superior Through Collaboration

The Power of Unified Filesystem: Cross-backend collaboration produces results exceeding individual agent capabilities.

Implementation Differences

Gemini Agent’s Q-Learning Focused Approach:

Gemini Agent Implementation

PDF Output: MassGen_v0_0_16_Beamer_RL_Presentation_gemini.pdf

Claude Code Agent’s Comprehensive Framework:

Claude Code Implementation

PDF Output: MassGen_v0_0_16_Beamer_RL_Presentation_claude_code.pdf

Final Synthesized Result

Cross-Backend Intelligence at Work:

Through the unified filesystem, Claude Code agent accessed Gemini’s work and created a superior 25-slide presentation that synthesizes both approaches:

Final Coordinated Implementation

PDF Output: MassGen_v0_0_16_Beamer_RL_Presentation_final.pdf

Synthesis Achievements:

Final Content Provenance:

\documentclass{beamer}
\usetheme{Madrid}
\usecolortheme{default}

\title{Reinforcement Learning: Algorithms and Applications}
\subtitle{A Comprehensive Introduction}
\author{Machine Learning Education}
\date{\today}

% 25 comprehensive slides synthesizing:
% - Gemini's pedagogical Q-learning approach (slides 9-13)
% - Claude's mathematical framework (slides 5-8)
% - Combined real-world applications (slides 18-20)
% - Unified advanced topics coverage (slides 21-24)

Quality Improvements Through Cross-Backend Collaboration:


🎯 Conclusion

MassGen v0.0.16 represents a fundamental breakthrough in multi-agent system capabilities by achieving true backend parity and cross-backend collaboration. The unified filesystem support eliminates the previous disparity between Claude Code and Gemini agents, enabling seamless collaboration regardless of the underlying backend technology.

Key Achievements

πŸ”§ Technical Innovation

🀝 Collaborative Excellence

πŸ“ˆ System Evolution

Impact Assessment

This release transforms MassGen by enabling cross-backend collaboration between Gemini and Claude Code agents through unified filesystem support. The educational content creation task demonstrates how collaboration between these two backend types produces comprehensive, high-quality results that exceed what individual agents could achieve in isolation.

The v0.0.16 unified filesystem support establishes the foundation for expanding multi-agent collaboration. Currently supporting Gemini and Claude Code backends, the extensible architecture is designed to power all backends in future releases, positioning MassGen as the premier platform for complex, collaborative AI workflows.


πŸ“Œ Status Tracker

Feature Status Implementation Notes
FilesystemManager Class βœ… Complete massgen/backend/utils/filesystem_manager/ Unified filesystem for Gemini & Claude Code
MCP Filesystem Integration βœ… Complete MCP server auto-configuration Gemini agents gain filesystem access
Unified Configuration Syntax βœ… Complete Identical cwd support for Gemini & Claude Code Ready for future backend expansion
Enhanced Logging & Orchestration βœ… Complete Timestamped versioning Comprehensive workflow tracking
Educational Content Case Study βœ… Complete 25-slide comprehensive RL presentation Quality demonstrates collaboration benefits

Overall Status: πŸŽ‰ Complete Success - All major v0.0.16 unified filesystem objectives achieved with demonstrated cross-backend collaboration excellence.