Prerequisites
Before starting, ensure you have:Longshot installed
Follow the installation guide to install Longshot via pipx or Homebrew.
Run Your First Build
Run Longshot
Execute your first build with a natural language request:Longshot will:
- Parse your request with the root planner
- Decompose it into granular tasks
- Dispatch tasks to parallel Modal sandboxes
- Merge results back into your repository
- Run the reconciler to fix any build issues
CLI Options
Longshot provides several useful CLI flags:Understanding the Output
Longshot outputs structured logs with the following components:- Timestamp: When the event occurred
- Level:
INFO,WARN,ERROR, orDEBUG - Agent: Which component generated the log (
planner,orchestrator,worker-pool,reconciler,merge-queue) - Message: Human-readable description
- Data: Additional context (task IDs, file paths, etc.)
Example Log Output
Run Artifacts
After each run, Longshot generates three output files:| File | Description |
|---|---|
logs/run-<timestamp>.log | Complete structured log of the run |
logs/traces-<timestamp>.jsonl | Detailed execution traces for debugging |
logs/llm-<timestamp>.jsonl | All LLM requests and responses |
Next Steps
First Project
Step-by-step walkthrough of building your first project
Configuration
Learn about all configuration options