Skip to content
Discussion options

You must be logged in to vote

I usually run this one-liner to merge all relevant code into merged.txt and then feed it to an AI (Google AI Studio) to get a high-level summary — basically, any AI that can read the file works the same way, so you can choose which one to use:

Get-ChildItem -Recurse -File | Where-Object { $_.FullName -notmatch 'node_modules|\.git' -and $_.Extension -notmatch '\.(png|jpe?g|gif|mp4|mp3|wav|exe|dll)$' } | ForEach-Object { Add-Content merged.txt "`n$($_.FullName)`n"; (Get-Content $_.FullName | Where-Object { $_.Trim() -ne "" } | ForEach-Object { ($_ -replace '^\s*{\s*$', ' {') -replace '^\s*}\s*$', '} ' }) | Out-File -Append merged.txt -Encoding utf8 }

This way, you can quickly get an AI-ge…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Komal282000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Search and Navigation Search, navigate, and understand code on GitHub Question Ask and answer questions about GitHub features and usage
2 participants