Skip to content

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.

After reflow login, create or select a collection directly from your application checkout—hosted onboarding is not required:

Terminal window
reflow collections list --json
reflow collections create --repo . --json
reflow 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.

Command / contextResulting associationNotes
reflow collections create --repo . (GitHub origin)Canonical owner/repoInfers display name from directory; override display name with --name "My app".
--repository-id owner/repoSpecified GitHub owner/repoMust match one of the checkout’s GitHub remotes (such as a fork’s upstream).
Checkout without GitHub origin, or outside Git with --namelocal:<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 originlocal:<collection-id>Call reflow mcp call manage_collections '{"action":"create","name":"My app (golden)"}' without repository.
OperationCLILocal MCP (manage_collections)
List team collectionsreflow collections list --json{"action": "list"}
Create from checkoutreflow collections create --repo . --json{"action": "create", "repository": "/abs/path"}
Select active collectionreflow collections select <id>{"action": "select", "collection_id": "..."}
Unbind unused GitHub reporeflow flows collection-bind --collection <id>Owner/admin only; requires zero flows (including archived), CI runs, coverage, or GitHub App links
  • 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 a local:<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_storage default (new teams default to Keep tests in Reflow) and returns collection_id, test_storage, and preference_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.
Terminal window
reflow collections list --json
reflow collections select <collection-id>
reflow config get test-storage --json

create 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).

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" with repository: "/absolute/path/to/app" infers checkout metadata (optional name and repository_id override it; omitting both repository and repository_id with name creates a local:<collection-id> collection without reading a checkout).
  • action: "select" with collection_id (and optional repository to 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.

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.