# Start or adopt a project

Use the project's Preview pane to prepare a new or existing application. A setup
screen there means preparation is needed; it is not an application preview.
You need access to the project and an available coding assistant for delegated work.

## Existing project

1. Open the project and its coding session. On mobile, use **Show project** to
   reveal Preview from chat.
2. At **Set up this existing project**, fill **What is this project?** with its
   purpose and what you want to run, then choose **Set up project**. Alternatively,
   choose **Inspect it for me** to have the coding agent investigate first. Either
   opens the [AI task window](ai-tasks.md), where you follow the conversation and
   answer its questions.
3. When the AI says it has finished, Vibe64 inspects the project itself. The task
   is **Done** only once setup no longer needs anything; otherwise what is still
   missing goes back to the same conversation. Normal preparation then runs.
4. When output controls replace setup, select the intended output and use its
   normal Run control. A successful setup request alone does not mean it is running.

The agent writes the setup and output declarations in the project's
`genesis/stack.md`. Their exact grammar comes from Vibe64 itself: the agent reads
it with `vibe64-helper spec workspace-setup` and `vibe64-helper spec outputs`
(see [coding agents](coding-agents.md)). A setup error names the spec to read.

The existing source and Git history are retained. If preparation fails, read the
reported step and use the offered retry after addressing its cause. Do not apply
a starter over an existing repository to repair it.

### Preview accounts for an imported application

If the application has login-protected pages, the coding agent should initiate
preview-access setup during import. It asks which **existing development
accounts** represent an administrator and other roles you need to inspect, and
which should be the default. Supply an email, login or user ID, not a password.
The agent should reuse answers you already gave and wait for your choices.
Choosing a name such as “admin” does not grant that account administrator rights.

An application with login accounts gets a Preview identity adapter by
default: when it is missing, the coding agent sets it up as part of the work
rather than asking first. It can also save the named accounts you give or confirm
(for example `admin` and `user` with their emails) and then verify each in Preview;
it never creates accounts or changes roles for this. To configure them yourself,
open **Dashboard > App access** and use **Managed app access > Add identity**. Enter **Name**, **App identifier**
and **Application value**, choose **Make default** if needed, then **Save**.
On mobile, use **Show project** to reach Dashboard. Colleague can explain these
fields and, when asked, save the supported identity settings; application code
work belongs to the coding agent.

Once the adapter is ready, choose the configured name from Preview's application
identity menu and verify the expected access. Saving the list alone does not
prove the account exists or authentication works. A missing or disabled account
needs a corrected existing account selection; import does not create users,
change roles or reset passwords. If you postpone this setup, the agent should
leave authenticated preview access explicitly pending and continue other setup
work. Public applications and non-web projects do not need preview accounts.

## New project

1. Open the project and create or select its coding session. At **What would you
   like to build with?**, review the available starter cards, grouped by
   technology. The official catalogue lists JSKIT first: **JSKIT · Basic app**
   (no accounts or database), **JSKIT · App with no users, but a database** (MySQL) and
   **JSKIT · App with users** (sign-up, login and MySQL). Then one **Basic app**
   each for Django, Rails, Spring Boot, Express and Next.js: a small notes form
   saved to SQLite (MySQL/MariaDB for Spring Boot), with ready tests. Only the
   Rails starter has sign-in, with a seeded development account
   (`developer@example.com` / `developer`); for the others, ask the agent to add
   accounts. Available starters depend on the installation; do not assume an
   absent card exists.
2. Choose **Use this starter →** on the intended card only when it matches the
   product you want. Preparation adds it to this session, whose tab then counts
   the starter's files as unsaved changes and whose **Save** button turns red;
   use **Save** to keep the work in the project. Until then, other and new
   sessions do not have the starter, and archiving this session leaves it out of
   the project; the **Archive session** dialog warns about this unsaved work. A
   failed application reports its error and preserves existing work.
3. You can also describe the app directly in the session's main chat. In an
   empty folder that was never set up, the coding agent first initializes Genesis,
   then proposes a Blueprint and the matching Stack components for your answer.
4. Alternatively, choose **Start through conversation** to open the
   [AI task window](ai-tasks.md) for project creation. Discuss what you want, who uses it and its first useful
   outcome before choosing technology. If no starters are configured, this
   conversation route is still offered when a coding assistant is available.

A coding session can exist before application preparation finishes. On mobile,
use **Show project** to see setup and **Show chat** to follow the conversation.

## Colleague assistance

Ask “What does this setup screen need?” for an explanation. Colleague can read
onboarding state without preparing a large coding request, discuss the product,
create an authorized first session, and start an explicitly requested inspection
or setup there. After you request the task or accept its offer, Colleague starts it
as the session's **Project setup** AI task, the same one **Set up project**,
**Inspect it for me** or **Fix it with AI** would start, and Vibe64 inspects the
project when the AI finishes ([Fix a problem with AI in the AI task window](ai-tasks.md)).
It can follow the task and report the observed result. It does not inspect
the repository itself. An explanation or offer starts no coding work; a direct
request or accepted offer authorizes the specified task. Missing project access,
assistant access or resources must be resolved through their existing setup flow.
