Skip to content

ginko compact

Terminal window
ginko compact [options]

Reduces session context size by removing stale or redundant information. Useful when your AI assistant’s context window is getting full.

FlagDescription
-p, --preserve <files...>Files to preserve during compaction
-a, --aggressiveAggressive compaction mode
Terminal window
# Standard compaction
ginko compact
# Preserve specific files
ginko compact --preserve src/auth.ts src/config.ts
# Aggressive mode
ginko compact --aggressive