Getting Started

Install Dark Factory, configure your first project, and let autonomous agents handle your GitHub issues.


Installation

Prerequisites

Install from source

go install github.com/peter-stratton/dark-factory/cmd/godark@latest

Verify installation

godark version
godark doctor

The doctor command checks that all dependencies are in place — Docker running, gh authenticated, API key set, and toolchain available.


Project Setup

Initialize an existing project

cd your-project
godark init --repo owner/your-project

This writes:

Create a new project

godark new my-project --repo owner/my-project

Creates the directory, initializes git, and scaffolds all harness files including CLAUDE.md, .gitignore, and documentation structure.

Configure the project

Use the /godark-configure-project skill to auto-detect your build commands, environment variables, CI checks, and Docker configuration:

# In Claude Code:
/godark-configure-project

Or edit godark.yaml manually. See the Configuration guide for all options.


Tutorial: Your First Autonomous Run

1. Clone the demo repository

git clone https://github.com/peter-stratton/dark-factory-demo
cd dark-factory-demo

The demo repo comes pre-configured with godark.yaml, a roadmap, planning docs, and scenario specs for a small Go project.

2. Create the roadmap and issues

The demo repo already has a milestone with issues ready to process. Verify with:

godark vet issues --tag phase-1
godark vet scenarios --tag phase-1

3. Dry run

See what Dark Factory would do without actually running agents:

godark run --tag phase-1 --dry-run

This prints the execution plan — resolved dependencies, issue order, and configuration.

4. Run it

godark run --tag phase-1 --auto-merge-feature low_risk

Dark Factory will:

5. Monitor progress

Open the dashboard in another terminal:

godark status

Navigate to http://localhost:8374 to watch the run in real time.

6. Review results

godark analyze --repo owner/dark-factory-demo

See outcome distribution, retry stats, costs, and any detected prompt gaps.


Next Steps