Skip to content
PluginStats

@parcha/agentrun-import weekly downloads statistics

By parcha · npm · Claude Code

Reads the coding-agent sessions under a home (Claude Code, Codex, pi, OpenCode, GitHub Copilot CLI, Cursor) into one Session shape, with normalized token usage, subagents under their parent, byte-offset cursors for re-reads, and per-session totals.

View on npm Fresh · Dec 6, 2026

@parcha/agentrun-import has 38,348 recorded weekly downloads on npm, a change of +840% over the past 7 days, ranking #863 of 3,247 tracked listings.

Weekly downloads
38,348
Official API · Dec 5, 2026
7-day growth
+840%
+34.3K weekly downloads
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#863
Among tracked npm listings

About @parcha/agentrun-import

@parcha/agentrun-import

Reads the coding-agent sessions under a home (Claude Code, Codex, pi, OpenCode, GitHub Copilot CLI, Cursor's CLI) into one Session shape: normalized token usage, subagents counted under their parent, and cursors so a second pass reads only what changed. AgentRun's server imports past sessions through it.

Totals for a home

import { parseHome } from "@parcha/agentrun-import";

const sessions = await parseHome(homedir(), { sources: ["claude-code", "codex"] });
// [{ key, file, source, id, tokens: { input, output, cacheRead, cacheWrite, cacheWrite1h }, reasoning, cost, turns, calls, subagents }]
  • key is the sha256 (hex) of the session's file path relative to the home, "/" between its parts, with #<id> after it for a file that holds many sessions (an OpenCode database: .local/share/opencode/opencode.db#ses_…). Lines come sorted by key.
  • tokens.input is the input neither read from nor written to the cache, for every source (see normalizeUsage).
  • cost is USD: the source's own when it wrote one (Claude Code's cost-state, pi's and OpenCode's per-request cost, an OpenCode subagent's added to its parent's), else the requests at pi-ai's list prices (a dependency, loaded on the first price; a load that fails throws with its reason), else null.
  • turns counts the person's messages; calls the model requests, its subagents' with them, each once.
  • state: {} handed to each call keeps cursors between calls: the second call reads only the bytes appended since, and returns what a fresh call would. When a file holding a copied record now comes before the file it counts in (an append moved the original after its resumed copy, or a new file sorts before one it shares records with), that source is read again from the start. The state holds counts, record ids and paths, never a prompt, title, working directory or answer; a file that fails to read gives up what it held and is read from its start next time.
  • failures: [] collects each file its reader could not read ({ key, file, source, error }; an OpenCode database that does not open, for each session it lists or as itself when it lists none) while the rest are totalled; without it, parseHome throws ReadFailures. An unreadable file is never taken for an empty one.
  • env names where a source keeps its own directory (CLAUDE_CONFIG_DIR, CODEX_HOME, COPILOT_HOME, OpenCode's XDG_DATA_HOME and OPENCODE_DB, CURSOR_CONFIG_DIR or XDG_CONFIG_HOME for Cursor); without it the home's.
  • threads reads the files on that many worker threads (default: the cores the process may run on less one, two on two, at most 16, and no more than the workers whose heaps, 80 MiB each at the default workerOldMb, fit in the memory still free (the machine's, page cache counted as free, at most its container's limit) once readAhead is set aside; 1 reads them in order on the calling thread; at most 64). A read is kept only when it is the one the import's order would make; any other file is read again in order, so the totals are the same whatever the count. A call with a state, or with readers of its own, reads on the calling thread; so does OpenCode in any call (its sessions are rows of a database, not files of lines).
  • readAhead caps the bytes of finished reads waiting to be taken (default 1 GiB, or a sixteenth of the memory the process may use, its container's limit when one is set, when that is less: 512 MiB at 8 GiB). Under it, files of 64 MiB and over are read first, largest first, then the rest in order; at it, the threads read only the file the import waits on. It is a cap on finished reads waiting, plus at most one read in flight per thread (one of those can be a giant file), not on the process's memory.
  • workerOldMb caps each worker's old generation (default 64, at least 8, refused with a RangeError under it: at 1 or 2 MB V8 ends the whole process as a worker starts, and at 3 to 7 the workers run out of memory). A line over an eighth of it, or a file that runs a worker out of memory, is read on the calling thread instead; past two such losses a thread, the calling thread reads the rest. Each reading thread (each worker, and the calling thread) also holds up to 8 MiB of scanner memory outside its heap: the scanner's stack and tables, and room for the longest line it read. A line that would take it past 8 MiB (one over about 6.7 MiB) is parsed whole instead, with the same totals.
  • A request two sources wrote is counted once. OpenCode's claude-agent provider runs Claude Code, which writes each request into its own session file too; OpenCode names that session on the request (mirrors). When the same call reads that Claude Code session (serve's import: or its store holds it), the request counts there and not in the OpenCode session (tokens, calls and cost), request by request: one OpenCode session can mix claude-agent requests with other providers'. When it does not, the request counts in OpenCode's.

A year of work

import { wrappedHome } from "@parcha/agentrun-import";

const year = await wrappedHome(homedir(), 2026); // the same options as parseHome, but `state`
```…

Description from the npm listing.

  • agentrun
  • claude-code
  • codex
  • copilot
  • pi
  • cursor
  • opencode
  • sessions
  • usage

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@parcha/agentrun-import weekly downloads on npm, last 90 days: 38,348 weekly downloads as of Dec 5, 2026.@parcha/agentrun-importWeekly downloads on npm · Last 90 days38,348downloads / week010K20K30K40KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@parcha/agentrun-import weekly downloads on npm, last 90 days: 38,348 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

@parcha/agentrun-import weekly downloads growth on npm: +840% over 7 days, 30-day growth unavailable, 90-day growth unavailable.@parcha/agentrun-importWeekly downloads growth on npm38,348downloads / week now7-day growth+34,267 weekly downloads+840%30-day growth+38,348 weekly downloadsInsufficient history90-day growth+38,348 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@parcha/agentrun-import weekly downloads growth on npm: +840% over 7 days, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@parcha/agentrun-import npm ranking history: currently #863 (by weekly downloads).@parcha/agentrun-importnpm ranking · by weekly downloads · Last 90 days#863current rank#860#880#900#920#940#960#980#1000#1020Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankDec 5, 2026 – Dec 6, 2026 · 2 observations · Updated Dec 5, 2026pluginstats.com
@parcha/agentrun-import npm ranking history: currently #863 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 44, #3 (overall #863)
All npm: every listing in weekly downloads order

Listing placement

Claude Code614 listings · 31 pages · page 1, #17 (overall #17)
Claude Code: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (121)
Recent weekly downloads observations for @parcha/agentrun-import
Date (UTC)Weekly downloadsChange vs. previous
38,348-563
38,911+17.9K
21,034+8.8K
12,224+5.8K
6,461+879
5,582+642
4,940+859
4,081+563
3,518+858
2,660+959
1,701+786
915+427
488+488
0—

Similar npm Claude Code plugins

All 20 @parcha/agentrun-import alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@parcha/agentrun-import. First seen Dec 5, 2026; last successful collection Dec 6, 2026. See the methodology.