Implementation:AIScientists Dev WorldSeed bootstrap workspace
| 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:
- Creates the workspace directory tree
- Copies the baseline template files (`train_gpt.py`, `evaluate.py`, `pyproject.toml`)
- Initializes git with a `baseline` branch and commits everything
- 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)