Codebase Combiner helps you curate files, count tokens, and generate a ready-to-paste prompt from a workspace or folder.
This repo ships two deliverables:
- VS Code extension (Node/JavaScript)
- macOS SwiftUI app (SwiftPM)
- Combine a workspace or folder into a single Markdown or text file.
- Flexible include/exclude filters by glob and extension.
- Token estimation for prompt sizing.
- SwiftUI desktop app for visual selection and preview.
See INSTALL.md for full setup and run instructions.
Quick start (VS Code extension):
npm install
npm test
npm run packageQuick start (Swift app):
cd SwiftExplorerApp
swift runCommands:
- “Combine Workspace to Single File”
- “Combine This Folder to Single File” (context menu)
Output options are configurable in VS Code settings under “Codebase Combiner”.
- Launch with
swift run(or run the built binary). - Choose a folder, adjust filters, select files, and copy/save the combined prompt.
- Tests:
npm test - Lint:
npm run lint - Format:
npm run format(ornpm run format:checkin CI)
- Tests:
cd SwiftExplorerApp && swift test - Format (SwiftFormat):
swiftformat .
- JS: ESLint + Prettier + Mocha
- Swift: XCTest + SwiftFormat
- CI: GitHub Actions runs all quality gates on PRs
See CONTRIBUTING.md.
See SECURITY.md.
MIT. See LICENSE.
