Script

Shared file analysis

Computes file categories, line counts, aggregates, and hypothetical split costs.

The inventory and token-estimation commands share these helpers. The calculations use an approximate token model and do not observe actual model consumption.

Technical source

The hosted file belongs to the package version shown on this page.

plugins/faye-coding-assistant/skills/source-file-token-estimation/scripts/common-workspace-analysis.mjs

Open source file