Suggestions · macOS process
knowledge-agent on Mac: what it is, why it is using CPU, and when it stops
knowledge-agent maintains the private, on-device record of how you use your Mac that powers Siri Suggestions. Which apps you open when, who you message, what you search for: it stores that locally (part of what Apple calls CoreDuet) so Siri and Spotlight can suggest the right thing. It is busiest after a macOS upgrade, a Migration Assistant transfer or a new sign-in, when it rebuilds that record and can sit at 50 to 100 percent CPU for a few hours. It settles on its own and nothing leaves the Mac. Still high after a full day? Turn off Siri Suggestions for the busiest apps and let it finish.
- What it is
- The agent that updates the on-device knowledge store behind Siri Suggestions. Part of the CoreDuet family.
- Normal
- 0 to 2 percent CPU, under 50 MB. Brief activity when you switch apps or finish a task.
- Busy but fine
- 50 to 100 percent CPU for an hour or a few after an update, migration or new sign-in, then quiet.
- Safe to quit?
- It restarts and starts the rebuild again. Let it finish; it only needs to do this once.
- The one safe fix
- Leave the Mac awake and plugged in. If still high after a day, turn off Learn from this application for the busiest apps.
On this page9 sections
What knowledge-agent does
Siri Suggestions is the feature that offers you the app you usually open at 9am, the contact you usually message on Friday, and the shortcut you ran yesterday. To do that, macOS keeps a record of events: app launches, messages sent, searches made, places visited. That record is called the knowledge store, it lives in your home folder under Library, and it is owned by a family of processes Apple calls CoreDuet. knowledge-agent is the one that writes to it.
It runs as your user and starts with your login. All day it receives small events from apps ("Mail became active", "a message was sent to this contact") and files them away. It also runs clean-ups: pruning old entries, compacting the database, building the summaries the suggestion engine actually reads. Its siblings, siriknowledged, knowledgeconstructiond and intelligenceplatformd, read and extend that store for Siri and, on newer Macs, for Apple Intelligence.
Everything stays on the Mac. The store syncs between your own devices through iCloud, end to end encrypted, but Apple cannot read it and no app can read another app's entries. That is why the "Learn from this application" switch exists per app: it decides whether that app is allowed to feed the record.
What normal looks like
knowledge-agent has two modes: the quiet one it lives in most of the time, and the rebuild it does after big changes. Both are normal; they just look very different in Activity Monitor:
The size of the rebuild depends on how much history you carry. A new Mac with a fresh account is done in minutes. A Mac that inherited ten years of Messages, Mail and Photos through Migration Assistant has far more to reprocess, and a few hours at high CPU is the honest cost. The MacRumors poster quoted below saw it pinned at 100 percent and wanted it to stop; the useful question is not how to stop it but whether it is still making progress, which the timeline further down shows how to judge.
Why knowledge-agent is using CPU right now
Something changed the knowledge store, or gave it a lot of new events to file. In the usual order:
- You just upgraded macOS. Major versions change the store's format. knowledge-agent migrates and reindexes the whole thing on first login. This is the single most common reason people find it at 100 percent, and it often runs alongside Spotlight and Photos doing the same for their own data.
- You migrated to a new Mac or restored from a backup. The store arrives with years of history that the new machine has to process. Same rebuild, often bigger.
- You signed into iCloud on this Mac. The store syncs from your other devices and merges. An hour of activity is normal on a large account.
- An app is generating a flood of events. A mail client reindexing thousands of messages, a calendar importing years of events or a messaging app syncing its full history can hand knowledge-agent far more to file than it would see in a normal week.
- A scheduled clean-up. macOS compacts and prunes the store periodically, usually overnight while the Mac is plugged in. If you see it busy at 3am, that is the scheduled work, and it stops on its own.
- A corrupt store. Rare. The sign is a rebuild that never finishes: high CPU for days, with the Mac left awake, and no change. Turning off learning for the heaviest apps and restarting usually unsticks it.
Is it safe to quit knowledge-agent?
Quitting it does no harm, but it does not help. knowledge-agent runs as your user, so Activity Monitor will let you quit it. launchd starts it again within seconds, and because it had not finished, it picks the rebuild up again from where it can, often from the beginning of the current task. You have spent the energy and gained nothing.
The verdict here is settle: let it finish. It is the same reasoning as with Spotlight after a new macOS: the work has to happen once, it happens faster if you let it run uninterrupted, and it will not come back once it is done. Leave the Mac plugged in and awake for the evening (or overnight, with a browser tab open on something so it does not sleep) and check in the morning.
If you would rather not have the feature at all, the proper switch is in System Settings, Siri & Spotlight, under Siri Suggestions & Privacy. For each app you can untick Learn from this application. With fewer apps feeding it, knowledge-agent has less to file and less to rebuild. That is the safe version of "make it stop".
It is not malware. The genuine process lives inside macOS's CoreDuet framework and runs only as your user. The name is unusual, not suspicious.
What to do, in order
- Ask what changed recently
A macOS upgrade, a new Mac, a restore, a new iCloud sign-in or a big import in Mail or Messages in the last day explains high CPU completely. If one of those happened, the rest of this list is optional: it will finish.
- Keep the Mac awake and plugged in
Background maintenance pauses on battery and when the lid is closed. Plug in, keep the screen on for a few hours, and the rebuild runs at full speed instead of in short bursts over several days.
- Check progress, not the number
Note the memory figure and the CPU Time column in Activity Monitor. Come back an hour later. If memory has moved and the process is still consuming CPU time, it is working through the store. The same numbers two days running means it is stuck.
- Turn off learning for the heaviest apps
System Settings, Siri & Spotlight, Siri Suggestions & Privacy. Untick Learn from this application for Mail, Messages or any app with a huge history. knowledge-agent then skips that app's events. You can turn it back on once things are quiet.
- Turn off Siri Suggestions entirely for a day
In the same pane, switching off Siri Suggestions stops the feed altogether. If knowledge-agent still works hard with nothing feeding it, it is finishing a clean-up; give it the day and it will go quiet.
- Restart
A restart clears a stuck task. If the process goes back to 100 percent within minutes and stays there for another day with the Mac awake, keep learning off for the big apps and install the next macOS update; CoreDuet fixes ship in point releases.
When to worry
The difference between a rebuild and a stuck process is time. This is what a normal rebuild looks like after a macOS upgrade on a Mac with a lot of history:
- Hour 0First login after the upgrade. knowledge-agent at 90 percent, fan audible. Normal.
- Hour 1Still 80 to 100 percent. Memory has grown. It is working.
- Hour 3Drops to 20 to 40 percent in bursts. Most of the store is done.
- Hour 5Quiet. 0 to 2 percent. The rebuild is over and will not repeat.
- Day 2, still 100 percentWith the Mac awake all day? Stuck. Turn off learning for the big apps, restart.
Three things together move it from settle to act: the Mac has been awake and plugged in for a full day, knowledge-agent has not dropped below 50 percent in that time, and nothing new was imported or signed in. Then turn off learning for the largest apps, restart, and let the next macOS update close the bug. Safe to Quit tracks each process over hours, so it can tell you whether knowledge-agent has been falling since lunch or has been flat since yesterday, which is exactly the question this process makes you ask.
Look up another process
After an upgrade or migration, knowledge-agent is rarely the only busy process. Look up its companions here.
The usual group: siriknowledged and assistantd for the Siri side, mds_stores for Spotlight, and photoanalysisd for Photos. The slow after update guide covers the whole first day.
What people hit, in their words
“Can anybody answer me, what is the knowledge agent and why it use very high cpu.”
“It consumes 100% cpu and I would really like to stop whatever it is doing.”
“I would assume that Siri is a consumer of the data in the knowledge graph.”
Questions people ask
What is knowledge-agent on Mac?
knowledge-agent is the macOS process that maintains the on-device knowledge store behind Siri Suggestions. It records events such as app launches, messages sent and searches made, so Siri and Spotlight can suggest the app or contact you are likely to want next. It belongs to the CoreDuet family of processes, runs as your user, and keeps everything on the Mac, synced only between your own devices with end-to-end encryption.
Why is knowledge-agent using high CPU?
Because it is rebuilding its store. That happens after a macOS upgrade, a Migration Assistant transfer, a restore from backup or a new iCloud sign-in, and it can take from minutes to several hours depending on how much history you carry. It can also be busy when an app imports a large history. It settles on its own; keep the Mac awake and plugged in so it can finish in one go.
Can I stop knowledge-agent?
Quitting it in Activity Monitor just restarts it and the rebuild starts over. The safe way to reduce its work is System Settings, Siri & Spotlight, Siri Suggestions & Privacy, where you can untick Learn from this application per app, or turn off Siri Suggestions altogether. With less to file it goes quiet sooner, and you can turn the switches back on later.
Is knowledge-agent sending my data to Apple?
No. The knowledge store stays on your Mac. It syncs between your own devices through iCloud with end-to-end encryption, so Apple cannot read it, and apps cannot read each other's entries. The per-app Learn from this application switch controls which apps may add to it. The related process parsecd does send search text to Apple when Siri Suggestions are on, which is a separate setting.
How long does knowledge-agent take to finish?
On a fresh account, minutes. After a macOS upgrade on a Mac with years of Mail, Messages and Photos history, a few hours with the Mac awake and plugged in. Because background work pauses on battery and during sleep, a laptop used in short bursts can stretch the same rebuild over several days. If it is still pinned after a full day awake, treat it as stuck and use the per-app learning switch.
Sources and further reading
- What is the knowledge agent, Apple Community the thread the first quote comes from
- What is knowledgeconstructiond, MacRumors Forums the sibling process; two of the quotes come from here
- Change Siri & Spotlight settings on Mac, Apple Support where Siri Suggestions and Learn from this application live
- Siri Suggestions, Search & Privacy, Apple what stays on device and what syncs