What is imagent, and why is it using CPU?
- It’s the Messages agent.
imagentis an Apple background app inside the IMCore framework. It receives iMessage and text message traffic for your account even while the Messages app is closed. - Busy after sign-in is normal. Setting up Messages on a Mac, or turning on Messages in iCloud, hands it a history to bring in. High CPU that never ends, days later, is not normal.
- You can quit it. Force-quitting imagent loses no messages. launchd restarts it, and Messages reconnects.
Check your own Mac. SiftMac’s free scan lists what’s using space and says, for each item, whether it comes back on its own.
Download the free scanMac · macOS 13+ · nothing leaves your Mac
1. What imagent is
Apple ships no manual page for imagent and has no support article that names it. What follows is read from the bundle and its launchd file on macOS 15.5.
/System/Library/PrivateFrameworks/IMCore.framework/imagent.app
launchd runs it for your account from /System/Library/LaunchAgents/com.apple.imagent.plist, with a rule to start it again if it exits abnormally. The services registered there describe its role:
com.apple.aps.imagent: a line to Apple’s push notification service, which is how a new message reaches the Mac.- Notification delegates for
com.apple.iChatandcom.apple.MobileSMS, the bundle names of Messages on the Mac and on iPhone. This is the part that puts up a banner when a message arrives. com.apple.corespotlight.daemon.messages, which ties it to making messages searchable in Spotlight.
So imagent is the piece that stays signed in and listening. The Messages app is the window you read and type in. That split is why a banner can appear with the app closed.
2. Why it’s busy
Apple doesn’t document causes of high CPU here. These are the times it clearly has a lot to handle:
- First sign-in on this Mac. Apple’s setup steps have you sign in to Messages with your Apple Account; after that the account’s conversations begin to appear.
- Turning on Messages in iCloud. That option, in Messages › Settings › iMessage, keeps your whole history the same across devices, so a long history means a long first sync.
- Text Message Forwarding from an iPhone, which adds SMS and other carrier messages to what the Mac receives.
- A very active group chat, with photos and videos arriving in a stream.
Spotlight indexing of new messages happens alongside, so corespotlightd may be busy for the same reason and settle at the same time.
3. What to do about it
- Give a first sync time. Keep the Mac awake, on power and online. A history of many years with attachments is a lot of data.
- Quit and reopen Messages. Use Command-Q, wait a few seconds and open it again.
- Restart the agent. With Messages closed, select imagent in Activity Monitor, click Stop and choose Force Quit, or run the command below. launchd brings it back. Your messages are stored on disk and with Apple, not inside this process.
- Sign out and back in if it is still stuck. Apple’s path is Messages › Settings › iMessage › Sign Out. Sign in again afterwards and let it catch up.
- Restart the Mac and install updates.
killall imagent
If disk space is the worry rather than CPU, the bulk is the attachments, not the text; see Messages attachments. Don’t delete files in ~/Library/Messages by hand while Messages or imagent is running.
4. Is it malware, and can you turn it off?
The name looks cryptic, but it is simply “IM agent”. Apple’s copy sits inside a private framework under /System, which no installer can modify. To confirm the signature:
codesign -dvv /System/Library/PrivateFrameworks/IMCore.framework/imagent.app
Expect Identifier=com.apple.imagent and Apple’s chain: Software Signing, then Apple Code Signing Certification Authority, then Apple Root CA. In Activity Monitor, double-clicking the process shows its path under Open Files and Ports.
If something named imagent is running out of a different folder, treat it as unknown software, not as Messages. Our malware check guide has the next steps.
To stop the real one doing anything, sign out of iMessage in Messages › Settings. The process may still appear, but with no account it has nothing to receive.
Questions
Why is imagent running when Messages is closed?
It is a separate background agent, so messages and their notifications can arrive without the app open.
Is it safe to force quit imagent?
Yes. macOS starts it again and Messages reconnects. Messages you already have stay where they are.
Does imagent use a lot of memory?
It shouldn’t when idle. If its memory keeps growing over days, quit it once in Activity Monitor and let it start fresh.
How do I stop imagent completely?
You can’t remove it, but signing out in Messages › Settings › iMessage leaves it with no account to serve.
How SiftMac handles it. SiftMac doesn’t manage processes or CPU. On the disk side, it lists large Messages attachments with their sizes so you can decide what to keep.
Download SiftMac · scanning is free, and so is up to 20 GB of cleaning for 7 days · See how it works