ratchet docs

Using plugins

Plugins bring your own flows into ratchet. They change how agents start and react to what agents do. You see what each one can do before anything from it runs.

On this pageWhat a plugin isThe Plugins pageAdd a pluginAllowWhat each permission meansPlugins with codeSet upTurn a plugin on and offOff for one projectPlugin settingsOrder at launchUpdatesApprove or reject a stepPlugin alertsWhen a plugin failsRemove a pluginWhere plugin files live
PC screenshot of ratchet, plugins view
Plugins, with Headroom open.

What a plugin is

A plugin is a folder with a plugin file in it. Depending on what it asks for, a plugin can:

  • change how the agents ratchet starts are launched, for example send Claude's requests through a local proxy, or add Claude skills, agents and hooks;
  • run a helper program next to ratchet while the plugin is on;
  • react when an agent starts, works, asks a question, wants permission or finishes: put a note on its card, send a phone alert, keep the PC awake or run a command;
  • with code of its own, start new agents with a label, make a worktree for a step, add its own choice to New task, and ask you to approve or reject a step.

Plugins only change how the agents ratchet starts are launched, and only hear events about those agents. The awake reaction counts every agent in your open repos.

Most plugins are descriptions only: the plugin file says what should happen and ratchet does it. Some plugins carry their own code. Those are marked has code in the plugin list and in their detail.

Three plugins ship with ratchet and show under Suggested until you install them:

PluginWhat it does
headroomStarts the headroom proxy program and sends new agents through it. If Headroom isn't installed, press Set up in its detail: it installs uv and Headroom (about 138 MB, about a minute). Until then, agents start normally. Its setting Send usage statistics to Headroom is off by default. While the Headroom plugin is on, whatever that setting says, Claude's Remote Control does not connect in the agents it runs in, so the Claude app can't drive them. ratchet's own phone access still works, and the plugin's detail says so.
staged-task (has code)Adds a Staged (saves tokens) choice to New task. It splits a task into spec, build and review stages, each on the model you pick in its settings. GLM and Kimi show up as choices once you add their key.
stay-awakeKeeps the PC awake while any agent in an open repo is working or waiting for you, including agents started outside ratchet, and lets it sleep when none are. The screen can still turn off and lock.

The Plugins page

Open Plugins at the bottom of the side menu, between Machine and Settings. On the phone it's under This PC. When a plugin needs you, a small mark shows on its icon.

The list has three groups:

  • Needs you: a plugin waiting for Allow, an update waiting for Allow, a plugin with a problem, or a plugin whose setup isn't done: Needs setting up, Setting up · step 1 of 2 or Setup failed. Its button says Review or See why.
  • On and Off, each row with its own switch.

Each row has one status line, written by ratchet, for example Helper ready on :8787, Holding the PC awake · 1 agent working, Waiting for Allow · nothing from it runs yet or Turned off: failed 3 times.

Pick a plugin to see its detail: its version and where it came from, a status strip, Right now (questions waiting on you and agents it started), What it can do with the date you allowed it, Settings, Projects, Order at launch and Activity. On the phone, these sections fold open in place.

A plugin can add a note under its description, in its own words, for something you should know before you turn it on. For example, Headroom's note says Claude's Remote Control does not connect in sessions Headroom runs in, so the Claude app can't drive them. ratchet's own phone access still works. The note only informs: it is not part of what you allow, and it changes nothing. If an update that waits for Allow brings a note, its update card shows that note too, before you allow it.

Add a plugin

Press Add plugin and pick where it comes from:

ChoiceWhat you typeWhat happens
Folder…The full path of a plugin folder on this PCratchet copies the folder into its plugins folder. Later edits to your original don't change the installed copy.
Git link…An https:// or git@ link to a git reporatchet clones the newest commit of the repo's default branch, with your own git login.
Pack…The path of a pack file on this PC, or an https:// link to oneA pack lists several plugins by git link. Each one is installed and asks for its own Allow.

For a suggested plugin, press Install next to it. You can also copy a plugin folder straight into ~/.ratchet/plugins/; it shows up the same way.

A new plugin is off. It waits under Needs you with Waiting for Allow · nothing from it runs yet.

Allow

Open the plugin and press Review and allow, or flip its switch. The Allow dialog shows where the plugin comes from, its version, and everything it will do.

Phone screenshot of ratchet, plugins allow view
The Allow dialog: ratchet words every line; names and commands come from the plugin.
  • Allow turns the plugin on.
  • Cancel leaves it installed and off, still under Needs you.

Nothing from a plugin runs before you allow it: not its launch changes, not its helper program, not its Claude extras, not its reactions, not its code. There is no setting that skips Allow, not for a suggested plugin and not for a pack.

What each permission means

ratchet words each line. A plugin fills in names: its env names, its commands and the labels of its setup steps, which appear as the plugin wrote them. Read a setup step's label as the plugin's own words.

You seeWhat it lets the plugin do
Changes settings Claude starts withSets environment settings for the agents ratchet starts. If it sets where Claude sends requests, you see Changes where Claude sends requests. Other settings are named, for example Changes settings Claude starts with: MY_FLAG.
Adds Claude start optionsAdds options to Claude's command line. The line lists them.
Adds Claude skills, agents and hooks to your agentsLoads the plugin's Claude extras into every agent ratchet starts.
Starts a programRuns a helper program while the plugin is on. The line shows the exact command, for example Starts a program: headroom proxy --port 8787.
Reacts when agents start, wait or finishHears when an agent ratchet started starts, works, asks a question, wants permission or finishes.
Shows notes on agent cardsPuts one short note on an agent's card.
Sends phone alertsSends an alert to your phones and PC browsers getting alerts, under the same rules as ratchet's own alerts.
Keeps the PC awakeStops the PC from going to sleep while it holds on.
Runs commandsRuns commands on your PC. A plugin without code lists each one, for example Runs a command: node notify.js.
Starts new agents and stops its ownStarts Claude Code agents, with the plugin's label on their cards, and can stop the agents it started.
Creates worktrees and branchesMakes a git worktree and branch and starts an agent in it.
Asks you to approve or reject stepsAsks you a yes or no question with Approve and Reject buttons.
Adds a choice to New taskAdds its own choice to the New task dialog (the task.option permission). Plugins with code only.
Sets things up on this PCLets the plugin install a program or copy files into your home folder, but only when you press Set up in its detail. A plugin with steps gets one line per step instead, with this PC's command, for example Installs "Headroom", if it is missing, when you tap Set up: uv tool install --python 3.13 headroom-ai[proxy], Copies "<label>" to <destination> when you tap Set up and Looks for its programs in ~/.local/bin too.
Runs its own code — trust it like any program you installThe plugin has code that ratchet runs. Always the last line.

Plugins with code

A plugin without code can only do what you allowed. ratchet carries out its plugin file and nothing else, and refuses a file that uses something it didn't ask for.

Code runs with ratchet's own rights

A plugin with code runs inside ratchet, on your PC, with the same rights as ratchet. ratchet only hands it the actions you allowed, but its code could reach further, like any program you install. Only allow code from people you trust.

No plugin can answer an agent's question or permission prompt. Those stay yours, or Away mode's.

Set up

Some plugins need a program on this PC. A plugin with a setup installs it only when you press Set up. Once you have allowed it and it's on, it waits under Needs you with Needs setting up, and its detail shows a card, for example headroom needs setting up. The card lists each step as done or to do and says what it takes, for example Downloads about 138 MB and takes about 1 minute.

  • For a plugin with a helper program, the card also says Agents start without its helper program until it is set up.
  • While it runs, the card shows the step and the time, for example Setting up · Headroom · step 2 of 2 · 0:42, with the newest output line. Cancel stops it.
  • If a step fails, the card says Could not set up: Headroom and why, with Show log and Try again. A failed setup doesn't count toward the three failures that turn a plugin off.
  • At the bottom of the card, Or install it yourself: shows the plugin's own install command, if it has one, with Copy.
  • A step for a program that's already on this PC is skipped. If a step has no command for your system, the detail says Setup is not available on this PC.
  • If an update changes the steps, the card says, for example, headroom has new setup steps.

Turn a plugin on and off

Use the switch on its row or in its detail. Switching off stops its helper program, its reactions and its code, and new agents start without it. Changes to how agents start apply to agents started afterwards. Agents that are already running keep what they started with.

Off for one project

A plugin works in every project until you say otherwise. Open Projects in its detail: On everywhere except the ones you tick. Tick a project and new agents there start without this plugin's launch changes: its settings for Claude, its start options and its Claude extras. Its choice in New task is hidden there too. The row then says, for example, off in shop.

Only launch changes and New task

Reactions and code still hear about agents in every project. To stop a plugin everywhere, switch it off.

Plugin settings

A plugin can have switches, pick lists, text fields and number fields. ratchet draws them in the plugin's Settings section. A switch or a pick list saves as soon as you change it; a text or number field saves when you leave it. A number field shows its allowed range under it, for example 1024 to 65535. A number outside it is not saved: the field says why, for example Enter a number from 1024 to 65535, and goes back to the last saved value.

  • A secret field shows set once it has a value. ratchet never shows the value again.
  • A pick list can hold a choice that needs another setting, for example a model that needs its key. That choice shows up once the other setting is filled in.
  • If a required setting is empty, new agents start without the plugin and their card says, for example, slack-ping skipped: needs setting: API token. A required setting you clear later counts as empty too.
  • Leaving a secret field empty keeps the stored secret, so clicking into it and out again changes nothing. To remove a saved secret, press Clear next to it. Secrets are typed and cleared on your PC, never from your phone.
  • If the plugin runs a helper program, switch the plugin off and on after changing a setting, so the helper restarts with the new value.

Order at launch

When several plugins change how agents start, they apply one after another. Plugins that do get an Order at launch section, for example Applies 1st of 2 plugins that change how agents start. A later plugin wins when both set the same thing. Use Move up and Move down to change it.

When two plugins set the same thing to different values, both rows say so, for example ANTHROPIC_BASE_URL is replaced by headroom, which comes later.

Updates

Only plugins added from a git link or a pack are checked for updates. Built-in plugins update with ratchet: if a new version asks for more, it waits under Needs you like any update. Folder plugins never update.

  • Daily check. Once a day while ratchet runs, it looks at each plugin's link. The first look comes five minutes after ratchet starts, if a day has passed since the last one. If it finds a higher version, the row says, for example, update 0.3.0 available. It installs nothing, and it doesn't count toward needs you.
  • Check now. Check for updates at the top of the page checks every plugin, and the text next to it says when, for example Checked today 06:00, or Not checked yet. On the phone the button is at the bottom of the list. Check for update in a plugin's detail checks just that one.
  • Update. Press Update to 0.3.0 in the plugin's detail. If the new version asks for nothing new, it replaces the old one straight away.

An update that asks for more

If the new version asks for anything you haven't allowed, the plugin stays on its old version and keeps working as before. It moves to Needs you with, for example, Update 0.2.0 asks for more · still running 0.1.0.

PC screenshot of ratchet, plugins update view
The update card: what's new in 0.2.0, what's already allowed, and the two choices.
  • Review and allow 0.2.0 opens the Allow dialog, titled for example Allow parallel-lanes 0.2.0?, with what the new version asks for first, then what you already allowed. Allow switches to the new version and turns the plugin on.
  • Stay on 0.1.0 drops the downloaded update and keeps the old version.

ratchet compares the lists of permissions, not their wording, so a reworded plugin can't slip a new permission past you.

Approve or reject a step

A plugin with the right permission can ask you a yes or no question about one of its agents, for example 3 lanes done, checks green — merge?

PC screenshot of ratchet, plugins ask view
A plugin agent named by its label, with the plugin's question and Reject and Approve.
  • The agent's card says needs you, and you get an alert if alerts are set up on a phone or this PC.
  • The agent's detail shows the question with Reject and Approve. Your answer goes back to the plugin, even if ratchet restarted in between.
  • Away mode never answers a plugin's question. It waits for you.

Agents a plugin starts carry its label as their title, for example wave 3 · lane b, with the plugin's name next to it, unless you rename the session with /rename in Claude Code. A worktree a plugin made says made by plugin parallel-lanes in Worktrees. The plugin's Right now section lists its open questions and running agents.

Plugin alerts

Settings → Notifications has a Plugin alerts switch, on by default. Plugin alerts follow your quiet hours and repo switches like every other alert. An alert about an agent opens that agent. An alert without one, like a plugin being turned off, opens Plugins.

When a plugin fails

A plugin problem never stops an agent. If a plugin can't apply when an agent starts, the agent starts without it and its card says why:

Card noteMeaning
headroom skipped: not installedThe helper program isn't on this PC. If the plugin has a setup, its detail shows Set up; otherwise its detail shows how to install it.
headroom skipped: not respondingThe helper program is still starting, or stopped answering.
… skipped: needs setting: …A required setting was never filled in.

An error, a call into the plugin that takes longer than 5 seconds, or a helper program that won't start each count as a failure. After 3 failures in a row, ratchet turns the plugin off:

  • its row says Turned off: failed 3 times, with the time;
  • one phone alert says Plugin headroom turned off: it failed 3 times;
  • ratchet and your agents keep running.

Press Show log to see what went wrong. Fix the cause and switch the plugin back on. If it fails again before it works once, it turns off again straight away. Any call that works resets the count.

A helper program that exits is restarted once. If it exits again, or isn't ready within a minute of starting, the row says Problem: the helper is not responding and new agents start without the plugin.

Activity shows the plugin's last 5 log lines. Once there are more, Show all N lines opens the full log, up to 200 lines. The log lives in memory, so restarting ratchet clears it.

Remove a plugin

Press Remove plugin at the bottom of its detail. A dialog asks, for example: Remove headroom? Its files and its memory folder are deleted. Programs its setup installed stay on this PC. For headroom it also says how to delete Headroom itself. Press Remove, or Cancel to keep it. Files its setup copied are deleted too, unless you changed them. Its helper program stops and its open questions are dropped.

Where plugin files live

Everything is under ~/.ratchet/ (%USERPROFILE%\.ratchet on Windows).

PathWhat's in it
plugins/<name>/The installed plugin.
plugin-data/<name>/The plugin's memory folder. It survives restarts and updates, and is deleted only when you remove the plugin.
settings.jsonWhich plugins are on, what you allowed, their settings, the order and the projects they're off in.
plugin-asks.jsonApprove or reject questions and your answers.
plugins/.incoming/Downloads in progress and updates waiting for Allow.

Want to make your own? See Writing plugins.

Screenshots use example data. Written for ratchet 0.8.0.