Creating Your First Project
This guide walks you through creating a new project in Trinity, from initial setup to your first running story.
Before You Start
Make sure you have the basics ready:
- Git — installed, with your name and email configured
- A connected git host — GitHub, GitLab, Bitbucket, or a self-hosted GitLab/Forgejo instance, connected in-app from Settings → Accounts. For GitHub you can just Sign in with GitHub in the browser — no CLI or token needed; other hosts use an access token. (
gh/glab/teaCLIs are supported but not required.) - An agent CLI — Claude Code or Codex, whichever your model tiers point at. Trinity checks for it on the way into a workspace and again when you open a project (which looks across all your machines that can run work), and offers both the install and a one-click switch to the other engine right there.
See the Prerequisites & Tool Setup page for details. Trinity checks for what it needs contextually and tells you exactly how to fix anything that's missing.
Step 1: Create or Import a Project
Start from New thread on the Threads page and choose New project (greenfield) or Import project (existing codebase); the project selector's Create New Project and Add Existing Project open the same forms as full pages. Either form opens with a header, a scrolling body and a footer that keeps Cancel and the primary action in view.
Both start with a Workspace selector: the workspace the project lands in, defaulting to the one you are in. It lists every workspace your account can enter, and everything the form does (creating the project, the git host lookups) runs under the one you choose. Submitting opens the project's thread on the Threads page: the Architect thread for a new project, the import thread for an import.
New project then asks for:
- Name — lowercase, dashes only. Used for the workspace folder Trinity creates in the
projectsfolder of your storage location (~/.trinityunless you changed it). - Description — optional one-liner for the project.
Per-repo visibility (public / private) is chosen when you create the project, as part of project setup. Trinity manages the on-disk workspace location itself — you don't pick a folder.
Import project takes a link to a repo, or points Trinity at a local folder that's a git repo. Paste a link (an https or ssh clone URL, or the repo's page URL) and Validate checks that your connected git account can read it, with nothing cloned until you confirm in the import thread; a repo that already has a project offers Open for that project instead. For a folder that already has a remote, Trinity links that in; if it has none yet, Trinity can create the repository on your connected git host for you (the same way it creates greenfield repos) so a local-only project can still be imported.
Trinity checks that Git is installed and configured and that a git host is connected before showing the form. If something is missing, you'll see exactly what to do and a Check Again button.
Step 2: Greenfield Setup
Greenfield setup is a guided Architect conversation. You describe what you want to build, then answer a short, adaptive question sequence — Trinity only asks what your project actually needs:
- Clarify — describe your idea, then settle the targets you're building and the codebase each ships from
- Design — visual style per codebase, and one accessibility level per codebase (for codebases with a design surface — even a CLI gets a terminal palette)
- Stack — accept or tweak the recommended tech stack, one codebase at a time, once its design settles
- Backing services (Docker) — the databases, caches, and queues each codebase runs on (only when its stack needs them)
- Layout — choose where the code lives: how your repos are organized (single repo, monorepo, turborepo, or separate repos) and where each codebase sits in them (always confirmed — a single-target project just confirms single repo vs workspace)
- Phasing — settle the ordered phases your project ships in, starting with the MVP
- Business details — monetization, compliance, launch timeline, and how many people are building it
From your answers, Architect generates your roadmap and first stories. Throughout the conversation, the sidebar rail shows every decision live — toggle panels to see targets and phasing, or open modals for stack and design system. Core agent skills are scaffolded automatically; service keys are managed from Project Settings → Secrets, not the conversation. For the full Architect surface — threads, conversation modes, and how slots work — see Architect. You can also set this up together with the rest of your workspace — see Setting up together. For the full walkthrough, see Setting Up a New Project.
Step 3: Generate Your First Plan
Your first plan is generated right in the Architect conversation — once you've answered its questions, it writes your roadmap and first stories, and the release's Stories, an item on its thread's rail, show the plan ready to run.
Generating the first plan automatically creates your first release, giving it a readable two-word name (e.g. "Brave Otter"). The plan is the release's own: its phases, epics and stories.
The planning pipeline runs in 4 phases:
- Foundation — designs the phase and epic structure with rationale
- Story Writer — writes individual stories with acceptance criteria
- Dependency Mapper — populates
depends_onand places quality checkpoints - Folder Mapper — scopes each story to the folders its code changes (every target built from the packages they reach is affected automatically)
This takes a few minutes. You can watch progress live on the Architect's own run bar.
Step 4: Review Your Plan
Once the plan is generated, review it from the release's thread (Releases > your release > Open thread, or Threads). Stories and Graph are items on its rail, each opening full-screen over the conversation:
- Stories — the release's tree: phases, epics and stories with status, needs-you labels and filters; browse individual stories, edit descriptions, adjust dependencies and targets
- Graph — the release's story graph, phases as lanes and epics as groups, to visualize dependencies between stories
Make sure the plan makes sense before starting execution. You can:
- Edit story descriptions and acceptance criteria
- Tune a story's execution settings — review passes, model tier, reasoning effort
- Add or remove dependencies
- Reassign targets
- Remove stories you don't want (via Architect's removal flow, which also handles anything that depends on them)
Step 5: Start Execution
Open your first release from Releases and click Start on its rail. The modal, Run Release name on this machine, repeats the agent-CLI check for the release's own tiers as an informational heads-up — by this point you've already cleared the blocking version of it on the way into the workspace and the project.
Once started, the coordinator:
- Identifies stories in the active release whose dependencies are all met
- Assigns them to available workers, each running in its own isolated checkout — a git worktree per repo the story touches
- Each worker executes the story through the 4-phase pipeline (Analyst → Implementer → Auditor → Documenter)
You can configure the number of parallel workers and the story cap in the run modal.
Step 6: Monitor Progress
While execution runs, you can:
- Watch the dashboard — its Execution card shows which stories are in progress or waiting on you, and the release's queue shows what is queued
- Answer cards — respond when agents pause for a decision (deviation approval, missing secret, missing assets, etc.)
- View Recaps — daily summaries of what was accomplished
- Check Activity — every mutation is recorded with field-level diffs
Step 7: Ship the Release
Once every story in the release is merged or already-done, the release moves to ready (a failed story blocks this until you retry or resolve it). You ship from the promote card on the release's thread: the release agent puts it up once readiness and the checks pass, and you answer it with one of three modes (or Not yet). The Promote stage of the release's Flow panel shows the walk and holds the staging controls:
Ship — the through-staging path. Open the Stage Target Picker, check the staging targets you want the release deployed to, and click Stage selected — Trinity places the release onto each target branch so you can verify it on your preview deploys (a Staging Drift tile, a CI tile, and per-repo status in the same stage track each one). A branch not yet on the list can be typed directly; Trinity creates it as a new staging target and keeps it for your next release too. When it looks good, answer the card with Ship: Trinity promotes release → dev → main, runs the release pipeline (preflight → SEO audit/fix for web targets → release notes), stops for your approval, and on approval tags the affected repos and lands them on your base branch. The release becomes shipped.
Integrate — answer the card with Integrate to promote straight to your dev branch and stop at On Dev, without a production hop. Use this to get the work integrated on dev without shipping it.
Ship Now — answer the card with Ship Now to walk the same release → dev → main spine as Ship, but with the staging step bypassed.
If a staging deploy looks wrong, click Unstage on that target in the Stage Target Picker — Trinity resets the target's branch in every repo to the anchor it captured when it placed the release. Placements are independent, so unstaging one target never disturbs the others.
Step 8: Iterate
After shipping:
- Architect plans more work — inline, it adds phases to the same release or starts a new release
- Metrics shows execution efficiency and AI cost
Tips for Success
- Be specific during onboarding — the more detail you provide, the better the generated plans will be
- Review plans before execution — catching issues in planning is much cheaper than during execution
- Answer cards promptly — the pipeline waits on them, so responding quickly keeps things moving
- Start small — it's easier to add features iteratively than to plan everything upfront