fork-census

fork-census is a skill for Claude Code from TypedDevs/bashunit. It costs 37 tokens per session (446 once invoked), scanned A, original, MIT.

A process-counting and timing workflow for measuring how many operating-system processes a change starts. It covers startup, test runs, parallel workers, reports, and coverage paths.

In plain words
What is it for?
Use it to compare a baseline with a proposed change, investigate fork costs, and record reproducible benchmark results.
Why use it?
It replaces guesses about performance costs with current measurements and helps distinguish real process creation from misleading trace totals.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to compare a baseline with a proposed change, investigate fork costs, and record reproducible benchmark results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/typeddevs/bashunit/fork-census
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TypedDevs/bashunit --skill fork-census
Clone the repo
git clone --depth 1 https://github.com/TypedDevs/bashunit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fork-census

README.md
[![agentmods](https://agentmods.dev/badge/skills/typeddevs/bashunit/fork-census/github.svg)](https://agentmods.dev/skills/typeddevs/bashunit/fork-census)
Your own site
<a href="https://agentmods.dev/skills/typeddevs/bashunit/fork-census"><img src="https://agentmods.dev/badge/skills/typeddevs/bashunit/fork-census/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fork-census

Your own site · 80×15
<a href="https://agentmods.dev/skills/typeddevs/bashunit/fork-census"><img src="https://agentmods.dev/badge/skills/typeddevs/bashunit/fork-census.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00446
Opus 5.5 $0.00015 $0.00178
Sonnet 5.5 $0.00007 $0.00089
Haiku 4.5 $0.00004 $0.00045

Measured 28d ago against content hash 6e8a39fbaecd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fork-census scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agnostic-ai/skills/fork-census/SKILL.md · 16 lines

What it actually says

Fork census

Read the fork-budget reference before changing process costs, and the module map to find which src/ module owns a path. Its historical timings are evidence of earlier measurements, not current baselines. All repository paths below are relative to the repository root.

  1. Identify the actual path: cold start, sequential run, parallel worker, lifecycle hook, report, or coverage. Read the matching existing fixture in tests/acceptance/bashunit_coldstart_forks_test.sh, tests/acceptance/bashunit_run_forks_test.sh, or tests/acceptance/bashunit_coverage_forks_test.sh. Include the options and hooks the change exercises.
  2. For a timing claim, measure current main before editing and record its commit, Bash version, OS, fixture, options, and sampling method. Land any new benchmark harness before the PR that measures a delta. Alternate baseline and candidate rounds in the same location and repeat anomalous readings.
  3. Use the reference's PATH-shim census for binary invocations. Resolve real binaries before adding shims; startup-pinned binaries bypass them. Account separately for shell-function subshells. Use traces to locate sites, not raw trace-line totals to count forks. Skip unreliable PATH-shim checks on Git Bash.
  4. Add a failing budget regression using the existing fixture patterns, then make the smallest change. Measure parallel costs with a parallel fixture and compare supported Bash versions. Never replace a fork with pure Bash based only on a microbenchmark.
  5. Run the matching acceptance file with ./bashunit --no-parallel tests/acceptance/<existing-file>. These tests select their own internal sequential or parallel census. Preserve the checked budgets; report counts, timing samples, and limits. The main session completes the checks selected under .agnostic-ai/AGNOSTIC_AI.md after the complete change set.
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago Changed · +19 tokens per session 6e8a39fbaecd
  2. 1mo ago Changed · -19 tokens per session e5d3a3da14df
  3. 1mo ago First seen · 16 lines · 37 tokens per session scan A 6b7551e5e65f

Subscribe to this mod's changes

fork-census is a skill published in the GitHub repository TypedDevs/bashunit (443 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 446 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-12.

Related

fork-census compared with skills from other repositories

fork-census next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fork-censusTypedDevs/bashunitSkill443todayMITA37Claude Code
mirage-vfs-authoringstrukto-ai/mirageSkill4.0ktodayApache-2.0A65Claude Code
x-mankierx-cmd/x-cmdSkill4.8k7d agoApache-2.0A62Claude Code, Codex
x-osvx-cmd/x-cmdSkill4.8k7d agoApache-2.0A72Claude Code, Codex
x-uptimex-cmd/x-cmdSkill4.8k7d agoApache-2.0A67Claude Code, Codex
wikipediax-cmd/x-cmdSkill4.8k7d agoApache-2.0A49Claude Code, Codex
cvex-cmd/x-cmdSkill4.8k7d agoApache-2.0A49Claude Code, Codex