Insights, Resources and Cleanup in Sledbot
See where Sledbot's token and cost numbers come from, which agents are counted, how to export usage, spot stuck agents, free ports and clean up disk space.
Updated 7 min read
On this page
This page covers three Sledbot tools. Sledbot Insights shows token use, cost and agent activity. Resources shows what is using CPU, memory and ports. Cleanup finds disk space that Sledbot and your agents have used and moves it to the Trash.
Sledbot Insights: cost, tokens and activity
You can open Insights in two ways:
- Full view: click Insights in the sidebar.
- Popover: press ⇧⌘I (Shift-Command-I) or click the Insights button in the toolbar. The popover shows Weekly cost (or Daily cost…), Top models and Accounts. Click Open Insights to go to the full view.
The full view has these tabs: Overview, Usage, Models & Providers, Agents & Teammates, Uptime, Sessions and Cleanup.
To change the time range, pick Today, Yesterday, 7 days, 30 days, This month, Last month, All time or Custom.


What the numbers mean
| Stat | What it shows |
|---|---|
| Cost, Tokens | Spend and token totals for the selected range |
| Active agent time, Sessions, Turns | How much agent work ran |
| Needed you | How often an agent waited for you |
| Over time | A chart of the range |
| Tokens by Model / Provider / Agent / Machine / Source | Breakdowns of token use |
| Token kinds, Cache hit rate | How your tokens split by kind, and how often the cache was hit |
| Cost per integrated job, First-try pass rate, Review per integrated job, Reverted within 7 days | Delegated job outcomes |
| Uptime | Sled Core restarts and machine disconnects |
Exact costs and estimates
Each cost is either exact or an estimate. Estimates are calculated from list prices in the models.dev model catalogue, so they can differ from what your provider actually bills you. When you need the real figure, use your provider's billing page.
Sledbot ships a snapshot of the models.dev catalogue and refreshes it weekly from https://models.dev/api.json. Setting the environment variable SLED_NO_NETWORK=1 stops that refresh. There is no switch for this in the app.
Two other places show usage:
- Today ▸ Usage shows All plans available, or which account is at its limit and when it resets, plus API spend today.
- Settings ▸ Accounts shows each account's tokens today and today's cost.
Which agents' usage is counted
Insights reads these sources:
| Source | Counted |
|---|---|
Sledbot's native agent (sled chat, native-runtime teammates) | Yes |
| Delegated jobs | Yes |
| Claude Code | Yes, from its local logs |
| Codex CLI | Yes, from its local logs |
| OpenCode | Yes, from its local logs |
| Every other CLI agent (Gemini CLI, GitHub Copilot CLI, Cursor CLI, Amp, Goose, Aider and the rest) | No |
Sledbot reads those local logs without changing them, and it never reads agent credentials. The per-account usage numbers come from Claude Code and Codex session logs on disk.
If you run an agent that isn't counted, its tokens and spend are missing from every Insights total. Use that agent's own usage reporting instead.
Exporting usage data
In Insights, click CSV… or JSON…. The export is saved to insights/exports/ inside Sled Core's state folder, which is normally ~/Library/Application Support/Sledbot/core/default/.
You can get the same data from a terminal with the sled command line tool. Every Sledbot terminal already has it; to use it in other terminals, see the sled command line.
This shows the last 7 days of usage, broken down by model:
sled stats --range 7d --by model--rangetakestoday,yesterday,7d,30d,month,lastMonth,allor<n>d.--bytakesmodel,provider,agent,account,space,machine,source,teammateorjob.--on <machine>reads a remote machine, and--jsonprints JSON.
This writes usage records to a CSV file (use --format json for JSON). Run sled stats export --help to see how to choose the range:
sled stats export --format csv --out ~/Desktop/sledbot-usage.csvTwo related commands:
sled stats rescanindexes the local agent logs again right away.sled stats limitsshows plan limits per account and how full each agent's context is.
Health: stuck, rate-limited and crashing agents
Sledbot watches running agents for these problems:
| Issue | When it's raised |
|---|---|
"<who> looks stuck" | The agent is working but has had no output for 10 minutes and uses no CPU |
"<who> hit a rate limit" | The provider rate-limited it |
"<who> keeps hitting provider errors" | 2 or more provider errors |
"<who> keeps crashing" | 2 non-zero exits within 2 minutes |
Issues show in the Health section of Today, which only appears when something is wrong, and as a banner on the agent's header. Each issue offers these fixes:
- Send a nudge
- Restart with resume, which restarts the agent and continues its conversation where possible.
- Switch account, which opens Settings ▸ Accounts.
- See what happened
- Set aside, which hides the issue until it happens again.
Optional supervisor
To have Sledbot nudge stalled agents for you, open Settings ▸ Agents ▸ Supervisor and turn on Watch running agents. It is off by default.
- The supervisor checks every 180 seconds.
- It treats a run as stalled after 600 seconds.
- It sends up to 3 nudges.
- Allow it to stop a run is on by default. Turn it off if the supervisor should only nudge.
Resources: CPU, memory, ports and Docker
You can open Resources in two ways:
- Full screen: click Resources in the sidebar.
- Popover: press ⌥⌘R (Option-Command-R).
Use the machine picker to switch between This Mac and your remote machines.
Resources shows:
- CPU, memory and memory pressure.
- Usage split into Agents & terminals, Sled Core & holders, and Language servers & jobs.
- The processes in each terminal, plus processes Left running.
- Listening ports and Docker.


| Action | What it does |
|---|---|
| Quit | Sends SIGTERM so the process can exit cleanly |
| Force Quit | Sends SIGKILL, which ends the process immediately |
| Free | Frees a listening port after you confirm "Free port N?" |
| Stop (Docker) | Stops a container |
| Open localhost:N | Opens that local port |
| Copy PID | Copies the process ID |
From the command line, sled top shows what is using CPU, memory and ports, by terminal, with the heaviest processes and Docker:
sled top --limit 10- Add
--on <machine>to check a remote machine. - Add
--no-dockerto skip Docker. - Add
--jsonfor machine-readable output.
Quick clear
Quick clear is part of Resources. It gathers "Stale processes, ports, worktrees and caches on <machine>" into two groups, Memory and ports and Disk.


- Review the items Sledbot found.
- Click Clear N items.
- For anything Quick clear doesn't cover, click More in Clean up… to open the full Cleanup view.
Cleanup categories and automatic cleanup
Cleanup finds disk space used by Sledbot and your agents.
- On this Mac, it moves items to the Trash.
- On remote machines, it moves them to
~/.sled-trash/<date>/<run>/on that machine.
Run a cleanup
- Open Insights and choose the Cleanup tab. You can also right-click a space in the sidebar and choose Clean up worktrees….
- Click See what can be cleaned up, then Scan. Scanning only measures; nothing is moved yet.
- Click Select recommended, or tick items yourself.
- Click Move to Trash. The button shows the total size.


Cleanup sorts what it finds into these categories:
- Sledbot worktrees
- Delegated job copies
- Job snapshot stores
- Checkpoints and private refs
- Exited terminals
- Sledbot logs and caches
- Project build files
- Git maintenance
- Developer caches
- Agent CLI transcripts (opt-in, with Include agent transcripts (Claude Code, Codex))
- Sledbot trash
Re-measure everything measures every category again.
When you confirm, two extra options are available:
- Also delete the branches of merged worktrees (git branch -d)
- Run git gc --prune=now afterwards to free the space now
Danger items are never selected in bulk; you have to select them yourself.
Delete permanently… skips the Trash. You can't get those files back. Use Move to Trash unless you are sure.
Automatic cleanup
Automatic cleanup runs once a day. It only handles Safe items, and it moves them to the Trash.
Only one rule is on by default: Purge ~/.sled-trash after N days, set to 7 days. The other rules are off until you turn them on:
| Rule | Default |
|---|---|
| Merged worktrees | 7 days |
| Job copies after integration | 14 days |
| Checkpoints | Keep the last 50 |
| Exited terminals | 3 days |
| Logs | 14 days |
| Snapshot stores | 7 days |
| Git-ignored build folders | 30 days |
Clean up from the command line
This lists what can be cleaned without moving anything:
sled clean --dry-runOther flags:
--on <machine>,--category,--spaceand--idnarrow what gets cleaned.--all-safeselects the Safe items.-y(or--yes) skips the confirmation.--delete-merged-branchesand--gcmatch the confirm options in the app.
Run sled clean --help to see every flag.
--delete removes items permanently instead of moving them to the trash.
Agents running in Sledbot terminals can scan, but they can't clean. Only you can.
Teammate worktrees
Teammate threads set to One per thread keep their worktrees in a .sled-worktrees/ folder next to your repo. The Sledbot worktrees category scans .sledbot/worktrees/ inside the repo, so these teammate worktrees may not appear in Cleanup. If your disk is filling up, check that sibling folder yourself.
Troubleshooting
- An agent's spend is missing from Insights. Only Sledbot's native agent, delegated jobs, Claude Code, Codex and OpenCode are counted. Other CLI agents don't appear.
- Recent sessions aren't showing yet. Run
sled stats rescanto index the local agent logs again. - A cost doesn't match your invoice. Estimates use models.dev list prices. Your provider's bill is the real figure.
- A pane says it needs a newer Sled Core. Open Settings ▸ General ▸ Sled Core and click Restart core, or run
sled update. Update the app first:sled updatedoesn't download anything itself. - The disk didn't get smaller after a cleanup.
- On this Mac, items stay in the Trash until you empty it.
- On remote machines, items wait in
~/.sled-trashuntil the Purge ~/.sled-trash after N days rule removes them (7 days by default). - Removed git objects may need the Run git gc --prune=now afterwards option before the space is freed.
- Stalled agents aren't nudged automatically. The supervisor is off by default. Turn on Watch running agents in Settings ▸ Agents.