Build AI Context (baic)
Export the open workspace into AI-readable text bundles. No Python install.
The AI Context view is one export-first panel: search, file format, Export N files, a checkable file tree, Options, and Last export.
gzip (tar-gz) is the default. Export writes bundles, a manifest, and baic_prompt.md. Restore unpacks a previous gzip export. The Host stays on your machine: it reads a trusted workspace and writes the folder you choose.
Install
Search for Build AI Context (baic) in the VS Code Extensions view. To build from a checkout with dependencies installed, run:
npm --prefix ide/vscode run package
In the Command Palette, run Extensions: Install from VSIX…, select the baic-*.vsix file generated in ide/vscode/, and reload.
Use
- Open and trust a folder. The catalog loads in the background.
- Open Build AI Context in the Activity Bar.
- Search files matches path, filename, or category. File format narrows by extension (
All formats clears it).
- Uncheck files you do not want, or use Select all results. Oversized files start unchecked and show
large.
- Click Export N files. Only checked files in the current results are exported.
- Restore gzip unpacks a previous export. Refresh reloads the catalog.
Options holds package (gzip/text), categories, content keywords, paths, and Advanced (ignored paths, large files, split gzip, extra formats). Last export opens the folder, manifest, and baic_prompt.md.
Mapping to baic
This Host covers the same workflow as the baic CLI: catalog, search and file-format filtering, selection by category / path / content keyword, gzip or text transport, restore, redact, secret skip, oversized-file handling, filetree, code graph, and project overview.
Settings live under Build AI Context (baic.*). An empty baic.outputDir writes under .gen_files/, the same folder as the CLI, and Reveal output opens it. For sample projects, set baic.updateGitignore to false and baic.outputDir outside the project tree.
Privacy
Scan and export run in the VS Code extension host for a trusted workspace. Export writes to disk. Before sharing, review the selected files and manifest for personal data, credentials, and private paths. Gzip preserves original file bytes. Text redaction covers common credential patterns in file contents.