The System
Guide · The ladder · Level 2

Level 2: Add a little computer that never sleeps

At Level 1, everything happens inside a conversation you're part of. Level 2 adds a small always-on machine that reads the ledger on a schedule, so a few things happen between conversations: a morning brief arrives before you've asked, a waiting-on item reminds you on the day it's due, and anything left open gets re-dated at midnight instead of rotting.

≈ 12 min read · a weekend to set up · around €5 a month, or an old laptop
What you're building

A chat assistant only acts when you're talking to it. That's the right default, but it means the ledger from Level 1 is only as current as your last session, and nothing can reach you first.

Level 2 adds the smallest possible worker: a computer that's on all the time and runs three small jobs on a timer. Each job is a short script that queries the database, optionally asks the model's API to turn rows into a few sentences, and sends you the result. Your chat assistant stays the front door. The jobs never decide; they read, assemble and remind. This is the first level that costs money, and the whole bill is the machine.

Step 1 of 6

The principle before the parts

It's tempting to imagine Level 2 as "the assistant, but running in the background". It isn't, and the difference is what keeps it safe. The assistant you talk to has judgement, context and a job description. A scheduled job has none of that: it's a few dozen lines that do one fixed thing at a fixed time, and if it needs words, it hands a small known set of rows to the model's API with a fixed instruction and sends back whatever comes out.

That split keeps the three gates intact. A job only does things that pass the kit's four-part test: reversible (a re-dated row can be re-dated back), internal (nothing leaves the system except a message to you), objective (you can check it was done right without it being a matter of taste), and bounded (the worst case is one wrong message to yourself). Anything that fails one test stays in the chat, where you're in the loop. If you catch yourself wanting a job to email other people, buy something, or judge whether a task still matters, that wish is real and Level 3 is about it. Don't build it here.

Step 2 of 6

Pick the machine

Any computer that's on all the time, can reach the internet (nothing needs to reach it), and can run a command on a schedule will do. Four honest options:

A small VPS

A rented virtual server from any hosting company, around €5 a month for the smallest size. Always on, nothing in your house. The standard choice.

A Raspberry Pi or similar

A tiny computer on a shelf, drawing less power than a light bulb. One-off cost, no monthly bill, and it's yours.

An old laptop

The one in the drawer: lid closed, plugged in, set never to sleep. Free, and more than enough.

A cloud scheduler

Some hosts run a script on a timer with no machine to manage, often free. Simplest to start, least yours; the same scripts move later.

Whichever you pick, the setup is the same: a scripting language you're comfortable with, the tool that runs commands on a schedule (on Linux it's cron; every host has an equivalent), and a folder for the jobs. That's the first hour.

Step 3 of 6

Where the secrets live

The jobs need two secrets: the database connection and, if they call the model, an API key. Level 1 taught the first rule: never paste a secret into a chat. Level 2 adds the second: never put a secret in the script. Scripts get copied, backed up and pasted into conversations when something breaks, and a secret inside one travels with it.

Instead, secrets live in an environment file: a plain text file on the machine, one secret per line, readable only by the user that runs the jobs (on Linux, a file like .env with its permissions locked down). The script reads it at start, never prints it, never logs it.

The environment filecreate on the machine, never in a chat
DATABASE_URL= (the connection string for the assistant_rw role from Level 1) MODEL_API_KEY= (only if a job asks the model to write; leave empty otherwise) NOTIFY_TARGET= (where briefs go: an email address, a messenger chat id, a webhook)

Two details for day one: use the limited database role from Level 1, the one that can't delete, because the jobs need nothing more. And if you create an API key for the model, create one just for the machine, so you can revoke it without touching anything else.

Step 4 of 6

The three jobs

Build them in this order. Each is small enough to read in a minute.

Morning brief

Runs once, before you'd normally open a session. It reads the two views, turns the rows into a short message, and sends it to you. The whole thing, in plain language rather than any programming language:

Morning brief, as a sketchpseudocode, not real code
every morning at 07:30: read the environment file for the database and the delivery target due = query "select * from v_due_for_check limit 30" next = query "select * from v_next_up limit 15" if both are empty: send "Nothing due, nothing waiting. Clear morning." and stop draft = ask the model (if a key is set): "Here are the rows due today and the ranked list. Write a six-line morning brief: what's due, grouped by owner; the top three by score; nothing else. Don't invent anything that isn't in the rows." otherwise: format the rows yourself as a plain list send draft to the delivery target write one row to session_events: kind 'learning', body 'morning brief sent: N due, M ranked', owner 'system'

Notice the shape: read, assemble, send, log. The model is optional and does one bounded thing, turning known rows into sentences, and it's told not to invent. The job never changes a task, never closes a decision, never writes anything except a log line about itself. If it breaks, you miss a brief and open the session as usual. That's the worst case, and it's small.

Waiting-on reminders

Runs a few times a day. It queries the due view for rows you own with status waiting whose check date has arrived and sends one line per row: who you're waiting on, since when, the smallest next step. Nothing in the ledger changes; you decide whether to chase or re-date, in a session. If you'd rather not be interrupted, fold this into the morning brief as one more section.

Nightly close

Runs late. It finds every open row owned by the system whose check date passed today untouched, pushes the date forward one day, and notes on the row that it did, so those rows surface tomorrow instead of quietly falling behind. It never touches rows you own, never closes anything, never moves a row twice in a night. The count it moved goes into the morning brief as a health signal: if it climbs for a week, the system is carrying more than it's doing.

That's the complete set. Each job is reversible, internal, objective and bounded, and each logs what it did to session_events so the next open can read it.

Step 5 of 6

Where the brief arrives

Email, a messenger with a bot or webhook feature, a push-notification service: any works, and most have a free way for a script to message one person. Pick the one you already look at first thing. Keep delivery one-way for now: the brief goes to you, and you don't reply to it, you open a session. A channel that can also receive messages is a new way into the system, and the gates say that's a deliberate decision, never a side effect of a weekend project.

Step 6 of 6

Tell the assistant the machine exists

Add a few lines to your Project instructions so the assistant reads the machine's log rows at the open:

Addition to the Project instructionsadd below the Level 1 open
A scheduled machine runs three jobs against the ledger: a morning brief, waiting-on reminders, and a nightly close that re-dates untouched system-owned rows by one day. Each job logs a row to session_events with owner 'system'. At the open, after the two views, read today's job rows. If a job is missing (no row since yesterday), say so first: that's a health problem and comes before anything else. If the nightly close moved more than five rows, raise it as a decision for me. The jobs never close, delete or decide. If it looks like one did, stop and tell me.

Then the test: set the brief to fire in five minutes, watch it arrive, open a session, check the assistant reports the job row. Set the real time and go to bed. The first brief that arrives before you've thought about the day is when Level 2 earns its five euros.

The first week

What to automate first, and what to leave

After that, the weekly tune-up question gets a clause: "What did we do by hand twice this week, and does it pass all four tests?" Yes means a candidate for a fourth job. Failing even one means it stays in the chat. Most candidates fail objective, because they involve judging whether something still matters. That's fine. Judgement is what the session is for, and keeping it there is what lets the machine run unattended.

When something doesn't work

Troubleshooting

The brief didn't arrive

Check in order: is the machine on, did the scheduler run (it keeps a log), did the script find the environment file, did the delivery service accept the message. Usually it's the second or third.

It arrives at the wrong hour

The machine's clock is in another time zone; rented servers usually run on universal time. Set the schedule in the machine's zone, or the machine to yours.

The model made something up

Tighten the instruction: "use only these rows, quote titles verbatim, no advice." If it persists, drop the model from that job and send the plain list. The rows are the truth; the sentences are a convenience.

The nightly close moved rows you didn't expect

It's doing its job: those rows were due and untouched. Don't stop the job; open a session and look at why system-owned work is piling up.

When you feel the itch

What Level 2 won't do, and what's next

The machine runs three fixed jobs you wrote. Every improvement is still you at a keyboard editing a script, and when the tune-up loop produces a candidate that passes all four tests, you're the one who builds, tests and schedules it. Level 3 is where that changes: approved candidates get built by a coding agent overnight, tested, and switched on only inside the gates you've already set. It's for people who build software, and most people don't need it. Three small jobs on a five-euro machine is most of what "the system works while I sleep" ever means.

A weekend, and the day starts before you do.

One always-on machine, one environment file, three small jobs that read, assemble and remind. The assistant you talk to stays the front door, the ledger stays the truth, and nothing that happens overnight is anything you'd have to undo. If you want the system to build its own next job, Level 3 is next.


The System · Start · How it works · Guide · Library · Questions · For AI assistants · What your AI reads · llms.txt · Impressum · Datenschutz ·