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 PlusA 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
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
Assign the Fairlx Agent
Pick Fairlx Agent from the assignee menu on a work item. You can also mention
@Fairlxin a comment, ask from Agent home, or run/fairlx-fix PROJ-142in Slack. Every path starts the same session.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.
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.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”.
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.Review in Changes
The Changes tab shows the diff, checks and a walkthrough. Comment on any hunk and the agent resumes to address it.
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.
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.
| Tab | What you see |
|---|---|
| Plan | The implementation plan, its steps and their status. Plans name the repository paths they will change. |
| Changes | The diff against the base branch, checks and a walkthrough. Comment on a hunk to send the agent back to work. |
| Terminal | The commands the agent ran in the sandbox and their output. |
| Preview | The live app from the sandbox, in desktop or phone view, with a shareable link. |
Session states
| State | Meaning |
|---|---|
| queued | The session exists. The sandbox job has not finished yet. |
| preparing | Creating the sandbox, cloning, installing and starting the app. |
| running | The preview passed its health check. The agent is working. |
| awaiting review | A pull request is open or the branch is pushed. Changes shows the diff. |
| iterating | A hunk comment or an @Fairlx mention resumed the agent. |
| merging | A merge was requested. It waits for your Accept unless autonomy allows it. |
| merged | GitHub merged the pull request. |
| failed | Clone, a command or the merge failed. |
| stopped | Someone 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.

- 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
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:
| Stage | Checks |
|---|---|
| Lint & format | Your linter and formatter. |
| Typecheck | Your type checker. |
| Unit tests | Your unit test suite. |
| Integration tests | Your integration tests. |
| Build | A production build. |
| Runtime dry run | The app starts and responds. |
| Security | Dependency advisories. Only newly introduced advisories fail the stage. |
| AI review | A 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
| Normal | Plus | |
|---|---|---|
| Agent chat about code (Ask, Plan, Debug) | Yes | Yes |
| Start a coding session | No | Yes |
| Live preview | No | Yes |
| Changes tab, hunk comments, pull requests | No | Yes |
| /fairlx coding sessions from Slack | No | Yes, with a license |
Model usage during a session spends AI credits like any agent turn. See Credits & usage.
