-
Notifications
You must be signed in to change notification settings - Fork 0
Agent Chokepoints
This page is for AI coding agents and contributors. It summarizes the high-risk areas that have previously caused hangs, generated-command explosions, stale UI, or unsafe archive behavior.
Read this before changing menus, activation, settings navigation, token estimates, file collection, or packaging.
Old behavior generated thousands of commands for dynamic token-count menu labels. That caused:
- huge
package.json - Command Palette pollution
- slow manifest parsing
- Cursor activation/settings hangs
- fragile build output
Current rule:
Token counts appear in the status bar and zip notifications, not in menu titles.
Allowed menu generation is only the small target-model layer.
Verify:
npm run test:menu-merge
npm run test:tokenspackage.slim.json is the editable source. package.json is generated by compile.
If package.json becomes huge, assume a generated command explosion or manifest merge regression.
Do not:
- add one command per token bucket
- add one command per folder count
- expose generated target commands in the Command Palette
- bypass
package.slim.jsonas the source-of-truth manifest
Export2AI intentionally guards settings navigation from heavy token scans.
Current protections:
- initial full scan is deferred after activation
- settings navigation in progress can defer scans
- post-settings refresh is delayed
- config changes clear pending estimates and cache
Do not remove these guards without proving settings navigation remains responsive.
Verify:
npm run test:settings-navOptional Explorer token badges must not trigger one subtree scan per folder.
Current pattern:
- collect included files once
- tokenize files once
- aggregate token counts into ancestor folders
- cache folder totals
- serve
provideFileDecorationsynchronously from cache
Do not add lazy per-folder scanning back.
Verify:
npm run test:explorer-badgesDo not regress the v1.2.8/v1.2.9 safety model.
Must remain true:
-
.github/**,.gitignore,.gitattributes, docs, tests, tools,README.md,AGENTS.md, andpyproject.tomlcan stay visible - local
.git/internals are not exported - default marker is outside
.git/ - credential/key material still wins over repo-control inclusion
- symlinks are skipped
- empty
excludePathsentries do not exclude the workspace root
Verify:
npm run test:soft-deleteExpected high-level order:
generate menus → TypeScript compile → sync settings docs → merge package manifest
Do not invert this order unless tests are updated and the generated fields still match.
For docs-only work:
- do not edit
src/,scripts/,tests/, or package manifests unless explicitly requested - keep README compact, roughly under 160 lines
- move detailed explanations into wiki pages
- keep
wiki/_Sidebar.mdin sync with page files - preserve technical docs in
docs/ - do not upload or commit generated Export2AI context zips
Before submitting changes, check that you did not:
- create a separate repository for wiki content
- commit the analysis zip or generated context zip
- delete technical details from docs without moving them to the wiki
- remove safety warnings from soft-delete docs
- claim token estimates are API-exact for approximate families
- turn Explorer token badges on by default
- make
removeCommentsorcompressCodedefault to true - hide built-in excludes from user control
- restore
.git/as the default marker location
| Changed area | Minimum tests |
|---|---|
| token model/format | npm run test:tokens |
| soft-delete/excludes | npm run test:soft-delete |
| settings navigation | npm run test:settings-nav |
| Explorer badges | npm run test:explorer-badges |
| menu generation | npm run test:menu-merge |
| packaging/assets |
npm run test:marketplace-assets, npm run package
|
| broad change | npm run test:critical |
When in doubt, run the full critical matrix.
Export2AI · AI-ready zip archives for VS Code, Cursor, ChatGPT, Claude, and LLM coding agents.
Repository · README · Releases · Open VSX · GPL-3.0-only
Export2AI Wiki
Start
Safety & AI Context
- 🛡️ Safe Exports & Excludes
- 🌿 Git Metadata Soft-Delete
- 🧮 Token Estimates & AI Model Support
- 🧹 Comment Stripping & Compression
Configuration & Support
Contributors