ScriptKitty
Clouds

Clouds

When an agent deletes or overwrites something through a web or cloud API, ScriptKitty keeps a copy first and puts it back like a file. Cloud cover is part of the free tool. The undo is your own copy, kept on your own disk, not the cloud provider's. To put something back, ScriptKitty talks only to the service your agent was calling, with your keys; nothing goes to us or to anyone else.

All of it is based on the user's own storage. The copies live on the user's own disks, and no cloud account of ours is involved.

Not tried yet Real cloud providers such as AWS, Google Cloud, Azure and GitHub: the engine has not been tried against them. It has been tried with made-up data, the last run of each case once, against three real hosted services: MinIO's public S3 playground, a Neon Postgres database and dynv6 DNS on a free throwaway account, and against four open-source APIs in a test machine. In one case, a bucket of 1,100 objects, 3 objects did not come back, and the go-back said so; on Wiki.js the pages came back under new ids. No paid account was used.

A go-between that holds the keys

A second small service, the cloud engine, sits between the agent and the web. It holds the real keys. The agent gets stand-ins that are useless anywhere else.

What happens to each kind of call

The engine treats a call by what it does to the thing at the other end.

Kind of callWhat the engine does
ReadPasses straight through.
CreateWritten down, with the answer that says where the new thing is. A go-back reads it, keeps a copy and removes it. When the answer names no address or id, the thing is left and the go-back says why.
DeleteWaits while the thing is read and kept, then goes on. sk back and sk undo put it back like a file.
OverwriteWaits while the thing is read and kept, then goes on. sk back and sk undo put it back like a file.

The engine never stops a call. When no copy can be taken, the call goes on and the diary says so.

No connectors, one recipe

There is no connector per provider. One recipe serves every API: read the same address before the call, and write it back after.

The optional model-written recipe

Some kinds of call are beyond the plain recipe. For those, a model can write a recipe once. This is off unless the user sets it up, and it has fences. The model sees the shape of the call, never a secret or a body value. The recipe stays on that computer and can never leave the call's host.

What was measured

A real AI agent (Claude Code, run headless) worked in a throwaway test VM, with made-up data only. The cloud engine held the real keys, and the agent was given stand-ins.

On MinIO's public S3 playground it deleted a bucket holding 6 objects, once object by object and once with a single bulk delete. On a hosted Neon Postgres it ran DROP TABLE orders on a 25-row table. On three open-source APIs running in the VM it deleted two PowerDNS record sets, PocketBase records and a whole collection, and two Wiki.js pages through its GraphQL API.

After each, one sk back, then the target read again with the real key and compared with a picture taken before the agent: 0 gone, 0 changed. Wiki.js gave the restored pages new ids. The real key appeared 0 times in the agent's transcripts. The last run of each case happened once. Earlier runs of some cases failed (Neon's dropped table came back right only on the fourth run), and the bugs they found were fixed first (tests/agent/real/REPORT.md).

The engine's AWS request signing matches AWS's two published examples (commits 526a42f, 03bbee3, 8c2d0c3 and 7358a65).

Not covered today

These cases are outside what the engine protects.

  • HTTP/2 and gRPC, which are passed through blind and unprotected.
  • S3 uploads signed chunk by chunk.
  • Presigned links.
  • A create whose answer names no address or id the engine can find (AWS-style XML answers, for one): the thing is left, and the go-back says so.
  • An agent that was handed real keys directly.
  • Changes made by a person in a provider's web console.
  • Money a wrong call already spent.
  • A thing made again getting a new id or address.
  • A delete that takes things with it at addresses nothing has read, such as a collection's records: those are kept only in part, and the go-back says so and ends with an error.
  • A newer save made after the agent. A go-back with sk back puts the kept copy over it and does not say so. sudo sk cloud undo ID does not: it reads the thing first, and if it changed after the agent's call it stops and says so (--anyway puts it back over the change).

A second layer, planned

design only Nothing in this section is built. The plan is to turn on the provider's own versioning, soft delete and snapshots as a second layer, with a hold only for the rare thing neither can cover.