Documentation · Getting Started · Configuration
Describe what you want — re:factory designs and builds it. Brainstorm an idea from scratch, refine a plan for an existing project, or create entirely new factory modes.
# Design — brainstorm an idea, refine it, then build
factory ceo "distributed eval runner" --mode design
# Iterate on an existing repo
factory ceo ~/my-project --mode design --focus "add WebSocket support"
# Create — build new factory modes and pipelines
factory ceo /path/to/factory --mode create --focus "PR validation pipeline"
# Outer Loop — evolve workflow topologies via MAP-Elites
factory outer-loop calibrate ~/my-factory \
--benchmark featurebench \
--population-size 3 \
--project-dir /path/to/benchmark-instance \
--test-command "pytest tests/ -v"
All state is local — per-project in .factory/ (add to .gitignore), global in ~/.factory/. See Architecture for the full deep-dive.
Quick Start
Prerequisites: Python 3.11+, uv, and Claude Code (installed and authenticated).
uv tool install git+https://github.com/akashgit/remote-factory.git
# Design — brainstorm an idea, refine it, then build
factory ceo "my idea" --mode design
# Improve an existing project — use design mode with a focus area
factory ceo /path/to/project --mode design --focus "issue # or area to improve"
See the full setup guide for authentication, environment variables, and justification for why we install globally.
Design Mode
Design — brainstorm before building
Design mode is the primary way to use re:factory. It researches the space, drafts a structured plan via the Strategist, and lets you iterate on it before any code is written.
From a raw idea — describe what you want and refine it into a buildable spec:
factory ceo "distributed eval runner" --mode design
factory ceo "Build a REST API for bookmark management" --mode design
From a spec file — for longer, more detailed descriptions, write your idea to a .md file and pass the path:
Tip: For detailed ideas with multiple paragraphs, requirements, or research notes, use a spec file instead of a quoted string. There's no length limit on file content.
factory ceo ~/ideas/weather-dashboard.md --mode design
factory ceo ~/ideas/my-app-spec.md --mode design
On an existing project — study the backlog, eval scores, open issues, and experiment history, then discuss what to work on before executing:
factory ceo ~/factory-projects/my-app --mode design
Seed the conversation with a topic — use --focus to start the discussion around a specific area:
factory ceo ~/factory-projects/my-app --mode design --focus "auth layer"
factory ceo ~/my-app --mode design --focus 42 # GitHub issue
factory ceo ~/my-app --mode design --focus "owner/repo#42" # Issue shorthand
Design mode subsumes Build and Improve — it researches, plans, gets your approval, then builds and iterates.
Design-v2 — inference-time scaling
Design-v2 applies the same principle at every stage: parallel generation → synthesis → gate. Instead of hardcoded researchers and a single strategist, three Director agents dynamically design N/M/K approaches with project-specific prompts.
factory ceo "markdown link checker with Obsidian wikilinks" --mode design-v2
factory ceo ~/my-project --mode design-v2 --focus "auth layer"
factory ceo ~/my-project --mode design-v2 --auto-approve # CEO acts as user at gates