CaseStudies

MassGen v0.0.25: Multi-Turn Filesystem Support with Persistent Context

MassGen is focused on case-driven development. MassGen v0.0.25 introduces multi-turn conversation support with persistent filesystem context, enabling continuous back-and-forth interaction where agents maintain workspace state and build upon work from earlier exchanges in the same conversation session. This case study demonstrates how agents iteratively develop a website across multiple conversation turns, with each turn accessing files created in previous turns.

:depth: 3
:local:

📋 PLANNING PHASE

📝 Evaluation Design

Prompt

Multi-turn conversation demonstrating iterative web development with the Bob Dylan fan site:

Turn 1 (Initial Creation):

Make a website about Bob Dylan

Turn 2 (Enhancement & Refinement):

Can you 1) remove the image placeholder? we won't use image directly. 2) generally improve the appearance so it is more engaging, 3) make it longer and add an interactive element

Baseline Config

grok4_gpt5_gemini_filesystem.yaml

Baseline Command

# Pre-v0.0.25: Each turn required separate execution, no session continuity
uv run python -m massgen.cli --config tools/filesystem/grok4_gpt5_gemini_filesystem.yaml "Make a website about Bob Dylan"
# Turn 1 completes - workspace state lost

uv run python -m massgen.cli --config tools/filesystem/grok4_gpt5_gemini_filesystem.yaml "Can you 1) remove the image placeholder? we won't use image directly. 2) generally improve the appearance so it is more engaging, 3) make it longer and add an interactive element"
# Turn 2 starts fresh - no access to Turn 1's workspace or conversation context

🔧 Evaluation Analysis

Results & Failure Modes

Without multi-turn support, each MassGen execution was independent with no ability to continue previous conversations or access workspace files from earlier runs.

Problems users experienced before multi-turn support:

Success Criteria

The multi-turn filesystem support would be considered successful if:

  1. Continue Previous Conversations: Users can resume and continue previous conversation sessions
  2. Iterative Development: Users can refine and enhance projects across multiple conversation turns
  3. Access Previous Work: Agents can reference and build upon files created in earlier turns
  4. Track Conversation History: Users can review the complete evolution of multi-turn conversations

🎯 Desired Features

To achieve the success criteria above, v0.0.25 needs to implement:

  1. Session Storage System: Enable users to continue previous conversations by storing and restoring conversation sessions
  2. Workspace Snapshot & Restore: Allow agents to access previous work by automatically preserving workspace files between turns
  3. Turn-Based Organization: Support iterative development by organizing each conversation turn’s results separately
  4. Session Summaries: Help users track conversation history with human-readable summaries of all turns, e.g.SESSION_SUMMARY.txt

🚀 TESTING PHASE

📦 Implementation Details

Version

MassGen v0.0.25 (September 29, 2025)

✨ New Features

Additional v0.0.25 Features:

New Configuration

Configuration file: massgen/configs/tools/filesystem/multiturn/grok4_gpt5_gemini_filesystem_multiturn.yaml

Command

Quick Start: Running Multi-Turn MassGen

Step 1: Install MassGen Globally (First Time Only)

# Clone the repository
git clone https://github.com/Leezekun/MassGen.git
cd MassGen

# Install MassGen as a global tool
uv tool install -e .

Step 2: Run Multi-Turn in Your Project Directory

# Create and navigate to your project directory
mkdir testing
cd testing

# Run MassGen with multi-turn filesystem support
uv tool run massgen --config tools/filesystem/multiturn/grok4_gpt5_gemini_filesystem_multiturn.yaml

# You'll be prompted to add the current directory as a context path
📂 Context Paths:
   No context paths configured

❓ Add current directory as context path?
   /path/to/testing
   [Y]es (default) / [N]o / [C]ustom path: [Enter]

✓ Added /path/to/testing (write)

# Now you can have multi-turn conversations
User: ...

Step 3: Multi-Turn Conversation

# Turn 1 - Initial creation
Turn 1: Make a website about Bob Dylan
# Creates workspace and saves state to .massgen/sessions/

# Turn 2 - Enhancement based on Turn 1
Turn 2: Can you (1) remove the image placeholder? we will not use image directly. (2) generally improve the appearance so it is more engaging, (3) make it longer and add an interactive element
# Note: Unlike pre-v0.0.25, Turn 2 automatically loads Turn 1's workspace state
# Agents can directly access and modify files from the previous turn

🤖 Agents

All agents have filesystem access through MCP with isolated workspaces. In multi-turn mode, each agent maintains workspace state across conversation turns, with automatic session persistence and restoration.

🎥 Demo

Watch the v0.0.25 Multi-Turn Filesystem Support in action:

MassGen v0.0.25 Multi-Turn Filesystem Demo

Key artifacts:


📊 EVALUATION & ANALYSIS

Results

The v0.0.25 multi-turn filesystem support successfully achieved all success criteria and demonstrated iterative development capabilities across conversation turns:

Continue Previous Conversations: Users resumed conversation after Turn 1, with Turn 2 building upon previous work

Iterative Development: Bob Dylan website refined across 2 turns - from initial creation to enhanced version with removed placeholders and added interactivity

Access Previous Work: Turn 2 agents accessed Turn 1’s index.html, styles.css, and script.js to make enhancements

Track Conversation History: Complete session history preserved in SESSION_SUMMARY.txt with metadata for both turns

The Multi-Turn Process

How agents iteratively developed the website with v0.0.25 multi-turn support:

Turn 1 - Initial Creation (Winner: agent_b / GPT-5-mini at 20:30:37):

Turn 1 Initial Website

Turn 1 result: Initial Bob Dylan fan site with biography, discography, timeline, and gallery placeholder sections

Turn 2 - Enhancement Building on Turn 1 (Winner: agent_b / GPT-5-mini at 21:08:52):

Turn 2 Enhanced Website

Turn 2 result: Enhanced website with removed placeholders, improved styling, expanded content, and interactive timeline/quiz features

Key v0.0.25 improvement: Session storage enabled Turn 2 agents to seamlessly access and build upon Turn 1’s work without manual file management.

Context Preservation Mechanisms:

Quality Improvements Through Multi-Turn:


🎯 Conclusion

The Multi-Turn Filesystem Support in v0.0.25 successfully solves critical conversation continuity problems that users faced when building complex projects. The key user benefits specifically enabled by this feature include:

  1. Build Iteratively: Refine complex projects across multiple conversation turns with full workspace continuity
  2. Resume Naturally: Continue previous conversations with automatic session restoration and context preservation
  3. Track Progress: Review the complete evolution of multi-turn conversations through session summaries and metadata


📌 Status Tracker


Case study conducted: October 1, 2025 MassGen Version: v0.0.25 Configuration: massgen/configs/tools/filesystem/multiturn/grok4_gpt5_gemini_filesystem_multiturn.yaml