> ## Documentation Index
> Fetch the complete documentation index at: https://docs.specpilot.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up specs with your agent

> Your agent reads the code, answers what it can and asks you the rest, then writes .specs/ for an existing folder or a new project.

A folder without `.specs/` opens in the Setup view, "Set up SpecPilot for this project". Start a New Project on Home opens it too, as "Start a new project with SpecPilot", and first asks for a Project name and a Parent folder.

**1. Connect your AI IDE**

Pick your IDE, copy the config and add it to your IDE (see [Connect your AI IDE](https://docs.specpilot.dev/mcp/connect.md)). The step shows `Connected` once your IDE reaches the server.

**2. Tell it what to do**

Copy the line and paste it into your agent: `Set up SpecPilot for <folder>` for an existing folder, or `Start a SpecPilot project called <name> in <parent folder>` for a new one.

**3. Progress**

The rows update by themselves, with nothing to click: Read the code, Answer the questions, Write the files and Validate. Each shows what happened, such as how many answers came from the code and how many from you. When it finishes, the App opens the project.

## What your agent does

1. It calls `specpilot_setup_questions`, which returns what SpecPilot found in the code and every question, with choices and suggestions.
2. It answers every question it can from the code.
3. It asks you only what is left, in one go.
4. It calls `specpilot_setup_project`, which writes `.specs/`, the instruction files and the skill, then runs validate.
5. It reports the validate result to you.

For existing code, most answers come from the code. For a new project, they come from you, and the folder is created at that path only when your agent writes the files.

## Prefer the terminal?

`specpilot add-specs` for existing code, or `specpilot init` for a new project, asks the same questions one by one in that folder.

> [!NOTE]
>
> Setup isn't available when the App was started with `--read-only` or `--no-mcp`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.