Export Commands
brain export full_code
Packs the entire repository into a single AI-friendly flat text file.
brain export full_codebrain export

Packing the repository codebase into a single AI-consumable flat context file
Output
.brain/exports/full_code.txtFile format
=== FILE: src/api.py ===
<file content>
=== FILE: src/utils.py ===
<file content>Behavior
- •Recursively scans all files
- •Respects analysis.ignore paths from brain.yaml
- •Skips files larger than export.full_code.max_file_size_kb
- •Skips test files if include_tests: false
- •Skips binary files automatically
Tip
Paste the content of full_code.txt directly into your LLM prompt to give it complete context of your codebase.