addyCooks
addyCooks
## Description `highlight.js` registers every language at import: 193 modules and about 1.35 MB of source, plus `parse5` (26 modules) for `cli-highlight`. The markdown parser and the `write_file` formatter import...
## Description `loadPreferences()` does `readFileSync` + `JSON.parse` on every call, and `App` calls it on every render: once in `useAppState` and twice through `getPrivacyPreference()`. The UI renders dozens of times...
## Description Three logging packages are listed in `dependencies`, are never imported, and are silenced in `knip.json`. `pino-roll` alone pulls in `date-fns` (10.4 MB). Every user downloads and unpacks them...
## Description The TUI loads 1,457 separate files at startup. A CPU profile of the import shows the time is almost entirely file-system work (stat, lstat, open, package.json scope lookups),...
## Description Half of the install is one dependency. `@nanocollective/get-md` is used only by `fetch_url` (HTML to markdown) and when reading PDF/DOCX files. It is already imported lazily, so it...
## Description `getCachedFileContent` keeps up to 50 files, and each entry stores the file as a string and again as a `lines` array. There is no byte limit, and entries...
## Description To find one model's context limit and price, nanocoder reads a 10.4 MB cache file, parses all 230 providers / 8,874 models, and keeps the whole object graph...
## Description `source/tokenization/tokenizer-factory.ts` imports every tokenizer wrapper statically, and `useAppState.tsx` imports the factory. So `llama-tokenizer-js` (661 KB of source with an embedded vocabulary), `@anthropic-ai/tokenizer` (681 KB, with `tiktoken` lite) and...
## Summary `source/tools/index.ts` calls `getGitTools()` when the module is imported. That runs `git --version`, `git rev-parse --is-inside-work-tree` and `gh --version` with `execSync`, so three child processes block startup before the...
## Summary The welcome banner uses `ink-big-text` (which loads `cfonts`) and `ink-gradient` (which loads `gradient-string`, `tinygradient`, `tinycolor2`). They are imported at the top of `welcome-message.tsx`, so about 30 modules load...