Available Examples
Basic Project Template
The foundational template for creating new Longshot projects. Includes all required documents with placeholders and guidance.- Path:
examples/example/ - Purpose: Bootstrap template for new projects
- Key Files: SPEC.md, AGENTS.md, README.md, RUNBOOK.md, DECISIONS.md, ENTRY_POINT.md
Decagon Assistant
A full-stack conversational AI assistant built for the Decagon AI challenge. Demonstrates complex multi-document coordination for a production-ready Next.js application.- Stack: Next.js 14, TypeScript, PostgreSQL, Anthropic Claude API
- Key Features: Real-time streaming, persistent memory, context retention
- Deployment: Vercel
- Timeline: 24 hours from first commit to deployed demo
Minecraft Browser Edition
A browser-based Minecraft clone built with React Three Fiber. Shows how Longshot handles game development with complex 3D rendering and physics.- Stack: React, Three.js, React Three Fiber, TypeScript
- Key Features: Procedural terrain, voxel rendering, physics, day/night cycle
- Runtime: Fully client-side, offline-capable
- Timeline: 1-2 hours swarm run
Example Structure
Each Longshot project follows a consistent documentation structure:Core Specification Files
SPEC.md
Product requirements, success criteria, acceptance tests, and scope boundaries
AGENTS.md
Execution policies, code style, dependencies, testing, and commit conventions
README.md
Quick start guide, setup commands, and demo flow
RUNBOOK.md
Operational procedures, monitoring, and recovery steps
Supporting Documents
DECISIONS.md
Architecture decisions with rationale and status tracking
ENTRY_POINT.md
Document ownership and update responsibilities
Bootstrapping New Projects
Longshot provides a plan-mode bootstrap process for creating new projects:Bootstrap Workflow
Create Folder + Copy Templates
Create new project folder and copy template markdowns from the example directory.
Collect Inputs
Gather project name, high-level description, and known constraints (time, budget, stack).
Ask Required Questions
Structured questions in batches:
- Product and success criteria
- Acceptance tests and demo flows
- Architecture and dependencies
- Scope control (must-have, nice-to-have, out-of-scope)
- Operations and reliability
Quality Gates
Bootstrap is complete only when:- ✅ No placeholder tokens remain (
<...>or TODO text) - ✅
SPEC.mdhas explicit acceptance tests with runnable commands - ✅
SPEC.mdincludes must-have, nice-to-have, and out-of-scope sections - ✅
AGENTS.mdhas concrete allowed/banned dependency policy - ✅
README.mdcan be followed from clean machine assumptions - ✅
RUNBOOK.mdhas restart and partial failure handling - ✅
DECISIONS.mdhas at least one active decision
Validation Command
Document Ownership Model
Before First Swarm Run
| Document | Owner | Purpose |
|---|---|---|
SPEC.md | User | Product requirements and success criteria |
AGENTS.md | User | Execution policies and conventions |
README.md | Template | Initial setup guide (agent updates) |
RUNBOOK.md | Template | Initial operations guide (agent updates) |
DECISIONS.md | Template | Initial architecture log (agent updates) |
During Swarm Run
| Document | Updates | Authority |
|---|---|---|
SPEC.md | Agent proposes | User approves |
AGENTS.md | Agent proposes | User approves |
README.md | Agent maintains | Agent owns |
RUNBOOK.md | Agent maintains | Agent owns |
DECISIONS.md | Agent maintains | Agent owns |
File Translation Rules
When creating project documentation, distribute information using these rules:- “What and why” →
SPEC.md - “How to execute work” →
AGENTS.md - “How to run now” →
README.md - “How to recover when broken” →
RUNBOOK.md - “Why architecture choices were made” →
DECISIONS.md - “Who owns which doc” →
ENTRY_POINT.md
- Product intent:
SPEC.md - Execution policy:
AGENTS.md - Operational steps:
RUNBOOK.md
Next Steps
Basic Project Template
Learn the template structure and bootstrap process
Decagon Assistant
Full-stack AI assistant with streaming and persistence
Minecraft Browser
3D game development with React Three Fiber
Project Structure
Deep dive into project organization