Documentation
Reference
Settings

Settings Reference

All configuration options available in SpecWright, accessible from the Settings page in the Web UI or stored in specwright/outputs/settings.json.

AI tool selection

Choose which AI coding tool receives your issues when you click "Ship." This affects how prompts are delivered and which execution method is used.

ToolTypeHeadless support
CursorStandalone IDEYes — runs prompts via CLI without manual paste
Claude CodeCLI / VS Code extensionYes — headless CLI execution with session resumption
Codex CLIHeadless CLIYes — CLI-only, no IDE window
Gemini CLIHeadless CLIYes — CLI-only, no IDE window
GitHub CopilotVS Code extensionNo — uses keyboard automation (opens chat, pastes prompt)
WindsurfStandalone IDENo — uses keyboard automation

Headless mode means SpecWright runs the AI tool's CLI directly, streams progress in real time, and captures results automatically. This is faster and more reliable than keyboard automation.

Keyboard automation is the fallback for tools without headless support. SpecWright copies the prompt to your clipboard, activates the tool's window, opens a new chat, and pastes. You may need the tool already running.

Set during onboarding or change anytime in Settings.

Project settings

These settings are configured per-project, either during specwright finalize-scope or in the project settings panel.

Question depth

Controls how many questions each AI agent asks during the specification workflow.

LevelQuestions per agentTotal across 3 agentsBest for
Light2-35-8Small features, quick specs
Standard3-48-12Most projects (default)
Thorough4-612-18Complex features, high-stakes projects

More questions mean more context for the AI agents, which produces more detailed and accurate specifications. But it also means more time answering.

Document length

Controls the target word count for generated specification documents (PRD, design brief, technical spec).

LevelWord countReading timeBest for
Brief600-900 words3-5 minSimple features, lightweight specs
Standard1,500-2,100 words7-10 minMost projects (default)
Comprehensive3,600-4,500 words15-20 minComplex systems, detailed architecture

Project icon

Each project can have an emoji icon displayed on the dashboard and in project views. Set from the project detail page.

Git workflow

Configure how SpecWright handles git branching when shipping issues to AI tools. The shipped prompt includes git instructions based on your selection.

StrategyBehavior
NoneNo git instructions in shipped prompts
Branch per issuePrompt instructs the AI tool to create a branch for each issue (e.g., feat/ENG-001-google-signin)
Branch per projectPrompt instructs the AI tool to use one branch for the entire project

Cost estimation

SpecWright tracks token usage per project to estimate AI generation costs. Token counts are computed using the gpt-3-encoder tokenizer.

Input tokens are counted when prompts are generated. Output tokens are calculated by scanning all generated files (questions, documents, issues) and cached with file modification time checking — recalculated automatically when files change.

TierDescription
BudgetBudget models (e.g., Claude Haiku)
StandardStandard models (e.g., Claude Sonnet)
PremiumPremium models (e.g., Claude Opus)

Cost estimates appear in the project sidebar during the specification workflow.

Linear integration

Connect SpecWright to your Linear workspace to sync projects and issues. See the full setup guide at Linear Integration.

SettingDescription
API keyYour Linear personal API key. Stored in settings.json.
Default teamThe Linear team to sync projects and issues to.

Where settings are stored

  • Global settings (AI tool, git, cost, Linear): specwright/outputs/settings.json
  • Project settings (question depth, document length, icon): specwright/outputs/projects/{projectId}/project_status.jsonsettings field

Settings files are written atomically to prevent corruption.

What's next?