Build 633 nm
The agent workshop
Two computers, one queue. Jobs wait in a file, a scheduler decides what runs where, and I am asked only when a decision is mine.
Part of Work, What I'm doing
I work on many projects at once, and they all want the same GPU. My laptop is one machine. A second computer with a big graphics card sits in another room. Left alone, jobs collide, run out of memory or wait for me.
So I built a small workshop around them. A job goes into a queue, plain code picks what fits, and the answer to “is it done?” is a file, not a conversation. A model gets involved only when something breaks.
Terms used here
- Job
- One command to run, such as a training run or a test pass, saved as a small file with the memory it needs.
- Queue
- The folder of jobs waiting their turn.
- Scheduler
- The program that reads the queue and starts the job with the best priority that fits the free memory.
- Probe
- A small program that reads each machine’s free memory and graphics memory, so the scheduler decides from real numbers.
- Headroom
- Memory kept free on purpose so the machine stays usable while a job runs.
- Conflict
- Two things asking for the same resource, for example a job and one of my own sessions wanting the GPU.
- Wake
- A call to a model. It happens only on a trigger, never on a timer.
- Decision inbox
- One list of every question waiting for me, with the options written out.
- Deep zoom
- One map you zoom into: the words change with the depth, from the whole workshop down to one item.
. What it does
Plain code decides, a model only advises
The conductor
Every 30 seconds a probe reads both machines. The scheduler then starts the highest-priority job whose memory fits, after keeping 3 GB free on the GPU box and 8 GB on the laptop. A job that does not fit never blocks a smaller one, unless it has already waited 12 hours; then it holds the machine until it fits.
Priority is the project’s own score plus 2 points for every hour waited, up to 40. The laptop starts nothing between 22:00 and 08:00 unless I allow it. On the GPU box only one conductor job runs at a time, and it never breaks the lock my other sessions use. It also never stops a job it did not start.
A model on call
A small agent is woken at most 12 times a day: when a job fails or runs out of memory, when a conflict lasts over 30 minutes, or when I leave it a note. It may run the queue commands and write an advice note, nothing else. In the log’s first eight days it was woken 36 times.
The decision inbox
When a session needs a yes or a choice, it files one question with the options and a default, and carries on with whatever does not depend on it. I answer many at once from my phone by ticking a box. A reversible question takes its default after 24 hours, and I can still change it for 7 days. A risky one waits for me and never expires. One summary arrives at 08:30.
When I correct how a session works, it writes the lesson as one sentence and files it. It becomes a standing rule only when I tick it.
The command deck
The deck is one map of everything I am building, drawn in light. I zoom through four depths, Everything, Cluster, Project and Item, and each shows only its own words. Beside it, live rings show the laptop’s processor, memory and graphics, and the GPU box’s when it answers. It starts at login and talks only to my own machine.
. How it is built
Files, small scripts, no service to babysit
- The queue. Python and plain files.
cq.pysubmits, lists, cancels and re-prioritises; every job logs launched, started, finished, failed or out-of-memory to one event log. - The goals file. Priorities, memory headroom, the night window and the wake limits live in one file I edit. It is re-read every 30 seconds.
- The deck. TypeScript and WebGL, with a small local helper in Python that reads the machines.
Not measured yet: how many tokens this saves. The event log counts jobs, not tokens, and it includes a few test jobs from the first day. The numbers above are counts from that log.
Python, file queue, TypeScript, WebGL
Status: in daily use on my own machines. Not released.