Changelog

Two kinds of releases appear here:

  • Platform YYYY.MM.DD: the lab and the manager server. Released each time production is deployed. Nothing to upgrade.
  • CLI X.Y.Z: the pairit command-line tool on npm. Upgrade with:

    npm install -g pairit
    

Full release notes are on GitHub Releases.

Unreleased

Merged, but not released yet.

Platform

  • Nothing yet.

CLI

  • Nothing yet.

Platform 2026.12.01

Release notes

  • layout: split columns now scroll independently (overflow-y-auto), so long briefs, surveys, or structured workspaces in one column can scroll without clipping or scrolling the other column out of view.
  • Added per-config custom LLM endpoints for both Anthropic-compatible and OpenAI-compatible gateways (e.g. university proxies, LiteLLM, OpenRouter), with x-api-key or Authorization: Bearer auth for Anthropic, Chat Completions (chat) default for custom OpenAI-compatible endpoints (preserving Responses API for default OpenAI), optional provider: openai | anthropic overrides on agents, standard JSON-schema workspace tool fallback for custom gateways, and SSRF validation (HTTPS-only + pre-flight private-IP DNS and redirect guards).

CLI 0.3.15

Release notes

  • Added --openai-base-url, --openai-api-mode <chat|responses>, --clear-openai-base-url, --anthropic-base-url, --anthropic-auth-mode <x-api-key|bearer>, and --clear-anthropic-base-url flags to pairit config upload, displayed configured endpoints in pairit config list, and validated optional agents[].provider ("openai" or "anthropic") in pairit config lint and config upload.

Platform 2026.11.29

Release notes

  • Added DELETE /data/:configId (and GET /data/:configId/summary for pre-delete counts and live-activity checks) so researchers can permanently delete all participant data (sessions, events, chat messages, groups, workspaces, and timers) for their own studies while keeping the config definition intact.
  • Added an IRB and Data Privacy guide covering data storage, encryption, cookies/logs, access control, AI agent subprocessors, and copy-paste IRB protocol language.

CLI 0.3.14

Release notes

  • Added pairit data delete <configId> (previews counts and recent activity, offers a local JSON backup or export confirmation, and requires typing <configId> to confirm; --force skips prompts) to permanently purge participant records for a study after exporting.

CLI 0.3.13

Release notes

  • pairit config lint and config upload now validate chat scope ("participant" or "group") and flag duplicate chat rooms on the same page.
  • pairit admin activity and --fail-if-live now warn and exit 2 when any study has active participants (not only matchmaking group studies).

Platform 2026.11.26

Release notes

  • chat now supports scope: participant so matched teammates can each have a private chat (e.g., with an AI agent) instead of sharing the group's chat_group_id. Combine with groupId to continue the same private chat across pages, or place a private chat side-by-side with a group chat on the same page.
  • For admins: GET /admin/activity now returns liveStudies (any study with active participants, including solo and AI-agent studies) and accepts a read-only ADMIN_ACTIVITY_TOKEN bearer token for automated deploy checks. Lab SSE connections, events, timers, and session resumes now refresh sessions.updatedAt (throttled per session) so active participants aren't missed between page turns.

Platform 2026.11.25.3

Release notes

  • Timers are now anchored to server time: deadlines survive page refreshes, ignore local clock skew, and push expiry over SSE so minimized browser windows don't drift behind.
  • timer now supports scope: group to synchronize a phase deadline across a matched group (first member to arrive sets the deadline; later members catch up and advance together), plus an optional key prop to share a timer across different pages (such as role-specific pages or a multi-page timed section).

CLI 0.3.12

Release notes

  • pairit config lint and config upload now validate timer scope ("session" or "group") and key props, and flag conflicting scope or duration across timers sharing a key.

Platform 2026.11.25.2

Release notes

  • Removed the hardcoded Back to examples button from end: true completion screens.
  • end: true pages now render their configured components (such as debriefing, disqualification, or timeout copy) alongside the endRedirectUrl button when present, falling back to the default completion card only when the page has no visible components.
  • Removed the Sign in with Google button from the lab header so unauthenticated and Prolific participants aren't prompted to sign in mid-study (studies requiring Google sign-in still show it on the sign-in screen).
  • Cleaned up participant-facing copy on the lab landing page and in the matchmaking and randomization waiting states.
  • Disabled @tailwindcss/typography's decorative backticks around inline code pills in markdown text and chat messages.

CLI 0.3.11

Release notes

  • Replaced the deprecated keytar keychain dependency with @napi-rs/keyring, eliminating the prebuild-install deprecation warning on npm install -g pairit. Existing logins may require a one-time pairit login after upgrading.

Platform 2026.11.25

Release notes

  • html embeds now auto-size to their content height by default (height: auto), accept borderless: true to sit flat on the page card without a frame border, and flush pending pairit.setState() writes and onDone before running props.action on pairit.done().
  • Pages now accept width: wide for a wider container (max-w-5xl), and the lab main container no longer caps wide or split pages at max-w-4xl.
  • layout: split pages now use a wider container (max-w-7xl), tighter outer padding (px-4 py-4), taller viewport-filling columns (calc(100vh - 6.5rem), or calc(100vh - 10rem) with bottom buttons), and an optional page-level height in pixels to exceed viewport height.

CLI 0.3.10

Release notes

  • pairit config lint now checks page width ("default" or "wide"), page height (positive number), and html height ("auto" or positive number) and borderless (boolean) props.

Platform 2026.11.24

Release notes

  • html embeds and custom live-workspace renderers now fill the full height of their column on layout: split pages instead of staying fixed to their standalone height.

CLI 0.3.9

Release notes

  • New pairit data audit <configId> checks a test run: every session finished, required survey answers were saved, and groups finished together. Filter to your test participants with --pid-prefix and --since. See Test a study before launch.

Platform 2026.11.18.3

Release notes

  • Media is now separate per researcher. New uploads go in your own folder, and pairit media list and pairit media delete show and delete only your files. Media you uploaded before keeps its URL, so configs that use it keep working; ask an admin to delete it. Nobody can list the media bucket from outside anymore, but anyone with a file's URL can still read it.
  • Action needed: pairit media upload --private is refused. It never made a file private: the file was readable by URL like any other. Do not upload sensitive files as media.
  • Media uploads accept image, audio, video, font, PDF, JSON, plain text, CSV, and WebVTT files. Other files are stored as downloads. Large uploads are limited to 500 MiB.
  • pairit media delete works again for files with a folder in their name, such as onboarding/hero.png. Since Platform 2026.11.18.2 it answered "not found".

CLI 0.3.8

Release notes

  • pairit media upload --private now stops with an error, and --private is gone from the help. The media bucket is readable by URL, so the flag never kept a file private.
  • pairit media upload prints the stored name, which now starts with your folder.

Platform 2026.11.18.2

Release notes

  • An agent's assign_state tool can no longer overwrite keys Pairit sets itself, such as group_id, treatment or chat_ended. To limit it further, list the allowed paths as an enum on its path parameter. See Agent Guardrails, which now also explains that guardrails are prompt instructions, not enforcement.
  • Participant-written values in agent prompts ({{session_state.*}}, {{group.*}}, workspace text) are now marked as participant data, which makes prompt injection harder. Values Pairit assigns, such as a randomized condition, are passed through unchanged.
  • Agents see the most recent 100 chat messages, not the whole chat.
  • Workspace edits are checked on the server: participants can only change the fields the workspace declares, with the declared types, and a workspace can hold up to 200,000 characters.
  • Fixed security issues that let a participant or agent put links, images or diagrams on other participants' pages. Values filled into text with {{session_state.*}} or {{group.*}} now show as plain text, so Markdown inside a value is no longer formatted. In chat, images from others show as text and links open in a new tab. An avatar filled from session_state must be an icon name or an image on the lab, or on the site the avatar template names (e.g. https://cdn.example.com/{{session_state.role}}.png).
  • The end page's Continue button opens only http:// and https:// links, and says "Continue to Prolific" only for prolific.com and prolific.co links. Uploading a config with any other endRedirectUrl fails.
  • Mermaid diagrams and HTML embeds are kept further apart from the lab page. Embeds work as before.
  • Uploading a config with only an OpenAI key no longer removes its stored Anthropic key, and the reverse. Stored keys can now be removed (see CLI below). Keys are now tied to their config, so a stored key can't be reused on another config.
  • Hardened CLI sign-in: the manager checks that the one-time code goes back to the pairit login that asked for it. One-time codes now last 2 minutes.
  • The manager refuses changes sent from other websites, and its error messages no longer include server details.
  • A participant who hits a chat limit (20 messages a minute, 300 in total) now sees a notice saying their message wasn't sent, and keeps their text. Before, the message silently disappeared. The message box stops at 4,000 characters.

CLI 0.3.7

Release notes

  • pairit config lint, compile and upload reject an endRedirectUrl that isn't an http:// or https:// URL.
  • pairit login checks that the sign-in it receives is the one it started (state and PKCE), against servers that support it.
  • New config upload flags: --openai-api-key-env VAR and --anthropic-api-key-env VAR read a key from an environment variable, and --openai-api-key-stdin / --anthropic-api-key-stdin read it from stdin, so keys stay out of ps and shell history. --clear-openai-api-key and --clear-anthropic-api-key remove a stored key.
  • CSV exports put a ' before text that starts with =, +, -, @, a tab, or a carriage return, so spreadsheets don't run participant answers as formulas. Text that is only a number, like -5, is left as it is. Values with a carriage return are now quoted.
  • config upload and config lint refuse HTML and schema files that are symlinks pointing outside the config's folder.
  • The saved login in ~/.pairit is readable only by you.

Platform 2026.11.18

Release notes

  • When an agent hits an error (for example, the OpenAI key runs out of quota), the chat no longer shows the agent typing forever. Participants see the error notice and can keep chatting.
  • Fixed a security issue in CLI sign-in. A crafted link could have taken over a signed-in researcher's account. pairit login works as before.
  • Fixed security issues that let participants change their group, treatment, or chat sender, or skip pages. The lab now takes randomization and matchmaking settings only from the uploaded config, and no longer sends agent prompts or the end page's redirect URL to the browser before the participant reaches it. Each participant can send up to 20 chat messages a minute and 300 in total.
  • Fixed a security issue that let a participant act as someone else in their group. Participants no longer see each other's session IDs.
  • A participant who reopens a study in a different browser or device is asked to continue in the browser where they started. Reloading the page works as before, and participants signed in with Google can continue anywhere.

Platform 2026.10.31

Release notes

  • Agents with trigger: on_join send their opening message again. Since Platform 2026.10.27 it failed, and participants saw "Sorry, I encountered an error" instead.
  • An agent no longer reads the chat's error notice as something the participant wrote.
  • The manager answers an unknown address with 404 and a request it can't read with 422, instead of 500 for every error. CLI errors now say which it was.
  • Likert scales can label their two ends with min_label and max_label (e.g. "Not at all" … "Extremely") instead of "Strongly disagree" … "Strongly agree". The survey docs now also show how to relabel every point with choices.
  • Group members can see each other's answers. List keys in a matchmaking pool's share (e.g. share: [r1_estimate]), then read them on any page as {{group.others.0.r1_estimate}}, in when: conditions, in HTML embeds (read: [group]) and in agent prompts. A structured group workspace's fields can be read on any page as group.ws.<field>. See Share answers with the group.

CLI 0.3.6

Release notes

  • pairit config lint checks matchmaking share lists and group. paths: each group.others key must be shared by a pool, and each group.ws field must exist in a structured group workspace.

CLI 0.3.5

Release notes

  • pairit admin activity names studies whose open sessions are too old to count as active, and says how active is defined.

Platform 2026.10.27.3

Release notes

  • For admins: the activity report no longer counts a session as active if it started more than 12 hours ago. A browser tab left open on a page whose html component saves on a timer kept such a session looking live for days. The report lists these as staleOpen.

Platform 2026.10.27.2

Release notes

  • For admins: the manager reports which studies have participants right now (GET /admin/activity), so production deploys can wait for live group studies to finish.
  • A participant who starts the same study twice at once (two tabs, a quick reload) now gets one session instead of two. Before, both starts could create a session, so the sessions export could list a participant twice, one of them stuck on the first page.

CLI 0.3.4

Release notes

  • pairit admin activity (admins) lists studies with recent sessions: owner, active participants in a group or solo, how many wait in matchmaking, and features used. Live group studies come first. --since 7d looks further back, --json prints the raw report, and --fail-if-live exits 2 if a group study is live.

Platform 2026.10.27

Release notes

  • The workspace is now live-synced: participants and agents can edit at the same time without losing each other's work. The editor shows markdown formatted, like a document, instead of a plain text box, and highlights text an agent just added. Agents see initialContent before anyone edits, and their edits are recorded as agent:<agentId>. See Workspace.
  • Each group-scoped workspace now has its own document per page. Before, two group workspaces on different pages shared one. Group workspaces saved before this release start fresh; per-participant ones carry over.
  • The workspace data export adds who wrote each part of the final text, and a full log of every change. See Data Export.
  • The server no longer logs a workspace_edit event with the full text on every save; the change log replaces it. A workspace's onEdit event still fires if you set one.
  • Agents listed on a workspace now edit it with file tools, like coding agents: they view the file, make targeted edits, and see each result, for up to 8 steps per reply. No tool declarations needed; an existing write_workspace declaration is ignored for these agents. See Agent Integration.
  • Agents use OpenAI's Responses API, so gpt-6-luna agents can use tools together with reasoningEffort.
  • An agent listed on both a page's chat and its workspace now replies once per message instead of twice.
  • A workspace can be any text file (file: board.json), drawn by your own HTML page (renderer) and checked against a JSON Schema (schema). See Custom renderer.
  • New examples: Shared workspace and Workspace board.

CLI 0.3.3

Release notes

  • pairit config upload bundles a workspace's renderer and schema files, and pairit config lint checks they exist.
  • pairit data export also writes <configId>-workspace-updates, and the workspace documents file gains authorship, fieldAuthors and updateCount. See Data Export.

Platform 2026.10.18

Release notes

  • Chat avatars can come from session_state, e.g. a different avatar per group member with a distributed randomization. See Avatars from session state.
  • Action needed: an avatar is now a single string, an icon name or an image path. Replace avatar: { icon: bot } with avatar: bot, and avatar: { image: /a.png } with avatar: /a.png, in agents and in chat avatars. The old form no longer works; it shows the default avatar.
  • New example: Fruit split demo.

CLI 0.3.2

Release notes

  • pairit config lint checks randomization that uses distribute: true: it needs scope: group, and its conditions list must have one entry per group member. See Different roles within a group.

CLI 0.3.1

Release notes

  • In a split layout, pairit config lint checks that each component's column is left or right. See Split layout.
  • --env staging and --env production now take precedence over PAIRIT_API_URL.

CLI 0.3.0

Release notes

  • Upload configs with --name instead of --config-id. Pairit builds the participant link from the name with a random suffix, e.g. my-study-k3f9x2m8q1.
  • Re-uploading under the same name keeps the link and saves a new revision. The CLI warns you if participants already ran the previous one.
  • pairit config history <configId> lists revisions and their session counts.
  • The sessions export has a configRevision column.

Existing links don't change. See Names, links, and revisions.