Rig Code · public beta

Have you tried reading the error?

Hattie asks this forty times a day. Rig Code is the code editor that already has. It is like Cursor, with The Duke as your agent, except he can see your app running: he starts the server, reads the error, fixes it and checks it works before he calls it done. Web apps, APIs, and iPhone and Mac apps.

Free to download. Free for 14 days, no card. Then from +$20 a month on a paid Rig plan. Pricing

Hattie Spanner from Rig tech support: red hair, glasses and a headset, holding a mug of tea and not impressed

Hattie Spanner Tech support. Reads the error, every single time.

Rig Code 1.148.4 beta · Mac with Apple silicon 567 MB · Windows 333 MB

Intel Mac or Linux? Get an email when yours is ready.

Rig Code open on a project: the Explorer on the left, the welcome page in the middle, and the agent panel on the right with The Duke picked as the agent, ready for a task. The status bar shows rig-api running on port 8081.
The real thing. The Duke is on duty on the right, and rig-api is running on :8081 at the bottom, where he can see it. Hattie checked.
What Rig Code is

An editor you know, with Rig inside.

Rig Code is built on Code-OSS 1.148, the open-source core of VS Code. Your keybindings, themes and extensions carry over. What is new is that the editor and its agent are connected to everything Rig runs on your computer.

Editor

Familiar from the first minute.

The VS Code editor, keybindings and themes, with Rig Light and Rig Dark that follow your Mac. Extensions install from Open VSX.

  • Remote over SSH and Dev Containers built in
  • Python and C# language servers built in
  • Microsoft telemetry and Copilot off by default
  • Updates itself in place
AI

Agent, Ask, Edit and Tab.

Agent plans and edits across files and shows each change as a diff to accept. Ask answers questions about the code and the running app without changing anything. Edit rewrites a selection. Tab completes the next lines as you type.

  • Tab completions unlimited on every plan
  • AI used this month in the status bar
Rig

The runtime, not just the files.

Servers, ports, logs, crashes, env, Postgres and Redis, Live Links and git, all visible to the agent through Rig's own tools. Other editors' agents only see files and a terminal.

Rig's MCP tools
The Rig panel

Your servers, next to your code.

The Rig app's view of your project lives in the editor's sidebar and status bar. Every action is also in the command palette under Rig.

Status bar

State and port at a glance

For example rig-web :3000. Green is running, amber is starting, grey is stopped, red is crashed. Click it to start, stop, restart, open in the browser or open the logs.

Logs

Click a stack trace

The dev server's logs tail in an output channel. File and line references open the file at that line. Logs are redacted unless you turn that off in Rig.

Crashes

Diagnose, restart, or ask Fixer

When a server crashes you get a notice with Diagnose, Restart and Show logs, and Ask Fixer hands it to the agent.

Services

Postgres, Redis and snapshots

Managed Postgres and Redis, database snapshots and Adminer, from the sidebar.

Env

Missing keys before they bite

Keys missing from .env.example and the active env profile, so a blank variable is not the bug you chase.

Ports and links

Port conflicts and Live Links

When the port is taken, free it or pick another. Share a Live Link and the status bar shows while it is on.

Choose your agent

The Duke by default. Any model you like.

The model picker sits at the top of the agent panel. Whichever model you pick gets the same tools, the same Rig context and the same approvals.

Pick per project

The Duke is Rig's own coding agent. He reads the running app before he edits and checks it after, and he is built to finish a task in fewer Duke minutes than a general model.

The Duke, Claude (Sonnet, Opus, Haiku), Kimi, Qwen Coder, DeepSeek, Devstral, Grok Soon, GPT Soon, Gemini Soon are in the same picker, one click away. The default for each project is saved in Rig, so it follows the project to your other computers. Every model is paid in Duke minutes, so a model that costs more uses them faster. Or add your own Anthropic, xAI, OpenAI or Google key: those calls go straight to the provider and use no minutes.

The model picker open in the agent panel: The Duke as the project default, then Duke Fast, Claude Opus, Claude Sonnet, Grok, GPT and Gemini.
Default

The Duke

Rig's own agent for everyday coding and DevOps: servers, env, database, ports, deploys, Rig Launch, mesh, CI and DNS.

When it breaks

Fixer

When a server crashes or an Xcode build fails, Ask Fixer. It finds the cause, proposes a fix as a diff, restarts or rebuilds, and checks it runs.

Before you push

Reviewer

Reviews the branch before you push and reports what it finds. It never edits.

Tests

Tester

Writes and runs tests for the change. Heavy runs wait for a test slot in Rig, so agents do not pile up test suites.

Upgrades

Migrator

Database migrations and dependency upgrades, with a database snapshot taken first.

Ship it

Shipper

Takes the branch to Rig Launch: review, tests, a deploy plan, the deploy you approve, then it watches and can roll back.

The agent sees your running app

It runs the code, then reads what happened.

Every agent in the editor can use Rig: server status, logs, crash reports, env, the database, and screenshots and console errors from the page itself. So a change is not done when the file is saved. It is done when the app works.

The server crashed on restart. The Rig log pane shows a SyntaxError for a missing export, and The Duke's panel says it read the crash and is fixing the import.
It crashes. The Duke reads the crash from Rig's logs and finds the bad import.
The fixed route file, the server running again, and The Duke's panel listing the fix, the approved restart, a 200 from the health check and a clean review of its own diff.
Fixed and checked. It restarts the server, calls the route, reviews its own diff and hands back.
Servers

Status and ports

Which servers run, on which ports, and whether they are healthy.

Logs

Logs and crashes

The agent reads the crash, not a copy you pasted into chat.

Data

Env and database

Missing env keys, and Postgres and Redis status, before it touches code.

Page

Screenshots

After a UI change it opens the page, takes a screenshot and reads the console.

It checks the page too

Rig's local browser gives every agent a screenshot of the page and its console errors. After a UI change The Duke looks at the result, fixes what is broken and shows you the screenshots in the thread.

Here the route worked, but the status page read the wrong field. The screenshot caught it.

The Duke's panel with a screenshot of the status page showing Health: undefined, one console error, and its note that the page read the wrong field and is now fixed.
Xcode projects · Mac

iPhone and Mac apps, built through Rig.

When Rig runs an app from an Xcode project, the editor treats it as an app, not a dev server. You write Swift in the editor and Rig builds, installs and launches it on a simulator, your iPhone or this Mac. Restart rebuilds and relaunches, so you save and see the change. The agent uses the same build, so it reads the errors and checks the result itself.

A failed build is a problem list, not a log

The status bar shows each phase, Building, Installing, Launching, Running or Build failed, and where the app runs, for example Notes · iPhone 17 · Running, with error and warning counts. Build errors land in the Problems panel: click one to open the file at the line.

When a build fails, Ask Fixer. It reads the errors as file and line, proposes the fix as a diff, rebuilds through Rig and checks the app with a simulator screenshot and the tests. It never runs xcodebuild or simctl in a terminal behind your back.

Notes · Build failed2 errors · 1 warningiPhone 17

Problems · Rig (Xcode build)

  • errorNoteRow.swift:42Cannot find 'noteTitle' in scope
  • errorNotesStore.swift:18Missing return in instance method
  • warningContentView.swift:7Variable 'filter' was never mutated
Notes build failed.Ask Fixer
Projects

Finds the app and its schemes

Add a folder with an .xcodeproj, an .xcworkspace or a Package.swift app, and Rig lists its app schemes. Pick one and press Start.

App logs

The app's own output, live

After the build output, the log pane follows what the app prints, including os_log and Logger lines, as they happen. The agent reads them too.

Crashes

The line it crashed on

When the app crashes, Rig reads the crash report and shows the line it crashed on, so Fixer starts from the cause, not a stack of addresses.

Destination

Simulator, iPhone or this Mac

Pick the simulator, connected iPhone or Mac the app runs on. It takes effect on the next start or restart.

Screenshot

See the simulator in a tab

A PNG of the running simulator opens in an editor tab, and the agent can take one to check its own change.

Tests

Run the scheme's tests

Tests run in Rig with a pass or fail for each test, shown in an output channel. Failures link to the file and line and appear in Problems too.

Simulator

Simulator actions

Choose a device, boot, open Simulator, switch light or dark, open a URL, shut down or erase. Erase deletes every app and its data, so it asks first.

Approvals

Still approved in Rig

Builds, restarts, test runs and simulator changes wait for Approve in Rig, the same as every other change.

Needs

Rig 1.2.8 and Xcode

A Mac with Xcode and Rig 1.2.8 or later. On Windows and Linux the Xcode features do not appear.

Approvals stay in Rig

You decide what runs.

Edits arrive as diffs to accept. Terminal commands follow one policy per project, which you can change. Anything that touches the running app waits for Approve in Rig, the same as it does for every agent today.

Runs straight away

Read-only and tests

ls, git status, your test, lint and build scripts. Heavy runs wait in Rig's queue, so five agents cannot start five test suites at once.

Asks first

Everything else

Installs, scripts not on the list and network calls ask in the editor before they run. Restarts, deploys and database restores wait for Approve in Rig.

Never

The dangerous ones

rm -rf outside the project, git push --force, sudo, writes outside the workspace, and anything that touches a Live lane.

Checkpoints

Undo the code and the database.

Restore to here

Rig takes a checkpoint of your working tree when an agent starts and before each change. When the agent is about to run a migration or a seed, Rig snapshots the database too.

"Restore to here" rolls back the code and the database together, approved in Rig. No half-migrated database left behind.

Rig's Restore to here dialog over the editor: three checkpoints, two of them code plus database, with Restore and Cancel.
Beyond the editor

Work that keeps going when you step away.

Background agents on this Mac, another Mac or a Launch server

Hand a task to a background agent and keep working. It runs in its own git worktree on this Mac, on another Mac in your Rig mesh using that machine's runtime, or on a Rig Launch server. Whichever you pick, the branch comes back to this Mac for you to review.

No server yet? Pick New Launch server and Rig orders one in one click: a Good server with the Rig dev image (git, Node and Docker), ready in about 3 minutes. You sign once when you hand off. On the server the agent works as a limited user in its own copy of the code, with no push, deploy or secrets tools, and gets only the secrets you tick.

One, three or ten at a time, depending on your plan. Runs count in Duke minutes, like chat.

The agent panel after the project was teleported to a Mac Studio, with a background agent running there for 14 minutes.

Pull request review

Before a push, The Duke reviews the branch and runs Rig's safety check. He looks for invented packages, broken contracts, removed checks and weakened tests, then comments on the GitHub pull request.

The Duke's review of a branch: safe to push, one weakened login test found and restored, no invented packages, and a pull request opened with his notes.

Deploy to Rig Launch

"Deploy to Rig Launch" in the command palette plans the deploy, shows you what will change and runs it once you approve. From code to a live server without leaving the editor.

About Rig Launch

The Duke deploying rig-web to Rig Launch: the plan, the approved run, the live URL and a 200 from the health check on the server.

Approve from your iPhone

When The Duke finishes or needs an approval, the Rig iPhone app gets the notification and the approval card. Approve the restart from the sofa, or continue the chat on your phone.

About the iPhone app

An iPhone approval card asking to restart rig-web on the Mac Studio, with Approve and Deny buttons.
Code stays on your computer

Your code is not uploaded to index it.

Rig's cloud features reach your projects through the Rig app on your computer. They never sync your code.

Index

Built on your computer

The codebase index and its embeddings are built and stored locally. Nothing is uploaded to Rig to search your code.

Agent

The loop runs locally

The agent, its tools and its approvals run on your computer. Only model calls leave it, through the Rig AI gateway to the model you picked.

Gateway

Counts usage, not code

The gateway keeps usage counts for your plan, never prompts or code. Providers are used under zero-data-retention terms where they offer them.

Rig security
For Rig Team and Agency

One admin view for the whole team.

Limits, models and rules

On Rig Team and Agency, admins see each developer's AI use against a per-seat limit, choose which models the team may use, and share rules and MCP servers across every project.

SSO and the agent audit log cover the whole team. Each seat adds the Code plan you pick.

The Rig Code admin view for a four-seat team: AI used per developer against a $60 seat limit, top model per person, and settings for allowed models, team rules, MCP servers, SSO, the agent audit log and usage past the included AI.
Pricing

Free for 14 days. Then a Code plan.

Pennywhistle, our bookkeeper, asked us to put it plainly. Anyone can download Rig Code and use Code Pro free for 14 days, no card, even on the free Rig plan. To keep it, add a Code plan to a paid Rig plan (Pro, Team or Agency). Prices in USD. Add it from Billing in your Rig account.

Most people

Code Pro

+$20/mo

$35 a month in total with Rig Pro · per seat on Team and Agency

  • 400 Duke minutes a month, for every model
  • Unlimited Tab completions
  • The Duke, Claude (Sonnet, Opus, Haiku), Kimi, Qwen Coder, DeepSeek, Devstral, Grok Soon, GPT Soon, Gemini Soon
  • 1 background agent at a time
Add to your plan
Daily agent use

Code Pro+

+$60/mo

$75 a month in total with Rig Pro · per seat on Team and Agency

  • 1,400 Duke minutes a month, for every model
  • Unlimited Tab completions
  • The Duke, Claude (Sonnet, Opus, Haiku), Kimi, Qwen Coder, DeepSeek, Devstral, Grok Soon, GPT Soon, Gemini Soon
  • 3 background agents at a time
Add to your plan
All day, every day

Code Ultra

+$200/mo

$215 a month in total with Rig Pro · per seat on Team and Agency

  • 5,000 Duke minutes a month, for every model
  • Unlimited Tab completions
  • The Duke, Claude (Sonnet, Opus, Haiku), Kimi, Qwen Coder, DeepSeek, Devstral, Grok Soon, GPT Soon, Gemini Soon
  • 10 background agents at a time
Add to your plan
How it works
Duke minutesEach plan includes Duke minutes every month. Every model is paid in them: chat, agent tasks and background runs.
How a minute countsA task is billed for its time, or its model cost divided by $0.035, whichever is more, in 6-second steps. Duke Fast counts as a fifth of a minute.
Past your minutesBuy a minute pack: 300 minutes for $15, 1,000 minutes for $45 and 2,000 minutes for $85, each lasting 12 months. Auto top-up is off by default.
Tab completionsUnlimited on every plan.
Your own keysAdd an Anthropic, xAI, OpenAI or Google key and those calls go straight to the provider. They use no Duke minutes.
Annual billing2 months free.
Trial14 days of Code Pro free, with 100 Duke minutes and no card, on any Rig plan including Hobby.

Rig plans and pricing

Intel Mac, Windows and Linux

Not on an Apple silicon Mac yet?

The beta is for Mac with Apple silicon and Windows. Builds for Intel Macs and Linux come next. Leave your email and we send one message when yours is ready.

FAQ

Questions about Rig Code.

Can I buy Rig Code today?

Yes. Add Code Pro, Code Pro+ or Code Ultra to a paid Rig plan from Billing in your Rig account. The free 14-day trial of Code Pro starts from the editor. Rig Code itself is in public beta: download it for Mac with Apple silicon on this page.

Which models can I use?

The Duke is the default. The picker has The Duke, Claude (Sonnet, Opus, Haiku), Kimi, Qwen Coder, DeepSeek and Devstral; Grok, GPT and Gemini soon. Every model gets the same tools, the same Rig context and the same approvals. You can also add your own Anthropic, xAI, OpenAI or Google key.

Do I need a paid Rig plan?

Not to try it: anyone with a free Rig account gets 14 days of Code Pro free, with no card. To keep using Rig Code after the trial, yes: it is an add-on to a paid Rig plan (Pro, Team or Agency), from +$20 a month.

Does Rig Code run in the browser or on a phone?

Not at first. Rig Code starts as a desktop app for Mac, Windows and Linux. A browser version and mobile apps come later. In the browser your code, the agent and the runtime stay on your own computer and are reached through the Rig app. From the start you can approve the agent's actions from the Rig iPhone app.

Does Rig Code work with Xcode projects?

Yes, on a Mac with Xcode and Rig 1.2.8 or later. Add a folder with an .xcodeproj, .xcworkspace or Package.swift app and Rig lists its schemes, then builds, installs and launches the app on a simulator, a connected iPhone or the Mac; Restart rebuilds and relaunches. Rig Code shows the build phase in the status bar, follows the app's own output and os_log and Logger lines in the log pane, shows the line the app crashed on from its crash report, puts build errors and test failures in the Problems panel as file and line, opens simulator screenshots in a tab and runs the scheme's tests. When a build fails, Fixer reads the errors, proposes a fix, rebuilds through Rig and checks the result. Builds, test runs and simulator changes wait for Approve in Rig.

What happens when my Duke minutes run out?

Agent and chat stop and ask until your next month starts, unless you buy a Duke minute pack (300 minutes for $15, 1,000 minutes for $45 and 2,000 minutes for $85, each lasting 12 months) or use your own API keys, which use no minutes. Auto top-up is off by default; turn it on to buy a pack when you run low, with a monthly limit. A background run that runs out pauses and carries on if you add minutes within a day. Tab completions are unlimited on every plan.

Is my code uploaded?

The codebase index is built and stored on your computer. Only model calls leave it: the prompt goes through the Rig AI gateway to the model you picked and comes straight back. The gateway keeps usage counts, not prompts or code.

Go on. Read the error.

Rig Code is free to download and free for 14 days, no card. It works through the Rig app, which is free too. Hattie will be thrilled.