Source: https://harnsy.dev/features/actions

> Backups, order exports, site updates: your agent writes the script once, you read and enable it, then run it from a button on Home and see the result.

# Turn a chore you repeat into one button.

Every time you ask an agent for the same chore — a backup, an export of the orders, publishing the site — it does it a little differently, and you cannot tell what actually ran. With an action, an agent writes the script once, and you read it and enable it. From then on it is a button on Home: the same steps every time, with the log and the result in front of you.

[Start free](https://harnsy.dev/#start)[How to set it up](https://harnsy.dev/docs/actions)

Without an action

“Make the backup again, like last time.” The agent writes new commands each time, and you cannot tell what ran or whether it worked.

With an action

You press ▶ on Home. The script you read runs, step by step, and the tile shows “312 MB · 41 s”.

## Chores your agents turn into buttons

### Back up your shop or site.

The developer writes a script that copies your database and files and checks that the copy opens. You run it from Home, or a schedule runs it every night.

**You:** read the script once, enable it, and see the size on the tile.

### Export the week's orders.

An action gathers last week's orders into one file on your machine. The tile shows how many orders there were, and the run page names the file.

**You:** press ▶ and open the file in your spreadsheet.

### Publish a site update.

The developer turns your publishing steps into an action: build, check, put online. Each run shows the step it is on and ends with a link to the page.

**You:** press ▶ when you want it live. A failed run comes to the bell with the reason.

### Keep an eye on the machine.

A small action reports the free disk space, or whether your shop answers. Pin it, and the number sits on Home.

**You:** glance at Home.

## Nothing runs that you have not read.

1. An agent proposes an action; you read the whole script and press Enable. Until then, nothing runs.
2. Only the version you read runs. Change one line and it is a new version, waiting for you again.
3. Before an action that restarts the machine or deletes files, the dashboard asks you, and an agent never runs such an action.

waits for you**Proposal v1**from shop-developer · 12 min ago

db-backup · bash, 19 lines

sha 8e1e66b

```
+#!/usr/bin/env bash
```

harnsy keeps a copy of this exact script text and runs that copy; any change is a new version that waits for you.

## Three steps, once.

1. Ask in plain words.
   Tell an agent the chore: “make a button that backs up the shop database”. It writes the action and proposes it.
2. Read and enable.
   The Actions page shows the whole script. Press Enable, and it is ready.
3. Pin it to Home.
   The tile shows the state, the step and the last result. ▶ runs it; if it needs details from you, a short form opens first.

## Limits, honestly

- A script runs as the user harnsy runs as, with no terminal, and can read whatever that user can. Write it to be safe to run twice.
- What you enable is the script text, or a command’s file by its sha256. It does not cover what the script calls: other programs, files or the network.
- A run is cut off at its time limit (1 minute to 2 hours, 30 minutes by default).
- A log keeps up to 20 MiB; after that it says so and the script keeps running. The last 50 runs of an action are kept.
- For a command you read the first 64 KiB of its file; a binary file shows no text.
- Free harnsy enables up to 3 actions on a machine; harnsy Max enables as many as you need and lets agents run the ones you allow.
