Agent Fleet Notes

Pipelines

Five flows that keep a fleet of AI (artificial intelligence) agents running on one machine, drawn as diagrams. Blue rounded boxes are questions, green boxes are where a flow ends well, red boxes are refusals or failures. Each diagram is an (Scalable Vector Graphics) picture, so it follows the page's light or dark theme.

1. Park and wake

A finished records how to resume itself, then stops. The park script refuses three times before it will do that, and each refusal exists because the first version got it wrong (see the Lessons page).

Parking a sessionThree refusals, then copy memory, write the row, and stop only its own process.Session finishes its workDelivered? (an email id ora dashboard link)Refuse:deliver firstOwns a running thing nottagged no-watch?Refuse: stop itor hand it overDoes its start folder ownthis transcript?Refuse: wake wouldopen a blank chatCopy its memory files tothe disk with free spaceWrite one row: login, folder,transcript id, next stepPrint the wake command;stop its own process onlyyesnonoyesyesno

Waking is the mirror image. The owner names a session; the wake script finds its newest row and relaunches it so it continues its own .

Waking a sessionRead the newest parked row, relaunch on the same login and folder resuming the transcript, record it as woken.Owner names a sessionand gives a messageRead its newest parked rowCancelled by a later'woken' row?Already awake:relay insteadRelaunch: same login, samefolder, resume transcriptOwner's message becomesits first inputAppend a 'woken' rownoyes

Scheduled prompts go through a poke script that checks the parked list first, because a to a stopped session still reports success.

Delivering a scheduled pokeCheck parked first, then alive, then cold start; every attempt is logged.A scheduled poke firesIs the session parked?Wake it(as above)Is it alive?Relay toits inboxWas a folder given?Start itfreshLog: reached nobodyyesnoyesnoyesno

2. Thread keeper

Runs every three hours. Each agent logs every email it sends to the owner; that log is how the keeper tells an agent's message from the owner's reply when both come from the same addresses. It never changes labels, never writes to anyone else, never starts a new email, and never acts on what a reply says.

Thread keeper runEvery three hours, each open thread gets the first rule that fits; at most six nudges a run.Every 3 hours, 08:00 to 20:00Read the send log; search 7 days of mail;add any thread missing from the logFor each open thread, the first rule that fits:Newest message is theowner's replyConfirm on the thread;hand words to its agentyesWaiting on the agentover 48 hoursOne line to theorchestratoryesAsks nothing, or itsdate has passedClose the threadyesRead, and 12+ hours oldNudge (max 3,24 h apart)yesRead status unknown,48+ hours oldNudge (max 2,48 h apart)yesUpdate the log; finish with one DONE linenone fits

3. Model fallback ladder

Every loads one shared helper. After the account's default model, the rungs are opus then sonnet. A limit is recognised from the output text, because a refused run still returns 0.

Model fallback ladderDefault model first; on a limit message step down the rungs; stop on a pinned paid key.Scheduled runner loadsthe shared helperTry the account's defaultOutput matches alimit message?Done (exit codenot trusted)Paid key with apinned model?Stop: a limit meanssomething elseNext rung: a larger modelLimit again?DoneNext rung: a smaller modelLimit again?DoneEvery rung refused: report it,log each attemptnoyesyesnonoyesnoyes

Limit patterns, read from the helper when this page was built: hit your .{0,40}limit; Switch to another model; resets .{0,30}(UTC|am|pm); usage limit reached

4. Resource guard and reduced mode

One command, one word. HALT is checked first so it always wins. Free (random-access memory) and are both measured because programs reserve memory before they use it, so commit charge rises first. (central processing unit) load is averaged over two samples a second apart so a single spike cannot decide the level.

Resource guard and reduced modeMeasure, compare with HALT then WARN thresholds; under WARN research runs in reduced mode and other heavy work waits.Measure: free memory, commit charge,processor (two samples), system diskAny HALT thresholdcrossed?HALT: start nothing,save, wait (code 2)Any WARN thresholdcrossed?OK:go aheadWARNResearch swarm:reduced mode. One onthe machine, at most3 agents, save each unit,re-check between unitsAnything else heavy(build, model load,big download, browserrun): wait for OKnoyesnoyesresearchotherBelow WARN is OK; HALT is checked first so it always wins.
MeasureWARN whenHALT when
Free memory, shareunder 20%under 10%
Free memory, amountunder 16 GBunder 8 GB
Commit chargeover 80%over 90%
Processor loadover 85%over 95%
System disk freeunder 25 GBunder 8 GB

Thresholds read from the guard script itself when this page was built.

exists because WARN once lasted four nights and stopped all research. The fix was not a looser threshold but a narrower rule: research may continue at a small, saved, re-checked scale.

5. Inspiration rooms

Every agent gets a 3D (three-dimensional) room filled from its own history. The first step uses no model at all, so it is cheap and repeatable; agents only choose and place items, and may never invent a quote.

Inspiration rooms pipelineSources, a model-free extract step, curation by one agent per room, a privacy branch, the page build and a nightly refresh.Project notesfilesTranscripts,via adaptersSent emailsand linksExtract: a script, no model;skip unchanged sourcesCandidates file per roomCurate: one agent per roompicks theme, title, 15-60 items;excerpts verbatim onlySensitive room?Title anddate onlyRoom file (plain JSON)Build: world overview, roominteriors, a reader; a roomloads only when enteredNightly: re-extract, re-curateonly the rooms that changednoyes