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:
βCreate a presentation that teaches a reinforcement learning algorithm and output it in LaTeX Beamer format. No figures should be added.β
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
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."
Before v0.0.16, MassGen had fundamental disparities between backends:
The unified filesystem support would be considered successful if:
cwd and workspace configuration syntax across backendscwd parameter support for Gemini as Claude CodeMassGen v0.0.16 (September 8, 2025)
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"
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."
Agent Configuration:
gemini-2.5-pro with MCP filesystem capabilities via FilesystemManagerclaude-sonnet-4-20250514 with native filesystem toolsWorkspace Setup (Orchestrator-Managed):
workspace1 (main workspace), temp_workspaces/gemini_agent (shared context workspace)workspace2 (main workspace), temp_workspaces/claude_code (shared context workspace)temp_workspaces/ for all agents, maintains snapshots/ for state preservation, handles automatic cross-agent workspace synchronizationThe test execution demonstrates:
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:
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:
Result:
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:
mcp__filesystem__read_file, mcp__filesystem__write_filecwd workspace restrictionsAdvanced 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:
final/ directoryThe Power of Unified Filesystem: Cross-backend collaboration produces results exceeding individual agent capabilities.
Gemini Agentβs Q-Learning Focused Approach:

PDF Output: MassGen_v0_0_16_Beamer_RL_Presentation_gemini.pdf
Claude Code Agentβs Comprehensive Framework:

PDF Output: MassGen_v0_0_16_Beamer_RL_Presentation_claude_code.pdf
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:

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:
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.
cwd syntax for Gemini and Claude Code backends (extensible to all backends in future)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.
| 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.