Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:AIScientists Dev WorldSeed bootstrap workspace

From Leeroopedia
Knowledge Sources
Domains Version_Control, Research_Automation
Last Updated 2026-10-26 18:00 GMT

Overview

Concrete workspace bootstrap function that creates a git-initialized directory structure with a baseline branch, seeded template files, and a papers directory for the autoresearch community.

Description

The bootstrap_workspace function creates the shared git workspace the autoresearch engine drives. It:

  1. Creates the workspace directory tree
  2. Copies the baseline template files (`train_gpt.py`, `evaluate.py`, `pyproject.toml`)
  3. Initializes git with a `baseline` branch and commits everything
  4. Creates the `papers/` directory

The function is idempotent: if the workspace already has a `.git` and `baseline` branch, it's a no-op (unless `force_reset=True`). TinyStories data lives on the EC2 training host, not in the workspace.

Usage

Import this function to set up the autoresearch workspace. Called once at scene initialization.

Code Reference

Source Location

  • Repository: WorldSeed
  • File: src/worldseed/autoresearch/bootstrap.py

Signature

def bootstrap_workspace(*, force_reset: bool = False) -> Path:
    """Set up (or reuse) the autoresearch workspace. Returns the workspace root."""

Import

from worldseed.autoresearch.bootstrap import bootstrap_workspace

Usage Examples

from worldseed.autoresearch.bootstrap import bootstrap_workspace

# Initial setup
root = bootstrap_workspace()
print(f"Workspace ready at {root}")

# Force reset (deletes and recreates)
root = bootstrap_workspace(force_reset=True)

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment