← back

githem

install

curl -fsSL get.githem.com | sh

usage

githem owner/repo
githem .
githem https://github.com/owner/repo

options

-o FILE output to file
-i PATTERN include patterns
-e PATTERN exclude patterns
-b BRANCH branch
--preset NAME filter preset
--stats show statistics

presets

raw no filtering
standard default smart filtering
code-only source code only
minimal basic filtering

examples

# code only
githem owner/repo --preset code-only

# specific files
githem . -i "*.rs" -e "tests/*"

# output to file
githem owner/repo -o output.txt

# specific branch
githem owner/repo -b develop

# compare branches
githem owner/repo/compare/main...feature

cache

githem --cache-stats
githem --clear-cache
githem owner/repo --no-cache

api

curl https://githem.com/owner/repo
curl "https://githem.com/owner/repo?preset=code-only"

faq

what files are filtered?

node_modules, vendor, target, build artifacts, media, binaries, lock files

private repos?

use ssh: githem [email protected]:company/private.git

size reduction?

typically 60-80% with standard preset

token estimation?

~1 token per 4 characters, shown with --stats