-
Notifications
You must be signed in to change notification settings - Fork 4
CLI System
ed system reports on the Mac you are typing on: a live CPU, memory, load and
network sample, and the volumes that are mounted. It reads the machine directly
through sysctl, the Mach host statistics, /bin/ps and pmset, so nothing
here talks to the Edith app and nothing here needs it running. Reach for it when
you want the numbers the app's This Mac view shows without opening a window, or
when you want them on stdout as JSON.
It is the local half of a pair. ed machines metrics <machine> is the same
report for a machine over SSH, in the same shape, so a script can treat both the
same way.
| Command | What it does |
|---|---|
ed system stats |
Samples CPU, memory, load, uptime, network and optionally the top processes. Streams with --follow. Runs when you type ed system with no subcommand. |
ed system disks |
Lists mounted volumes, plus battery, temperature, fan, platform profile and GPU fields in JSON. |
| Code | When |
|---|---|
| 0 | The sample or the volume list was printed. --help and --version also exit 0. |
| 2 |
--interval was zero, negative or not finite; --processes was negative; or the command line was wrong in the ordinary way, an unknown flag, a missing value, or a value that is not a number. |
Neither command looks anything up by name and neither talks to the app, so 3 and
4 cannot happen here. Code 1 is the catch-all for an unexpected error escaping
ed system stats, and nothing on the local sampling path throws one.
-
ed systemwith no subcommand ised system stats.statsis declared as the group's default subcommand, so the two are the same invocation. - Sizes are formatted with decimal units.
KBis 1000 bytes,MBis 1000 KB, and so on, which is why a volume of 482797652 KB prints as494 GBrather than460 GBand 25165824 KB of memory prints as25.8 GB. The JSON is raw kilobytes, so do your own maths there if you want binary units. - At most 30 processes exist to be reported. The sampler keeps the top 30 by
CPU, so
--processes 50gives you 30 rows and no warning. -
cpuPercentin the process rows comes frompsand is summed across cores, so a busy process reads above 100.cpu.totalPercentfor the machine is capped at 100 across all cores. The two are not on the same scale. - The process list is
/bin/ps -axo pid=,user=,%cpu=,%mem=,rss=,comm=sorted by CPU descending, andnameis the last path component ofcommand. - Network counters skip
lo0entirely, and an interface that moved no bytes during the window is left out ofinterfacesrather than listed at zero. TherxBpsandtxBpstotals exclude interfaces judged virtual, which is anything namedutun*,awdl*,llw*,bridge*,ap*,gif*,stf*oranpi*; those interfaces still appear in the list, withvirtual: true. -
disk.readBps,disk.writeBpsanddisk.devices, along withcpu.stealPercentandtasks.runnable, are part of the shared sample shape and are always zero or empty for this Mac. They are filled in by the collectored machines metricsruns on a Linux machine. -
tasks.totalis the number of processespsreturned, so it counts every process on the machine and not just the ones--processesshows. -
--json --followwrites one compact document per line, forever, and repeats the wholehostobject on every line. That is deliberate: each line stands alone, sojq -c,headand a pipe into another process all work without buffering a document that never ends. Without--followyou get a single pretty-printed document instead. - Object keys are sorted, in both the pretty and the compact form, so two runs diff cleanly.
-
statsis the sameLocalMachineSamplerthe app drives for its This Mac session, so the CLI and the window cannot disagree about a number. The window samples every two seconds and refreshes its volume and battery half on every fifteenth tick, about every thirty seconds;ed system disksreads it fresh on every call. - The
systemStatsextension, the CPU and memory readout in the menu bar, is unrelated to these commands.ed systemnever consults it, and both commands work with every extension turned off.
-
ed machinesfor the same sample taken on another machine over SSH, including the disk, steal and task fields this page reports as zero. -
ed cleanerfor acting on whated system diskstells you about free space. -
ed extensionsfor the menu bar CPU and memory readout. -
The
edcommand line for the rest of the reference.
Auto-generated from docs/, edit the docs in the repo, not the wiki.
CLI reference
Companion
- Deploy
- Concepts
- Concepts Memory
- Concepts Ingestion
- Concepts Search
- Concepts Chat
- Concepts Learning
- Concepts Brain
- Concepts Friend
- Hosts
- Stack
- Status
- Doctor
- Search
- Index
- Ingest
- Episodes
- Sync
- Observations
- Reflect
- Beliefs
- Ask
- Extract
- Claims
- Corroborate
- Runs
- Chat
- Conversations
- Forget
- Export
- Import
- Erase
- Wipe
- Episode
- Nightly
- Reason
- Personas
- Council
- Lenses
- Core
- Why
- Hypotheses
- Predictions
- Commitments
- Discrepancies
- Calibration
- Inquire
- Entities
- Eval
- Standup
- Machines
- Baselines
- Connectors
- Facts
- Correct
- Weekly
- Db
Guides