aspenx

Metrics

What the state DB records about your use of AspenX, and the two commands that read it.

AspenX keeps its cache and history in SQLite at ~/.aspenx/state.db, or under $ASPENX_HOME when that is set. The events, usage, qa_runs and resource_samples rows never leave the machine. A signed-in daemon reports each feature’s name, base, touched projects, pins, push state, PRs and review link to the team registry. To collect the rest across a team, gather aspenx stats --json yourself.

What is recorded

Table Rows Written by
events timings: new and up seconds from the command’s start to every public project and Mailpit answering (no row when they never do); review seconds from the services’ recreation to the same, on review on and on review off of a running feature; qa run duration new, up, review, qa
usage one row per CLI command, including those the app and the daemon run: command, subcommand, feature, seconds, exit code, version every command except hook, mcp, daemon run, daemon events, version, help; nothing before ~/.aspenx exists
qa_runs each QA run: status, start and finish, cost, summary, its pass, fail and needs-human counts and items, and the report’s paths; kept, marked dropped, when the feature is dropped qa
resource_samples one reading a minute: features up, containers, Docker memory used and total, host memory total and free, swap used and total, per-project memory and CPU; kept 30 days the daemon
features, prs, tunnels, agents the live cache: each feature’s slot, base and last start; its PRs; its tunnels; its Claude session’s state; deleted by drop new, up, touch, pull, pr, tunnel, review, the daemon

Timings and QA history survive aspenx drop, so the numbers add up across features. ASPENX_NO_USAGE=1 stops a shell from writing usage rows.

aspenx stats

aspenx stats [--since 30d]        # 30d, 8w, 24h or a Go duration

prints one line per success metric, with its target and what it measured:

Metric Target Measured from
new to touched services healthy 3 minutes or less events kind new: count, p50, p90, max, how many within target
up to healthy none, for information events kind up, when there are any
concurrent features without swapping 3 plus baseline the resource_samples row with the most features up (the latest, on a tie), and how much swap grew between consecutive samples while three or more were up
cross-feature collisions 0 per month self-reported; the number of doctor runs
orphaned resources after drop 0 the number of successful drops; aspenx doctor on a clean machine shows what is left
gitlink bump PRs made by hand 0 the number of successful aspenx pr runs, to compare with the repository’s PR history
QA items resolved without a human 60% or more pass plus fail over all items in runs that finished pass, fail or needs-human (error and timeout runs are left out)
engineers using it weekly everyone ISO weeks with at least one command, distinct features, commands in the last seven days

After the metrics, it prints the commands and features for each ISO week, then a count per command. --json prints all of it as one document, including the up timings and the peak sample.

On a Mac that has run three features for a day:

$ aspenx stats
aspenx stats, 2026-09-22 to 2026-10-22 (this machine)
METRIC                                TARGET        MEASURED
new to touched services healthy       <= 3 min      3 runs: p50 4s, p90 6s, max 6s; 3 of 3 within 3 min
up to healthy                         (info)        3 runs: p50 3s, p90 3s, max 3s
concurrent features without swapping  3 + baseline  peak 3 feature(s) up at 2026-10-22 20:17: Docker 7.3 GiB of 9.7 GiB, host 4.5 GiB free, swap 8.3 GiB; swap grew 0 B over 3 samples with 3+ up
cross-feature collisions              0 per month   self-reported; doctor ran 5 time(s)
orphaned resources after drop         0             0 drop(s); run `aspenx doctor` on a clean machine
gitlink bump PRs made by hand         0             0 `aspenx pr` run(s); compare with the monorepo's PR history
QA items resolved without a human     >= 60%        no QA runs yet
engineers using it weekly             everyone      1 of 5 week(s) active; 42 commands, 3 features; 42 commands in the last 7 days
WEEK      COMMANDS  FEATURES
2026-W43  42        invoice-pdf, search-v2, sso-login
commands: config 5, daemon 1, db 1, diff 2, doctor 5, down 4, edit 1, init 1, logs 1, ls 1, manifest 2, new 3, open 2, projects 1, resources 3, restart 2, shared 1, stats 1, template 1, touch 1, up 3

The app’s Activity section shows the same numbers under Stats, with a window of 7, 30, 90 or 365 days:

Activity, Stats: each success metric with its target and what was measured, then commands and features by week.

aspenx resources

aspenx resources [--watch 10s] [--latest] [--since 1h]

samples docker stats and groups the containers by compose project, marking each as a feature, the shared stack or other. It then prints:

It takes one reading, and --watch repeats it. --latest returns the daemon’s newest recorded sample, or a fresh reading when there is none. --since lists the recorded samples over that window and only takes Go durations such as 1h or 30m. --since wins over --latest, which wins over --watch.

With --json, a reading carries verdict and verdict_level, which is ok or tight. --latest prints {source, sample}, where source is daemon or live. --since prints {since, samples}.

$ aspenx resources
2026-10-22 20:17:34
PROJECT             KIND                 CONTAINERS  MEMORY   CPU
aspenx-shared       shared               3           223 MiB  0.7%
aspenx-invoice-pdf  feature invoice-pdf  7           43 MiB   0.0%
aspenx-search-v2    feature search-v2    7           43 MiB   0.0%
aspenx-sso-login    feature sso-login    7           42 MiB   0.0%
…
docker vm   7.3 GiB of 9.7 GiB used, 2.4 GiB free
host        4.6 GiB free of 24.0 GiB
swap        8.3 GiB of 9.0 GiB used
3 feature(s) up, 45 containers; Docker 7.3 GiB of 9.7 GiB used (2.4 GiB free); host 4.6 GiB free of 24.0 GiB; swap 8.3 GiB of 9.0 GiB. Headroom for another feature.

This table leaves out the Mac’s other containers, but the totals count them. The app’s Resources section shows the same reading, refreshed every 10 seconds, with a Down button for each feature:

Resources: gauges for the Docker VM, the Mac’s memory and swap, then containers, memory and CPU per compose project.

The daemon writes the same sample to resource_samples every minute and prunes samples older than 30 days. aspenx daemon run --resource-poll <dur> changes the interval, and a negative value turns sampling off. stats reads this table for its concurrency row.

To check the “3 features plus baseline” target, start three features, work in them for a while, then run aspenx stats. If swap barely grew across the samples with three features up, the machine coped.

Sizing the Docker VM

A referenced project costs a container start and its runtime memory. A touched project adds its dev server on top. Give the VM about the shared stack’s memory plus one feature’s footprint times the number of features you keep up at once. aspenx resources shows one feature’s footprint once a feature is running. Run aspenx down on the features you aren’t working in.