Coco is a desktop agent that watches your screen with a small local model and decides when to offer help. Asked directly, three such models catch few of the moments a user wants help: macro F1 of 0.12 to 0.19. After Coco learns from the user's own reactions, F1 rises to 0.35 to 0.48, a 2.4 to 3.0 times gain.
Pick an observer and watch it work through one simulated workday. Tap any moment to see what happened. Then we build Coco from zero: the observer, its memory, the feedback, the adaptation, the benchmark and the metric, the on-device budget, and the week with real users.
You need what a language model does (it reads a prompt and writes text) and what fine-tuning is (nudge the weights with examples). We build the rest.
The playhead walks through the day. A teal screen is help that landed. A red screen is an interruption nobody wanted. A dashed red ring is a moment the user wanted help and got none.
The workday is a toy: 48 moments, 16 of them welcome help (33%, the share in OSWorld-Persona's test split, Table 4). Hits and unwanted interruptions are drawn at each method's macro precision and recall from Table 1, so the counts are an illustration. The F1 on the meter is the paper's macro F1 (Table 1, three seeds).
Chapter 0
Meet the problem a proactive agent must solve, and see why the right answer changes from one person to the next
You are fixing a team calendar. Twenty meetings sit at the wrong hour. You open each event, check the time, change it, and close it. On the fifth one, an AI assistant could have done the rest in seconds. But you never asked. You did not think of it.
Most AI agents today are reactive. They wait for you to notice that they could help, and then for you to type a request. So the benefit goes to people who already know when and how to ask. Everyone else leaves that help on the table.
A proactive agent turns this around. It watches what you do and offers help on its own. That sounds simple. The hard part is not what to do. The hard part is when. An offer at the wrong moment is an interruption. Too many interruptions and you switch the agent off.
Worse, the right moment depends on the person. One person wants every chore taken off their hands. Another wants to learn, and only wants a nudge when stuck. The paper builds four such people, called personas, and asks a strong model to label the same 108 recorded computer sessions as each of them. Look at how differently they answer.
Pick a persona. Each dot is one labelled moment from the same recorded sessions. A filled dot is a moment where this persona wants help offered. The share changes sixteen times over between personas.
Counts from Table 4 (train plus test): Automation first 302 of 760 moments want help, Eager hands-on 582 of 746, Learning oriented 47 of 945, Reserved drafts 90 of 828. The persona descriptions are the paper's (Table 4, Fig. 5). The labels are synthetic: a model plays each persona (Chapter 6). The grid shows 100 dots rounded to the nearest dot; the read-out gives the exact share.
Learning oriented wants help at 5% of moments. Eager hands-on wants it at 78%. A single fixed rule for "when to help" cannot serve both. Even one person changes with the task: they may want help filling a gap in a document, but not while they check facts in it.
The paper calls the answer deep personalization. It is a closed loop. The agent observes what you do, keeps a compact memory of it, decides when to help, and then learns from how you react. Nobody fills in a form. Your thumbs up, your dismissals, the times you ask for help yourself, and the chores you repeat by hand all become training signal.
The system that runs the loop is Coco, a desktop agent from NVIDIA, Stanford and MIT. A small model on your own machine does the watching and the learning, so your raw screen never leaves the device. A second agent, local or in the cloud, does the actual work when Coco decides to help.
The result: on a new benchmark with synthetic personas, adaptation lifts macro F1 from 0.12 to 0.19 up to 0.35 to 0.48 across three local models. In a one-week study with 10 people, an F1 proxy rose from 0.199 to 0.515. Here is the road.
Chapter 1
Write personalization as a learning problem, and see why watching the screen supplies both the input and the feedback
Think of a new assistant on their first day. They know nothing about you. They sit beside you and watch. At some point they offer to help. You say yes, or you wave them off. Over weeks they learn your habits. Nobody gave them a manual about you.
The paper writes this down as a learning problem. At each step t there is a state of the world, st: here, what is on your screen. The agent also carries its own internal state ht: its notes about you so far. A policy picks an action from both. Then the user's reaction gives a feedback value rt.
Press Step. Each press moves one stage around the loop. Watch the notes ht grow at the bottom, and watch the reaction come back as feedback. Press Run a day to turn it many times.
The stages follow Sec. 2 and Fig. 1. The screens, notes and reactions in this loop are illustrative.
What should the agent learn? A policy that collects as much good feedback as it can, over the whole time it works with this user. That is Equation (1).
5 helps that land in one day, γ = 1: the sum is 5. Same 5 helps with γ = 0.9 at steps 1 to 5: 1 + 0.9 + 0.81 + 0.73 + 0.66 = 4.10
The equation is the textbook form of reinforcement learning. The paper's point is about the two quantities that are usually hard to get: the state st and the feedback rt. Asking users to describe their context, or to rate every action, does not scale. People will not do it.
Here is the key observation. On a computer, one stream answers both needs. The agent can see what the user sees: the screenshots, plus the clicks and keystrokes. That stream is the state. And the same stream, a minute later, shows how the user reacted. Did they open the suggestion? Close it? Ask an assistant for the very thing the agent did not offer?
So the user's activity provides the context for a decision. Their next activity provides the label for that decision. That closed loop is deep personalization. The rest of the lesson builds each part of it.
Chapter 2
Follow one step of the observer: screenshots and notes go in, a structured note and a yes or no come out
Coco splits the job in two. An Observer Agent watches all the time and decides when help is worth offering. An Execution Agent does the work, but only when called. This chapter is about the observer. It is the part that runs every few seconds, so it must be small, cheap and local.
The observer is a multimodal language model: a model that reads images and text, and writes text. In the paper it is a small model such as Qwen-3.5-9B. Every step, it gets a short run of screenshots with the user's clicks and keys, plus its notes so far. It writes back one JSON object with four fields.
Pick a moment in a calendar task. The left shows the frames and actions the observer reads. The JSON below is what it writes. Watch how the notes from earlier moments change the decision at 07:57.
The four output fields and their meanings are from Sec. 3.1 and the prompt in App. B.1. The 00:34 and 07:57 moments, their observations, intents and rationales follow the OSWorld-Persona example in Fig. 5 (a sprint calendar audit, the Reserved drafts persona); we shortened the wording. The 03:10 and 05:40 moments and the drawn screens are illustrative.
The four fields are, in order:
Why ask for four fields when only the last one acts? Because writing the note first makes the decision better. The paper tests this directly (Table 2). An observer that outputs only the decision scores lower than one that writes the note and intent too: 0.305 against 0.483 macro F1 for Coco-PE on Qwen-3.5-9B. The note is also what gets stored in memory, so the next step can build on it.
In symbols, one step of the observer takes the new screen and the old notes, and returns a decision and new notes. Equation (2):
ht = Retrieve(ℳ, ot, t) · the note ot goes into memory ℳ, and the next context is read back out (Eq. 3)
Look at the 07:57 moment again. The single screen shows one calendar event at a wrong time. On its own, that is not much. But the notes say the user has opened many events one by one, that the sprint dates are known, and that time zones differ across three cities. With that context, a bulk fix is clearly worth offering. The decision lives in ht−1, not in the pixels alone.
This is the data flow to keep in mind. Screenshots and actions go in as images and text. A few hundred tokens of JSON come out. The JSON note is the observer's whole contribution to memory. The yes or no is its whole contribution to action.
Chapter 3
Build the observer's memory as a graph of notes and the claims they support, and choose what flows back into the next step
The observer writes a note every few seconds. Over a workday that is thousands of notes. You cannot paste all of them into the next prompt. The prompt would grow without end, and a small model would drown in it. Coco needs to keep the useful part and drop the rest.
The answer is a memory ℳ with two kinds of item. The first kind is the raw notes, o1 to oT, each with its time. The second kind is propositions: short claims about the user, such as "audits calendars event by event" or "prefers drafts to finished text". Each proposition links to the notes that are its evidence. Two sets of nodes with links only between them is a bipartite graph.
Press Add note. Each new observer note (bottom row) arrives, and every few notes the model writes a proposition (top row) or revises an old one. Then the yellow highlight shows what is read back into ht: the k newest notes plus the k most relevant propositions. Drag k.
The structure (timestamped notes, propositions linked to their evidence, create or revise by similarity, k recent notes plus k relevant propositions) is from Sec. 3.2 and App. B.2. The observer prompt reads up to three relevant propositions (App. B.1). The notes, propositions and the relevance scores drawn here are illustrative.
The propositions come from a method called the General User Model (GUM), from earlier work by some of the same authors. Every so often, the same small model reads a batch of recent notes and writes up to a few non-overlapping claims. Each claim carries three things: the IDs of the notes that support it, a confidence from 1 to 10, and a decay from 1 to 10. A decay of 1 means short-lived context ("is fixing the March 10 conflict"). A decay of 10 means a durable trait.
A new claim does not just pile on. Coco finds the top-k most similar existing propositions. A small prompt labels the relation as IDENTICAL, SIMILAR or UNRELATED. Unrelated claims become new propositions. Similar ones are merged or split into a cleaner set, and their evidence links are updated. So the top row stays small and sharp while the bottom row grows.
Reading back uses two simple rules. Temporal retrieval takes the k most recent notes. Semantic retrieval takes the k propositions most similar in meaning to the new note ot. Together they form ht. That is the whole of Equation (3) in practice.
The same memory serves the Execution Agent, in a different way. When the observer says yes, the Execution Agent gets ht as its starting context. It also gets the memory as a searchable tool. It can ask, over several turns, for anything else it needs: "what time zones are on the team?", "what did the user decide yesterday?". The paper compares this to a coding agent searching a file system: the observer does not have to guess in advance what the executor will need.
Does this memory design hold up? The paper tests it on standard long-memory benchmarks, where a large answer model reads a memory built by Qwen-3.5-9B. The comparison is no external memory (the whole history in the context window), Mem0 (a popular memory layer), and Coco's graph.
| Answer model | Memory | LoCoMo | LongMemEval | BEAM-100K | BEAM-1M |
|---|---|---|---|---|---|
| GPT-5.5 | none | 0.936 | 0.944 | 0.581 | 0.512 |
| Mem0 | 0.773 | 0.722 | 0.675 | 0.626 | |
| Coco | 0.951 | 0.822 | 0.750 | 0.679 | |
| Claude Sonnet 4.6 | none | 0.916 | 0.904 | 0.539 | 0.384 |
| Mem0 | 0.724 | 0.718 | 0.728 | 0.717 | |
| Coco | 0.945 | 0.752 | 0.838 | 0.833 | |
| Kimi-K3 | none | 0.923 | 0.920 | 0.601 | 0.395 |
| Mem0 | 0.796 | 0.726 | 0.597 | 0.580 | |
| Coco | 0.957 | 0.834 | 0.719 | 0.725 |
Table 3, LLM-judged accuracy (GPT-5.5 as judge). Bold is the best in each group.
Read it in two parts. Coco beats Mem0 on every benchmark with every answer model. And on the longest histories, BEAM-1M, it beats having no memory by a wide margin: 0.384 to 0.833 with Claude Sonnet 4.6. On LongMemEval the whole history fits in the context window, so the plain long-context model wins. Memory pays off when the history no longer fits, which is exactly the situation of an agent that watches you all week.
One more test matters for the observer itself. Table 2 removes ht from the observer's input. Under Coco-PE on Qwen-3.5-9B, macro F1 drops from 0.483 to 0.388. Under Coco-LoRA it drops from 0.455 to 0.285. The notes are not decoration. They carry the context the decision needs.
Chapter 4
Turn the user's reactions into labels, then see why a learner that only hears about its offers talks itself into silence
Coco offers help through a small pop-up: a one-line description and a "Help me with this" button. The full suggestion stays hidden until the user clicks. The user can also give a thumbs up or down, dismiss the pop-up, or just ignore it until it fades. Each of these is a signal about whether the timing was right.
For a moment where Coco offered help (yt = 1), the rule is direct. If the user engages, the feedback is rt = 1: the offer was welcome. If the user rejects it, rt = 0: it was not. In the desktop app, not clicking "Help me with this" also counts as negative.
direct evidence
Engaged, clicked, or thumbs up: r = 1, keep the output as it is. Dismissed, thumbs down, or ignored: r = 0, the output had the wrong polarity and gets revised to "no".
indirect evidence
No reaction is possible, so there is no direct signal. Later behaviour can still show a need: the user repeats the same chore, gets stuck, or opens a chatbot for the same help. Then the silence was a missed opportunity, and the label flips to "yes".
Why is the second column needed? Because the first column only ever produces labels at moments where Coco spoke. Each dismissal teaches "be quieter here". Nothing ever teaches "you should have spoken there". A learner fed only those labels drifts toward silence, and the quieter it gets, the fewer labels it gets. The paper names this risk: a degenerate policy that learns to intervene less and less.
A toy observer offers help when its confidence passes a threshold. Each night it moves the threshold to fit the labels it has. Run two weeks with direct feedback only, then with the missed-opportunity scan added. Watch the offer rate and the share of needs it catches.
A toy model, not the paper's experiment. 60 moments a day, 30% need help, the observer's confidence is the true need plus noise. Each night the threshold moves to the cut that makes the fewest errors on all labels so far. "Plus the scan" also labels 60% of missed needs as "yes", standing in for the retrospective scan of Sec. 3.3. The paper names the degenerate-policy risk; it does not run this simulation.
Coco's fix is to look back. Every so often, the same on-device model reads the history of notes, h1 to hT, and searches for evidence that help was needed. The prompt (App. B.3) names three kinds of evidence: repetitive work, being stuck, and an anticipated need, including a later manual call to ChatGPT or another agent. It must cite at least three distinct notes as evidence, so one odd moment is not enough.
A second prompt then grounds each opportunity. It picks the earliest silent moment at which the need was already visible and worth an interruption, and gives it a confidence; it may only claim 0.75 or more when the trigger is clearly supported. That moment's decision gets negative feedback: the observer should have said yes.
Now each signal has to become a training example the observer can learn from. Coco keeps the original input of that step, (st, ht−1), and its output ot. Then:
Why rewrite the observation and not just flip the yes or no? Because the note is stored in memory and shapes the next decision. If the note says "the user is stuck and frustrated" next to a corrected "no", the two disagree. The self-reflection prompt removes unsupported claims of struggle for a "no", and states the concrete need for a "yes". It also keeps the useful details (file names, error text) and drops incidental or sensitive ones.
Here is a worked example with numbers. Say Coco offered help 12 times today: 5 engaged, 7 dismissed. The scan finds 3 missed moments. The dataset gains 15 examples: 5 kept as they are, 7 revised to "no", and 3 revised to "yes". Without the scan, it would have 12 examples and 7 of them would push toward silence, with nothing pushing back.
Chapter 5
Compare what changes, what it costs on the device, and what the user can read, for the two learning algorithms Coco uses
We now have a dataset 𝒟 of corrected examples. Coco does not care which algorithm turns them into a better observer. The paper tries two cheap ones. They change very different things.
Coco-PE (prompt evolution) leaves the model's weights alone and rewrites part of its prompt. The prompt holds a short list of bullet rules about this user: "when a TODO is visible, offer to fill it", "when the user is reading logs, stay silent". Coco-LoRA leaves the prompt alone and trains a small add-on to the model's weights. Pick one and step it.
Prompt evolving: press Next batch to run generate, reflect and curate, and watch the rule list change. LoRA: drag the rank and see how many weights train against the frozen layer.
Coco-PE settings from App. E: batches of 8 examples, all wrong predictions plus at most 2 adjacent right ones go to the reflector, at most 8 add, update or delete operations per batch, at most 50 bullets, temperature 0.2, one epoch. The rules shown come from the learned prompt in Fig. 4c; the order of batches is illustrative. LoRA settings from App. E: rank 32, α = 64, no dropout, one epoch, BF16, batch 8. The 4,096 by 4,096 layer is an illustrative size, not a figure from the paper.
Coco-PE follows a method called ACE, agentic context engineering. It treats the prompt as a living document. Each batch of 8 examples runs three steps:
The neighbouring right examples matter. A wrong "yes" at 10:02 next to a right "no" at 10:01 on almost the same screen tells the reflector exactly which detail flipped the label. That is contrastive evidence: two near-identical cases with different answers.
A language model is mostly big weight matrices. Fine-tuning one fully means changing every number in every matrix: billions of numbers, and enough memory to hold their gradients and optimizer state. LoRA, low-rank adaptation, freezes the original matrix W and learns a small correction made of two thin matrices.
one 4,096 × 4,096 layer: full = 16,777,216 weights · LoRA at r = 32: 4,096 × 32 + 32 × 4,096 = 262,144, which is 1.6%
In Coco-LoRA, the vision encoder and the projector that feeds images into the language model stay frozen. LoRA goes on every eligible linear layer of the language model except the output head. In the mixture-of-experts models it also goes on the expert and router layers. Each persona gets its own adapter, trained for one epoch on its training split.
| Coco-PE | Coco-LoRA | |
|---|---|---|
| What changes | A list of at most 50 text rules in the prompt | Small B and A matrices beside frozen weights |
| Who does the work | The same local model, as reflector and curator | A training run on the same local GPU |
| Can the user read it | Yes: the rules are plain text, and the app lets users review them | No: the change is numbers |
| Best in Table 1 | Qwen-3.5-9B, Qwen-3.5-35B-A3B | Nemotron-3-Nano-Omni |
| Used in the user study | Yes, on Qwen-3.5-9B | No |
The readable list is a real advantage. In the user study, Coco organised the learned rules into sections that each user could inspect. The paper's Fig. 4c shows how one author's rules sharpened over a week. Chapter 9 shows them.
One honest note on how the benchmark uses these methods. On OSWorld-Persona, the training data is the training split, with the simulated persona's labels standing in for feedback. So the benchmark tests the learning step with clean labels. The full loop, with real reactions and the missed-opportunity scan, is what the user study tests. That is our reading of Sec. 5 and App. E.
Chapter 6
Build OSWorld-Persona from recorded computer use, then derive precision, recall and macro F1 and see why accuracy alone lies
How do you test an agent that learns from a real person's screen? Collecting real users' screens is a privacy problem, and nobody else could rerun the test. The paper takes another road. It starts from recorded computer-use sessions that already exist and adds synthetic users on top.
Pick a stage. The picture shows what goes in and what comes out at that stage, with the paper's counts.
Stages, settings and counts from Sec. 5.1 and App. C: 108 OSWorld 2.0 sessions, key frames with an MSE threshold of 2,000, rolling windows of up to five frames, four personas, Kimi-K2.6 as the labeller in two stages, a self-consistency check at temperature 0.4 with two extra runs, human review of the "yes" labels, and a 70/30 chronological split. Result: 6,558 key frames and 3,279 annotations.
Stage 4 is the one to understand. The labeller is a large model, Kimi-K2.6, used in two passes. First it looks at a window of key frames and writes a neutral note and intent, with no persona in sight. Then it gets the persona's description and decides: would this user want help right now? It must be conservative, and only say yes when the benefit clears the bar the persona sets.
Two filters guard the labels. Each decision is run two more times at temperature 0.4, and the example is kept only if both reruns agree with the first. Then a human reviews every "yes" and removes it if they cannot find context on screen that supports offering help. The "no" labels are not reviewed by a human; that is our reading of App. C.
Each labelled moment ends in one of four boxes. The user wanted help and the observer offered it: a true positive (TP). It offered and the user did not want it: a false positive (FP), an interruption. The user wanted help and got silence: a false negative (FN), a miss. Neither wanted nor offered: a true negative (TN).
TP 8, FP 9, FN 8: P = 8/17 = 0.47, R = 8/16 = 0.50, F1 = 2 × 0.47 × 0.50 / 0.97 = 0.485
Why not just use accuracy, the share of moments decided correctly? Because "help wanted" is the rare case. In the test split, only 332 of 1,000 moments want help, and for one persona only 10 of 285. An observer that never speaks gets most moments right and helps nobody. Try it.
Pick an observer and a persona. The grid fills with that persona's test moments. The bars below show F1 for all four personas, and the macro average, the paper's headline metric. Compare accuracy with F1.
Test-split counts from Table 4. The three simple observers are our arithmetic on those counts; the paper does not report them. "Offer at random" uses expected values. The reference marks are Coco-PE on Qwen-3.5-9B from Table 1: macro F1 0.483, macro accuracy 0.776.
Never speak scores a macro accuracy of 0.65 and an F1 of zero. Its recall is zero, so its F1 is zero. That is the point of F1: an agent that never helps gets no credit.
Macro means: compute F1 separately for each persona, then take the plain average. Each persona counts equally, however many moments it has. So the Learning oriented user, with only 10 "yes" moments, counts as much as Eager hands-on with 192. A method cannot win by serving the easy persona and ignoring the hard one.
Coco-PE, Qwen-3.5-9B: (0.523 + 0.809 + 0.389 + 0.212) / 4 = 0.483 · direct prompting: (0.037 + 0.139 + 0.392 + 0.177) / 4 = 0.186
The paper's fifth metric is the false-alarm rate (FA), "the fraction of interventions offered when none was needed". Our reading is that it is the false-positive rate: of the moments where no help was needed, the share where the observer offered. Lower is better. Keep it in mind; it is the one number that gets worse after adaptation.
Chapter 7
Explore Table 1 in full, find where adaptation helps and where it does not, and test which parts of the observer carry the gain
The paper runs five observers on OSWorld-Persona, each on three local models. All five see the same screens. They differ in what they know about the user.
Pick a model. Macro view: five metrics for five methods. Per-persona view: F1 for each persona. Tap a bar to read its exact value.
All values from Table 1, averaged over three random seeds. FA is the false-alarm rate (lower is better). Precision, recall, accuracy and F1: higher is better.
Start with the vanilla row. Macro recall is 0.08 to 0.19. Asked cold, these models almost never speak up. That is why their false-alarm rate is low (0.04 to 0.09) and why their F1 is 0.12 to 0.19. Being quiet is easy. Being quiet at the right moments and loud at the others is the skill.
Telling the model about the user helps, but not enough. The induced persona reaches F1 0.21 to 0.24. Even the oracle persona, the exact text that produced the labels, reaches only 0.27 to 0.39. Knowing the description of a person is not the same as knowing when they want help.
Adaptation goes further. The best Coco variant reaches 0.483 on Qwen-3.5-9B (2.6 times vanilla), 0.433 on Qwen-3.5-35B-A3B (2.4 times), and 0.349 on Nemotron-3-Nano-Omni (3.0 times). On every model it beats the oracle persona. Learning from labelled moments beats being handed the persona that made them.
Now switch to the per-persona view. The gains are not even. Automation first and Eager hands-on gain a lot: on Qwen-3.5-9B, Automation first goes from 0.037 to 0.523. Learning oriented barely moves, and sometimes drops: 0.392 vanilla against 0.389 for Coco-PE. On the same model, Reserved drafts gains under Coco-PE but stays below the oracle persona (0.212 against 0.324).
Why might that be? Learning oriented has only 37 "yes" moments in training and 10 in testing (Table 4). Reserved drafts has 60 and 30. With so few positive examples, there is little to learn from, and a single test moment moves F1 a lot. That is our reading; the paper does not analyse the per-persona gaps.
Table 2 removes one part of the observer at a time and re-runs adaptation. No context drops ht, the memory read-back, from the input. Decision only keeps the context but asks for need_support alone, with no observation or intent.
Pick a model. Each pair of rows is one adaptation method. The full observer is the top bar of each group.
Macro F1 from Table 2.
The full observer is best in five of the six columns. The exception is Qwen-3.5-35B-A3B under Coco-LoRA, where decision only scores 0.320 against the full observer's 0.314. The paper's caption says the full observer is best everywhere; the table shows this one small exception. Elsewhere the gaps are large. Under Coco-LoRA on Qwen-3.5-9B, removing context drops F1 from 0.455 to 0.285. Under Coco-PE on Qwen-3.5-35B-A3B, decision only drops it from 0.433 to 0.199.
So both halves of the design earn their place. The memory supplies context the screens alone lack. And writing a note before deciding makes the decision better, not only the memory.
Chapter 8
Fit an always-on observer and its training onto one consumer GPU, and trace exactly which data stays home
Why run the observer on your own machine? Because it sees everything on your screen: email, code, bank tabs. Sending that stream to a server is a big privacy cost. Coco keeps the observer local, so raw screen content never leaves the device. That choice creates an engineering problem: a single GPU must watch in real time and learn in the background.
Screens change little from second to second, especially while you type or scroll. But a multimodal model turns each image into many tokens, and two near-identical screenshots still become two full sets of tokens. Those tokens cost compute, and they push useful entries out of the KV cache: the stored attention keys and values that let the model skip work on a prompt prefix it has seen before.
The strip is one window of activity: 16 frames, each with the action that came with it. Drag the threshold. A frame is kept only if it differs enough from the last kept frame. Watch the actions of dropped frames move onto the next kept one.
The rule (keep the first and last frames, keep a middle frame only if its RGB mean-squared error from the last kept frame exceeds τ, carry dropped frames' actions forward) is from Sec. 4. The 16 frames and their MSE values are illustrative. The replay numbers are from Fig. 6 and App. D: 30 minutes of one author's activity, 15-second windows, 80 observer requests, τ = 8,000.
The rule is simple. First, line up each mouse and keyboard action with its screenshot. Keep the first and last frames of the window. Keep a middle frame only when its mean-squared error (the average squared difference of the pixel values) from the last kept frame passes a threshold τ. When a frame is dropped, its actions move to the next kept frame. So the model still knows the user clicked twice and pressed Alt+F4, but it does not read three copies of the same screen.
On the paper's replay, this raises the KV cache hit rate from 27.1% to 45.2% for Qwen-3.5-9B on an RTX 5090, and from 26.7% to 45.2% for Qwen-3.5-35B-A3B in FP8 on a DGX Spark. Time to first token falls from 0.96 s to 0.55 s, and from 1.75 s to 0.94 s.
The GPU has two kinds of work. Foreground work is observing the screen and answering the user: it must be quick. Background work is personalization: the missed-opportunity scan, self-reflection, prompt evolution or LoRA training. It can wait.
The top lane is the user: active, idle, active again. The bottom lane is the GPU. Switch between first come, first served and observation first, then press Run. Watch the wait for each observation.
The policy (observation and user requests in the foreground; light revision jobs after one minute idle; full personalization in longer idle or sleep mode; low priority, checkpointed and preempted) is from Sec. 4. The timeline and job lengths are illustrative.
Coco's scheduler follows four rules. Observation always comes first. Light revision jobs may start after one minute of user inactivity. Full personalization waits for a longer idle period, or a sleep mode where the user has turned observation off. Background jobs save checkpoints, and any of them is preempted, paused at once, when the observer needs the GPU; they resume later from the last checkpoint.
There is a second benefit. Observer requests share a long, stable prompt prefix: the same instructions and rules every time. If personalization prompts run in between, they evict those prefix entries from the KV cache. Keeping the two kinds of work apart keeps the observer's prefix warm.
The paper runs the observer on its own engine, CTI, from Song Han's lab: one engine on one GPU that serves and fine-tunes the same model instance, so there is no second copy in memory. On top it uses speculative decoding with DFlash, a block-diffusion draft model (block size 8), and a prefix cache matched in 16-token pages.
| Real single-user workload | Qwen-3.5-9B, RTX 5090 | Qwen-3.5-35B-A3B FP8, DGX Spark |
|---|---|---|
| Observer latency, mean / P50 / P95 | 2.84 / 2.42 / 6.97 s | 7.52 / 6.63 / 18.68 s |
| Time to first token, mean / P50 / P95 | 1.22 / 0.94 / 3.68 s | 2.83 / 1.70 / 10.49 s |
| KV cache hit rate, mean | 29.2% | 27.9% |
| Model | 9B parameters, dense | 35B parameters, about 3B active per token (mixture of experts) |
Table 5. Requests include the accumulated context and the rules learned with Coco-PE.
Is 2.84 seconds fast enough? For Coco, yes. The observer reads activity in windows of several seconds; it does not react to each keystroke. The paper does not report memory use in gigabytes or energy use. It names energy as an open limit: an always-on model costs battery life and heat, and they have not measured it.
Pick where the Execution Agent runs. Everything inside the device box stays local. Watch what crosses the boundary when the observer says yes.
From Sec. 4, Sec. 6.2, App. A ("Privacy of Personalized Agent") and the ethics statement.
Here is the privacy claim stated exactly. The screenshots, the observer's inputs and outputs, the curated memory, and all adaptation stay on the device. When the observer says yes, the Execution Agent receives the context ht and may query the memory. If that agent is a cloud model, as it currently is in Coco when it uses larger models, then retrieved user context leaves the device. The paper says so itself: the design reduces privacy risk but does not remove it.
Chapter 9
Follow ten people's F1 proxy across seven days, read how one author's learned rules sharpened, and weigh what such a small study can show
A benchmark with simulated users can only go so far. So the authors built Coco as a desktop app and gave it to 10 participants for one week. They used their computers as normal. The observer ran Qwen-3.5-9B on a single RTX 5090 and adapted with Coco-PE, the best method for that model in Table 1.
The instructions were minimal: use the thumbs up and thumbs down buttons, and ask for help by text or voice when you want it. To keep the study private, the researchers collected only counts of three kinds of event:
counted as TP
The user rated a suggestion helpful.
counted as FP
A thumbs down, or closing the pop-up without opening the full suggestion.
counted as FN, a proxy
A direct text or voice request while Coco stayed silent.
From these, an F1 proxy per user per day. It is a proxy because the false negatives are a lower bound. A user may have wanted help and simply not asked. The paper flags that FN may be underestimated, which would make the proxy look better than the true F1.
Drag the day. The green line is the average of the 10 users' F1 proxy. The cards below show one author's learned rules on days 2, 5 and 7.
Visible TODO → support
Visible error → support
Logs or output → stay silent
TODO, trying to fill the gap → support; scrolling or auditing → stay silent
Error, stuck for a while → support; self-correcting → stay silent
Logs or output → stay silent
Gap: generative gap or terminology → support; integrating verified content → stay silent
Error: tracing a matching warning → support; code debugging → stay silent
Files: active file discovery → support; artifact review → stay silent
Day 1 (0.199) and day 7 (0.515) are stated in Sec. 6.2. Days 2 to 6 are read off Fig. 4b by us and are approximate (about 0.53, 0.43, 0.60, 0.49, 0.49). The rules are from Fig. 4c, one author's deployment, lightly shortened.
The average rose from 0.199 on day 1 to 0.515 on day 7. It did not rise every day: our reading of the figure is a jump on day 2, a dip on day 3, a peak near 0.60 on day 4, then a level around 0.5. Individual users swing a lot from day to day.
The cold start is clear. On day 1, 6 of the 10 users had an F1 proxy of zero, because Coco gave them no suggestion they rated helpful. After adaptation, all six began to get suggestions they rated helpful.
The rule cards show what "learning when" looks like in practice. The participants' data stayed private, so the authors studied one author's own week. On day 2 the prompt holds coarse cues: a visible TODO means offer help, technical output means stay quiet. By day 5 it splits by workflow: help when the user is actively filling a TODO, but not while they scroll and audit the document. By day 7 it separates filling a generative gap, where help is welcome, from integrating content the user has already checked, where they want to do it themselves.
The participants also shaped the paper's list of limits. Several liked that Coco learned without constant ratings, but wanted to see what it had learned and to take part. The app has a view for that: users can inspect each learned rule with its examples, then keep, edit or reject it. During the study, editing was switched off, so the results reflect self-evolved rules only.
One participant shows the kind of help the authors hope for. While she studied new material, Coco suggested generating quiz questions. She took up the idea again and again, and Coco became better at offering it over the following days. Help that supports the user's own learning, not help that does the work for them.
Chapter 10
Gather the whole system on one page, run its core as code, and place it among memory, computer use and on-device learning
Coco splits a proactive agent in two. A small local Observer Agent reads the screen every few seconds, writes a short note, and decides yes or no. A memory graph keeps the notes and the claims they support, and hands back a small context each step. When the user reacts, or later shows a need it missed, the observer turns that into a corrected example. Each night, or whenever the user is idle, it learns from those examples by evolving its prompt or training a LoRA adapter. An Execution Agent, local or in the cloud, does the actual work when called.
| What | Value | Source |
|---|---|---|
| Macro F1, direct prompting | 0.118 to 0.186 across three models | Table 1 |
| Macro F1, best Coco variant | 0.349 to 0.483 (2.4 to 3.0 times) | Table 1 |
| Macro F1, oracle persona in the prompt | 0.271 to 0.393 | Table 1 |
| Best single persona F1 | 0.861 (Eager hands-on, Coco-LoRA, Nemotron) | Table 1 |
| False-alarm rate, Qwen-3.5-9B | 0.047 vanilla to 0.249 Coco-PE | Table 1 |
| Without memory context (Coco-PE, 9B) | 0.483 to 0.388 | Table 2 |
| Memory on BEAM-1M (Claude Sonnet 4.6) | 0.384 with no memory to 0.833 with Coco | Table 3 |
| OSWorld-Persona | 108 sessions, 6,558 key frames, 3,279 labels, 4 personas, 31% "yes" | Sec. 5.1, Table 4 |
| KV cache hit rate with frame selection | 27.1% to 45.2% (9B, RTX 5090) | Fig. 6 |
| Observer latency, mean | 2.84 s (9B, RTX 5090), 7.52 s (35B-A3B, DGX Spark) | Table 5 |
| User study | 10 people, 1 week, F1 proxy 0.199 to 0.515 | Sec. 6.2 |
| Cold start | 6 of 10 users at zero on day 1 | Sec. 6.2 |
Three short pieces carry the paper's main ideas. The first is one observer step with temporal and semantic read-back. The second turns reactions and the retrospective scan into training examples. The third is the change-aware frame filter. The model calls are stand-ins: observer, reflect and embed would be prompts to the local model.
pythonimport json, numpy as np def observer_step(frames, actions, memory, observer, embed, k=3): # h_{t-1}: k newest notes + k propositions closest to the last note (Eq. 3) recent = memory["notes"][-k:] q = embed(recent[-1]["observation"]) if recent else None props = sorted(memory["props"], key=lambda p: -float(q @ p["vec"]))[:k] if q is not None else [] h_prev = {"recent_observations": recent, "relevant_propositions": [p["text"] for p in props]} o = json.loads(observer(frames, actions, h_prev)) # {observation, user_intent, rationale, need_support} memory["notes"].append(o) # the note joins memory; propositions update later (GUM) y = 1 if o["need_support"] == "yes" else 0 return y, o, h_prev # y = 1: pass h to the Execution Agent def build_dataset(log, missed_ids, reflect): # log: [{id, s, h_prev, o, y, reaction}] ; missed_ids: silent steps the scan flagged D = [] for e in log: if e["y"] == 1: r = 1 if e["reaction"] in ("engaged", "thumbs_up") else 0 elif e["id"] in missed_ids: r = 0 # silence was wrong: a missed opportunity else: continue # no evidence either way: no example o_new = e["o"] if r == 1 else reflect(e, flip_to=("no" if e["y"] else "yes")) D.append((e["s"], e["h_prev"], o_new)) # D = {(s_t, h_{t-1}, o'_t)} return D # then: prompt evolution or LoRA on D def select_frames(frames, actions, tau=8000): # frames: list of HxWx3 uint8 arrays ; actions[i]: actions tied to frame i kept, carry = [(0, list(actions[0]))], [] last = frames[0].astype(np.float32) for i in range(1, len(frames)): carry += actions[i] f = frames[i].astype(np.float32) mse = float(((f - last) ** 2).mean()) # RGB mean-squared error vs last kept if i == len(frames) - 1 or mse > tau: kept.append((i, carry)); carry, last = [], f # dropped frames' actions ride along return kept
The stand-ins hide real work. The real observer prompt (App. B.1) also passes the persona-free long-term memory and how the user reacted to recent bubbles. The real missed-opportunity scan is two prompts over the whole timeline, with at least three pieces of evidence per opportunity. And the propositions are rewritten in batches by GUM, not per step.
Now press Present or Teach and explain, out loud and from memory, why an observer that learns only from dismissals talks itself into silence, and how Coco gets the opposite signal. If you can, you own this paper. Then go back to the workday and compare the direct prompt with Coco-PE on Nemotron.