Application collections
An application collection groups the tests, repository association, and plugin selection for one application in your current team. A single collection can hold both tests stored in Reflow and tests stored in Git.
Create collection
Section titled “Create collection”After reflow login, create or select a collection directly from your application checkout—hosted onboarding is not required:
reflow collections list --jsonreflow collections create --repo . --jsonreflow init --collection <returned-collection-id>reflow target http://localhost:3000 --group my-app --collection <returned-collection-id>reflow collections create reads --repo (default: current directory), infers the display name from the directory and the canonical GitHub owner/repo from origin, and creates no checkout files, tests, commits, or runs. Credentials embedded in remote URLs are never saved.
Repository binding modes
Section titled “Repository binding modes”| Command / context | Resulting association | Notes |
|---|---|---|
reflow collections create --repo . (GitHub origin) | Canonical owner/repo | Infers display name from directory; override display name with --name "My app". |
--repository-id owner/repo | Specified GitHub owner/repo | Must match one of the checkout’s GitHub remotes (such as a fork’s upstream). |
Checkout without GitHub origin, or outside Git with --name | local:<collection-id> | Reads no checkout when --repo is omitted outside Git (requires --name). An explicit non-Git --repo is refused. |
Second collection for a checkout with GitHub origin | local:<collection-id> | Call reflow mcp call manage_collections '{"action":"create","name":"My app (golden)"}' without repository. |
CLI and MCP actions
Section titled “CLI and MCP actions”| Operation | CLI | Local MCP (manage_collections) |
|---|---|---|
| List team collections | reflow collections list --json | {"action": "list"} |
| Create from checkout | reflow collections create --repo . --json | {"action": "create", "repository": "/abs/path"} |
| Select active collection | reflow collections select <id> | {"action": "select", "collection_id": "..."} |
| Unbind unused GitHub repo | reflow flows collection-bind --collection <id> | Owner/admin only; requires zero flows (including archived), CI runs, coverage, or GitHub App links |
Constraints and team defaults
Section titled “Constraints and team defaults”- Each team allows one collection per display name and one per GitHub
owner/repo. Duplicate creation is refused and names the existing collection—select it, create alocal:<collection-id>collection, or unbind it if unused. - A collection bound to GitHub is never moved directly to another repository; unbinding turns it into
local:<collection-id>and frees the repository. - Creation accepts the team’s current
test_storagedefault (new teams default to Keep tests in Reflow) and returnscollection_id,test_storage, andpreference_changed: false. Owners and admins change the default separately in Team settings. - Creation requires current team membership and author/run scope and does not grant execution approval to a closed-beta team.
List and select
Section titled “List and select”reflow collections list --jsonreflow collections select <collection-id>reflow config get test-storage --jsoncreate and select remember the collection in your private Reflow profile scoped to the current API, team, and user (validated against live team membership; never switches teams silently). Pass --collection to override on any command. An active execution target takes precedence over the remembered selection until you run reflow target --collection <id> again. Selection resets no test data and executes nothing.
Collection listings include each collection’s plugin lock revision and storage, while only the selected collection expands its full plugin lock (pluginLock: null on other rows does not mean uninitialized—select it or pass --collection to inspect its lock).
MCP onboarding
Section titled “MCP onboarding”Call get_reflow_context. When no collection is selected, next_action directs your agent to manage_collections:
action: "list"returns the team’s collections.action: "create"withrepository: "/absolute/path/to/app"infers checkout metadata (optionalnameandrepository_idoverride it; omitting bothrepositoryandrepository_idwithnamecreates alocal:<collection-id>collection without reading a checkout).action: "select"withcollection_id(and optionalrepositoryto verify the checkout binding) validates and remembers the selection.
Pass the returned ID to init_plugins and manage_execution. Hosted HTTP MCP exposes manage_collections with explicit name and optional repository_id: "owner/repo" (request-scoped: pass collection_id on subsequent calls); local plugin init and execution stay on the author device.
Uncertain responses
Section titled “Uncertain responses”Retain the returned new_collection_id and operation/session IDs. Inspect get_reflow_context (with that collection_id), reflow collections list, or reflow flows operation --operation-id <id> --operation-session <id> before retrying after a timeout. Never treat a duplicate refusal as permission to rename or rebind an existing collection.