Coding sessions

Assign a work item to the agent and it works in an isolated cloud sandbox with a live preview, its own branch and a pull request.

Available on Plus

A coding session is the closed loop between a work item and a merged pull request. You assign the Fairlx Agent, Fairlx boots an isolated sandbox with your repository running in it, the agent implements the change on its own branch, and you review the diff and the live app before anything merges.

Code never runs on the Fairlx host

Git and shell commands only run inside the sandbox bound to the work item. The Fairlx servers never clone your repository or execute its code.

Before you start

  • A Plus license. On the Normal plan you cannot start a coding session or see a live preview.
  • A project with a linked GitHub repository. See GitHub.
  • Permission to edit work items in the project. Viewers cannot start or drive a session, because the sandbox receives the project’s secrets.
  • Optional but recommended: secrets and a sandbox environment in the project’s Dev Tools tab.

The session lifecycle

  1. Assign the Fairlx Agent

    Pick Fairlx Agent from the assignee menu on a work item. You can also mention @Fairlx in a comment, ask from Agent home, or run /fairlx-fix PROJ-142 in Slack. Every path starts the same session.

  2. Fairlx creates a sandbox

    An isolated cloud VM is created for the work item. The project’s Fairlx Secrets are injected into it, and nothing else from Fairlx is.

  3. Clone, install, start

    The sandbox clones your repository branch into /workspace, detects the package manager and start command, installs dependencies and starts the dev server.

  4. The Preview goes live

    Once the app passes its health check, the Preview tab shows it running. Switch between desktop and phone views, or copy a shareable link. Until the health check passes, the preview stays “not live”.

  5. The agent implements on its own branch

    The agent plans, then edits code on a branch named like fairlx/<KEY>-…, never directly on your default branch. In Staged mode, the plan waits for your Accept first.

  6. Review in Changes

    The Changes tab shows the diff, checks and a walkthrough. Comment on any hunk and the agent resumes to address it.

  7. Open the pull request

    The agent pushes the branch and opens a pull request. If plan steps remain, it opens as a draft listing them.

  8. Merge

    Merge from the run panel after your Accept, or from Review Studio. The session moves to merged.

The run panel

A coding run opens a panel beside the chat or work item with four tabs.

TabWhat you see
PlanThe implementation plan, its steps and their status. Plans name the repository paths they will change.
ChangesThe diff against the base branch, checks and a walkthrough. Comment on a hunk to send the agent back to work.
TerminalThe commands the agent ran in the sandbox and their output.
PreviewThe live app from the sandbox, in desktop or phone view, with a shareable link.

Session states

StateMeaning
queuedThe session exists. The sandbox job has not finished yet.
preparingCreating the sandbox, cloning, installing and starting the app.
runningThe preview passed its health check. The agent is working.
awaiting reviewA pull request is open or the branch is pushed. Changes shows the diff.
iteratingA hunk comment or an @Fairlx mention resumed the agent.
mergingA merge was requested. It waits for your Accept unless autonomy allows it.
mergedGitHub merged the pull request.
failedClone, a command or the merge failed.
stoppedSomeone stopped the session, or the idle sandbox was destroyed.

Sandboxes

Sizes

Sandboxes come in six sizes: S, M, L, XL, 2XL and 3XL, from 0.5 to 8 CPUs. Larger repositories and heavier dev servers start faster and stay responsive on a larger size.

Idle pause and cleanup

A sandbox nobody is using suspends after 15 minutes idle and is deleted after 24 hours idle. Before it suspends, Fairlx saves work in progress and pushes the agent branch, so a deleted sandbox comes back from that branch when work resumes. Keeping the Preview tab open marks the sandbox as in use. To start fresh, restart the session: Fairlx replaces the sandbox and regenerates the preview.

Self-healing

When the preview shows a compile or runtime error overlay, the agent fixes it in place and restarts the dev server without wiping the VM. Environment-only fixes are kept out of your commits.

Browser checks

The agent can run Playwright checks against the app inside the sandbox, using headless Chromium, and stores screenshots on the session so you can see what it saw.

Secrets and environment

Configure sessions per project on the Dev Tools tab. You need permission to edit project settings.

app.fairlx.com
Dev Tools tab with Fairlx Secrets and the Sandbox environment settings
Dev Tools: encrypted Fairlx Secrets and the sandbox environment for this project.
  • Fairlx Secrets use GitHub Actions-style names and are encrypted with AES-256-GCM. A value is never shown again after you save it. Secrets are injected over TLS into the sandbox VM when it is created. Use Import .env to add several at once.
  • Sandbox environment sets the runtime and a prepare script that runs before the app starts, for example to generate a client or seed a local database.

Use development credentials

Every session in the project receives these secrets. Store keys for test or staging services, never production credentials.

Draft pull requests

If the agent opens a pull request while steps of the approved plan are still open, the pull request is a draft and lists the unfinished steps under “Not done yet”. A later turn that finishes them with passing checks marks it ready. Auto Merge never takes a draft.

Delivery checks

Before an agent’s work is delivered, Fairlx can run quality gates against the change. Which stages run depends on what your repository supports and how the project is set up. The stages are:

StageChecks
Lint & formatYour linter and formatter.
TypecheckYour type checker.
Unit testsYour unit test suite.
Integration testsYour integration tests.
BuildA production build.
Runtime dry runThe app starts and responds.
SecurityDependency advisories. Only newly introduced advisories fail the stage.
AI reviewA model reviews the diff for problems.

Results are posted to GitHub as a fairlx/quality-gates commit status. An amber result never auto merges.

After a merge, CI watch follows CI on the merge commit. If CI fails because of the change, it can open a CI fix. It never tries to auto-fix a broken base branch, an infrastructure failure, a flaky test or a failure it could not reproduce. Configure what happens next on the project’s Agents tab; see CI after merge.

Normal vs Plus

NormalPlus
Agent chat about code (Ask, Plan, Debug)YesYes
Start a coding sessionNoYes
Live previewNoYes
Changes tab, hunk comments, pull requestsNoYes
/fairlx coding sessions from SlackNoYes, with a license

Model usage during a session spends AI credits like any agent turn. See Credits & usage.

FAQ

The Preview tab says the preview is not live. Why?+
The app has not passed its health check yet. Open the Terminal tab to see install or start errors. If the app needs environment variables, add them under Dev Tools → Fairlx Secrets and restart the session.
Does the agent ever push to my default branch?+
No. It works on its own fairlx branch and delivers through a pull request or a pushed branch.
Can I start a session from Claude Code or Cursor?+
Yes. The Fairlx MCP server has tools to start a session and check its status, preview and pull request.
Was this page helpful?

Last updated 21 Nov 2026