Docs › For developers
Setting up a project
#How the project is found
A project is tied to your repository's first commit and the app's folder in it. Every clone, fork and branch is the same project, whatever its remote, even before anything is pushed. Your agent reads them with:
git rev-list --max-parents=0 HEAD
git rev-parse --show-prefix#Three ways in
| Situation | What happens |
|---|---|
| You start | A new project is created for the code. Invite your designer next. |
| Your designer started it in Figma and invited you | The agent lists the projects waiting for their code. Pick one: your code is linked to it for good. |
| The project exists already | It's found by the repository's identity. Nothing to choose. |
#The config file
The agent writes .codesignflo/config.json. Commit it.
{
"projectId": "p_e3abff2f9ff1",
"tokens": "tokens/tokens.json",
"storybook": {
"build": "pnpm build-storybook",
"out": "storybook-static"
},
"trackedBranch": "main"
}| Field | Meaning |
|---|---|
projectId | The CoDesignFlo project. |
tokens | Your DTCG tokens file, if any. |
storybook.build | The command that builds Storybook. |
storybook.out | Where the build goes. |
trackedBranch | The Live branch. |
#The Live branch
Commits on this branch update Live. Change it any time: ask your agent, or codesignflo live-branch <name> (developers and admins).
#Where designs are built
| Mode | Meaning |
|---|---|
storybook-first | Designs are built in Storybook only (components and page stories), and wired into the app after they're reviewed in Figma. |
storybook-and-app | Built in Storybook and the app together. |
Set it with the set_build_mode tool.
#Inviting the designer
The agent asks for your designer's email and invites them. They get an email with how to open the plugin. See Inviting people and roles.