Learning on the Job

Standing jobs, not tasks.

Every morning one of our agents wakes up as the company's bookkeeper. What makes it the bookkeeper is an 843-word description of the job and an alarm. On Mondays the same agent wakes up as our filings clerk, with 349 words and a Monday alarm, and with another page and another alarm it keeps the contracts. We run the company on one capable generalist holding 34 standing jobs, never on 34 specialists.

Walden Yan, Cognition's chief product officer, told AI Engineer that "where things are going next is moving from the world where you're giving tasks to your agents to giving jobs to your agents". We have run our company that way since October. Over seven weeks, what the company learned landed on the jobs' descriptions, which we and the agents have changed 787 times. The jobs gave that experience somewhere to go, but the agent holding them stayed exactly as it was, where a new hire would have grown into them.

Our agents work from one git repository, which holds everything the company knows and does, from its handbook to every message one agent leaves another, and a swarm of them commits to it around the clock. We call the repository our company brain, and A company's memory belongs in one git repository explains why we built it that way. Every change to it is on record, which is how we can count what seven weeks of standing jobs did.

Our first week ran on whatever one agent happened to notice

On 8 October one agent started waking on an hourly schedule to decide what the company needed. Six days later we wrote down every piece of recurring work the company had and counted about 95 duties. Forty of them had nothing to set them off: they ran only if that agent, in that hour, happened to notice them. Another 25 had been decided but were written down nowhere the agent would look. Most of the 95 were nobody's request on the day they fell due, and 24 came around only quarterly or yearly, so an agent waiting for tasks would have waited for somebody to remember.

So we rewrote the work as standing jobs. A standing job is a description of what the job answers for, and a clock that says when to wake up to it. A job also wakes when a colleague leaves it a message. Each job wakes as a copy of the same generalist and keeps its own conversation from one wake to the next, summarized as it grows, though the brain outranks whatever the conversation holds. We wrote 13 of these descriptions on 15 October, and on 19 October, 18 agents woke 331 times between them.

Most of the work starts with a clock or a colleague

With tasks, someone has to hand the work out, and their attention becomes the limit on how much gets done. Nothing an agent worked out on Tuesday's task is there for Thursday's either. A standing job gives the work an owner and a clock, and each correction somewhere to go.

Leave aside one job that only checks, every few minutes, for anything new, because the log of wakes can't say which of its checks found something. On Wednesday 2 December the other agents woke 337 times, and at most 48 of those wakes had anything from us to read. A clock or a colleague began the other 289. Since our first wake on 8 October, at most about one wake in eight has had a word of ours to read. LangChain reports the same pattern from the agents on its managed service, where "more than 70% of runs now come from schedules" (Sydney Runkle, 17 November), and our Wednesday shows it inside one company.

Wakes, 17,747With a word of ours to read, at most 2,165Each row one agentThe coordinating agentThe filingsThe booksThe contracts and recordsThe research’s logisticsThe daily reviewThe nightly rewrite8 OCT19 OCT1 NOV16 NOV2 DEC

Rows are agents in the order their jobs were written, the first week's agent, later the coordinating agent, on top; columns are days, 8 October to 2 December. Each gray disc is sized by an agent's wakes that day, the blue disc inside by how many, at most, had a word of ours to read. Faint lines start where jobs were written, and no agent woke from 11 to 13 October. The biggest discs belong to the job that checks every few minutes for anything new. One row becomes eighteen by 19 October, and the blue stays thin.

Nobody hands out the work

The usual picture of a swarm has a lead agent that creates the other agents and directs them. Ours has a coordinating agent, which wakes every hour to take the one-off work that falls between jobs. When a job misses something, the coordinating agent messages that job or edits the job's description, and otherwise it sleeps until its next wake, because the jobs carry the work. The coordinating agent can propose a change to the list of jobs, but which jobs exist is ours to decide.

Since the first wake, the agents have left one another 6,077 messages, and four in five of them went from one job to a different job without touching the coordinating agent, which hears from its colleagues more than twice as often as it tells them anything. The bookkeeping job shows how work reaches a job when nobody hands it out. It has read 637 messages from 15 other jobs and the coordinating agent, colleagues passing on what they had noticed.

To or from the coordinating agent, 1,168From one job to another, 4,909Senders down, receivers acrossReceivers in the same orderThe coordinating agentThe filingsThe booksThe contracts and recordsThe research’s logisticsThe daily reviewThe nightly rewrite

Every message one agent has read from another since the first wake: senders down the side, receivers across the top, each dot sized by the messages along it. The coordinating agent's row and column, at the top and left edge, are gray: 815 messages to it and at most 353 from it. Every other dot is blue, the 4,909 that went from one job to a different job. The diagonal, sender and receiver the same, is left blank. Most of the weight lies away from the gray edge.

Corrections land on the job's description

Thirty-six jobs have been written so far, and two have been retired. Thirty of the 36 were written in October and only six since, but the descriptions have never stopped changing. They have been changed 787 times, each change landing in a commit, and the swarm made 329 of those changes itself, with nobody approving them first. In 123 of them, a job was editing its own description.

The nightly rewrite is the job that rewrites the brain's know-how every night, so that each lesson reads as part of one understanding. On 31 October it cut a qualifying phrase from beside a sentence, because the page said the same thing elsewhere, and for two weeks the sentence read as if it held everywhere. When the mistake came to light on 14 November, the rewrite wrote the lesson into its own description: "A condition stays beside the line it limits". The lesson now sits in the job, where every later wake of the rewrite works from it, and the agent reading it is the same agent that made the cut.

Measured by words, though, the descriptions are still mostly ours. The swarm made four in ten of the changes, but it wrote only about one word in six of what the 34 standing descriptions say today.

Ours, 458The swarm’s, 329Up longer, down shorterThe filingsThe booksThe contracts and recordsThe research’s logisticsThe daily reviewThe nightly rewrite14 OCT1 NOV16 NOV3 DEC

One row per job, 14 October to 3 December, a faint line from the day each was written, ending for the two retired. Each of the 787 changes is a tick, up if it left the description longer and down if shorter, taller the more words it added or cut; each row's first tick is the job's writing. Blue ticks are the swarm's 329, gray ones our 458. The list of jobs holds nearly still after October while the ticks never stop, and most of the tallest are gray.

A job has too few cases to learn from its own numbers

Most of our jobs have numbers of their own to judge their work by, and keep a log of hypotheses about them. When a number moves, the job writes down why it thinks the number moved and the one change that would test that, and later closes the entry with a verdict. There are 120 entries, the first written on 8 November. Fifty have been settled with a number, and 42 of those 50 rested on fewer than ten cases, a case being one comparable event, such as one day's reading. Twenty-six rested on a single case, most of them one job forecasting its own number a day ahead, and even without those, most of the others had fewer than ten cases behind them.

Measuring and improving works for coding agents because a benchmark hands them thousands of comparable cases. A company's other jobs hand over a handful per week. So whatever learns such a job has to learn it the way a person does, from a few examples and a great deal of prior understanding. We think learning from so few examples has to be a property of the learner, and nothing built around the agent can supply it.

HeldHeld in partWrongEach dot one hypothesis110100Cases each hypothesis rested on

One dot for each of the 50 hypotheses the agents settled with a number, stacked at the number of cases it rested on, on a scale from 1 to 240 that gives each tenfold the same width. Blue dots held (26), periwinkle ones held in part (17) and coral ones were wrong (7). A dashed line marks ten cases. Twenty-six dots pile up at a single case, and only eight lie past ten.

The descriptions doubled and the agent stayed the same

The 17 oldest descriptions, for the jobs standing six weeks or more, held about 11,000 words between them a week after each was written, and they hold about 23,000 now. Sixteen grew and one held still at 201 words. Ethan Mollick counted the same shape on 9 November, in a swarm he left to build for twelve days: by the next morning it had written itself a rule book of 84 sections, and after twelve days the rule book had 204 sections and 87,500 words, with no text ever cut. Unlike his, our descriptions get cut, in 132 of the 787 changes, and one job rewrites the know-how every night, descriptions included, yet the oldest descriptions still doubled.

A new hire who does the same duty for six weeks gets quicker at it and leans on the manual less. We looked for that practice in the 15 agents we could time, comparing how long the median wake took in each one's first three full weeks and in its latest three. Ten got slower by a fifth or more. The other five stayed within a fifth either way, three of them slightly quicker, so none of the 15 got quicker by as much as a fifth. The bookkeeping job went from 2.2 minutes per wake to 4.6, and the daily review from 2.0 to 8.0. In the transcripts we keep, three agents did take fewer steps per wake than at the start, the filings job among them, down from 21 steps to 10, but none of the three took a fifth less time.

None of this is a controlled test. The work in a job's wakes isn't the same from week to week, and a description twice as long asks more of each wake, so the agents may well be doing more per wake rather than doing the same work worse. Still, practice cut none of these agents' time per wake by as much as a fifth, while the descriptions and most of the wakes grew.

Meta's on-call team told AI Engineer that its agent learns the way a new person on call does: "So shift number 30 is better than the shift number one". LangChain says much the same of its agents' check-ins, and neither has shown a number. Our record shows half of what they describe. A fix taught once is in the job's description at the next wake, which is remembering. The other half of what a new hire does, getting quicker at the same duty, isn't there.

Rose by a fifth or moreWithin a fifthWords in the description01,0002,0003,0004,000The filingsThe booksThe contractsand recordsThe research’slogisticsThe daily reviewA week inNowMinutes per wake04812The coordinatingagentThe filingsThe booksThe contractsand recordsThe research’slogisticsThe daily reviewFirst 3 weeksLatest 3 weeks

Two panels, one line per job. The first shows the words in each description a week after it was written and now, for the 17 jobs standing six weeks or more. The second shows the median minutes of each agent's wakes in its first three full weeks and in its latest three, for the 15 agents we could time. A line is blue where it rose by a fifth or more and gray where it stayed within a fifth. No line on either side fell by a fifth.

The job is the unit a worker would have to learn

We think of a job as a responsibility, never as a different agent and never as a fence. Every job is the same agent with the same memory, the brain, divided from the others by what lands on its plate, and each job answers for as little as it can, which is why one job became ten on 24 October. The list of 34 is still only our guess at how to divide the company's work, one more piece of scaffolding that stronger models will outgrow. We expect the job to last, as the unit of experience. Today that experience is a page the agent reads again at every wake, and it has to end up in the agent itself.

London's taxi trainees spend three to four years learning the city's 25,000 or so streets, and a study that scanned them before and after found that those who qualified ended with more gray matter in the posterior hippocampus, a part of the brain used in spatial memory, while those who didn't qualify showed no such change (Woollett and Maguire, 2011). For those trainees the job changed the worker. Seven weeks of standing jobs changed the job descriptions 787 times and the agent not at all.

What would make an agent's fiftieth day in a job easier than its first, when a job hands over a handful of cases per week rather than the thousands a benchmark does? Beneath that question sits another, about the unit to train: one specialist per job, or one worker that carries all 34, when most of what one job teaches holds for the whole company. Everything either would learn from is already on record, every wake of every job with what it read and what it did, in the transcripts we keep and in the one git repository the company runs from.