| layout | default |
|---|---|
| title | Shotgun Tutorial |
| nav_order | 110 |
| has_children | true |
| format_version | v2 |
Learn how to use
shotgun-sh/shotgunto plan, specify, and execute large code changes with structured agent workflows and stronger delivery control.
When coding agents work on larger features, they often drift from architecture and produce hard-to-review output. Shotgun uses a structured flow to keep planning, scoping, and execution aligned with your codebase.
This track focuses on:
- router-driven multi-agent lifecycle (research to export)
- planning and drafting execution modes
- codebase indexing, context retrieval, and operations
- production concerns across CI, observability, and security
- repository:
shotgun-sh/shotgun - stars: about 704
- latest release:
0.11.0(published 2026-03-13)
flowchart LR
A[Prompt] --> B[Router]
B --> C[Research]
C --> D[Specify]
D --> E[Plan]
E --> F[Tasks]
F --> G[Export]
G --> H[Agent Execution]
| Chapter | Key Question | Outcome |
|---|---|---|
| 01 - Getting Started | How do I install and run Shotgun quickly? | Working local baseline |
| 02 - Router Architecture and Agent Lifecycle | How does Shotgun break work into specialized agents? | Clear orchestration model |
| 03 - Planning vs Drafting Execution Modes | When should I use checkpoints versus full-speed runs? | Better control and throughput |
| 04 - Codebase Indexing and Context Retrieval | How does Shotgun build code awareness before writing changes? | Stronger context quality |
| 05 - CLI Automation and Scripting | How do I run Shotgun in scripts and CI flows? | Repeatable automation patterns |
| 06 - Context7 MCP and Local Models | How do docs lookup and local model support work? | Practical integration strategy |
| 07 - Spec Sharing and Collaboration Workflows | How do teams share and iterate specs safely? | Better collaboration lifecycle |
| 08 - Production Operations, Observability, and Security | How do I run Shotgun in production environments? | Ops and governance baseline |
- how to structure large coding-agent tasks into staged execution
- how to use router modes for safer implementation flow
- how to automate Shotgun in CI and team workflows
- how to harden operations with telemetry, secrets hygiene, and deployment controls
- Shotgun Repository
- Shotgun CLI Docs
- Context7 Integration Architecture
- Ollama/Local Models Architecture
- CI/CD Docs
Start with Chapter 1: Getting Started.
- Start Here: Chapter 1: Getting Started
- Back to Main Catalog
- Browse A-Z Tutorial Directory
- Search by Intent
- Explore Category Hubs
- Chapter 1: Getting Started
- Chapter 2: Router Architecture and Agent Lifecycle
- Chapter 3: Planning vs Drafting Execution Modes
- Chapter 4: Codebase Indexing and Context Retrieval
- Chapter 5: CLI Automation and Scripting
- Chapter 6: Context7 MCP and Local Models
- Chapter 7: Spec Sharing and Collaboration Workflows
- Chapter 8: Production Operations, Observability, and Security
Generated by AI Codebase Knowledge Builder